code
stringlengths
2
1.05M
module.exports = { // Function to test if device is iOS 7 or later isiOS7Plus : function() { // iOS-specific test if (Titanium.Platform.name == 'iPhone OS') { var version = Titanium.Platform.version.split("."); var major = parseInt(version[0], 10); // Ca...
/** * Creates a Max Heap Data Structure and provide push and pop methods * @param {Array} list List of elements to initialize the heap with */ const MaxHeap = function(list) { const heap = []; /** * Swap the two elements at the given positions * @param {Number} x Position of first element * @param {Number}...
/** * Very simple in-browser unit-test library, with zero deps. * * Background turns green if all tests pass, otherwise red. * View the JavaScript console to see failure reasons. * * Example: * * adder.js (code under test) * * function add(a, b) { * return a + b; * } * * adder-test.html ...
'use strict'; /* Services */ // Demonstrate how to register services // In this case it is a simple value service. angular.module('myApp.services', []). value('version', '0.1'); angular.module('myApp2.services', []). value('version', '0.1');
//jQuery to collapse the navbar on scroll $(window).scroll(function() { if ($(".use-header").offset().top > 50) { $(".navbar-fixed-top").addClass("top-nav-collapse"); } else { $(".navbar-fixed-top").removeClass("top-nav-collapse"); } }); //jQuery for page scrolling feature - requires jQuery...
var bootstrap__filter_8h = [ [ "BSFilter", "classBSFilter.html", "classBSFilter" ], [ "Mat", "bootstrap__filter_8h.html#ae601f56a556993079f730483c574356f", null ], [ "Vec", "bootstrap__filter_8h.html#a4c7df05c6f5e8a0d15ae14bcdbc07152", null ], [ "BSResampStyle", "bootstrap__filter_8h.html#a476b3b5754056...
/* * This file defines the base webpack configuration that is shared across both * build and testing environments. If you need to add anything to the general * webpack config, like adding loaders for different asset types, different * preLoaders or Plugins - they should be done here. If you are looking to add * de...
var fs = require('fs'); var http = require('http'); var path = require('path'); var DocumentTitle = require('react-document-title'); var Hapi = require('hapi'); var React = require('react'); var Router = require('react-router'); var routes = require('./lib/routes'); var server = new Hapi.Server(); server.connecti...
/** * @author Diego Alberto Molina Vera * @copyright 2016 - 2017 */ /* --------------------------------- Functions --------------------------------- */ function makeThumBar(win, imgs = {}) { const play = { icon: imgs.play, tooltip: 'Play', click: () => { win.setThumbarButtons(pauseMomment); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._wireObjectInstance = void 0; const _injectPropertiesAndLookUpMethods_1 = require("../properties/_injectPropertiesAndLookUpMethods"); const _injectAliasFactory_1 = require("../alias/_injectAliasFactory"); const inject_1 = require("../....
app.controller('index', ['$scope','indexlist', function($scope,indexlist){ //类别 $scope.type = ["首页","企业简介","产品中心","新闻中心","在线留言","联系我们"]; $scope.states = ["关闭","开启"]; indexlist.load('seo',$scope); }]);
var keystone = require('keystone'), async = require('async'), sanitizer=require("sanitizer"), wally=false, snowcoins = require('wallets'), snowlist = snowcoins.get('lists'), moduleDir = snowcoins.get('moduleDir'), ledger = require(moduleDir + '/lib/snowcoins/d3c/ledger.js'), tx = require(moduleDir + '/lib/snowc...
"use strict"; var arrays = require("../../utils/arrays"), asts = require("../asts"), op = require("../opcodes"), js = require("../javascript"); /* Generates parser JavaScript code. */ function generateJavascript(ast, options) { /* These only indent non-empty lines to avoid trailing whitespace....
frappe.provide('frappe.ui.misc'); frappe.ui.misc.about = function() { if(!frappe.ui.misc.about_dialog) { var d = new frappe.ui.Dialog({title: __('Revalue Framework')}) $(d.body).html(repl("<div>\ <p>"+__("ERP System On Cloud & On Premises")+"</p> \ <p><i class='fa fa-globe fa-fw'></i>\ Website: <a href='...
/* rest.js mongodb-rest Created by Tom de Grunt on 2010-10-03. Copyright (c) 2010 Tom de Grunt. This file is part of mongodb-rest. */ var mongo = require("mongodb"), app = module.parent.exports.app, config = module.parent.exports.config, util = require("./util"), BSON = mongo.BSONPu...
var path = require('path') var binPath = require('phantomjs').path var falafel = require('falafel') var execFile = require('child_process').execFile var dargs = require('dargs') module.exports = function(url, opts, fn, done) { if (typeof opts === 'function') { done = fn fn = opts opts = {} } var scri...
Object.toJSON = function(object) { return JSON.stringify(object); };
var Zet = require('./zet') var Serializable = require('./serialization').Serializable module.exports = Zet.declare({ superclass: Serializable, CLASS_ID: 'NamedSerializable', defineBody: function (self) { // Constructor Function self.NAME_KEY = NAME_KEY /** Constructor for named ser...
$(function() { $('#sample').html( langs.shell ); $('#lang').on('change', function() { $('#sample').html(langs[ $(this).val() ]); }); $('#demoForm').on('submit', function(e) { e.preventDefault(); $('#demoData').fadeIn(); $('#demoMeta').text( 'Loading. ..' ); $.ajax({ url: 'https://url-meta.herokuapp....
module.exports = function(grunt) { var banner = '/*! SAFDOM v<%= pkg.version %> | (c) Alex Offshore | aopdg.com */'; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), uglify: { options: { preserveComments: false, sourceMap: true, sourceMapN...
angular .module('movielist') .directive('mlRuntimeDropdownSlider', runtimeDropdownSliderDirective); function runtimeDropdownSliderDirective() { return { restrict: 'E', scope: { runtime: '=mlRuntime', range: '=mlRange' }, bindToController: true, ...
#!/usr/bin/env node /*eslint no-console:0*/ var program = require("commander"); program .version("0.0.1") .command("validate <path> <host>") .alias("val") .description("Validate swagger documentation. Pass path to swagger.json and Url to the API.") .action(function(path, host){ console.log(path + " " + ...
Ergo.defineClass('Ergo.widgets.TabBar', { extends: 'Ergo.widgets.List', defaults: { cls: 'tabs tab-bar', dynamic: false, defaultItem: { } } }, 'widgets:tab-bar');
import util from './util'; import Store from '../api/store/index'; import Note from '../models/Note'; import Notebook from '../models/Notebook'; let store = new Store(util.platform); class Meta{ constructor(){ } get data(){ return store.readFile('/meta.json').then((content) => { if(content){ let metaData...
var videofeedApp = angular.module('videofeedApp', []); videofeedApp.config(function($httpProvider) { $httpProvider.defaults.useXDomain = true; }); videofeedApp.controller('VideoListController', function VideoListController($scope, $http, $sce) { $scope.title = "Video Feed"; $http.get('https://cdn.playbuzz.co...
toId = function(text) { if (text && text.id) text = text.id; else if (text && text.userid) text = text.userid; return string(text).toLowerCase().replace(/[^a-z0-9]+/g, ''); }; string = function(str) { if (typeof str === 'string' || typeof str === 'number') return ''+str; return ''; } require("sugar"); fs = requir...
/** * Created by charlie on 9/30/16. */ import Vue from 'vue' // import { mixin } from '../common/utils' import VhNotification from './impl.vue' let NotificationConstructor = Vue.extend(VhNotification) let instance let instances = [] let seed = 1 let Notification = function (options) { options = options || {} ...
/// <reference path="../../scripts/p5.d.ts" /> /* tslint:disable: no-unused-variable */ /* tslint:disable: comment-format */ var NOC_I_06_b; (function (NOC_I_06_b) { 'use strict'; var Walker = (function () { function Walker(s) { this.s = s; this.pos = this.s.createVector(this.s.w...
const { resolve } = require('path') module.exports = { rootDir: resolve(__dirname, '../..'), srcDir: __dirname, modules: ['@@/lib/module'], build: { extractCSS: true }, framework7: { routes: { index: { tabs: [ { path: '', id: 'tab1' }, { path: '/tab2', id: 'tab2' ...
(function() { window.vtex.i18n["en-US"] = { shippingData: { shippingAddressTitle: "Delivery address", addNewAddress: "Add New address", chooseAddress: "Choose a delivery address", or: "or", deliveryCountry: "Country", seeDetails: "See details", shipOtherAddress: "Delivery...
/*********************** jquery-surf.js Copyright (C) Drecom Co.,Ltd Licensed under MIT ***********************/ (function($) { var name_space = 'surf'; $.fn[name_space] = function(options) { var element = this; var default_options = { axis : 'x', duration : '200', page_template : ...
var searchData= [ ['b',['b',['../structlfgui_1_1color.html#aeb0a907229a752e83162d675165d33de',1,'lfgui::color']]], ['beam',['beam',['../namespacelfgui.html#a765b713f4249e73e28aaa97f10bf6285a5435eeb714f3a0739ca75b3b0eb8cfb3',1,'lfgui']]], ['bitmap',['bitmap',['../structlfgui_1_1font_1_1bitmap.html',1,'lfgui::font'...
$(document).ready(function () { $(document).on("scroll", onScroll); $('a[href^="#"]').on('click', function (e) { e.preventDefault(); $(document).off("scroll"); $('a').each(function () { $(this).removeClass('active'); }) $(this).addClass('active'); var target = this.hash; $target = $(target); $('html, body').stop().a...
angular.module( 'cf') .factory('accountsService', ['$rootScope','$q', 'usersService', function($rootScope,$q,usersService) { var accounts = [ {id:1,pucId:11,name:'Disponible',accountType:'ASSETS', companyId:1, initialBalance: "0"}, {id:4,pucId:15,name:'Propiedad planta y equipo',accountType:'ASSETS',...
var request = require('request'); exports.Shortener = Shortener; function Shortener() {} Shortener.prototype.google = function(longurl, key, callback) { var options = { url: 'https://www.googleapis.com/urlshortener/v1/url?key=' + key, headers: { 'Content-Type': 'application/json' }, method: '...
module.exports = function (tgen) { tgen.preset("waves-5", { width: 256, height: 256, items: [ [0, "waves"], [ 0, "waves", { blend: "difference", }, ], [ 0, "waves", { blend: "linearburn", }, ]...
// import { fromJS } from 'immutable'; // import { makeSelectAffirmationsDomain } from '../selectors'; // const selector = makeSelectAffirmationsDomain(); describe('makeSelectAffirmationsDomain', () => { it('Expect to have unit tests specified', () => { expect(true).toEqual(false); }); });
var its = require('../utils/shopItems'); class Store { canBuyItem(socket, item) { return (socket.player.score >= item.price); } getItemById(id) { var me = this; for (var i = 0; i < me.itemArray.length; ++i) { if (me.itemArray[i].id == id) return me.itemArray[i]; } return null; } constructor(serv)...
var BASE_URL = localStorage["api_endpoint"]; function makeDD(change) { var dd = document.createElement('dd'); dd.title = JSON.stringify(change, null, " "); dd.style.marginBottom = "8px"; var subject = change.subject; if (subject.length > 80) { subject = subject.substr(0, 80) + '[...]'; ...
'use strict'; var test = require('ava'); var crayola = require('./'); test('returns a random crayola color', function (t) { t.assert(crayola() !== null && typeof crayola() === 'object'); }); test('returns all the colors', function (t) { t.assert(Array.isArray(crayola.colors)); t.assert(crayola.colors[3] !== null &...
import "babel-polyfill"; import thunkMiddleware from "redux-thunk"; import React from "react"; import { render } from "react-dom"; import { Provider } from "react-redux"; import { createStore, compose, applyMiddleware, combineReducers } from "redux"; import { Taxon } from "inaturalistjs"; import photosReducer, { reload...
const primitives = require('../dist/jaak-primitives') const customThemeA = require('./fixtures/custom-theme-a') const defaultTheme = require('./fixtures/default-theme') const mergedThemeA = require('./fixtures/merged-theme-a') describe('jaak-primitives :: theme', () => { it('Should return the default theme', () => ...
/*global parser:true */ "use strict"; if (typeof exports !== 'undefined') { var edn = exports; } else { var edn = window.edn = {}; } // Internal: Jison Parser constructor. function Parser() {} Parser.prototype = parser; // Public: Parse edn String. // // str - edn String // options - // tags - Tag dispatch fu...
'use strict'; var lstat = require('fs').lstat; var readdir = require('fs').readdir; var isArray = require('util').isArray; var joinPath = require('path').join; /** * Constructor * * @param String {dir} (optional) * @param RegExp {filter} (optional) */ function RecDirReader(dir, filter) { if (this === undefi...
/// <reference path="./global.d.ts" /> // @ts-check // // The lines above enable type checking for this file. Various IDEs interpret // the @ts-check and reference directives. Together, they give you helpful // autocompletion when implementing this exercise. You don't need to understand // them in order to use it. // /...
/*! * author Tony Beltramelli * http://www.tonybeltramelli.com * */ PopInManager = function() { }; PopInManager.prototype.constructor = PopInManager; PopInManager.prototype.show = function(title, description) { this.build(title, "<p>"+description+"</p>"); $("#popInManager").delay(1200).fadeOut(500, this.rem...
var Canal = require('../canal.js'); var expect = require("expect.js"); describe("Test flatten", function(){ it("flatten() [1 2]", function() { var result = Canal.of([ [ 1, 2 ], [ 2, 3 ], [ 3, 4 ] ]) // .flatten().collect(); expect(result).to.eql([ [ 1, 2 ], [ 2, 3 ], [ 3, 4 ] ]); }); it("flatten() [1 [2 3]]", fun...
module.exports = function (grunt) { // custom task grunt.registerMultiTask('merge-templates', 'Merges the templates in the index.php.', function () { var fileList = grunt.file.expand(grunt.config('merge-templates.default.files')); var index = grunt.file.read(grunt.config('merge-templates.default.index')); ind...
"use strict"; const setupTask = require('utils').setupTask; const calcTasks = require("calcTasks"); module.exports = { getTask : function(creep){ var room = creep.room var creepsByTask = _(Game.creeps).filter( (c) => c.task && c.task.roomName == room.name).groupBy('task.type').value(); var mineMineralTasks ...
(function() { console.log('Main.js loaded!'); })();
/** * Native Component Test Template By => create-module script * @version 1.2.0 * */ import React from 'react'; import { shallow } from 'enzyme'; import Icon from 'ui/Icon/Icon.native'; describe('test/app/ui/Icon/Icon.test.js', () => { it('Render', () => { const props = {}; const wrapper = shallow(<Ico...
/** * @module opcua.server */ import assert from "better-assert"; import async from "async"; import NodeClass from "lib/datamodel/NodeClass"; import NodeId, { resolveNodeId, makeNodeId, NodeIdType } from "lib/datamodel/NodeId"; import NumericRange from "lib/datamodel/numeric-range/NumericRange"; import ...
App.messages = App.cable.subscriptions.create('ProductsChannel', { received: function(data) { product = JSON.parse(data.product); product.action = data.action; if(product.is_available && (product.action == "status" || product.action == "create" || product.action == "update" )) { ...
'use strict'; import CompositeKeyWeakMap from '../utils/CompositeKeyWeakMap'; export default new CompositeKeyWeakMap();
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ProgressBar from '../src/ProgressBar'; const getProgressBarNode = function (wrapper) { return React.findDOMNode(ReactTestUtils.findRenderedDOMComponentWithClass(wrapper, 'progress-bar')); }; describe('ProgressBar', function () ...
// By doing so, we won't mess up with `require` keyword window.requireNode = window.require; // auto reload var gulp; var remote = requireNode('remote'); try { gulp = requireNode('gulp'); } catch(e) { // There is no gulp in production build, so we have to use // try-catch to throw errors in console for this } ...
var Kernel_View_Ui_Entry = AbstractView.extend({ label: '', initialize: function (options) { this.label = (options && options.label) ? options.label : ''; this.enterCallbacks = (options && options.onEnter) ? [options.onEnter] : []; this.blurCallbacks = (options && options.on...
var _ = require('lodash'), async = require('async'), mongoose = require('mongoose'), Payment = mongoose.model('Payment'), Member = mongoose.model('Member'), ConfigService = require('../services/ConfigService'), PaymentError = require('../errors/PaymentError'); /** * Manages member's payments. ...
'use strict'; module.exports = { db: 'mongodb://localhost/spot-dev', app: { title: 'spot - Development Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: 'http://localhost:3000/auth/facebook/callback' }, twitt...
'use strict'; var mongoose = require("mongoose"); var Schema = mongoose.Schema; var Click = new Schema( { clicks: Number }, { versionKey: false } ); module.exports = mongoose.model('Click', Click);
import resolve from "../helpers/resolve"; /** * Resolves presets options which can be either direct object data, * or a module name to require. */ export function resolvePresets(presets: Array<string | Object>, dirname: string, prefix?: string, onResolve?) { return presets.map((val) => { if (typeof val === "...
var app = angular.module("ive"); // Relationship recorded_at edit controller app.controller("recordedAtEditController", function($scope, $rootScope, $routeParams, $interval, $filter, $translate, $location, config, $window, $authenticationService, $relationshipService) { /******************************************...
const checkSafety = (row, col, solutions) => { for (let i = 0; i < solutions.length; i += 1) { const queenSolution = solutions[i]; const firstDiagonal = row - col; const secondDiagonal = row + col; const firstDiagonalQueen = queenSolution[0] - queenSolution[1]; const secondDiagonalQueen = queenS...
var debug = require('debug')('domain:commandDispatcher'), _ = require('lodash'), dotty = require('dotty'), DuplicateCommandError = require('./errors/duplicateCommandError'); /** * CommandDispatcher constructor * @param {Object} tree The tree object. * @param {Object} definition The definition obje...
'use strict'; const Router = require('express').Router; const parseJSON = require('body-parser').json(); const createError = require('http-errors'); const debug = require('debug')('inventory:cart order route'); const CartOrder = require('../model/cart-order.js'); const Customer = require('../model/customer.js'); cons...
var authService = require('./auth_service'); var sessionService = require('./session_service'); module.exports = angular.module('app.components.services', [ authService.name, sessionService.name ]);
window.Rendxx = window.Rendxx || {}; window.Rendxx.Game = window.Rendxx.Game || {}; window.Rendxx.Game.Ghost = window.Rendxx.Game.Ghost || {}; window.Rendxx.Game.Ghost.Renderer2D = window.Rendxx.Game.Ghost.Renderer2D || {}; /** * Setup map, including light, wall and other stuff * y * | * | * o---...
//=====> HELPER FUNCTIONS function updateIndices() { var memberList = $('.list-members'); memberList.find('.user-new').each(function(i) { $(this).find('input').attr('name', 'users[' + i + ']'); $(this).find('select').attr('name', 'roles[' + i + ']'); }); memberList.find('.user-changed'...
require([ 'underscore', 'handlebars', 'moment' ], function (_, Handlebars, moment) { Handlebars.registerHelper('groupByDate', function (items, options) { // First, group intervals by date var grouped = {}; for (var i = 0; i < items.length; i++) { var date = moment(items[i].from).format('YYYY.MM.DD'); ...
'use strict'; var joi = require('joi'); /** * Validates provided params using the provided schema. * @param {Object} params Params to validate. * @param {Object} schema Joi schema to use for validation. * @return {Object} Validated params. * @throws Error if params are invalid. */ exports.validateParams = func...
import { runView } from '../run'; import * as cases from './cases'; runView('classes overload', cases);
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js (function(global) { glo...
import { ModuleNamespace } from 'es-module-loader/core/loader-polyfill.js'; import RegisterLoader from 'es-module-loader/core/register-loader.js'; import { global, baseURI, CONFIG, PLAIN_RESOLVE, PLAIN_RESOLVE_SYNC, resolveIfNotPlain, resolvedPromise, extend, emptyModule, applyPaths, scriptLoad, protectedCreateName...
define(['app/app'], function(App) { module('Integration: NavMain', { setup: function() { }, teardown: function() { App.reset(); } }); test('Navigation Links', function() { expect(3); visit('/'); andThen(function() { equal...
import PIXI from 'pixi.js'; import resourses from '../constants/resourses'; import {spriteStore, gameSounds} from '../constants/presets'; // import 'yuki-createjs' import 'yuki-createjs/lib/soundjs-0.6.2.combined' import es6Promise from 'es6-promise'; /** * Звуки */ let soundPath = './assets/audio/'; let soundsArr =...
/* Focalize.js - Dynamic HTML5 presentations Copyright (C) 2013 Rubén Béjar {https://www.rubenbejar.com/} This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the L...
/** * (c) 2014 Beau Sorensen * MIT Licensed * For all details and documentation: * https://github.com/sorensen/possibles */ ;(function() { 'use strict'; /** * Find all unique combinations of the given array elements * http://codereview.stackexchange.com/questions/7001/better-way-to-generate-all-combinations *...
console.log('Delete keyword based delete:'); const arr = [1,2,3,4,5]; delete arr[2] console.log(arr); // [ 1, 2, , 4, 5 ] console.log(arr[2]); // undefined console.log('\nSplice based delete:'); const arr2 = [1,2,3,4,5]; arr2.splice(arr2, 2, 1); console.log(arr2); // [ 1, 3, 4, 5 ] console.log(arr2[2]); // 4 cons...
/** * Created by Evgeniy_Generalov on 10/28/2016. */ "use strict"; var StaticResponseExpectation_1 = require("../expectation/StaticResponseExpectation"); function request(options) { return new StaticResponseExpectation_1.StaticResponseExpectation(options); } exports.request = request; //# sourceMappingURL=data:ap...
require([ 'app/MapController' ], function ( WidgetUnderTest ) { describe('app/MapController', function () { var widget; beforeEach(function () { widget = WidgetUnderTest; }); afterEach(function () { if (widget) { widget = null; ...
pageMechanic = function() { $('[data-toggle="tooltip"]').tooltip(); if (checkUrl("simulated_tests/new")) { console.log('[INFO] enginePage called at: simulated_tests/new.'); var engineDatepickers = function() { $('#page .input-group.date').datepicker({ todayBtn: "l...
'use strict'; import angular from 'angular'; import uirouter from 'angular-ui-router'; import routes from './message.routes'; import MessageCtrl from './message.ctrl'; import database from '../../modules/database'; import pagetitle from '../../modules/page-title.js'; var messagePage = angular.module('messagePage', ...
import { join } from 'path' import { readFile } from 'fs' import { promisify } from 'bluebird' const readFileAsync = promisify(readFile), breakingOptions = ['flags', 'make', 'configure'] function getOptionsComment (options) { const optionMarkers = breakingOptions.map(key => { return `${ key }: ${ JSON.stringi...
'use strict'; // Controller for viewing info of a location on the map angular.module('locations').controller('LocationMapController', ['$scope', 'Authentication', 'Locations', 'editable', 'location', function ($scope, Authentication, Locations, editable, location) { $scope.authentication = Authentication; i...
class softwaredistribution_vistawebcontrol { constructor() { // uint UserLocale () {get} this.UserLocale = undefined; } // OptInRestriction CheckOptInRestrictions (OptInRestriction) CheckOptInRestrictions(OptInRestriction) { } // void ElevatedOptInToUpdateService (string, Var...
var express = require('express'), router = express.Router(), bodyParser = require('body-parser'), expJwt = require('express-jwt'), expressValidator = require('express-validator'), util = require('util'), config = require('../config'), logging = require('../logging'), logger = logging.cre...
/* eslint no-console: 0 */ /* eslint no-path-concat: 0 */ var fs = require('fs-extra') var version = process.env.npm_package_version var name = process.env.npm_package_name const filterFunc = (src, dest) => { // Dont copy .map files - we dont want this in our production environment if (src.endsWith('.map')) { ...
require('../../app/app.js'); const angular = require('angular'); require('angular-mocks'); describe('score service tests', () => { var ScoreService; beforeEach(angular.mock.module('app')); beforeEach(angular.mock.inject(function(_ScoreService_) { ScoreService = _ScoreService_; })); it('should be a ser...
"use strict"; var strictify = require('../../lib').helpers.strictify; describe("<Strictify helper>", function() { it("should replace spaces by ANDs", function() { strictify("Jack Bob") .should.be.exactly("Jack AND Bob"); strictify("Jack Bob Bobby") .should.be.exactly("Jack AND Bob AND Bobby"); ...
version https://git-lfs.github.com/spec/v1 oid sha256:7aa80b43b95b74bc318d46be11b2ad2ab87b630de06ed7d7bfa232042ee1e7cb size 42434
/** * Subject: maintain list of observers * Observer: provides a update interface for objects and notification * ConcreteSubject: Broadcast notification; * ConcteteObserver: stores a reference to the concreteSubject */ // subject prototype function ObserverList () { this.ObserverList = [];...
/** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ goog.module('test_files.jsdoc_types.untyped.jsdoc_types');var module = module || {id: 'test_files/jsdoc_types.untyped/jsdoc_types.js'};/** * This test tests importing a type across module boundaries, * ensuring that the type gets the p...
export default async (ctx, next) => { // api server through koa-router if (ctx.path.match(/^\/api/)) { return await require('./api').routes()(ctx, next) } // others react-router to render await require('./render')(ctx, next) }
export var customGeometry = { main:function(){ var _self = this; this.group = new THREE.Group(); this.geometry = new THREE.PlaneGeometry(100, 100 ); this.material = new THREE.MeshBasicMaterial( { map:this.textures } ); this.mesh = new THREE.Mesh( this.geometry,this.material ); var a= new...
(function () { 'use strict'; angular .module('rentler.core') .directive('rValidateClass', ValidateClassDirective); ValidateClassDirective.$inject = ['Validation']; function ValidateClassDirective(Validation) { var directive = { restrict: 'A', require: ['^form', '^rValidator', '?^ngRepea...
import React from 'react'; import PropTypes from 'prop-types'; const Undo = (props) => { const color = props.color == 'inherit' ? undefined : props.color; const aria = props.title ? 'svg-undo-title' : '' + props.title && props.description ? ' ' : '' + props.description ? 'svg-undo-desc' : ''; return ( ...
/*! jQuery UI - v1.9.2 - 2013-12-13 * http://jqueryui.com * Includes: jquery.ui.widget.js * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ (function( $, undefined ) { var uuid = 0, slice = Array.prototype.slice, _cleanData = $.cleanData; $.cleanData = function( elems ) { for ( var...
(function($){ $(document).ready(function(){ $(window).scroll(function(){ // 屏幕滚动数据 var m = $(document).scrollTop(); var lefts = $('.left'); lefts.each(function(){ var that = $(this); var left = that.offs...
var url = "http://api.justin.tv/api/stream/list.json"; var stream = "?channel=tobiwandota,versuta,minidota,wagamamatv,netolicrc,sexybamboe,dendi,wepla,alaito&callback=?"; var streamSelection = []; var streamDota = ["dendi","tobiwandota","starladder1","wagamamatv","onemoregametv2","versuta","4cejkee","beyondthesummit","...
var toString = Object.prototype.toString; module.exports = (value) => toString.call(value) === '[object Arguments]';