code
stringlengths
2
1.05M
/* eslint no-shadow: 0 */ const test = require("tap").test; const ss = require("../"); function rnd(n) { return parseFloat(n.toFixed(4)); } // expected cumulative probabilities taken from Appendix 1, Table I of William W. Hines & Douglas C. // Montgomery, "Probability and Statistics in Engineering and Management...
// @author jonatkins // @name Debug: Highlighers // @category Debug // @version 0.1.0 // @description Various debug and/or temporary highlighters. Will change over time as needed. // use own namespace for plugin window.plugin.portalHighlighterDebug = function() {}; //window.plugin.p...
Controller.$inject = ['$scope']; export default function Controller($scope) { $scope.room = 'dining'; $scope.haveIngredients = false; $scope.drankWine = false; $scope.risottoAssigned = false; $scope.risottoMade = false; $scope.risottoPresented = false; $scope.office = function() { $scope.room = 'office';...
var ChallengeActions = require('../actions/ChallengeAction') module.exports = { getChallenges: function () { var data = JSON.parse(localStorage.getItem('challenges')); ChallengeActions.receiveChallenges(data); } }
var Blessed = require('blessed'); class TTY_View_Form_Input extends TTY_View { /** * @param {object} properties * @returns {object} */ createElementFromProperties(properties) { return Blessed.textbox(properties); } /** * @returns {object} */ getElementProperties() { return ObjectHelper.extend...
angular.module('myApp').controller('ContactsController', function(Contact, $scope) { $scope.contacts = []; $scope.filter = ''; $scope.message = {text : ''}; $scope.init = function() { allContacts(); }; function allContacts() { Contact.query(...
#!/usr/bin/env node var Emitter = require('./index'); var emitter = new Emitter({ uri: 'udp://localhost:4677', app: 'example-1' }); emitter.metric({ name: 'example.start', pid: process.pid }); function heartbeat() { console.log('heartbeat'); emitter.metric({ name: 'heartbeat', ttl: 16000 }); } function resourc...
const errorTransport = require('./errorTransport') const interactsWithMail = require('./interactsWithMail') const stubTransport = require('./stubTransport') module.exports = { errorTransport, interactsWithMail, stubTransport }
"use strict"; var promisify = require("deferred").promisify , fs = require("fs") , path = require("path") , dirname = path.dirname , resolve = path.resolve , lstat = promisify(fs.lstat) , rmdir = promisify(fs.rmdir) , rootPath = resolve(__dirname, "./__playground/mkdir") , regu...
import { connect } from 'react-redux'; import get from 'lodash.get'; import isEmpty from 'lodash.isempty'; import { ViewSelectedProgram } from '../../components/Programs'; import { toggleEditProgramModal, deactivateProgram, openDeactivateProgramModal, openDeleteProgramModal, deleteProgram, } from '../../acti...
import Model from 'ampersand-model' export default Model.extend({ props: { id: 'number', name: 'string', full_name: 'string' }, derived: { app_url: { deps: ['full_name'], fn () { return 'repo/' + this.full_name } } } })
var fnames = ['Elliot', 'George', 'Harvey', 'John', 'Michael'], lnames = ['Almond', 'Bixby', 'Crawford', 'Grace', 'Maxwell'], departments = ['Customer Service', 'Engineering', 'Finance', 'Manufacturing', 'Marketing'], oses = ['Apple', 'Windows']; var allOptions = []; for (var a = 0; a < fnames.length; a++)...
module.exports = function matchdown (db, type) { // Skip layers that we handle ourselves if (type === 'levelup') return false if (type === 'encoding-down') return false if (type === 'deferred-leveldown') return false return true }
import Entity from './Entity'; const geometry = new THREE.BoxGeometry(200, 100, 200, 1, 1, 1); class Tile extends Entity { constructor(newMaterial) { if(newMaterial) { super(geometry, newMaterial); } else { super(geometry, new THREE.MeshBasicMaterial({ color: 0xEEEEEE })); } this.mesh...
export default { AU: 'Австралія', AT: 'Австрія', AZ: 'Азербайджан', AX: 'Аландські', AL: 'Албанія', DZ: 'Алжир', AS: 'Американське', VI: 'Американські Віргінські', AI: 'Ангілья', AO: 'Ангола', AD: 'Андорра', AQ: 'Антарктида', AG: 'Антигуа і Барбуда', AR: 'Аргентина', AW: 'Аруба', AF: 'Афганістан', BS: ...
import TumblrAppDispacher from '../dispacher/tumblr-app-dispacher'; import {ActionTypes} from '../constants/tumblr-constants.js'; import Emitter from 'component-emitter'; import is from 'is-js'; const SINGLETON_PROP = Symbol(); const SINGLETON_ENFORCER = Symbol(); var CHANGE_EVENT = 'change'; var _blogData = {}; ...
import React, { PropTypes, Component } from 'react'; import {Table, Checkbox } from 'antd'; import R from 'ramda'; const CheckboxGroup = Checkbox.Group; Array.prototype.remove=function(dx) {   if(isNaN(dx)||dx>this.length){return false;}   for(var i=0,n=0;i<this.length;i++)   {     if(this[i]!=this[dx])     {       th...
if (typeof Asteroids === "undefined") { window.Asteroids = {}; } Asteroids.Util = {negswitch: true} Asteroids.Util.inherits = function (baseClass, subClass) { function Surrogate() {}; Surrogate.prototype = baseClass.prototype; subClass.prototype = new Surrogate(); }; Asteroids.Util.randomVec = function(lengt...
const multer = require('multer'); const upload = multer(); exports.form = upload.none();
// 验证身份证号方法 // 支持15位和18位身份证号,支持地址编码、出生日期、校验位验证。 // 根据〖中华人民共和国国家标准 GB 11643-1999〗中有关公民身份号码的规定, // 公民身份号码是特征组合码,由十七位数字本体码和一位数字校验码组成。 // 排列顺序从左至右依次为:六位数字地址码,八位数字出生日期码,三位数字顺序码和一位数字校验码。 // 地址码表示编码对象常住户口所在县(市、旗、区)的行政区划代码。 // 第1-2位为省级行政区划代码,第3-4为为地级行政区划代码,第5-6位为县级行政区划代码 // 出生日期码表示编码对象出生的年、月、日,其中年份用四位数字表示,年、月、日之间不用分隔符。 // 顺序码...
angular.module('g5App.acronym', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/acronym', { templateUrl: 'view-acronym/acronym.html', controller: 'AcronymCtrl as acrCtrl' }) }]) .controller('AcronymCtrl', ['$http', function($http) { var self = this;...
var request = require('supertest'); var testinghost = ""; if ( 'development' == process.env.NODE_ENV ) { testinghost = 'http://localhost:3000'; } else { testinghost = 'http://bolero.pliik.com'; } var api = request(testinghost,{ secureOptions: "constants.SSL_OP_NO_TLSv1_2" }); var assert = require("assert")...
/*jshint -W030 */ import {element, template, on, dispatchCustomEvent, dispatchClonedMouseEvent} from '../src/ceb.js'; function listen(el, type, limit, done) { let counter = 0; let listener = () => { counter++; if (counter === limit) { done(); el.removeEventListener(type,...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's // vendor/assets/javascripts directory can be referenced here using a relative path. // // It's not advisa...
// @flow import React from 'react' import { Platform, StatusBar } from 'react-native' import { TabNavigator } from 'react-navigation' import TodoListPage from 'src/domain/todo/container/TodoListPage' import TodoDonePage from 'src/domain/todo/container/TodoDonePage' const App = TabNavigator({ List: { screen: Tod...
'use strict'; require('co-mocha'); const expect = require('chai').expect; const app = require('../../../lib'); const request = require('co-supertest').agent(app.listen()); describe('articles', function() { describe('GET /articles', function() { it('should yield an array of articles', function*() { ...
require("./spec/arrayToObject"); require("./spec/assign"); require("./spec/merge"); require("./spec/identity"); require("./spec/noop"); require("./spec/value"); require("./spec/pick"); require("./spec/omit"); require("./spec/isMatch"); require("./spec/find"); require("./spec/findAll"); require("./spec/toArray");
/* global Metro */ /* eslint-disable */ (function(Metro, $) { 'use strict'; var DoubleSelectBoxDefaultConfig = { height: "auto", multiSelect: false, moveRightIcon: "<span>&rsaquo;</span>", moveRightAllIcon: "<span>&raquo;</span>", moveLeftIcon: "<span>&lsaquo;</span>", ...
"use strict"; module.exports = (app)=>{ console.log("Webhook running"); app.post('/webhook',(req,res)=>{ console.log("Activate webhook"); console.log(req.body); res.status(200).send(); }) }
// Karma configuration file, see link for more information // https://karma-runner.github.io/0.13/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine'], plugins: [ require('karma-jasmine'), require('karma-chrome-laun...
!function(){"use strict";angular.module("ua.security").provider("stateManager",[function(){function a(a,e,f){var g=function(){return a.isAuthenticated()},h=function(){e.go(b)},i=function(){e.go(c)},j=function(){e.go(d)},k=function(a){return"roles"in a},l=function(a){return!k(a)||m(a)},m=function(b){return a.hasAnyRoles...
// this is the main JavaScript file which stores the commonly used function, such as showDialog(), hideDialog()... // and the page event listener. // It is also the javascript file of the home page. $.support.cors = true; //var name=document.getElementById('username').value; ons.ready(function() { ...
const writeFile = require('./write-file'); module.exports = function (opts) { const file = `.idea .idea/ .DS_Store node_modules/ .project dist dist/* src/config/*.tmp src/config/env.js npm-debug.log`; writeFile({ directory: opts.directory, fileName: '.gitignore', data: file, cod...
module.exports={ name:'Node-Server-Manager' };
Meteor.methods({ // Creates new item newItem(item, modifications, entity) { if(!Meteor.userId() && !Meteor.users.findOne({_id:this.userId}).selectedApp) { throw new Meteor.Error("not-authorized"); } else { item.entity = entity; item.id = new Meteor.Collection.ObjectID()._str; item.ap...
const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin') const IS_DEV = process.argv.indexOf('--dev') >= 0; module.exports = { context: path.resolve(__dirname, 'src'), entry: { app: './index.jsx' }, output: { filename: '[name].js', path: path.resolv...
var is = require('is_js'); module.exports = function (fieldData, rule, options, runTimeOptions) { if (is.propertyDefined(rule, "type")) { if (!(typeof fieldData === "string")) { throw new Error("Field data type '"+rule.type+"' is invalid"); } } else { throw new Error("Field ...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('lowercase', 'helper:lowercase', { integration: true }); test('It formats the input text with `lowercase` format', function(assert) { assert.expect(2); this.set('input', 'this Is some TEXT'); t...
// @flow // $FlowIssue import mix from 'polished/lib/color/mix'; // $FlowIssue import parseToRgb from 'polished/lib/color/parseToRgb'; const themeColorInterval = 0.08; // Color contrast export function colorYiq(color: string): string { const r = parseToRgb(color).red; const g = parseToRgb(color).green; const b...
var mongodb = require('./mongodb'); var dao = require('./dao'); var config = require('./config'); var errors = require('./errors'); var fs = require('./fs'); var autoloader = require('./autoloader'); module.exports = { mongodb: mongodb, dao: dao, config: config, errors: errors, fs: fs, autoloader: autoloader };
var tituloTermos1 = " Quais são as políticas de privacidade adotadas pelo Xegô!"; function carregarTermos(){ document.getElementById('tituloTermos').innerHTML =(tituloTermos1); } ── javascripts ├── libs │ ├── jquery.min.js │ └── underscore.min.js │ └── highcharts.min.js ├── plugins ...
const isExtendable = require('./is-extendable'); module.exports = (target, ...args) => { if (!isExtendable(target)) target = {}; args.forEach((source) => { Object.keys(source).forEach((key) => { target[key] = source[key]; }); }); return target; };
// Get the categories for browsing import Categories from 'forum/collections/categories'; import { GET_CATEGORIES } from '../constants'; export function getInitialCategories() { return dispatch => { Meteor.subscribe('categories', (err, res) => { if (typeof err === 'undefined') { return dispatch(...
({ appDir: "../www-src/", baseUrl: "src", dir: "../www", mainConfigFile: '../www-src/src/main.js', optimizeCss: "standard", removeCombined: true, preserveLicenseComments: false, logLevel: 4, modules: [ { name: "main" }, ] })
/* eslint-disable */ import { openDb, dbKeyValue } from './db'; import moment from 'moment'; const Rail = require('national-rail-darwin-promises'); /* eslint-enable */ export default class Services { static #getRail() { // eslint-disable-line return new Promise((resolve) => { openDb() .then(async ...
'use strict' const Model = require('trails/model') /** * @module User * @description TODO document Model */ module.exports = class User extends Model { static config () { } static schema () { } }
$(document).ready(function(){ $('#story-select').change(function(){ var val = $(this).val(); if(val!=0){ $.get('stories/storySelecter',{storyId: val}, function(data){ if(data=='session')window.location=''; else window.console.log(data); }) } }); });
//---------------------- // HELPER METHODS //---------------------- var Utils = { //Returns one of 11 random images for the build success or fail image getRandomClass : function() { return 'c' + Math.floor(Math.random() * 12); }, getRandomClass2 : function() { return 'c' + Math.floor(M...
//making random colors function getRandomColor() { var letters = '0123456789ABCDEF'; var color = '#'; for (var i = 0; i < 6; i++ ) { color += letters[Math.floor(Math.random() * 16)]; } return color; } // function for rand color function mouseEnterLeaveActions(choosenObject, returnColor = 'w...
var should = require("should"); var PrefixSource = require("../lib/PrefixSource"); var RawSource = require("../lib/RawSource"); var OriginalSource = require("../lib/OriginalSource"); describe("PrefixSource", function() { it("should prefix a source", function() { var source = new PrefixSource( "\t", n...
import React, {Component, PropTypes} from 'react'; import Bar from './Bar'; export default class extends Component { static propTypes = { data: PropTypes.array.isRequired, width: PropTypes.number.isRequired, height: PropTypes.number.isRequired, xScale: PropTypes.func.isRequired, yScale: PropTypes.func.isRe...
bespoke.from('article', { keys: true, touch: true, tishadow: true });
var other = require('./amd'); console.log(other); //require('./test.css'); module.exports = function () { console.log('hello from cjs!'); describe('foo', function () { it('should pass', function() { }); }) };
memberSearchIndex = [{"p":"main","c":"CreditCardNumberValidationRevised","l":"CreditCardNumberValidationRevised()"},{"p":"main","c":"CreditCardNumberValidationRevised","l":"getDigit(int)"},{"p":"main","c":"CreditCardNumberValidationRevised","l":"isValid(String)","url":"isValid-java.lang.String-"},{"p":"main","c":"Credi...
const _ = require('lodash') const UUID_MATCHER = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i const UUID_DISPLAY_SIZE = 4 const ARG_DELIMITER = '.' const isUuid = uuid => UUID_MATCHER.test(uuid) const toString = value => _.isString(value) ? isUuid(value) ?...
// 01. Data Class class Request { constructor(method, uri, version, message, response, fulfilled = false) { this.method = method; this.uri = uri; this.version = version; this.message = message this.response = response; this.fulfilled = fulfilled; } } // 02. Tickets //console.log(ticketManager(['Philadelp...
/** * @author Mohammad Milad Naseri (m.m.naseri@gmail.com) * @since 1.0 (8/31/15) */ (function () { var factory = function (Lispy) { var Utils = Lispy.utils(); var lib = { managers: { require: function () { return Utils.copy(arguments); ...
exports.get = { code: function(input) { // function isPrime(num) { // var result = true; // if (num !== 2) { // if (num % 2 == 0) { // result = false; // } else { // for (x = 3; x <= Math.sqrt(num); x+=2) { // if (num % x == 0) // result = ...
#!/usr/bin/env node /*! * Script to update version number references in the project. * Copyright 2017-2020 The Bootstrap Authors * Copyright 2017-2020 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ 'use strict' const fs = require('fs') const path = require('path') ...
$(document).ready(function() { var tempUnit = 'C'; var latestData = {}; var muricaClip = $('#murica-clip').get(0); var tempUnits = { 'C': { formatter: function (cTemp) { return (Math.round(cTemp * 10) / 10) + '\xB0C'; } }, 'F': { formatter: function (cTemp) { return...
var URLList = Backbone.View.extend({ el: '.page', render: function(){ var urllist = new URLColl(); var that = this; //extending scope for fetch function. urllist.fetch({ success:function(urls){ var template = $("#url-list-template").html() ; ...
import { shallowMount as mount } from '@vue/test-utils'; import Modal from '../../src/js/components/modal.vue'; import flushPromises from 'flush-promises'; describe('#Modal', () => { const wrapper = mount(Modal, { propsData: { name: 'test-modal', title: 'TEST', }, slots: { default: [ ...
// Regular expression that matches all symbols in the Miscellaneous Symbols block as per Unicode v5.0.0: /[\u2600-\u26FF]/;
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors.server.controller'), Article = mongoose.model('Article'), _ = require('lodash'); /** * Create a Article */ exports.create = function(req, res) { var article = new Article(req.body); article.user =...
const templatePath = 'interface_platform/templates/'; const staticRoot = 'static/'; const staticSource = staticRoot + 'src/'; const staticBuild = staticRoot + '_build/'; const staticDist = staticRoot + 'dist/'; const npmRoot = 'node_modules/'; exports = module.exports = { staticUrlRoot: '/site_media/static', ...
'use strict'; jest.unmock('../components/stats/Stat.jsx'); import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import Stat from '../components/stats/Stat.jsx'; import NumberFormatter from '../utils/NumberFormatter.js'; describe('Stat component', () => { l...
import Ember from 'ember'; export default Ember.Object.extend({ animate($element, effect, duration) { $element.fadeIn(duration).css('opacity', 1); }, finish() {} });
/** * Quantum Probability * * Main Execution script */ (function($) { var global = this, ui = null, main = {}; main.init = function() { var query = global.location.href.replace(/[^?]+\?([^#]+).*/, '$1'); var params = {}; if (query) { params = $.unserialize(query); } ...
/** * Hello World controller * @ngInject */ function HelloWorldController($scope) { $scope.title = 'hello world'; } module.exports = HelloWorldController;
(function() { function NavigationData(name, deps) { console.log('Navigation Data plugin loaded'); var navdata = { roll: 0, pitch: 0, yaw: 0, thrust: 0, depth: 0, heading: 0 }; // Arduino deps.rov.on('status', function (status) { if ('hdgd' in status) { ...
import { Server } from 'hapi'; import routes from './routes'; import config from './config'; import Bcrypt from 'bcrypt'; const server = new Server(); const validate = (request, username, password, callback) => { if (username !== config.get('app.auth.user')) { return callback(null, false); } Bcrypt.compar...
import React, { PropTypes } from 'react'; import { TransitionMotion, spring } from 'react-motion'; /** * One example of using react-motion (0.3.0) within react-router (v1.0.0-rc3). * * Usage is simple, and really only requires two things–both of which are * injected into your app via react-router–pathname and chil...
export const ic_desktop_access_disabled_twotone = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M1.41 1.69L0 3.1l1 .99V16c0 1.1.89 2 1.99 2H10v2H8v2h8v-2h-2v-2h.9l6 6 1.41-1.41-20.9-20.9zM2.99 16V6.09L12.9 16H2.99zM4.55 2l...
var Vue = require('../../../src/vue') var _ = Vue.util describe('Async components', function () { var el beforeEach(function () { el = document.createElement('div') document.body.appendChild(el) spyOn(_, 'warn') }) afterEach(function () { document.body.removeChild(el) }) it('normal', fun...
var searchData= [ ['generation_5finvalid',['GENERATION_INVALID',['../classsnemo_1_1datamodel_1_1event__header.html#ac23f06eaeef5a98763e5ecd5cb32eb30adc0c5e1b08809d670b7642abbcef75c4',1,'snemo::datamodel::event_header']]], ['generation_5freal',['GENERATION_REAL',['../classsnemo_1_1datamodel_1_1event__header.html#ac2...
'use strict' var api = require('../api/volume') var def = require('../definition/volume/liquid-gallon') var unit = 'liquid-gallon' api.augment(unit, def) module.exports = api.get(unit)
'use strict'; var _welcomePoJs = require('./welcome.po.js'); var _skeletonPoJs = require('./skeleton.po.js'); describe('aurelia skeleton app', function () { var poWelcome = undefined; var poSkeleton = undefined; beforeEach(function () { poSkeleton = new _skeletonPoJs.PageObjectSkeleton(); poWelcome = ...
/** * Module dependencies. */ var util = require('util') , OAuth2Strategy = require('passport-oauth2') , Profile = require('./profile') , InternalOAuthError = require('passport-oauth2').InternalOAuthError; /** * `Strategy` constructor. * * The GitHub authentication strategy authenticates requests by delega...
import test from 'ava' import {CSG} from '../csg' import {assertSameGeometry} from './helpers/asserts' import {toCompactBinary} from '../src/core/CSGToOther' test('CSG can be packed into and retrieved from a compact binary', t => { // test using simple default shapes. Compact binary do not provide however // perfe...
import React from 'react' import { Link } from 'react-router' import moment from 'moment' const ServiceItem = (props) => { return ( <tr> <td><i className="fa fa-cubes fa-fw" aria-hidden="true"></i> <Link to={`/services/${props.service.ID}`}>&nbsp; { props.service.Spec.Name.split('-')[2] }</Link>...
--- layout: null --- 'use strict'; const version = 'v1'; const staticCacheName = "version-{{site.time | date: '%Y%m%d%H%M%S'}}"; addEventListener('install', installEvent => { console.log('The service worker is installing...'); skipWaiting(); installEvent.waitUntil( caches.open(staticCacheName) ...
/** * The HTTP Method must be "GET" or "HEAD" * * @param {solfege.bundle.server.Request} request The request * @param {solfege.bundle.server.Response} response The response * @return {Boolean} true */ export default function*(request, response) { if (re...
const path = require('path'); const fs = require('fs-extra'); const dircompare = require('dir-compare'); const directoryTree = require('directory-tree'); const fileType = require('file-type'); const isBinaryPath = require('is-binary-path'); const readChunk = require('read-chunk'); const _ = require('lodash'); /** * F...
var OANDA = OANDA || {}; OANDA.baseURL = OANDA.baseURL || "https://api-fxpractice.oanda.com"; OANDA.auth = OANDA.auth || {}; OANDA.auth.enabled = OANDA.auth.enabled || false; OANDA.auth.token = OANDA.auth.token || ""; var setAuthHeader = function(xhr) { xhr.setRequestHeader("Authorization", "Bearer " + OANDA.au...
'use strict'; app.config([ '$stateProvider', function ($stateProvider) { $stateProvider.state('login', { url: '/login/', templateUrl: 'pages/login/login.html', controller: 'loginController' }); }]);
jasmine.TrivialReporter = function(doc) { this.document = doc || document; this.suiteDivs = {}; this.logRunningSpecs = false; }; jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) { var el = document.createElement(type); for (var i = 2; i < arguments.length; i++) { var ...
import React from 'react' const Place = ({place, onPlaceClick}) => { const handleItemClick = (e) => { onPlaceClick({ text: e.target.textContent, id: e.target.dataset.id }) e.stopPropagation(); } let className = 'place' let hasOpenChild = false let hasChild = false let isBeingSe...
/* * * Account * */ import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import makeSelectAccount from './selectors'; import messages from './messages'; import { getView, getEarningsFilter } from './selectors'; import { selectHotelIn...
/* This file is part of Ext JS 4 Copyright (c) 2011 Sencha Inc Contact: http://www.sencha.com/contact Commercial Usage Licensees holding valid commercial licenses may use this file in accordance with the Commercial Software License Agreement provided with the Software or, alternatively, in accordance with the term...
define(["require","exports"],function(E,_){"use strict";var A=function(){function E(){}return E.PAGE_TO_FIRST_PLACEHOLDER="${settings.firstPage}",E.PAGE_TO_LAST_PLACEHOLDER="${settings.lastPage}",E.PAGE_RANGE_PLACEHOLDER="${pageRange.displayPage}",E.DEFAULT_PAGE_TO_BEGINNING_HTML="|<",E.DEFAULT_PAGE_TO_END_HTML=">|",E....
require('./sub/c'); // doesn't export anything exports = { dumb: 72 }; // convoluted export (function() { return module.exports; }()).sneaky = 56;
const expect = require('chai').expect; const config = require('../../../../config'); // NOTE: we set selectorTimeout to a large value in some tests to wait for // an iframe to load on the farm (it is fast locally but can take some time on the farm) const IFRAME_SELECTOR_TIMEOUT = 5000; const TEST_WITH_IF...
'use strict'; /** * Module dependencies. */ var express = require('express'), morgan = require('morgan'), bodyParser = require('body-parser'), session = require('express-session'), compress = require('compression'), methodOverride = require('method-override'), cookieParser = require('cookie-parser'), helmet =...
var transform = require(process.argv[2]); var fs = require('fs') var start = Date.now(); var str = ''; fs.createReadStream('test/react/react-with-addons-with-node_env.js') .pipe(transform()) .on('data', function(buf) { str += str; }) .on('end', function() { console.log('%sms', Date.now() - start); });
var utils = require('./utils') var webpack = require('webpack') var config = require('../config') var merge = require('webpack-merge') var baseWebpackConfig = require('./webpack.base.conf') var HtmlWebpackPlugin = require('html-webpack-plugin') var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') // ad...
var expect = require('chai').expect, FSCheck = require('../lib/index.js'), util = require('../lib/util'), FS = require('./test-utils').FS, GedcomXDate = require('gedcomx-date'); describe('util', function(){ it('utils exposes 4 functions', function(){ expect(FSCheck.utils).to.have.property('getFa...
import {expect, sinon} from 'example-app/tools/chai.js'; import shoppingList from './shopping-lists.js'; describe('eaShoppingLists component and helpers', function() { describe('component', function() { describe('controller', function() { let ctrl, stop, loading, $log, $firebaseArray, eaCurrentUser, ea...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const cp = require("child_process"); const path = require("path"); const tc = require("./template-common"); const fs = require("fs"); const async = require("neo-async"); const extraArgs = ""; const targe...
/* * name : Linkit * author: Raj Ankathi * version : 0.1.0 * licnese : MIT */ (function($){ $.fn.linkIt = function(options){ //alert(this.html()); //Default settings var settings = $.extend({ //whatever : null href : null, text : null, target : '_self' ...
const SearchController = require('../controllers/search.js'); export const routes = [{ method: 'GET', path: '/search', config: SearchController.search, }, { // Non-controller paths method: 'GET', path: '/', handler: { view: 'index', }, }, { method: 'GET', path: '/static/{param*}', handler: { ...