code
stringlengths
2
1.05M
import { humanize, titlecase } from 'ember-form-for/utils/strings'; import { module, test } from 'qunit'; module('Unit | Utility | humanize'); test('Humanize a camelCased string', (assert) => { assert.equal(humanize('myFirstName'), 'My first name'); }); test('Humanize a under_scored string', (assert) => { assert...
"use strict"; require("core-js/modules/es6.promise"); require("core-js/modules/es6.object.to-string"); Promise;
// API and functions is at setup.php (function($) { $( document ).ajaxStop(function() { console.log("me be loaded here"); $("#acf-field-latitude").prop('disabled', true); $("#acf-field-longitude").prop('disabled', true); if ( $('.goButton').length == 1 ) { } else { var $input = $('<input type="button" valu...
define(['aura/aura.extensions'], function (ExtManager) { 'use strict'; /*global describe:true, it:true, before:true, sinon:true */ describe('ExtManager', function () { it('should be a constructor', function () { ExtManager.should.be.a('function'); }); describe('ExtManager.prototype', function ...
angular.module('priceFetcher').service('ajaxCall',function($http){ this.ajaxPost = function(data){ var url = data.url; var dat = data.data; var successCb = data.success; var scope = data.scope; $http.post(url, dat). success(function(data, status, headers, config) { successCb(scope,data); })...
import { ENV } from '@ember/-internals/environment'; import { Object as EmberObject } from '@ember/-internals/runtime'; import { get, set, getWithDefault, Mixin, observer, computed } from '../..'; import { moduleFor, AbstractTestCase } from 'internal-test-helpers'; import { run } from '@ember/runloop'; import { destroy...
const hammerhead = window.getTestCafeModule('hammerhead'); const browserUtils = hammerhead.utils.browser; const testCafeCore = window.getTestCafeModule('testCafeCore'); const domUtils = testCafeCore.domUtils; const testCafeAutomation = window.getTestCafeModule('testCafeAutomation'); const TypeOptions = t...
/* AUTO-GENERATED. DO NOT MODIFY. Script: test/generate-tests.js Template: test/data/html/node.mustache Data: test/data/html/tests.js The MIT License (MIT) Copyright (c) 2007-2017 Einar Lielmanis, Liam Newman, and contributors. Permission is hereby granted, free of charge, to any person obtai...
/* @flow */ const express = require(`express`) const graphqlHTTP = require(`express-graphql`) const { store } = require(`../redux`) const bootstrap = require(`../bootstrap`) module.exports = async (program: any) => { let { port, host } = program port = typeof port === `string` ? parseInt(port, 10) : port // bo...
'use strict'; // Copyright 2011 Chris Williams <chris@iterativedesigns.com> // Require serialport binding from pre-compiled binaries using // node-pre-gyp, if something fails or package not available fallback // to regular build from source. var debug = require('debug')('serialport'); var binary = require('node-pre-...
var crypto = Npm.require('crypto'); var config = JSON.parse(Assets.getText('config.json')); function getFlags() { //对这个方法只做简单上传到bucket就好 var returnObj = { scope: config.BUCKET_NAME, deadline: 3600 + Math.floor(Date.now() / 1000) } return returnObj; } function urlsafeBase64Encode (jsonFlags) { var encoded ...
/*! @license Firebase v4.3.0 Build: rev-bd8265e Terms: https://firebase.google.com/terms/ */ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransactionStatus = undefined; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { ret...
var request = require('xhr') var base64 = require('base-64') var utf8 = require('utf8') module.exports = function createBlob (options, callback) { var opts = { url: 'https://api.github.com/repos/' + options.owner + '/' + options.repo + '/contents/' + options.path, headers: { authorization: 'token ' + options...
/* * grunt-contrib-requirejs * http://gruntjs.com/ * * Copyright (c) 2012 Tyler Kellen, contributors * Licensed under the MIT license. */ module.exports = function(grunt) { 'use strict'; // TODO: ditch this when grunt v0.4 is released grunt.util = grunt.util || grunt.utils; var requirejs ...
/* eslint-env node */ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); const mr_doc_utils_1 = require("mr-doc-utils"); const _ = require("lodash"); const log = new mr_doc_utils_1.default.Log(); class Log { constructor() { return log; } /** * Set up the logger. *...
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const UIEvent = require("./UIEvent.js"); const impl = utils.implSymbol; const convertKeyboardEventInit = require("./KeyboardEventInit").convert; function KeyboardEvent(typeArg) { if (!new.target) { throw new Ty...
// Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @unrestricted */ Timeline.EventsTimelineTreeView = class extends Timeline.TimelineTreeView { /** * @param {!Timeline.TimelineModeViewDelegate...
/** * Internal dependencies. */ var SyncTest = require('./sync'); var AsyncTest = require('./async'); var BaseTest = require('./base'); /** * Test factory. * * @param {Array} [title, meta, fn] * @returns {Base} test * @api public */ exports.create = function(params) { var title = params.shift(); var fn =...
/** * Created by Peter on 2017. 10. 9.. */ var mongoose = require('mongoose'); var townShortestSchema = new mongoose.Schema({ mCoord:{ mx:Number, my:Number }, pubDate : Date, fcsDate : Date, // forecast Date, 아래 날씨 데이터의 date, time와 동일한 date object 값. shortestData:{ date: ...
/* =============================================================================== Author: Eric M. Barnard - @ericmbarnard License: MIT (http://opensource.org/licenses/mit-license.php) ...
/** * Copyright 2012-2017, Plotly, Inc. * 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. */ /* eslint block-scoped-var: 0*/ /* eslint no-redeclare: 0*/ 'use strict'; module.exports = computeTickMarks; var Axes = requ...
// Copyright 2012 Mark Cavage, Inc. All rights reserved. // // Restify supports both a client and server API, and in the essence of not // loading the kitchen sink on clients, the exports here is chunked up into // client and server; note clients will have to opt in by setting the env // var "RESTIFY_CLIENT_ONLY", but...
define( //begin v1.x content { "group": ".", "percentSign": "%", "exponential": "E", "scientificFormat": "#E0", "percentFormat": "#,##0%", "list": ";", "infinity": "∞", "minusSign": "-", "decimal": ",", "superscriptingExponent": "×", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", "currencyFo...
'use strict'; //Setting up route angular.module('days').config(['$stateProvider', function($stateProvider) { // Days state routing $stateProvider. state('listDays', { url: '/days', templateUrl: 'modules/days/views/list-days.client.view.html' }). state('createDay', { url: '/days/create', template...
"use strict"; module.exports = function (grunt) { <% if (gruntcompass) { %> grunt.loadNpmTasks('grunt-contrib-compass');<% } %> <% if (gruntLess || gruntcompass || gruntBabel) { %> grunt.loadNpmTasks('grunt-contrib-watch');<% } %> <% if (gruntTypescript || gruntcoffee || gruntBabel) { %> grunt.loadNpmTasks('grun...
'use strict'; function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && ...
/*! * jQuery JavaScript Library v1.11.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-css,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var/cssExpand,-css/var/isHidd...
/* * Sample usage. */ //var amfcc = require('node_amf_cc'); var amfcc = require('../Build/release/node_amf_cc'); var encoded = amfcc.serialize({foo: 'bar'}); var decoded = amfcc.deserialize(encoded); console.log(decoded.value); // prints {foo: 'bar'} console.log(decoded.consumed); // prints 19, the encoded ...
import TextBlock from '../../model/TextBlock' class Codeblock extends TextBlock {} Codeblock.type = "codeblock" export default Codeblock
/* * modal.js * Made by shash7 * Fork this project at github * https://github.com/shash7/modaljs * Licensed under the MIT license */ ;(function($, window, document, undefined) { "use strict"; function Modal(settings) { // Defaults settings = settings || {}; settings.backdrop = settings.backdrop...
'use strict' const path = require('path') const { DepGraph } = require('dependency-graph') module.exports = function () { const graph = new DepGraph() return { add(message) { message.parent = path.resolve(message.parent) message.file = path.resolve(message.file) graph.addNode(message.parent)...
var sinon = require('sinon'), expect = require('chai').expect, RemoteProcessLogger = require('../../../../lib/daemon/common/RemoteProcessLogger') describe('RemoteProcessLogger', function () { it('should swallow log if silent option is true', function () { var logger = new RemoteProcessLogger({ silent: ...
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var strings={prefixAgo:null,prefixFromNow:null,suffixAgo:"ކުރިން",suffixFromNow:"ފަހުން",seconds:"ސިކުންތުކޮޅެއް",minute:"މިނިޓެއްވަރު",minutes:"%d މިނިޓު",hour:"ގަޑިއެއްވަރު",hours:"ގާތްގަނޑަކަށް %d ގަޑިއިރު",day:"އެއް ދުވަސް",d...
module.exports = { options: { buildDir: "build/releases", cacheDir: "build/cache", version : "<%= package.config['nw-js-version'] %>", winIco : "build/resources/icons/icon-16-32-48-256.ico", macIcns : "build/resources/icons/icon-1024.icns", macPlist: { CFBundleName : "<%= package.config['display-...
import React, { Component } from 'react'; import { FilterService } from 'primereact/api'; import { DomHandler, classNames, ObjectUtils } from 'primereact/utils'; import { Ripple } from 'primereact/ripple'; import { InputText } from 'primereact/inputtext'; import { tip } from 'primereact/tooltip'; import { VirtualScroll...
module.exports = require("./build");
"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.ListItemRoot = exports.overridesResolv...
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Inferno = {})); }(this, (function (e...
// CodeMirror, copyright (c) by Marijn Haverbeke and others // Distributed under an MIT license: https://codemirror.net/LICENSE var root = typeof globalThis !== 'undefined' ? globalThis : window; root.CodeMirror = {}; (function() { "use strict"; function splitLines(string){ return string.split(/\r?\n|\r/); }; funct...
/** * machina - A library for creating powerful and flexible finite state machines. Loosely inspired by Erlang/OTP's gen_fsm behavior. * Author: Jim Cowart (http://ifandelse.com) * Version: v1.0.0 * Url: http://machina-js.org/ * License(s): MIT, GPL */ (function (root, factory) { /* istanbul ignore if */ if...
module.exports = [ { desc: 'should pass when set to false', input: '<input type="radio">', opts: { 'input-radio-req-name': false }, output: 0 }, { desc: 'should pass when input has no type', input: '<input>', opts: { 'input-radio-req-name': true }, ...
var renderer = PIXI.autoDetectRenderer(800, 600); document.body.appendChild(renderer.view); // create the root of the scene graph var stage = new PIXI.Container(); // load spine data PIXI.loader .add('spineboy', '_assets/spine/spineboy.json') .load(onAssetsLoaded); stage.interactive = true; function onAsset...
import { declare } from "@babel/helper-plugin-utils"; import syntaxFlow from "@babel/plugin-syntax-flow"; import { types as t } from "@babel/core"; export default declare(api => { api.assertVersion(7); const FLOW_DIRECTIVE = "@flow"; let skipStrip = false; return { inherits: syntaxFlow, visitor: { ...
/* * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights...
version https://git-lfs.github.com/spec/v1 oid sha256:ce80f9f9f4ccb0af417d0e92ee1c840554cd7331286cd3fbe3e1e204edbedab8 size 3874
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<6fcb7222862d5c09826d576a3309f63d>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disabl...
var tape = require('tape') var tests = require('abstract-record-store/tests') var DistributedRecordStore = require('../src') var MerkleDAGStore = require('merkledag-store') var common = { setup: function (t, cb) { var mdagStore = new MerkleDAGStore() var drs = new DistributedRecordStore(mdagStore) cb(nul...
var assert = require('assert'); var Lazy = require('lazy'); var expresso = expresso; function range(i, j) { var r = []; for (;i<j;i++) r.push(i); return r; } exports['take'] = function () { var lazy = new Lazy; var data = []; var executed = 0; lazy.take(6).join(function (xs) { asse...
/* * Copyright (c) 2014 * * This file is licensed under the Affero General Public License version 3 * or later. * * See the COPYING-README file. * */ /** * The file upload code uses several hooks to interact with blueimps jQuery file upload library: * 1. the core upload handling hooks are added when initiali...
'use strict'; module.exports = help; const fs = require('then-fs'); const path = require('path'); function help(args, config) { let root = args.root; return getHelpItem(args, config).then(item => { return fs.readFile(path.join(root, item), 'utf8'); }); } function getHelpItem(args, config) { return new Pr...
import React from 'react'; import cheerio from 'cheerio'; import flatten from 'lodash/flatten'; import unique from 'lodash/uniq'; import compact from 'lodash/compact'; import createWrapperComponent from './ReactWrapperComponent'; import { instHasClassName, childrenOfInst, parentsOfInst, buildInstPredicate, in...
/* Copyright (c) 2015 Intel Corporation. All rights reserved. * Use of this source code is governed by a MIT-style license that can be * found in the LICENSE file. */ var exec = require("cordova/exec"); var savedGames = { default:null, }; if( window.localStorage.getItem("GooglePlaySavedGames")){ try{ ...
var assert = require('assert'); module.exports = { 'name': 'Outlook Express 2000/2003', 'test': { 'style': [ //TEXT 'text-shadow', 'white-space', 'word-wrap', //BG 'opacity', //BOX 'box-shadow', 'max-width', 'max-height', //POSITION 'opacity', 'outline', //TABLE '...
function picturePen() { if ($('#new_container').length) { var canvas = $('canvas')[0]; var ctx = canvas.getContext('2d'); var img = document.createElement('img'); var width = 500; var height = 400; var cur_color = '#000'; var cur_size = 5; var hiddenCanvas = document.createElement('canvas'); var ...
/* * Copyright (C) 2013 Google Inc. 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 conditio...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ /*globals window __webpack_hash__ */ if(module.hot) { var lastData; var upToDate = function upToDate() { return lastData.indexOf(__webpack_hash__) >= 0; }; var check = function check() { module.hot.check(function...
{ "ADP_currencyISO" : "Andorska pezeta (ADP)", "ADP_currencyPlural" : "Andorijskih pezeta", "ADP_currencySingular" : "Andorijske pezete", "ADP_currencySymbol" : "ADP", "AED_currencyISO" : "Ujedinjeni arapski emirati dirham", "AED_currencyPlural" : "UAE dirama", "AED_currencySingular" : "UAE dirama", "AED_curren...
/* 说明: 请勿修改 header.js 和 footer.js 用途: 自动拼接暴露方式 命令: grunt release 中 concat */ (function(global, factory) { if (typeof exports === 'object' && typeof module !== 'undefined') { module.exports = factory(); } else if (typeof define === 'function' && (define.amd || define.cmd)) { define(fa...
const v1 = require('./v1'); module.exports = { v1 };
dojo.provide("dojo.testsDOH._base._loader.hostenv_rhino"),tests.register("testsDOH._base._loader.hostenv_rhino",[function(e){var t=dojo.moduleUrl("testsDOH._base._loader","getText.txt"),o=(o=new String(readText(t))).replace(/[\r\n]+$/,"");e.assertEqual("dojo._getText() test data",o)}]);
/* * 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. */ '...
'use strict'; var chalk = require('chalk'); var path = require('path'); var Promise = require('../ext/promise'); var assign = require('ember-cli-lodash-subset').assign; function AssetPrinterSize(options) { assign(this, options); } AssetPrinterSize.prototype.print = function () { var filesize = require('fil...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 20c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8zM10 7.5l6 4.5-6 4.5v-9z" opacity=".3" /><path d="M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10zm0-1...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: String.prototype.slice (start, end) es5id: 15.5.4.13_A1_T6 description: > Arguments are x and number, and instance is new String, x is undefined variable ---*/ //sinc...
Prism.languages.rip={comment:/#.*/,keyword:/(?:=>|->)|\b(?:class|if|else|switch|case|return|exit|try|catch|finally|raise)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:true|false)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,character:/\B`[^\s`'",.:;#\/\\()<>...
/** * Collection of Users * */ var User = require('./User'); module.exports = Backbone.Collection.extend({ model: User, idAttribute: "_id", url: function(){ return hackdash.apiURL + '/users/team'; }, });
var Test = /*#__PURE__*/function () { "use strict"; function Test() { babelHelpers.classCallCheck(this, Test); } babelHelpers.createClass(Test, [{ key: "test", get: function get() { return 5 + 5; } }]); return Test; }();
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /*! * Yet Another DataTables Colu...
'use strict'; // The order of these transforms is informed by how they were done in the // requirejs optimizer. var transforms = [ require('./plugins'), require('./stubs'), require('./defines'), require('./packages') ]; /** * Chains all the default set of transforms to return one function to be used * for t...
exports.BattleAliases = { // mega evos "megaabomasnow": "Abomasnow-Mega", "megaabsol": "Absol-Mega", "megaaerodactyl": "Aerodactyl-Mega", "megaaggron": "Aggron-Mega", "megaalakazam": "Alakazam-Mega", "megaampharos": "Ampharos-Mega", "megabanette": "Banette-Mega", "megablastoise": "Blastoise-Mega", "megablazik...
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _typeof = typeof Symbol === "function" && typeof Symbol.i...
KISSY.add("switch", function() { }, {requires:["dom", "uibase/position"]});
import H from '../parts/Globals.js'; import U from '../parts/Utilities.js'; var defined = U.defined, extend = U.extend; import '../parts/Axis.js'; import '../parts/Series.js'; /** * A mock point label configuration. * * @interface Annotation.MockLabelOptionsObject *//** * X value translated to x axis scale ...
/** * Created by knut on 14-11-18. */ describe('when using the ganttDb',function() { var gDb; var moment = require('moment'); beforeEach(function () { //gantt = require('./parser/gantt').parser; gDb = require('./ganttDb'); gDb.clear(); //ex.yy.parseError = parseError;...
define([ 'dojo/_base/declare', 'dojo/_base/lang', 'dojo/on', 'dojo/topic', 'dojo/dom-construct', 'dojo/dom', 'dojo/query', 'dojo/when', 'dojo/request', 'dijit/layout/ContentPane', 'dijit/layout/BorderContainer', 'dijit/TooltipDialog', 'dijit/Dialog', 'dijit/popup', 'dijit/TitlePane', 'dijit/registry', 'dijit/fo...
'use strict'; var Command = require('../models/command'); var SilentError = require('silent-error'); var path = require('path'); var existsSync = require('exists-sync'); var defaultPort = 7357; module.exports = Command.extend({ name: 'test', description: 'Runs your app\'s test suite.', aliases: ['t...
'use strict'; var self = getLogs; module.exports = self; var async = require('async'); var fs = require('fs'); var readline = require('readline'); var path = require('path'); function getLogs(req, res) { var bag = { reqQuery: req.query, resBody: [], component: 'workers', skipRead: false }; bag...
(function (global, factory) { if (typeof define === "function" && define.amd) { define([], factory); } else if (typeof exports !== "undefined") { factory(); } else { var mod = { exports: {} }; factory(); global.bootstrapTableAfZA = mod.exports; ...
'use strict'; var express = require('express'); var controller = require('./item.controller'); var router = express.Router(); router.get('/', controller.index); router.get('/:id', controller.show); router.post('/', controller.create); router.put('/:id', controller.update); router.patch('/:id', controller.update); ro...
[...a,] = [];
version https://git-lfs.github.com/spec/v1 oid sha256:2bbe14a051a433131ff7020e2f32f980d659419297abc575f0950de495f8d2f8 size 5987
var _ = require('lodash'); module.exports = function() { return { name: 'link', process: function(url, title, doc) { return _.template('{@link ${url} ${title} }', { url: url, title: title }); } }; };
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
var todoStorage = (function () { var STORAGE_KEY = 'todos-vuejs', todos = null return { fetch: function () { if (!todos) todos = JSON.parse(localStorage.getItem(this.STORAGE_KEY) || '[]') return todos }, save: function () { localStorage.setItem...
define([ 'underscore' ], function(_) { function bagEquality(a, b, predicate) { // for every item in a... return _.all(a, function(ai) { // create a version of predicate which checks equality to ai var boundPredicate = _.partial(predicate, ai); // find everyth...
// Generated by CoffeeScript 1.6.2 var RedisDb, defaultOptions, redis; redis = require('redis'); defaultOptions = { prefix: 'ShareJS:', hostname: null, port: null, redisOptions: null, auth: null, client: null, testing: false }; module.exports = RedisDb = function(options) { var client, k, keyForDoc, ...
// compat Array.prototype.forEach = Array.prototype.forEach || function(callback,thisObject){ for(var i=0,len=this.length;i<len;i++) callback.call(thisObject,this[i],i,this) }; Array.prototype.map = Array.prototype.map || function(callback,thisObject){ for(var i=0,res=[],len=this.length;i<len;i++) res[i] = callba...
/* # Sample data and functions for Morris charts # # Copyright © SoftLayer, an IBM Company # Code and documentation licensed under MIT */ $(function() { Morris.Line({ element: 'morris-line-chart', data: [{ minute: '2014-02-24 11:00', cpuTime: '0.42', dataIn: '0.8', dataOut: '0...
/* Tabulator v4.0.1 (c) Oliver Folkerd */ var FrozenRows = function FrozenRows(table) { this.table = table; //hold Tabulator object this.topElement = document.createElement("div"); this.rows = []; this.displayIndex = 0; //index in display pipeline }; FrozenRows.prototype.initialize = function () { this.rows = []...
/************************************************************* * * MathJax/jax/output/SVG/fonts/STIX-Web/SansSerif/BoldItalic/Main.js * * Copyright (c) 2013-2016 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complianc...
'use strict' var inherits = require('node-xmpp-core').inherits var Mechanism = require('./mechanism') /** * @see http://xmpp.org/extensions/xep-0178.html */ function External () {} inherits(External, Mechanism) External.prototype.name = 'EXTERNAL' External.prototype.auth = function () { return (this.authzid) }...
// Simply 'inherites' helpers from AccountsTemplates Template.atTitle.helpers(AccountsTemplates.atTitleHelpers);
var path = require('path'); var test = require('tape'); var resolve = require('../'); test('$NODE_PATH', function (t) { t.plan(4); resolve('aaa', { paths: [ __dirname + '/node_path/x', __dirname + '/node_path/y' ], basedir: __dirname, }, fun...
module.exports = require("core-js/library/fn/math/expm1");
const chai = require('chai'); const assert = chai.assert; describe('my test suite', function () { it('should work', function () { assert(true); }); });
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = require('call-bind/callBound'); var regexTester = require('../helpers/regexTester'); var every = require('../helpers/every'); var $charAt = callBound('String.prototype.charAt'); var $strSlice = c...
/** * @fileoverview Main Solium object definition * @author Raghav Dua <duaraghav8@gmail.com> */ "use strict"; const solidityParser = require("solparse"), solExplore = require("sol-explore"), fs = require("fs"), path = require("path"), util = require("util"), EventEmitter = require("events").Event...
/** * Module dependencies */ var assign = require('lodash.assign'); /** * The remote partial composing middleware */ module.exports = function(app) { return function render(req, res, next) { var _end = res.end; var _write = res.write; var _writeHead = res.writeHead; var _headers; res.writeH...
/* * insert-test.js: Tests for inserting routes into a normalized routing table. * * (C) 2011, Nodejitsu Inc. * MIT LICENSE * */ var assert = require('assert'), vows = require('vows'), director = require('../../../lib/director'); vows.describe('director/router/http/insert').addBatch({ "An instanc...
'use strict'; /** * @ngdoc directive * @name firepokerApp.directive:contentEditable * @description * # contentEditable */ angular.module('firePokerApp') .directive('contenteditable', function () { return { require: 'ngModel', restrict: 'A', link: function postLink(scope, element, attrs, ng...