code
stringlengths
2
1.05M
/* eslint-env jest */ /* eslint-disable global-require, import/no-dynamic-require */ import path from 'path'; import bootstrap from '../bootstrap'; jest.mock('../utils/shell'); jest.mock('../utils/writeSpecs'); const PACKAGE_NAMES_1 = ['oao', 'oao-b', 'oao-c', 'oao-d', 'oao-priv']; const PACKAGE_NAMES_2 = ['oao', 'o...
module.exports = { SEND : 0, SIGNATURE : 1, DELEGATE : 2, VOTE : 3, USERNAME : 4, FOLLOW : 5, MESSAGE : 6, AVATAR : 7, MULTI: 8 }
/** * Created by rohit on 12/9/16. */ var express = require('express'); var Handler = require('../handler'); var model = require('../models/hero'); var router = express.Router(); var handler = new Handler(model); router.get("/", handler.getList); router.get("/:id", handler.get); router.post("/", handler.post); route...
/** * DOM utils */ (function(window, document) { 'use strict'; var module = {}; /** * Adds or removes the given class on/from a node element * @param node * @param classname * @param on */ module.toggleClass = function(node, classname, on) { if (on) { ...
/** * Overdrive effect module for the Web Audio API. * * @param {AudioContext} context * @param {object} opts * @param {number} opts.preBand * @param {number} opts.color * @param {number} opts.drive * @param {number} opts.postCut */ function Overdrive (context, opts) { this.input = context.createGain(); ...
import dateHelper from 'appkit/utils/date'; App.Goal = DS.Model.extend({ title: DS.attr(), body: DS.attr(), daily: DS.attr(), startDate: DS.attr(), endDate: DS.attr(), isCompleted: function() { return this.get('endDate') <= dateHelper.todayDate(); }.property('endDate'), investment: DS.attr(), ...
var searchData= [ ['iddest',['idDest',['../a00008.html#a82d0b10f7c7c3190a863bd908d44ef18',1,'Graph::Edge']]], ['indegree',['indegree',['../a00023.html#ab6ac19101f852f053664f91c23665419',1,'Graph::Vertex']]], ['info',['info',['../a00023.html#a409b7b4ee715251a5b2cd890c426475e',1,'Graph::Vertex']]], ['isigarape',[...
var wordlists = wordlists || {}; // 997 very common words // based on David Norman's top 1,000 words // https://gist.github.com/deekayen/4148741 wordlists.deekayen = [ 'the', 'of', 'to', 'and', 'a', 'in', 'is', 'it', 'you', 'that', 'he', 'was', 'for', 'on', ...
define(["helpers/log", "settings"], function( log, settings) { 'use strict'; return Mouse; function Mouse() { var _guid = guid(); log.low('[MOUSE:' + _guid + ']', 'getting a new mouse object'); var _elem = null; var _callbacks = { mouseup: [], mousedown: [], mousemove: [], mouseover: [], ...
// flow-typed signature: 1c287c7de36e0f17b360c02a0176067d // flow-typed version: <<STUB>>/lint-staged_v^4.0.3/flow_v0.52.0 /** * This is an autogenerated libdef stub for: * * 'lint-staged' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with th...
var Renderer = (function () { function Renderer(recipeCategoriesSummary) { this.recipeCategoriesSummary = recipeCategoriesSummary; if (recipeCategoriesSummary) { this.renderCategories(recipeCategoriesSummary); } else { this.renderError(); } } R...
import express from 'express'; import path from 'path'; import assets from './assets'; // eslint-disable-line import/no-unresolved import template from './index.pug'; import { port } from './config'; const app = express(); app.use(express.static(path.join(__dirname, 'public'))); app.get('*', (req, res) => { res.se...
var ParticleKinematics = "return origin + startVelocity*t + Acceleration*t*t*0.5;"; var EmitterRotation = "return EmitterRotationVelocity*t+EmitterRotationAcceleration*t*t/2;"; var SomeEmitterTrajectoryFunction = "return vec3(sin(t*5.0)*3.1-1.5, -1.0+sin(t*4.0)*2.6, sin(t*1.6+0.23)*2.5-1.0);"; var SomeEmitterRotationFu...
/** * THIS FILE IS AUTO-GENERATED * DON'T MAKE CHANGES HERE */ import { BigNumberDependencies } from './dependenciesBigNumberClass.generated' import { createE } from '../../factoriesAny.js' export const eDependencies = { BigNumberDependencies, createE }
var convert = require('convert-source-map') var smap = require('source-map') var jsdom = require('jsdom') var cp = require('child_process') var util = require('util') module.exports = run process.once('message', function(data) { run(data.script, data.html, function(data) { process.send(data) }) }) process.o...
var path = require('path'); var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { devtool: 'eval', entry: [ 'react-hot-loader/patch', 'webpack-dev-server/client?http://localhost:3000', 'webpack/hot/only-dev-server', './src/vendor', './src/i...
var should = require('should'); var root = __dirname.substring(0, __dirname.lastIndexOf('/')); var config = require(root + '/config.js'); var uuid = require('node-uuid'); var TV_ADMIN_VAULT_ID = config.TV_ADMIN_VAULT_ID; var TV_ORG_SCHEMA_ID = config.TV_ORG_SCHEMA_ID; var tvInterface = require(root + '/tvInterface.js'...
import React from 'react' import { connect } from 'react-redux' import { addToCart, pickupInStore, share, addToRegistry, addToList } from '../actions/ProductActions' import MobileProduct from './MobileProduct' let MobileProductContainer = ({ product, dispatch }) => { return ( <MobileProduct product={...
import splitPath from './util/splitPath' import curry from './util/curry' function is(path, predicate, object) { const parts = splitPath(path) let rest = object for (let i = 0; i < parts.length; i += 1) { if (typeof rest === 'undefined') return false const part = parts[i] rest = rest[part] } if...
// Game.js // Created by MonkeyShen 2012 // 游戏对象,单件 var cocos = require('cocos2d'); var geo = require('geometry'); var ChessRender = require('ChessRender').ChessRender; require('Util') require('AI') require('MainFrame') require('Board') Game = { chess_render : null, // 当前可以移动的正营 cur_camp : null, //...
'use strict'; ( function() { CKEDITOR.htmlParser.node = function() {}; CKEDITOR.htmlParser.node.prototype = { remove: function() { var children = this.parent.children, index = CKEDITOR.tools.indexOf( children, this ), previous = this.previous, next = this.next; previous && ( previous.nex...
"use strict"; let datafire = require('datafire'); let openapi = require('./openapi.json'); module.exports = datafire.Integration.fromOpenAPI(openapi, "google_cloudmonitoring");
import React, { PropTypes, Component } from 'react'; import { Link } from 'react-router'; class NotSignedIn extends Component { render() { return ( <ul className='menu'> <li><Link to='/sign-in'>Sign In</Link></li> <li><Link to='/sign-up' className='button'>Sign Up</Link></li> </ul> ...
/* LIB */ const radial = require('../../radial'); const authenticate = require('./authenticate'); /* MODULES */ const xmlConvert = require('xml-js'); /* CONSTRUCTOR */ (function () { var PaymentSettlementStatus = {}; /* PRIVATE VARIABLES */ /* PUBLIC VARIABLES */ /* PUBLIC FUNCTIONS */ PaymentSettle...
'use strict'; (function (angular) { angular .module('magentoEcommerceWidget', ['ngRoute']) .config(['$routeProvider', function ($routeProvider) { $routeProvider .when('/', { templateUrl: 'templates/home.html', controllerAs: 'WidgetH...
module.exports = { entry: "./app.js", cache: false, output: { path: __dirname, filename: "bundle.js" }, module: { loaders: [ {test: /\.ejs$/, loader: require.resolve("../") + "?htmlmin"} ] }, 'ejs-compiled-loader': { 'htmlminOptions': { removeComments: true } } }
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _react = require('react'); var _react2 = _interopRequireDefault(_react); var Week = _react2['default'].createClass({ displayName...
import loading from './loading' import formErrors from './form-errors' import currentUser from './current-user' import games from './games' import currentGame from './currentGame' module.exports = { formErrors, loading, currentUser, games, currentGame, }
import { combineReducers } from 'redux'; import { reducer as datagridReducer } from '../src'; export default combineReducers({ datagrid: datagridReducer, });
var debug = require('debug')('district') var quote = require('quotemeta') var findup = require('findup') var mkdirp = require('mkdirp') var once = require('once') var uniq = require('uniq') var path = require('path') var fs = require('fs') module.exports = district function district(namespace, linked, dir...
/** * @author mrdoob / http://mrdoob.com/ */ THREE.MaterialLoader = function ( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; this.textures = {}; }; THREE.MaterialLoader.prototype = { constructor: THREE.MaterialLoader, load: function ( url, onLoad, onProgress, ...
/** * Copyright 2013 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import expect from 'expect.js'; import responseHandler from '../../src/helper/response-handler'; describe('helpers responseHandler', function() { it('should return default error', function(done) { responseHandler(function(err, data) { expect(data).to.be(undefined); expect(err).to.eql({ error...
module.exports = function(grunt) { require('load-grunt-tasks')(grunt); grunt.initConfig({ compass: { dist: { options: { config: 'config.rb' } } }, imagemin: { dynamic: { files: [{ expand: true, cwd: 'assets/raw/', src: ['**/*.{png,jpg,gif}'], dest: 'assets/img/' ...
import request from '@/utils/request' const base_url = '/Clients/' export function getPageList(params) { return request({ url: base_url + 'GetPageList', method: 'get', params }) } export function getAccGroupList(params) { return request({ url: base_url + 'GetAccGroupList', method: 'get', ...
/*! * mathGraphs * https://github.com/gouglhupf/mathGraphs/ * Version: 0.1-alpha * * Copyright 2015 Justus Leiner * Released under the MIT license * https://github.com/gouglhupf/mathGraphs/blob/master/LICENSE.md */ var graph = function (context, settings){ "use strict"; // Default global config which can be...
let src = [ 'let src = [', '];', 'console.log(src[0]);', 'for (var i = 0; i < src.length - 1; i++) console.log(` \'${src[i]}\',`);', 'console.log(` \'${src[src.length - 1]}\'`);', 'for (var i = 1; i < src.length; i++) console.log(src[i]);' ]; console.log(src[0]); for (var i = 0; i < src.le...
QUnit.module( "Backbone.Relation options", { setup: require('./setup/data') } ); QUnit.test( "`includeInJSON` (Person to JSON)", function() { var json = person1.toJSON(); equal( json.user_id, 'user-1', "The value of 'user_id' is the user's id (not an object, since 'includeInJSON' is set to the idAttribute)" ); ...
/// Copyright by Erik Weitnauer, 2012. /** SparseMatrix is a subclass of array. I use the Prototype chain injection method described in http://perfectionkills.com/how-ecmascript-5-still-does-not-allow-to-subclass-an-array/ for it. The matrix array contains the row vectors as Vectors. This is slower than the SparseMat...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.16/esri/copyright.txt for details. //>>built define({measures:{length:"Panjang",area:"Area",volume:"Volume",angle:"Sudut"},units:{millimeters:{singular:"milimeter",plural:"milimeter",abbr:"mm"},centimeters:{s...
{"country":"England","area_name":null,"longitude":-0.146927,"street":null,"town":"","average_values_graph_url":"http://www.zoopla.co.uk/dynimgs/graph/average_prices/NW1?width=400&height=212","latitude":51.5330895,"value_ranges_graph_url":"http://www.zoopla.co.uk/dynimgs/graph/price_bands/NW1?width=400&height=212","valu...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
/** * Gestion de l'affichage du menu en mobile */ class Nav { constructor(container) { this.options = { itemsContainerOpenClass: "bab-MainNav--open", toggleIconOpenClass: "fa-bars", toggleIconCloseClass: "fa-times" }; this.container = container; this.toggleButton = this.container....
'use strict'; var glob = require('glob'); var path = require('path'); var webpack = require('webpack'); var config = { devtool: 'source-map', entry: { 'vendor': [ 'angular', 'angular-animate', 'angular-resource', 'angular-cookies', 'angular-t...
'use strict'; /* Controllers */ angular.module('myApp.controllers', []). controller('MyCtrl1', ['$scope', '$location', function($scope, $location) { $scope.isActive = function(viewLocation) { var active = (viewLocation === $location.path()); return activ...
'use strict'; const cryptographyController = require('./cryptography-controller'); module.exports = (fastify, options, next) => { fastify .route({ method: 'POST', url: '/encrypt', beforeHandler: fastify.auth([fastify.verifyJWTToken]), handler: (request, rep...
require("./base/ix.js"); var fs = require('fs'); var ixCfg = require('./config.js'); module.exports = function (grunt) { var hdrStr = fs.readFileSync("./base/hdr.js").toString(); fs.writeFileSync("dist/hdr.js", hdrStr.replace("DATE", IX.getTimeStrInMS())); grunt.initConfig(IX.inherit({ pkg : grunt.file.readJSON(...
import { ABC, LETTER_WIDTH, LETTER_HEIGHT } from './serift'; const STRING_LENGTH = 8; export default function convertText2Smiles(text = '', bgSymbol = '🤘', textSymbol = '💀', strLength = STRING_LENGTH) { if (!text.length) return text; function getLetter(symb, lineIndex) { let letter; const POSITION = li...
"use strict"; require('../../qunit_extensions'); var deleteSelection = require('../../../../model/transform/deleteSelection'); var containerSample = require('../../../fixtures/container_anno_sample'); var sample1 = require('../../../fixtures/sample1'); function addStructuredNode(doc) { var structuredNode = doc.crea...
//*------------------------------------*\ // $GULPFILE //*------------------------------------*/ // All tasks are configured in ./gulp/tasks const gulp = require('gulp'); const browserSync = require('browser-sync').create(); require('dotenv').config(); global.browserSync = browserSync; require('./gulp/tasks/brow...
var assert = require('assert'); var Metalsmith = require('metalsmith'); var collectionScoping = require('..'); var collections = require('metalsmith-collections'); describe('metalsmith-collection-scoping', function() { it('should remove private collections with no scope option', function(done) { var metalsm...
'use strict' module.exports = function (str, loose) { return ( (loose) ? str : str.trim() ).split('\n').map( (line) => line.trim() ).join('\n') }
(function() { var https = require('https'); var qs = require('querystring'); var _ = require('underscore'); module.exports = function(options) { var defaults = { hostname: 'gateway.smstrade.de', port: 443, method: 'GET', debug: 0 }; options = _.extend(defaults, options); var api = {}; ...
/* global Messenger */ $(document).ready(function() { $("form").submit(function(e) { e.preventDefault(); $("form button, form textarea").prop("disabled", true); $("form button").html("<i class='fa fa-cog fa-spin'></i> Processing..."); var students = $("#students").val().split...
module.exports = { up: function (queryInterface) { return queryInterface.bulkInsert('user_settings_profile', [ { user_id: 1, created_date: new Date(), modified_date: new Date() } ], { updateOnDuplicate: ['user_id', 'modified_date'] }).catch(function (err) { ...
/* eslint-env mocha */ /* global expect, testContext */ /* eslint-disable prefer-arrow-callback, no-unused-expressions */ import React from 'react' import {mount} from 'enzyme' import UserList from 'src/common/components/UserList' describe(testContext(__filename), function () { before(function () { const users...
/* * Wegas * http://wegas.albasim.ch * * Copyright (c) 2013 School of Business and Engineering Vaud, Comem * Licensed under the MIT License */ /** * @fileoverview * @author Francois-Xavier Aeberhard <fx@red-agent.com> */ YUI.add("wegas-inputex-list", function(Y) { "use strict"; var inputEx = Y.inputEx...
import TableCol from "./TableCol"; const TableColArray = TableCol.extend` text-align: right; span + span { font-size: 80%; opacity: 0.8; } `; export default TableColArray;
// Gera um token aleatório // @todo Gerar token com letras e números com relação // a data/hora para ser único export default () => { return Math.random(); }
var create = require('../diagnostics'); /** * Create a new diagnostics logger. * * @param {String} namespace The namespace it should enable. * @param {Object} options Additional options. * @returns {Function} The logger. * @public */ var diagnostics = create(function dev(namespace, options) { options = option...
'use strict'; var express = require('express'); var router = express.Router(); var authCtrl = require('../controllers/authentication'); router.post('/signin', authCtrl.signin); router.get('/signout', authCtrl.signout); module.exports = router;
////////////////////////////////////////////////////////////////////////// // // // This is a generated file. You can view the original // // source in your browser if your browser supports source maps. // // Source maps are s...
initSidebarItems({"enum":[["OrphanCheckErr",""]],"fn":[["orphan_check","Checks the coherence orphan rules. `impl_def_id` should be the def-id of a trait impl. To pass, either the trait must be local, or else two conditions must be satisfied:"],["overlapping_impls","True if there exist types that satisfy both of the two...
// All symbols in the `Cherokee` script as per Unicode v6.2.0: [ '\u13A0', '\u13A1', '\u13A2', '\u13A3', '\u13A4', '\u13A5', '\u13A6', '\u13A7', '\u13A8', '\u13A9', '\u13AA', '\u13AB', '\u13AC', '\u13AD', '\u13AE', '\u13AF', '\u13B0', '\u13B1', '\u13B2', '\u13B3', '\u13B4', '\u13B5', '\u13B6', '...
/* Gradebook from Names and Scores I worked on this challenge [by myself, with:] This challenge took me [#] hours. You will work with the following two variables. The first, students, holds the names of four students. The second, scores, holds groups of test scores. The relative positions of elements within the two v...
export default function() { console.log('Hello World!'); }
/* * Kendo UI v2014.2.1008 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial lice...
import Ember from 'ember'; /** * Controller for the login/logout view */ export default Ember.Controller.extend({ application: Ember.inject.controller(), session: Ember.inject.service(), account: Ember.computed.alias('application.model'), apikey: Ember.computed.alias('session.apikey'), loggedIn: Ember.com...
(function() { Jobber = { jobber_admin_url: "", FixPng: function() { var arVersion = navigator.appVersion.split("MSIE"); var version = parseFloat(arVersion[1]); if ((version >= 5.5) && (document.body.filters)) { for(var i=0; i<document.images.length; i++) { ...
import React, { PropTypes } from 'react' import { Field, reduxForm } from 'redux-form' import { Link } from 'react-router' import RaisedButton from 'material-ui/RaisedButton' import TextField from 'components/TextField' // import BinaryToggle from 'components/BinaryToggle' import { ACCOUNT_FORM_NAME, HOME_PATH } from '...
var BaseMethod = require('./basemethod'); var Error = require('../error'); var AccountsMethods = { base: BaseMethod.extend({ dataFunction: function(data, cb){ if (typeof(data['account_id']) != 'undefined') delete data['account_id']; cb(null, data); } }), get: BaseMet...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'iframe', 'th', { border: 'Show frame border', // MISSING noUrl: 'Please type the iframe URL', // MISSING scrolling: 'Enable scrollbars', //...
var labelType, useGradients, nativeTextSupport, animate; (function() { var ua = navigator.userAgent, iStuff = ua.match(/iPhone/i) || ua.match(/iPad/i), typeOfCanvas = typeof HTMLCanvasElement, nativeCanvasSupport = (typeOfCanvas == 'object' || typeOfCanvas == 'function'), textSupport = native...
/* globals $ Template Meteor Session StatusMap */ Template.hostIssueList.events({ 'click .flag-enabled': function () { Meteor.call('disableIssueFlag', this.projectId, this.issueId) }, 'click .flag-disabled': function () { Meteor.call('enableIssueFlag', this.projectId, this.issueId) }, 'click #flag-...
/** * Views to show a description and access to the role of the player. */ (function () { var Dom = require('dom'); var Plugin = require('plugin'); var Ui = require('ui'); var Db = require('db'); var Modal = require('modal'); var Server = require('server'); var Obs = require('obs'); var Constant...
// Generated on 2015-01-22 using generator-angular-fullstack 2.0.13 'use strict'; module.exports = function (grunt) { var localConfig; try { localConfig = require('./server/config/local.env'); } catch(e) { localConfig = {}; } // Load grunt tasks automatically, when needed require('jit-grunt')(grun...
const mongoose = require('mongoose'); const Schema = mongoose.Schema; const schema = new Schema({ accType: { type: String, enum: ['individual', 'family', 'organization'], required: true }, members: [{ user: { type: Schema.Types.ObjectId, ref: 'User', ...
import m from 'mithril'; import prop from 'mithril/stream'; import h from '../h'; import _ from 'underscore'; import balanceTransferListVM from '../vms/balance-transfer-list-vm'; import balanceTransferFilterVM from '../vms/balance-transfer-filter-vm'; import adminList from '../c/admin-list'; import adminFilter from '.....
define(['base/querystring'], function(QueryString) { 'use strict'; describe('QueryString.parse', function() { describe('Options', function() { it('should parse object with defaults', function() { var result = QueryString.parse('a=1&b[0]=1&b[1][0]=5&b[1][1][f]=false&b[1][1][s]=7&b[2]=3&c=false&d[...
import m from "mithril"; import { router } from "../router"; export const Brewer = { view: ({ attrs: { state, routing } }) => { const id = routing.localSegment.params.id; return m( "div", m("div", state.brewer[id]), m("div", m("a", { href: router.toPath(routing.parentRoute()) }, "Close"))...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); let _ = require('lodash'); const pip_services_commons_node_1 = require("pip-services-commons-node"); const pip_services_commons_node_2 = require("pip-services-commons-node"); const pip_services_commons_node_3 = require("pip-services-commons-no...
'use strict'; module.exports = { flatten: require('./flatten'), unflatten: require('./unflatten'), stringify: require('./stringify'), parse: require('./parse') };
var https = require('https'); var express = require('express'); var async = require('async'); var officegen = require('officegen'); var app = express(); var $ = require('cheerio'); var fs = require('fs'); var path = require('path'); var curator = require('./node_modules/art-curator/dist/index.js'); var mammoth = requir...
/** * Created by dmitry on 01/07/15. */ mapApp.directive("kmFloorPlans",[function() { return { restrict:"E", templateUrl:"templates/floor-plans.html", link: function ( $scope, element, attrs ) { $scope.selectRoom = function(room) { if($scope.isCubiclesShown) ret...
export default function loginCss() { return { body: { flex: 1, justifyContent: "center", }, login_container: { flex: 1, padding: 25 }, logo_container: { alignItems: "center", }, logo: { width: 180, height: 180, }, signup: { flexDirection: 'row', justifyContent: "center", ...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var session = require('client-sessions'); var index = require('./routes/index'); var users = require...
/*! * VERSION: beta 1.10.1 * DATE: 2013-07-10 * UPDATES AND DOCS AT: http://www.greensock.com * * @license Copyright (c) 2008-2013, GreenSock. All rights reserved. * This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for * Club GreenSock members, the software agreement that was is...
import { inject as service } from '@ember/service'; import Route from '@ember/routing/route'; import { all } from 'rsvp'; export default class CourseVisualizationsRoute extends Route { @service store; @service session; @service dataLoader; titleToken = 'general.coursesAndSessions'; async model(params) { ...
'use strict'; describe('App.expander module', function () { var $scope; beforeEach(module('myApp.expander')); beforeEach(inject(function ($rootScope) { $scope = $rootScope.$new(); })); describe('controller', function () { it('should ...', inject(function ($controller) { v...
/* * CarrotCake CMS * http://www.carrotware.com/ * * Copyright 2011, Samantha Copeland * Dual licensed under the MIT or GPL Version 3 licenses. * * Date: October 2011 * Generated: [[TIMESTAMP]] */ //==================== dateTime stuff function __carrotGetTimeFormat() { return "[[SHORTTIMEPATTERN]]"; } ...
import express from 'express'; import expressHealthcheck from 'express-healthcheck'; import cors from 'cors'; import bodyParser from 'body-parser'; import mongoose from 'mongoose'; import morgan from 'morgan'; // Providers import Log from './providers/log'; // Config import config from './config'; // Routes import r...
/*jslint node: true*/ 'use strict'; /** * Decode the value. * * @param value The value. * @returns The value. */ module.exports = function (value) { // Check if the value is not a string. if (typeof value !== 'string') { // Return the value. return value; } // Return the value. return value.replace(/&#([...
/*exported exampleDirective */ var exampleDirective = function(){ 'use strict'; return { restrict: 'AEC', replace: true, templateUrl: 'examples/exampleDirective.tmpl', link: function($scope, $elem, attrs){ $elem.find('button').on('click',function(ev){ $scope.setAlive($scope.pet); ...
define(['widgets/appWidgets2/input/checkboxInput', 'common/runtime', 'testUtil'], ( CheckboxInput, Runtime, TestUtil ) => { 'use strict'; describe('Test checkbox data input widget', () => { let testConfig = {}, runtime, bus, container; beforeEach...
(function($_) { var Callbacks; $_.Callbacks = Callbacks = {}; var getCallbacks = function(options) { var list = $_.Store.getStore(); var on = function(fn) { var tmp = list.get('any')||[]; tmp.push(fn); list.set('any', tmp); }; var remove = ...
function createQueryString (params) { return Object.keys(params).map(function (name) { return name + '=' + encodeURIComponent(params[name]) }).join('&') } exports.generateSearchUrl = function (params) { if (!params || typeof params !== 'object') { throw new Error('Expect params to be an object.') } /...
var searchData= [ ['yield_290',['Yield',['../namespaceargcv.html#a80686021f3ca186645e2d1e5c1801058',1,'argcv']]] ];
require('./event-tests')(); require('./subscription-tests')(); require('./signal-test')();
import React from 'react'; import PropTypes from 'prop-types'; import './Search.css'; function Search(props) { return ( <form onSubmit={props.searchResults} className="Search"> <div className="Input-group"> <p className="Input-field"> <label className="Input-label sr-only" htmlFor="profil...
var animate; var Game = Game || {}; var WIDTH = window.innerWidth; var HEIGHT = window.innerHeight; var FPS = 30; var engine = new Game.Engine('game', WIDTH, HEIGHT, FPS); engine.init(); engine.register(new Game.SquareInvaders({ width: WIDTH, height: HEIGHT, FPS: FPS })); // Use fallbacks for requestAnimationFr...