code
stringlengths
2
1.05M
!function(a){var b=document.body.clientWidth,c=document.body.clientHeight;$(a).resize(function(){b=document.body.clientWidth,c=document.body.clientHeight}),$(".nav-toggle-menu").click(function(a){a.preventDefault(),$(this).toggleClass("active"),$(".nav").toggleClass("active")}),$(".nav-toggle-search").click(function(a)...
self.onmessage = function() { function test(method, args) { try { var request = self.webkitIndexedDB[method].call(self.webkitIndexedDB, args); return 'Successfully called self.webkitIndexedDB.' + method + '().<br>'; } catch (exception) { return 'self.webkitIndexed...
/** * @license Highcharts JS v7.1.3 (2019-08-14) * @module highcharts/modules/xrange * @requires highcharts * * X-range series * * (c) 2010-2019 Torstein Honsi, Lars A. V. Cabrera * * License: www.highcharts.com/license */ 'use strict'; import '../../modules/xrange.src.js';
var _ = require('underscore'); module.exports = _.min([3,2,1,4,5]);
export default { // Options.jsx items_per_page: '/ pagina', jump_to: 'vai a', page: '', // Pagination.jsx prev_page: 'Pagina precedente', next_page: 'Pagina successiva', prev_5: 'Precedente 5 pagine', next_5: 'Prossime 5 pagine', prev_3: 'Precedente 3 pagine', next_3: 'Prossime 3 pagine' };
var Sequelize = require('sequelize'); var config = require('../config/environment'); var User, Event, Observation; var init = function() { var orm; // Use different parameters for initializing the Sequelize instance depending on environment if (config.postgres.uri) { // The production environment should ha...
/** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup UnaStudio UNA Studio * @{ */ function BxDolStudioNavigationImport(oOptions) { this.sActionsUrl = oOptions.sActionUrl; this.sPageUrl = oOptions.sPageUrl; this.sObjNameGrid = oOptions.sObj...
/**! * easyPieChart * Lightweight plugin to render simple, animated and retina optimized pie charts * * @license * @author Robert Fleischmann <rendro87@gmail.com> (http://robert-fleischmann.de) * @version 2.1.4 **/ (function(root, factory) { if(typeof exports === 'object') { module.expor...
import * as modReact from 'react'; import * as modClassNames from 'classnames'; import * as modAccordion from '../../src/Accordion'; import * as modAlert from '../../src/Alert'; import * as modBadge from '../../src/Badge'; import * as modmodButton from '../../src/Button'; import * as modButtonGroup from '../../src/Butt...
System.register([], function (_export) { 'use strict'; var ValidationViewStrategy; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } return { setters: [], execute: function () { ValidationVie...
export function sortLinear(data, property, direction) { if (direction === void 0) { direction = 'asc'; } return data.sort(function (a, b) { if (direction === 'asc') { return a[property] - b[property]; } else { return b[property] - a[property]; } }); } ...
const config = { baseUrl: 'http://localhost:5555/', specs: [ './dist/e2e/**/*.e2e-spec.js' ], exclude: [], // 'jasmine' by default will use the latest jasmine framework framework: 'jasmine', // allScriptsTimeout: 110000, jasmineNodeOpts: { // showTiming: true, showColors: true, isVe...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const NullDependency = require("./NullDependency"); const DepBlockHelpers = require("./DepBlockHelpers"); class AMDRequireDependency extends NullDependency { constructor(block) { super(); this.block =...
"use strict"; var ts = require("typescript"); var SyntaxWalker = (function () { function SyntaxWalker() { } SyntaxWalker.prototype.walk = function (node) { this.visitNode(node); }; SyntaxWalker.prototype.visitAnyKeyword = function (node) { this.walkChildren(node); }; SyntaxWa...
import 'ember'; import Ember from 'ember-metal/core'; import isEnabled from 'ember-metal/features'; import EmberHandlebars from 'ember-htmlbars/compat'; import HandlebarsCompatibleHelper from 'ember-htmlbars/compat/helper'; import Helper from 'ember-htmlbars/helper'; var compile, helpers, makeBoundHelper; compile = Em...
/* * Throttle the window resize event for performance and smoothness. */ +function ($) { 'use strict'; // SMARTRESIZE PUBLIC CLASS DEFINITION // =================================== var Smartresize = function (element, options) { this.element = element this.options = options this._bounce = [] }...
/*! JsRender * Version for web: jsrender.js * Version for Node.js: jsrender-node.js */ 'use strict'; module.exports = require('./jsrender-node.js');
/*global define*/ /*global describe, it, expect*/ /*global jasmine*/ /*global beforeEach, afterEach*/ /*jslint white: true*/ define([ 'kbaseRNASeqHistogram' ], function(Widget) { describe('Test the kbaseRNASeqHistogram widget', function() { it('Should do things', function() { }); }); });
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global','./Element'],function(q,E){"use strict";var V={};var t=null;var e=function(){if(!t){t={};var r=sap....
settingsSchemaObject = { title: { type: String, optional: true, autoform: { group: 'general' } }, siteUrl: { type: String, optional: true, autoform: { group: 'general', instructions: 'Your site\'s URL (with trailing "/"). Will default to Meteor.absoluteUrl()' } ...
Clazz.declarePackage ("J.adapter.readers.more"); Clazz.load (["J.adapter.smarter.AtomSetCollectionReader"], "J.adapter.readers.more.MdCrdReader", ["java.lang.Float", "JU.P3", "J.util.Logger"], function () { c$ = Clazz.decorateAsClass (function () { this.ptFloat = 0; this.lenLine = 0; Clazz.instantialize (this, arg...
'use strict'; // Use Applicaion configuration module to register a new module ApplicationConfiguration.registerModule('products');
const self = module.exports; self.exit = () => { console.error('catch block not called'); process.exit(); };
// userRoutes.js var userController = require('./userController.js'); module.exports = function (router) { // router === userRouter injected from middlware.js router.route('/todo') .get(userController.getTodos) .post(userController.addTodo); router.route('/bookmark/:url') .get(userController.getBook...
'use strict'; angular.module('copayApp.controllers').controller('preferencesColorController', function($scope, $timeout, $log, configService, profileService, go) { var config = configService.getSync(); this.colorOpts = [ '#DD4B39', '#F38F12', '#FAA77F', '#D0B136', '#9EDD72', ...
/** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup UnaStudio UNA Studio * @{ */ function BxDolStudioFormsCategories(oOptions) { this.sActionsUrl = oOptions.sActionUrl; this.sPageUrl = oOptions.sPageUrl; this.sObjNameGrid = oOptions.sObjNa...
/* */ require('../modules/es7.reflect.define-metadata'); require('../modules/es7.reflect.delete-metadata'); require('../modules/es7.reflect.get-metadata'); require('../modules/es7.reflect.get-metadata-keys'); require('../modules/es7.reflect.get-own-metadata'); require('../modules/es7.reflect.get-own-metadata-keys'); r...
/*global window, document, Ghost, Backbone, $, _, NProgress */ (function () { "use strict"; Ghost.Router = Backbone.Router.extend({ routes: { '' : 'blog', 'content/' : 'blog', 'settings(/:pane)/' : 'settings', 'editor(/:id)/' ...
define(["jquery", "knockout", 'durandal/app', 'plugins/dialog', 'service!taskever/task', 'session'], function ($, ko, app, dialogs, taskService, session) { var maxTaskCount = 10; return function () { var that = this; // Private variables //////////////////////////////////...
//Date globlal var gDate; //Mostra o primeiro elemento passado enquanto oculta o segundo. //O terceiro elemento define até onde será feito o scroll da página function mostra(aparece,oculta,rola) { let aux = document.querySelector('#'+aparece); aux.style.display = "flex"; aux = document.querySelector('#'+ocu...
'use strict' var util = require('util') var hasOwn = Object.prototype.hasOwnProperty exports.setPrivate = function (ctx, key, value) { Object.defineProperty(ctx, key, { value: value, writable: false, enumerable: false, configurable: false }) } exports.slice = function (args, start) { start = st...
/*! * jQuery JavaScript Library v1.10.2 -wrap,-offset,-deprecated * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-07T16:56Z */ (function( ...
/** * @author WestLangley / http://github.com/WestLangley * @author zz85 / http://github.com/zz85 * @author bhouston / http://clara.io * * Creates an arrow for visualizing directions * * Parameters: * dir - Vector3 * origin - Vector3 * length - Number * color - color in hex value * headLength - Number ...
// The ABSTRACTS must be put here. Each abstract is a numbered variable. Pay attention to the presence of \ at the end of each line. var abstract001 = "Typical control systems designs concentrate on plant output specifications and don't always take sufficiently into account \ specifications related to its inp...
'use strict'; var nativeForEach = [].forEach; var internalForEach = require('../internals/array-methods')(0); var SLOPPY_METHOD = require('../internals/sloppy-array-method')('forEach'); // `Array.prototype.forEach` method implementation // https://tc39.github.io/ecma262/#sec-array.prototype.foreach module.exports = S...
require('../../support/spec_helper'); describe("Cucumber.Listener.SummaryFormatter", function () { var Cucumber = requireLib('cucumber'); var formatter, formatterHearMethod, summaryFormatter, statsJournal, failedStepResults, options; beforeEach(function () { options = createSpy("options"); ...
/*globals Ember*/ /*jshint eqnull:true*/ /** @module ember-data */ import normalizeModelName from "ember-data/system/normalize-model-name"; import { InvalidError } from 'ember-data/adapters/errors'; import { Map } from "ember-data/system/map"; import { promiseArray, promiseObject } from "ember-data/system/...
/** * BlockRangeDelete.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.core.delete.BlockRangeDelete', [ 'ephox.katamari.api.Options', 'ep...
angular.module("umbraco") .controller("Umbraco.Dialogs.UserController", function ($scope, $location, $timeout, userService, historyService, eventsService) { $scope.user = userService.getCurrentUser(); $scope.history = historyService.getCurrent(); $scope.version = Umbraco.Sys.ServerVari...
"use strict"; var _getSert = require("../getsert"); var generateCode = require("../../../src/utils/code-generator"); class CategoryDataUtil { getSert(input) { var ManagerType = require("../../../src/managers/master/garment-category-manager"); return _getSert(input, ManagerType, (data) => { ...
'use strict'; angular.module('todoStats', []);
suite('rb/views/CollectionView', function() { var TestModel, TestCollection, TestModelView, TestCollectionView, collection, view; TestModel = Backbone.Model.extend({ defaults: _.defaults({ data: '' }) }); TestCollection = Backbone.Col...
// This test written in mocha+should.js var should = require('./init.js'); var db, Model; describe('datatypes', function () { before(function (done) { db = getSchema(); Model = db.define('Model', { str: String, date: Date, num: Number, bool: Boolean, list: {type: [String]}, ...
// ----------------------- // UI Helpers // ----------------------- // Get a constant from the constants.js UI.registerHelper('constant', function(variable){ return window["CONSTANTS"][variable]; }); // ----------------------- // Handlebars Helpers // ----------------------- // Check if a user is a certain role UI...
var name = "First-Best Bubble Farmer"; var collection_type = 0; var is_secret = 0; var desc = "Ever-so-carefully harvested 5003 Bubbles"; var status_text = "Glory of glories, you are now a First-Best Bubble Farmer! Go ahead and let that go to your head."; var last_published = 1348798465; var is_shareworthy = 1; var...
import { RenderSyntax } from './syntax/render'; import { OutletSyntax } from './syntax/outlet'; import { MountSyntax } from './syntax/mount'; import { DynamicComponentSyntax } from './syntax/dynamic-component'; import { InputSyntax } from './syntax/input'; import { WithDynamicVarsSyntax, InElementSyntax } from 'gli...
angular.module('ngCordova.plugins.statusbar', []) .factory('$cordovaStatusbar', [function() { return { overlaysWebView: function(bool) { return StatusBar.overlaysWebView(true); }, // styles: Default, LightContent, BlackTranslucent, BlackOpaque style: function (style) { switch (style) { ...
console.log('ready');
module.exports = function (name) { try { require.resolve(name) return true } catch (e) { return false } }
'use strict'; const chai = require('chai'), expect = chai.expect, Support = require(__dirname + '/../support'), Sequelize = require(__dirname + '/../../../index'), current = Support.sequelize; describe(Support.getTestDialectTeaser('Model'), () => { describe('all', () => { const Referral = current.d...
/** * @fileoverview Options configuration for optionator. * @author George Zahariev */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ var optionator = require("optionator...
require("./assets/loader"); if (!window.Intl) { // Safari polyfill require.ensure(["intl"], require => { window.Intl = require("intl"); Intl.__addLocaleData(require("./assets/intl-data/en.json")); require("index.js"); }); } else { require("index.js"); }
var _ = require('lodash'); var templateMapping = { protractor: _.template('https://github.com/angular/protractor/blob/' + '<%= linksHash %>/lib/<%= fileName %>.js#L<%= startingLine %>'), webdriver: _.template('https://github.com/SeleniumHQ/selenium/blob/master/' + 'javascript/webdriver/<%= fileName %>....
var app = angular.module('hackalist', []); app.controller('hackathonEvents', ['$http', '$scope', function($http, $scope){ $scope.hackathons = []; $scope.applicable = function(hackathon) { if (!$scope.travelReimbursements && !$scope.prizes && !$scope.highSchoolers && !$scope.cost) { return true; } ...
var MINIFY = process.env.MINIFY; if (!MINIFY) throw "Please specify a build to minifiy, e.g. MINIFY=web ..." var config = require('./config.' + MINIFY); var webpack = require('webpack'); var objectAssign = require('object-assign-deep'); var config = objectAssign(config, { output: { filename: "[name].min.js" }...
import assert from 'assert' window.assert = assert
/** * Main JS file for Casper behaviours */ /*globals jQuery, document */ (function ($) { "use strict"; $(document).ready(function(){ // Taken from http://css-tricks.com/snippets/jquery/smooth-scrolling/ $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this....
// By: Christopher Buchholz // with heavy copying from, I mean use of as a Pattern, TokenMod var ChangeTokenImg = ChangeTokenImg || (function() { 'use strict'; var version = '0.1.31', lastUpdate = 1447948979, schemaVersion = 0.1, showHelp = function(id) { var who=getObj('player'...
var assert = require('assert') var saxStream = require('../lib/sax').createStream() var b = new Buffer('误') saxStream.on('text', function(text) { assert.equal(text, b.toString()) }) saxStream.write(new Buffer('<test><a>')) saxStream.write(b.slice(0, 1)) saxStream.write(b.slice(1)) saxStream.write(new B...
define( //begin v1.x content { "field-second-relative+0": "сейчас", "field-quarter-relative+-1": "в прошлом квартале", "field-weekday": "день недели", "field-mon-narrow-relative+0": "в этот пн.", "field-mon-narrow-relative+1": "в след. пн.", "field-wed-relative+0": "в эту среду", "field-wed-relative+1": "в следу...
var strftime = require("prettydate").strftime; var relative = require('relative-date'); module.exports = function() { $(formatDates) setInterval(formatDates, 10*1000) } var formatDates = function() { $("[data-date]").each(function(i, el){ var date = new Date($(this).data().date) if (!date.getYear()) { ...
var q = 0; function addParticleMap() { addPointCloud(scene, 1170, 0.1, [0,q--,0], "1170",eA,eA); addPointCloud(scene, 1170, 0.1, [0,q--,0], "1170",eAA,eAA); addPointCloud(scene, 1170, 0.1, [0,q--,0], "1170",eAAP,eAAP); addPointCloud(scene, 1170, 0.1, [0,q--,0], "1170",eAAPL,eAAPL); addPointCloud(scene, 1170, 0.1, [0,q-...
define('lodash/object/create', ['exports', 'lodash/internal/baseAssign', 'lodash/internal/baseCreate', 'lodash/internal/isIterateeCall'], function (exports, _lodashInternalBaseAssign, _lodashInternalBaseCreate, _lodashInternalIsIterateeCall) { 'use strict'; /** * Creates an object that inherits from the given `...
/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ test('should pass', () => {});
import { moduleForComponent, test } from 'ember-qunit'; moduleForComponent( 'sl-radio', 'Unit | Component | sl radio', { unit: true }); test( 'Disabled state applies disabled class, and attribute to input', function( assert ) { this.subject({ disabled: true }); assert.ok( this.$( 'input' ).prop( ...
/******/ (function(modules) { // webpackBootstrap /******/ // install a JSONP callback for chunk loading /******/ var parentJsonpFunction = window["webpackJsonp"]; /******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules) { /******/ // add "moreModules" to the modules object, /******/ ...
var searchData= [ ['handle',['Handle',['../classv8_1_1_handle.html',1,'v8']]], ['handle',['Handle',['../classv8_1_1_handle.html#aa7543a3d572565806a66e922634cc2f4',1,'v8::Handle::Handle()'],['../classv8_1_1_handle.html#aac16277f1131898a4a2ef664d051cc18',1,'v8::Handle::Handle(T *val)'],['../classv8_1_1_handle.html#a6...
import moment from 'moment'; moment.locale('ja'); import Pagination from 'rc-pagination/es/locale/ja_JP'; import DatePicker from '../date-picker/locale/ja_JP'; import TimePicker from '../time-picker/locale/ja_JP'; import Calendar from '../calendar/locale/ja_JP'; export default { locale: 'ja', Pagination: Pagina...
// Copyright 2006 The Closure Library Authors. All Rights Reserved. // // 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 requ...
/************************************************************* * * MathJax/jax/output/HTML-CSS/entities/s.js * * Copyright (c) 2010-2016 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
// Characters [].:/ are reserved for track binding syntax. const _RESERVED_CHARS_RE = '\\[\\]\\.:\\/'; const _reservedRe = new RegExp( '[' + _RESERVED_CHARS_RE + ']', 'g' ); // Attempts to allow node names from any language. ES5's `\w` regexp matches // only latin characters, and the unicode \p{L} is not yet supported...
var usage = require('../'); var pid = (process.argv[2])? parseInt(process.argv[2]): process.pid; setInterval(function() { var options = { keepHistory: true }; usage.lookup(pid, options, function(err, stat) { console.log(err, stat); }); }, 2000);
//used for the media picker dialog angular.module("umbraco").controller("Umbraco.Dialogs.LinkPickerController", function ($scope, eventsService, dialogService, entityResource, contentResource, mediaHelper, userService, localizationService, tinyMceService) { var dialogOptions = $scope.dialogOptions; var searc...
var fs = require('fs'); var ProtoBuf = require("protobufjs"); var builder = ProtoBuf.loadProtoFile(__dirname + "/cast_channel.proto"); var extensions = builder.build('extensions.api.cast_channel'); var messages = [ 'CastMessage', 'AuthChallenge', 'AuthResponse', 'AuthError', 'DeviceAu...
(function(a){a.fn.Touchdown=function(){return this.each(function(){$this=a(this);var b=$this.parents().length,c=$this.find("a"),d="Navigate",e;if($this.attr("title")){d=$this.attr("title")}e+='<option value="">'+d+"</option>";for(var f=0;f<c.length;f++){var g=a(c[f]),h=(g.parents().length-b)/2-1,i="";while(h>0){i+="  "...
'use strict'; var Promise = require('../ext/promise'); var EOL = require('os').EOL; var chalk = require('chalk'); var writeError = require('./write-error'); var DEFAULT_WRITE_LEVEL = 'INFO'; // Note: You should use `ui.outputStream`, `ui.inputStream` and `ui.write()` // i...
(function() { "use strict"; var root = this; var Chart = root.Chart; var helpers = Chart.helpers; Chart.Bar = function(context, config) { config.type = 'bar'; return new Chart(context, config); }; }).call(this);
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
iD.debug = true; mocha.setup({ ui: 'bdd', globals: [ '__onresize.tail-size', '__onmousemove.zoom', '__onmouseup.zoom', '__onkeydown.select', '__onkeyup.select', '__onclick.draw', '__onclick.draw-block' ] }); var expect = chai.expect; chai.use(functi...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.styles = void 0; var _extends2 = _int...
import './waves.css'; const vueWaves = {}; vueWaves.install = (Vue, options = {}) => { Vue.directive('waves', { bind(el, binding) { el.addEventListener('click', e => { const customOpts = Object.assign(options, binding.value); const opts = Object.assign({ ele: el, // 波纹作用元素 ...
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.is'); goog.require('Blockly.Msg'); Blockly.Msg.ADD_COMMENT = "Skrifa skýringu"; Blockly.Msg.AUTH = "Please authorize this app to enable your work to be saved and to allow it to be shared by you."; // untranslated Bloc...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.wrapLifecycle = exports.run = exports.Install = undefined; var _assign; function _load_assign() { return _assign = _interopRequireDefault(require('babel-runtime/core-js/object/assign')); } var _keys; function _load_keys() { ...
var buster = require("buster"); var args = require("../lib/posix-argv-parser"); var t = args.types; buster.testCase("types", { setUp: function () { this.a = args.create(); }, "integer": { "validates value as integer": function (done) { this.a.createOption(["-p"], t.integer()); ...
/** * @author Eberhard Graether / http://egraether.com/ * @author Mark Lundin / http://mark-lundin.com */ if( typeof require === 'function' && !THREE ) { var THREE = require( 'three' ); } THREE.TrackballControls = function ( object, domElement ) { var _this = this; var STATE = { NONE: -1, ROTATE: 0, ZOOM: ...
jQuery(function($){ /** * TRANSLATOR PLUGIN * * Example: * var trans = jQuery("input[type='text'], textarea").not(":hidden").Translatable(["es", "en"]) ===> convert input/textarea into translatable panel * * trans.trigger("trans_integrate") ==> encode translations into owner element (...
version https://git-lfs.github.com/spec/v1 oid sha256:9ebb4f98d1512ad94df125c0f8e8cfe5fb66f5abf078f099ef890502849b2f2e size 1981
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S12.14_A1; * @section: 12.14; * @assertion: The production TryStatement : try Block Catch is evaluated as follows: 2. If Result(1).type is not throw, return Result(1); * ...
'use strict'; var gulp = require('gulp'); var del = require('del'); var sass = require('gulp-sass'); var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-server'); var runSequence = require('run-sequence'); var assign = require('object-assign'); gulp.task('default', ['watch', 'server']); gul...
/** * @file 窗口大小改变捕获器 * @author mengke01(kekee000@gmail.com) */ define( function (require) { var lang = require('common/lang'); var observable = require('common/observable'); /** * 获取事件参数 * * @param {MouseEvent} e 事件 * @return {Object} 事件参数 ...
/** * @fileoverview Tests for config validator. * @author Brandon Mills * @copyright 2015 Brandon Mills * See LICENSE file in root directory for full license. */ "use strict"; //------------------------------------------------------------------------------ // Requirements //--------------------------------------...
/** * Copyright (c) 2014,Egret-Labs.org * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of c...
var path = require('path'); var Hapi = require('hapi'); module.exports = function(done) { var metrics = require('../../adapters/metrics')(); var server = new Hapi.Server(); server.connection(); server.views({ engines: { hbs: require('handlebars') }, relativeTo: path.resolve(__dirname, "..", ...
'use strict'; var _ = require('lodash'); var chai = require('chai'); var should = chai.should(); var expect = chai.expect; var bitcore = require('../..'); var UnspentOutput = bitcore.Transaction.UnspentOutput; describe('UnspentOutput', function() { var sampleData1 = { 'address': 'mszYqVnqKoQx4jcTdJXxwKAissE3J...
module.exports = function(grunt) { // Project Configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { jade: { files: ['app/views/**'], options: { livereload: true, }, }, ...
var assert = require('assert') var crypto = require('crypto') var ecurve = require('ecurve') var networks = require('../src/networks') var sinon = require('sinon') var BigInteger = require('bigi') var ECKey = require('../src/eckey') var fixtures = require('./fixtures/eckey.json') describe('ECKey', function() { des...
/** @module ember @submodule ember-htmlbars */ import { get } from 'ember-metal/property_get'; import { isArray } from "ember-metal/utils"; export default function bindAttrClassHelper(params) { var value = params[0]; if (isArray(value)) { value = get(value, 'length') !== 0; } if (value === true) { r...
import Ember from 'ember'; import Resolver from 'ember/resolver'; import loadInitializers from 'ember/load-initializers'; import config from './config/environment'; Ember.MODEL_FACTORY_INJECTIONS = true; const App = Ember.Application.extend({ modulePrefix: config.modulePrefix, podModulePrefix: config.podModul...
var vows = require('vows'); var assert = require('assert'); var suite = vows.describe('jStat.distribution'); require('../env.js'); suite.addBatch({ 'hypergeometric pdf': { 'topic': function() { return jStat; }, 'check pdf calculation': function(jStat) { var tol = 0.0000001; // How many...
/************************ * Test orderItemOptionTypeVm: * Creates viewmodels of the orderItemOptionVms for a given OrderItem. * See orderItemOptionVm.js * There is one OptionType vm for each option type (e.g., 'sauce"). * Each vm appears as one of the tabs on the orderItem view. *******************************/ d...