code
stringlengths
2
1.05M
version https://git-lfs.github.com/spec/v1 oid sha256:fd0bc3773d4b49f811a360c65d809d09019c1916da1346bd89c49c71b225193f size 62450
version https://git-lfs.github.com/spec/v1 oid sha256:70e41128e3047c752ac90e54ed4b12155d8358f9f452ce17145a44c930c22d03 size 158903
version https://git-lfs.github.com/spec/v1 oid sha256:05ef65f7c2f572a3134108e9091e69b4a3bffdf20a5f05e9f9d0e5333564a7b0 size 107584
/* * AboutPage Messages * * This contains all the text for the AboutPage component. */ import { defineMessages } from 'react-intl'; export default defineMessages({ header: { id: 'app.containers.AboutPage.header', defaultMessage: 'This is AboutPage container !', }, });
/** @jsx React.DOM */ var React = require('react/addons'); var cx = require('classnames'); var Label = React.createClass({ propTypes: { id: React.PropTypes.string.isRequired, fixed: React.PropTypes.bool.isRequired, large: React.PropTypes.bool.isRequired, text: React.PropTypes.string.isRequired }, ...
import TwitchSerializer from "data/models/twitch/serializer"; export default TwitchSerializer.extend({ primaryKey: "regex", modelNameFromPayloadKey() { return "twitchProductEmoticon"; } });
/** * @fileoverview Enforce component methods order * @author Yannick Croissant */ 'use strict'; var util = require('util'); var Components = require('../util/Components'); /** * Get the methods order from the default config and the user config * @param {Object} defaultConfig The default configuration. * @para...
'use strict'; import angular from 'angular'; class ArticlesService { constructor($http, settings) { this.http = $http; this.settings = settings; } getAll(query) { return this.http .get(this.settings.apiUrl + '/articles', {params: query}) .then((response) => { return response.dat...
'use strict'; var test = require('tap').test; var DrSax = require('../index'); test('should never be four newlines in a row', function(t){ var drsax = new DrSax(); var output = drsax.write('<p>this is a test<p>of newline issues'); t.equal(output.match(/\n\n\n\n/), null, 'block level elements generate correct li...
'use strict'; // Keeps track of wallet status results var wallet = {}; // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Lock Icon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Helper function for the lock-icon to make sure its classes are cleared function setLockIcon(lockStatus, lockAction, iconClass) { $('#status span').text(lockStatus...
var testConsumer = { i : function (raw, date, collection, object) { insertTestResult = { raw : raw, date : date, collection : collection, object : object }; }, u : function (raw, date, collection, objectId, update) { updateTestResult = ...
var app = angular.module( 'TagConverter', [] ); app.controller( 'TagConverterController', function ( $scope ) { $scope.Number = window.Number; $scope.digits = [ 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0 ]; $scope.flipDigit = function ( index ) { $scope.digits[ index ] = $scope.digits[ index ] ^ 1; }; $scope.showGri...
'use strict'; const path = require('path'); const serveStatic = require('feathers').static; const favicon = require('serve-favicon'); const compress = require('compression'); const cors = require('cors'); const feathers = require('feathers'); const configuration = require('feathers-configuration'); const hooks = requi...
'use strict'; exports.find = function(req, res, next){ req.query.username = req.query.username ? req.query.username : ''; req.query.limit = req.query.limit ? parseInt(req.query.limit, null) : 20; req.query.page = req.query.page ? parseInt(req.query.page, null) : 1; req.query.sort = req.query.sort ? req.query.s...
#!/usr/bin/env node 'use strict'; /** * KoshekhBot launcher script. */ var KoshekhBot = require('../lib/koshekh'); /** * Environment variables used to configure the bot: * * BOT_API_KEY : the authentication token to allow the bot to connect to your slack organization. You can get your * token at the fol...
const test = require('ava'); const { constants, createClient } = require('./helpers/createClient'); test('can init and close more than one client', async (t) => { const client = createClient(); const secondClient = createClient(); await new Promise((resolve) => { client.on('connect', () => { ...
class SoundManager { constructor () { this.sound = $('#speaker') } play () { $(this.sound).trigger('play') } stop () { $(this.sound).trigger('pause') } } export {SoundManager}
Ext.namespace('BB'); var pageSize = BB.pageSize; Ext.create('Ext.data.Store', { storeId: 'bbContactsStore', model: 'Contact', pageSize: pageSize, proxy: { idProperty : '_id', type: 'rest', url: 'data/contacts/', autoload: true, noCache: false, ...
import fs from "fs"; import JSZip from "jszip"; import { scenarioDB} from '/imports/DBs/scenarioDB.js'; import { computeScenario } from '/imports/server/startup/scenarioDef.js' //let path = process.env['METEOR_SHELL_DIR'] + '/../../../public/cities/'; //let path = Assets.absoluteFilePath('cities/') var meteorRoot = fs...
import * as React from 'react'; import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog'; import { docs } from './april-2019-update.md?@mui/markdown'; export default function Page() { return <TopLayoutBlog docs={docs} />; }
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Jason Anderson @diurnalist */ "use strict"; const REGEXP_HASH = /\[hash(?::(\d+))?\]/gi, REGEXP_CHUNKHASH = /\[chunkhash(?::(\d+))?\]/gi, REGEXP_MODULEHASH = /\[modulehash(?::(\d+))?\]/gi, REGEXP_NAME = /\[name\]/gi, REGEXP_ID = /...
enabled(){ this.ENABLE_CUSTOM_KEYBOARD = false; this.selectedSkinTone = ""; this.currentKeywords = []; this.skinToneList = [ "", "1F3FB", "1F3FC", "1F3FD", "1F3FE", "1F3FF" ]; this.skinToneNonDefaultList = [ "1F3FB", "1F3FC", "1F3FD", "1F3FE", "1F3FF" ]; this.skinToneData = [ [ "", "#ffdd67" ], ...
// @flow import 'test-utils/legacy-env' import { injectGlobal, sheet, flush, css } from '@emotion/css' describe('injectGlobal', () => { afterEach(() => { flush() }) test('basic', () => { injectGlobal` html { background: pink; } html.active { background: red; } ...
/* eslint-disable class-methods-use-this */ import Job from '../../../../../../packages/oors-scheduler/build/libs/Job'; class DoNothing extends Job { config = { interval: '25 minutes', }; run = () => { console.log(this.module.get('takeABreak')()); }; } export default DoNothing;
import WPAPI from 'wpapi' const wp = new WPAPI({ endpoint: window.five_recent_api.root, nonce: window.five_recent_api.nonce }) export default wp
var chatter = (function(){ // OAuth Configuration var login_url = 'https://login.salesforce.com/'; var client_id = '3MVG9A2kN3Bn17hsXCLd3JHayKA_4lVHkqfvD.R4Ut3k4Haw7idK3YGmkX7XrxAKlNqqS0svqtIgT0uG3qThc'; var redirect_uri = 'https://login.salesforce.com/services/oauth2/success'; var state ...
let express = require('express') let path = require('path') let cookieParser = require('cookie-parser') let bodyParser = require('body-parser') let session = require('express-session') let FileStore = require('session-file-store')(session) let history = require('connect-history-api-fallback') let controller = require('...
$(document).ready(function() { 'use strict'; var socket = io.connect('http://localhost:3000'); var minion_list = document.getElementById('minions_list'); // Request initial minion list socket.emit('get_minion_list'); // Handle receiving minion list socket.on('minion_list', function(data) {...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.ValidationRule = undefined; exports.cleanResult = cleanResult; var _validate2 = require('validate.js'); var _validate3 = _interopRequireDefault(_validate2); var _aureliaValidation = require('aurelia-validation'); function _inter...
'use strict'; class LogController { constructor($state) { this.$state = $state; this.entry = { date: new Date(2015, 1, 12), exercises: [ { name: 'Squat', sets: [{reps: 0, weight: 0}] }, ...
//Autogenerated by ../../build_app.js import questionnaire_response_question_component from 'ember-fhir-adapter/models/questionnaire-response-question-component'; export default questionnaire_response_question_component;
const ScrollTo = require('../scroll-to'); class FeaturesNavBarItem { /** * @param {HTMLElement} element * @param {number} scrollOffset */ constructor (element, scrollOffset) { this.element = element; this.scrollOffset = scrollOffset; let anchor = this.element.getElements...
Package.describe({ name: 'mengkeys:orion-lang-zh-cn', version: '1.5.0', summary: 'Orion简体中文语言包', git: 'https://github.com/mengkeys/orion-lang-zh-cn', documentation: 'README.md' }); Package.onUse(function(api) { api.versionsFrom('1.0'); api.use('ecmascript@0.1.6'); api.use('anti:i18n@0.4.3'); api.use(...
module.exports = { devHost: 'http://localhost:8081/', serverHost: '/', rootPath: '/', title: '宇宸的博客', subTitle: '我不是一个伟大的前端工程师,我只是一个具有良好习惯的前端工程师', myselfInfo: { name: '宇宸' }, adminLeftNavList: [{ value: '发布文章', url: '/admin/publish' }, { value: '文章管理', url: '/admin/manage' }, { ...
var zmq = require('..') , should = require('should') , semver = require('semver'); describe('socket.monitor', function() { if (!zmq.ZMQ_CAN_MONITOR) { console.log("monitoring not enabled skipping test"); return; } it('should be able to monitor the socket', function(done) { var rep = zmq.socket('...
// This service monitors all other services var zonar = require('zonar'); var clc = require('cli-color'); var z = zonar.create({ net : 'cammes', name: 'service-monitor'}); var list = {}; z.listen(function(){ z.on('found', function(service) { list[service.name] = service; render(list); }); ...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { reduxForm, Field } from 'redux-form'; import renderField from '../helpers/renderField'; import { validate } from '../helpers/form'; import { validateAndSignInUser, resetUser } from './actions'; im...
'use strict'; angular.module('zApp.templates', []); angular.module('zApp.animations', []); angular.module('zApp.filters', []); angular.module('zApp.services', []); angular.module('zApp.controllers', []); angular.module('zApp.directives', []); angular.module('zApp.controllers') .controller('root', ['$scope', fu...
initSidebarItems({"fn":[["abs","计算绝对值 #例子 ``` let a = abs(-20); ```"]]});
events_type={ "PushEvent": "is more of a pusher", "CreateEvent": "spends most of their time creating new repositories and branches", "CommitCommentEvent": "is far more likely to comment on your commits", "FollowEvent": "is more of a follower", "ForkEvent": "is a more serious forker", "IssueComme...
$( document ).ready(function () { var fishInit = function () { // Menu trigger $( '.nav-trigger' ).click(function () { $( '.header__menu' ).slideToggle(); }); var bgRand = Math.floor((Math.random() * 8) + 1); var bgImg = 'url(http://fishingonorfu.hu/wp-c...
import React from 'react' import { TableCell } from 'material-ui/Table' import returnSpeakerPosition from '../returnSpeakerPosition' export default ( debater, round, debaterStandings, roomsById ) => { const debaterResults = debaterStandings[round._id][debater._id].roomResults if ( debaterResults.cons...
/** * @fileoverview Tests for no-func-assign. * @author Ian Christian Myers */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const rule = require("../../../lib/rules/no...
'use strict'; const _ = require('lodash'); const Stats = require('../../models/stats'); const setupMatches = require('../support/setupMatches'); describe('Stats', function() { beforeEach(function(done) { setupMatches.call(this).then(done); }); describe('getSummary', function() { let stats; bef...
// Increases testrpc time by the passed duration (a moment.js instance) export default function increaseTime(duration) { const id = Date.now() return new Promise((resolve, reject) => { web3.currentProvider.sendAsync({ jsonrpc: '2.0', method: 'evm_increaseTime', params: [duration.asSeconds()],...
module.exports = { "inputs": { "data": { "id": "223064b3-2e66-42ed-92a7-1f11b781e81c", "friendlyName": "data", "description": "", "example": {}, "defaultsTo": {}, "addedManually": true } }, "exits": { "error": { "example": undefined }, "success": { ...
'use strict'; var Q = require('q'); var debug = require('debug')('dynamodel:table'); var util = require('util'); function Table(name, schema, options, base) { debug('new Table (%s)', name, schema); this.name = name; this.schema = schema; this.options = options || {}; this.base = base; if(this.options.cre...
var Heap = require('heap'); var ndarray = require('ndarray'); var vec3 = require('gl-vec3'); var vec4 = require('gl-vec4'); var normals = require('normals').faceNormals; var ops = require('ndarray-ops'); var solve = require('ndarray-linear-solve'); var removeOrphans = require('remove-orphan-vertices'); var removeDegene...
define('JSComposer/Instance', ['JSComposer/Utils', 'JSComposer/Schema'], function(Utils, Schema) { // Constructor function Instance(context, parent, type_desc, value) { this.context = context; this.parent = parent; this.elements = { ctr: Utils.makeElement("div", {"clas...
#!/usr/bin/env node /* @flow */ // Need that because of regenerator runtime require("babel-polyfill"); // $FlowFixMe process.noDeprecation = true; // Suppress webpack deprecation warnings const meow = require("meow"); const chalk = require("chalk"); const aik = require("./lib"); const cli = meow({ help: [ cha...
'use strict'; /* 컨트롤러 단위 테스트 */ describe('controllers 단위 테스트', function(){ beforeEach(module('myApp.controllers')); var scope; it('MyCtrl1 컨트롤러 test1값', inject(function($rootScope, $controller) { scope = $rootScope.$new(); var ctrl = $controller('MyCtrl1', { $scope : scope }); expect...
import React from 'react'; import {FontIcon, Styles} from 'material-ui'; import Radium from 'radium'; let ThemeManager = new Styles.ThemeManager(); let styles = { page: {}, editView: { padding: '10px 10px 100px 10px' }, }; @Radium export default class PageLayout extends React.Component { render() { l...
/** * Created by suman on 08/05/16. */ var core = require('chanakya'); var _ = require('lodash'); var Q = require('q'), http = require('http'); var rp = require('request-promise'); core.response('fail', function (to) { return { text: `I am sorry ${to.first_name}, I am unable to understand what you meant. Pl...
var searchData= [ ['update_2eh',['update.h',['../update_8h.html',1,'']]] ];
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('scroll-indicator', 'Integration | Component | scroll indicator', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myProperty', 'value'); //...
// module for ng-app var app = angular.module("memorin",["ngSanitize"]); app.controller("editorCtrl",["$scope","$sanitize","$filter","$sce", function($scope,$sanitize,$filter,$sce){ $scope.items = [ {"content":"test1<br>1111"}, {"content":"test2<br>2222"}, {"content":"aaa<br>aa<br>aaa"}, ...
(function() { function require(path, parent, orig) { var resolved = require.resolve(path); if (null == resolved) { orig = orig || path; parent = parent || "root"; var err = new Error('Failed to require "' + orig + '" from "' + parent + '"'); err.path =...
let crypto = require('crypto') let Buffer = crypto.Buffer module.exports = { generateSalt: function () { return crypto.randomBytes(128).toString('base64') }, generatePasswordHash: function (salt, password) { return crypto.createHash('sha256').update(password).digest("hex"); } }
'use strict'; // Use applicaion configuration module to register a new module ApplicationConfiguration.registerModule('google-agenda');
import SongManager from '../songs.js'; class Boot extends Phaser.State { constructor() { super(); } preload() { this.load.image('preloader', 'assets/preloader.gif'); } create() { this.game.input.maxPointers = 1; //setup device scaling if (this.game.device.desktop) { this.game.sca...
'use strict'; /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ const mongo = require('@turbasen/db-mongo'); const redis = require('@turbasen/db-redis'); const users = require('@turbasen/test-data').api.users; before(done => { if (mongo.db) { return done(); } return mongo.on('re...
/* */ "format global"; var resolveRc = require("../../lib/babel/api/register/resolve-rc"); var readdir = require("fs-readdir-recursive"); var index = require("./index"); var babel = require("../../lib/babel/api/node"); var util = require("../../lib/babel/util"); var path = require("path"); var fs ...
// 用於事件處理 // 一種事件通道 var EventEmitter = require('events') var eventEmitter = new EventEmitter() eventEmitter.setMaxListeners(0) module.exports = eventEmitter
import * as THREE from '../../build/three.module.js'; import { Config } from './Config.js'; import { Loader } from './Loader.js'; import { History as _History } from './History.js'; import { Strings } from './Strings.js'; import { Storage as _Storage } from './Storage.js'; var _DEFAULT_CAMERA = new THREE.PerspectiveC...
/** * @venus-library jasmine * @venus-include ../../src/functions.js * @venus-include ../../src/EventDispatcher/EventDispatcherInterface.js * @venus-include ../../src/EventDispatcher/EventDispatcher.js * @venus-include ../../src/EventDispatcher/Event.js * @venus-code ../../src/EventDispatcher/GenericEvent.js */ ...
/** * Credit to @faceleg for some of the typedefs seen here: * https://github.com/solnet-aquarium/flow-interfaces-angular/blob/master/interfaces/angular.js */ declare module angular { // NOTE: if you don't use named scope bindings, remove string type in the end // for stricter types declare type ScopeBindings...
/* MENU */ $("#menu-main .menu-item").hover(function() { $("#menu-main > .menu-item > a").addClass('sfocato'); $(this).find("a").removeClass('sfocato'); $("menu-main").css("z-index", "50"); /* visualizzazione submenu */ $(".is-active > .is-dropdown-submenu").css("opacity", 1); //$(this).removeClass('sfoc...
var React = require('react'); var ReactDOM = require('react-dom'); var MyFeedList = require('./MyFeedList') var MyProfileBox = require('./MyProfileBox') var MyGroupsBox = require('./MyGroupsBox') module.exports = (props) => ( <div className="container"> <div className="row"> <div className="aside"> ...
/** * cheap.js - C-like memory layout for javascript * version 0.1.1 * Copyright 2014 Robert Nix * MIT License */ (function() { var C, addressMax, addressMin, block, makeAccessors, makeStructMember, pointerShift, pointerSize, ptr, __slice = [].slice; C = {}; makeStructMember = function(typeName, pointe...
var UserPage = function UserPage() { var page = this; page.users = element.all(by.tagName('user-list-item')); page.get = get; page.selectRandomUser = selectRandomUser; page.mainContent = { startupText: element(by.id('content')).getText(), userLoaded: element(by.css('md-avatar face...
/* eslint key-spacing:0 spaced-comment:0 */ const path = require('path') const debug = require('debug')('app:config:project') const argv = require('yargs').argv const ip = require('ip') debug('Creating default configuration.') // ======================================================== // Default Configuration // ====...
var fs = require('fs'); var execSync = require('child_process').execSync; var deployDir = __dirname + '/deploy'; // Helper to get rid of directories for us deleteFolderRecursive = function(path) { var files = []; if (fs.existsSync(path)) { files = fs.readdirSync(path); files.forEach(function(file,index){ ...
//models/Points var mongoose = require('mongoose'); var Schema = mongoose.Schema; var PointsSchema = new Schema({ lineupID: String, leagueID: String, score: Number, referenceID: String, referenceType: String, referenceName: String, referenceUser: String, confirmationuserID:...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define("require exports ../../core/tsSupport/assignHelper ../../Color ../../request ../../core/ItemCache ../../core/promiseUtils ../../core/screenUtils".split(" ")...
'use babel'; var _ = require('underscore'); var fs = require('fs'); var path = require('path'); var BufferedProcess = require("atom").BufferedProcess; var hiddenEditor; module.exports = { getFileEditor: function(path){ var targetEditor = _.find(atom.workspace.getTextEditors(), (editor) => { return editor.g...
var loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader); loader.loadSubScript("chrome://socialsidebar/content/socket.js"); function SslImapClient() { this.clearState(); } /** * @interface */ function ImapCommandHandler() {} /** * @param {...
$(window).load(function() { game.init(); }); var game = { // Start preloading assets init: function(){ loader.init(); mouse.init(); $('.gamelayer').hide(); $('#gamestartscreen').show(); game.backgroundCanvas = document.getElementById('gamebackgroundcanvas'); game.backgroundContext = game.background...
var url = require('url'); var util = require('util'); var path = require('path'); var webdriver = require('selenium-webdriver'); var clientSideScripts = require('./clientsidescripts.js'); var ProtractorBy = require('./locators.js').ProtractorBy; var DEFER_LABEL = 'NG_DEFER_BOOTSTRAP!'; var WEB_ELEMENT_FUNCTIONS = [ ...
'use strict'; angular.module('security.login.toolbar', []) // The loginToolbar directive is a reusable widget that can show login or logout buttons // and information the current authenticated user .directive('loginToolbar', ['security', '$state', function (security, $state) { var directive = { templateUrl: 'sc...
/*! * AngularJS Material Design * https://github.com/angular/material * @license MIT * v1.1.7 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.input */ mdInputContainerDirective['$inject'] = ["$mdTheming", "$parse"]; inputTextareaDirective['$inject'] = [...
//! moment.js locale configuration //! locale : French [fr] //! author : John Fischer : https://github.com/jfroffice ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' ...
import React, {PureComponent} from 'react'; import PropTypes from 'prop-types'; import autobind from 'autobind-decorator'; import Button from './button'; const STATE_DEFAULT = 'default'; const STATE_ASK = 'ask'; const STATE_DONE = 'done'; @autobind class PromptButton extends PureComponent { constructor (props) { ...
import Ember from 'ember'; const { RSVP } = Ember; let _useNativeImpl = (window && typeof window.FontFace !== 'undefined'); let _loadedFonts = {}; let _failedFonts = {}; const kFontLoadTimeout = 3000; export default class FontFace { constructor(family, url, attributes = {}) { attributes.style = attributes.styl...
define([ 'streamhub-sdk/auth', 'event-emitter'], function (Auth, EventEmitter) { 'use strict'; describe('streamhub-sdk/auth', function () { afterEach(function () { Auth.setToken(); }); it('is an object', function () { expect(Auth).toEqual(jasmine.any(Obje...
// http://requirejs.org/docs/api.html#packages // Packages are not quite as ez as they appear, review the above require.config( { waitSeconds: 15, packages: [ { name: 'editPackage', location: '../../editor/modules', // default 'packagename' main: 'service-edit' // default 'main' } ] } ); ...
var app = angular.module('uwCourseAlerter', [], function($httpProvider) { // Use x-www-form-urlencoded Content-Type // Credits to http://stackoverflow.com/questions/19254029/angularjs-http-post-does-not-send-data $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-...
/** * @author Mat Groves http://matgroves.com/ @Doormat23 */ /** * A set of functions used to handle masking. * * @class PIXI.CanvasMaskManager * @constructor */ PIXI.CanvasMaskManager = function () { }; PIXI.CanvasMaskManager.prototype.constructor = PIXI.CanvasMaskManager; /** * This method...
/* global describe, it, expect, LinkedList*/ describe('Linked list', function () { 'use strict'; /** * Helper functions to ease in setting up test cases * * */ function insertFirst(list, element) { list.insertFirst(element); } function insertLast(list, element) { list.insertLast(element); } functi...
version https://git-lfs.github.com/spec/v1 oid sha256:9c0056aa2edf0d4c0f91a634f4bf5f98cf872ad17910f57fb7d25a667c6e5cfd size 32988
const async = require('async') const { BN, privateToAddress, isValidPrivate, stripHexPrefix, toChecksumAddress } = require('ethereumjs-util') const crypto = require('crypto') const { EventEmitter } = require('events') const TxRunner = require('./execution/txRunner') const txHelper = require('./execution/txHelper') con...
// the following is for the generic search on the top right corner of the screen sr.fn.search_generic.setup = function() { $('#generic_search_input').keyup(function(e) { if (e.keyCode == 13) { sr.fn.search_generic.go('#generic_search_input'); } }); $('#generic_search_wide_input').keyup(function(e) ...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { UploadComponent } from './upload.component'; import { DropZoneDirective } from './dropzone.directive'; import { FileListComponent } from './file-list.component'; import { File...
var util = require("util"), Stream = require("stream").Stream; function MiddleStream(from, to) { var self = this; Stream.call(this); this.writable = true; this.readable = true; this.__from = from; this.__to = to; this.__piped = true; ['drain', 'error', 'close', 'pipe'].forEach(f...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import 'babel-polyfill'; import ReactDOM from 'react-dom';...
import React from 'react'; import Section from 'component/Section'; import './style.css'; const rangeStyle = { textAlign: 'right', }; const SkillPanel = ({data: {name}}) => ( <h3 style={rangeStyle}> {name} </h3> ); const recordStyle = { flex: 1, margin: 0, paddingTop: 3, paddingRight: 30, padding...
{ appDir: '../js', baseUrl: './', paths: { 'angular': 'libs/angular-1.3.0', 'uirouter': 'libs/angular-ui-router', 'jquery': 'libs/jquery/dist/jquery', 'bootstrapjs': '../bootstrap/js/bootstrap', 'marked': 'libs/marked', 'fileupload': 'libs/angular-file-upload'...
/*********************/ /** SYMBOL POLYFILL **/ /*********************/ var symbolDetection; try { symbolDetection = Symbol('foo'); } catch (ignored) {} // eslint-disable-line no-empty if (!symbolDetection) { Symbol = function (name) { return '' + name + Math.floor(Math.random() * 99999); }; }
import { assign } from './utils' const camelize = str => { return str.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (_, c) => c.toUpperCase()) } export default (name, width, height, path, keywords) => { const attributes = opts => { const options = assign({ scale: 1, label: null, class: null ...
import { moduleFor, test } from 'ember-qunit'; moduleFor('route:my-communities/manage/embed-registration', 'Unit | Route | my communities/manage/embed registration', { // Specify the other units that are required for this test. // needs: ['controller:foo'] needs: [ 'service:router-scroll', 'service:sched...
Template[getTemplate('postMeta')].helpers({ pointsUnitDisplayText: function(){ return this.upvotes == 1 ? i18n.t('point') : i18n.t('points'); }, can_edit: function(){ return canEdit(Meteor.user(), this); }, authorName: function(){ return getAuthorName(this); }, ago: function(){ // if post ...