code
stringlengths
2
1.05M
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno')) : typeof define === 'function' && define.amd ? define(['exports', 'inferno'], factory) : (factory((global.Inferno = global.Inferno || {}),global.Inferno)); }(this, (function (exp...
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Bold/All.js * * Copyright (c) 2009-2014 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Li...
/** * filesize * * @author Jason Mulligan <jason.mulligan@avoidwork.com> * @copyright 2013 Jason Mulligan * @license BSD-3 <https://raw.github.com/avoidwork/filesize.js/master/LICENSE> * @link http://filesizejs.com * @module filesize * @version 1.9.6 */ ( function ( global ) { "use strict"; var base = 10...
// Initialize a jQuery object define([ "../core", "./var/rsingleTag", "../traversing/findFilter" ], function( jQuery, rsingleTag ) { // A central reference to the root jQuery(document) var rootjQuery, // A simple way to check for HTML strings // Prioritize #id over <tag> to avoid XSS via location.hash...
'use strict'; var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i; var customRuleCode = require('./dotjs/custom'); var metaSchema = require('./refs/json-schema-draft-07.json'); module.exports = { add: addKeyword, get: getKeyword, remove: removeKeyword, validate: validateKeyword }; var definitionSchema = { definition...
/** * @author TristanVALCKE / https://github.com/TristanVALCKE */ //Todo console.warn("Todo: Unit tests of StereoCamera")
/** * Convert a typed array to a Buffer without a copy * * Author: Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * License: MIT * * `npm install typedarray-to-buffer` */ /* eslint-disable no-proto */ var isTypedArray = require('is-typedarray').strict module.exports = function (arr) { // If ...
; (function() { window.require(["ace/snippets/sass"], function(m) { if (typeof module == "object" && typeof exports == "object" && module) { module.exports = m; } }); })(); ...
/** * @fileoverview Rule to enforce spacing before and after keywords. * @author Toru Nagashima * @copyright 2015 Toru Nagashima. All rights reserved. * See LICENSE file in root directory for full license. */ "use strict"; //------------------------------------------------------------------------------ // Requir...
'use strict'; var assert = require('assert'), selectorHelpers = require('../../lib/selector-helpers'), groot = require('../../lib/groot'), path = require('path'), fs = require('fs'), equal = require('deep-equal'); describe('selectorHelpers - constructSelector', function () { var expectedSelecto...
/* @flow */ // issue #1197 class Foo { baz: string; bar() {} hello() { this. } }
/** * Gumby Framework * --------------- * * Follow @gumbycss on twitter and spread the love. * We worked super hard on making this awesome and released it to the web. * All we ask is you leave this intact. #gumbyisawesome * * Gumby Framework * http://gumbyframework.com * * Built with love by your friends @digitalsurgeo...
/* Copyright 2013-2015 ASIAL CORPORATION 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 in writing, so...
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModu...
'use strict'; var multimatch = require('multimatch'); var findup = require('findup-sync'); var path = require('path'); function arrayify(el) { return Array.isArray(el) ? el : [el]; } function camelize(str) { return str.replace(/-(\w)/g, function(m, p1) { return p1.toUpperCase(); }); } module.exports = func...
module.exports = { prefix: 'fas', iconName: 'balance-scale', icon: [640, 512, [], "f24e", "M352 448h168c13.255 0 24 10.745 24 24v16c0 13.255-10.745 24-24 24H120c-13.255 0-24-10.745-24-24v-16c0-13.255 10.745-24 24-24h168V153.324C264.469 143.04 246.836 121.778 241.603 96H120c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-2...
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBubbleChart = (props) => ( <SvgIcon {...props}> <circle cx="7.2" cy="14.4" r="3.2"/><circle cx="14.8" cy="18" r="2"/><circle cx="15.2" cy="8.8" r="4.8"/> </SvgIcon> ); EditorBubbleChart = pure(EditorBub...
/** * jquery.mask.js * @version: v1.14.9 * @author: Igor Escobar * * Created by Igor Escobar on 2012-03-10. Please report any bug at http://blog.igorescobar.com * * Copyright (c) 2012 Igor Escobar http://blog.igorescobar.com * * The MIT License (http://www.opensource.org/licenses/mit-license.php) * * Permiss...
/** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://...
/** * Webpack config for development */ module.exports = require('./webpack.make')({ BUILD: false, TEST: false, DEV: true });
module.exports = (grunt) => { require('load-grunt-tasks')(grunt) grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { options: { jshintrc: '.jshintrc' }, all: { src: ['./js/bootstrap-datetimepicker.js'] } }, versioncheck: { target: { ...
var json = '{"menu":{"id": "file","value": \n[[1,2,3],[4,5,6] ],\n"popup":{"menuitem":[{"value": ["one","two"],\n"onclick":"CreateNewDoc()"},{"value":"Close","onclick":"CloseDoc()"}]}}}', json_pp = require('../pretty-data').pd.json(json), json_min = require('../pretty-data').pd.jsonmin(json); console.l...
/* jshint node: true */ 'use strict'; var through = require('through2'); var gutil = require('gulp-util'); var extend = require('object-assign'); var headerPlugin = function(headerText, data) { headerText = headerText || ''; var stream = through.obj(function(file, enc, cb) { var template...
/* Italian initialisation for the jQuery UI date picker plugin. */ /* Written by Apaella (apaella@gmail.com). */ (function($) { $.datepick.regional['it'] = { clearText: 'Svuota', clearStatus: 'Annulla', closeText: 'Chiudi', closeStatus: 'Chiudere senza modificare', prevText: '&#x3c;Prec', prevStatus: 'Mese prece...
/* global console, jQuery */ /* file version and date: 3.2.0 2016-08-25 17:28 */ "use strict"; // Object.assign Polyfill - https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Object/assign - ONLY FOR IE11 if (!Object.assign) { Object.defineProperty(Object, 'assign', { enumera...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.11.3-master-3fe7d76 */ function MdSubheaderDirective(e,a,r,n){return{restrict:"E",replace:!0,transclude:!0,template:'<div class="md-subheader"> <div class="md-subheader-inner"> <span class="md-subheader-content"></span> </...
// Test the polar area controller describe('Radar controller tests', function() { it('Should be constructed', function() { var chart = window.acquireChart({ type: 'radar', data: { datasets: [{ data: [] }], labels: [] } }); var meta = chart.getDatasetMeta(0); expect(meta.type).toBe('r...
// SQLite3 - Cordova (PhoneGap) // ---------- var Sqlite3 = require('../base/sqlite3'); var Cordova = Sqlite3.extend({ query: function() { }, getConnection: function() { window.openDatabase(/* name, version, display_name, size */); } }); module.exports = Cordova;
/*! * inferno-dom v0.7.12 * (c) 2016 Dominic Gannaway * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.InfernoDOM = factory()); }(th...
// I18N constants // LANG: "en", ENCODING: UTF-8 | ISO-8859-1 // Author: Broxx, <broxx@broxx.com> SpellChecker.I18N = { "CONFIRM_LINK_CLICK" : "Wollen Sie diesen Link oeffnen", "Cancel" : "Abbrechen", "Dictionary" : "Woerterbuch", "Finis...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("moment"), require("react-dom"), require("react"), require("react-onclickoutside")); else if(typeof define === 'function' && define.amd) define(["moment", "rea...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["expect"] = factory(); else root["expect...
module.exports={title:"Beats by Dre",slug:"beatsbydre",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Beats by Dre</title><path d="M12.0099 15.5996A3.5995 3.5995 0 1 0 8.4103 12a3.5995 3.5995 0 0 0 3.5996 3.5996zm0-15.5981a11.9985 11.9985 0 0 0-3.5996.552v6.6471A5.9992 5.9992 0 1 1 6...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v3.3.2 * @link http://www.ag-grid.com/ * @license MIT */ var columnGroup_1 = require("../entities/columnGroup"); var originalColumnGroup_1 = require("../entities/originalColumnGroup"); // takes in ...
/** * @license Highcharts JS v5.0.13 (2017-07-27) * Boost module * * (c) 2010-2017 Highsoft AS * Author: Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; (function(factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; } else { fac...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
/* Language: Django Requires: xml.js Author: Ivan Sagalaev <maniac@softwaremaniacs.org> Contributors: Ilya Baryshev <baryshev@gmail.com> Category: template */ function(hljs) { var FILTER = { className: 'filter', begin: /\|[A-Za-z]+:?/, keywords: 'truncatewords removetags linebreaksbr yesno get_digi...
var b = 42; window.exposed = window.b;
/*! * jquery.inputmask.phone.extensions.min.js * http://github.com/RobinHerbots/jquery.inputmask * Copyright (c) 2010 - 2015 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 3.1.52 */ !function(a){"function"==typeof define&&define.amd?define(["jquery","./jqu...
!function(n){function r(e){if(t[e])return t[e].exports;var o=t[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var t={};r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:e})},r.n=function(n){var t=n&&n.__esModule?function(){return ...
/*! * errorhandler * Copyright(c) 2010 Sencha Inc. * Copyright(c) 2011 TJ Holowaychuk * MIT Licensed */ /** * Module dependencies. */ var accepts = require('accepts') var escapeHtml = require('escape-html'); var fs = require('fs'); /** * Error handler: * * Development error handler, providing stack traces ...
CKEDITOR.plugins.setLang("print","sl",{toolbar:"Natisni"});
"use strict"; var assert = require("assert"); var testUtils = require("./helpers/util.js"); var Promise = adapter; describe("github-373", function() { specify("unhandled unsuccessful Promise.join should result in correct error being reported", function() { var err = new Error("test"); var rejected...
'use strict'; /*! * Module dependencies. */ var RegExpClone = require('regexp-clone') /** * Clones objects * * @param {Object} obj the object to clone * @param {Object} options * @return {Object} the cloned object * @api private */ var clone = exports.clone = function clone (obj, options) { if (obj === u...
var assert = require('assert'); var battle; describe('Choice parser', function () { afterEach(function () { battle.destroy(); }); it('should force Struggle usage on move attempt for no valid moves', function () { battle = BattleEngine.Battle.construct(); battle.join('p1', 'Guest 1', 1, [{species: "Mew", abil...
angular.module("dialogs.default-translations",["pascalprecht.translate"]).config(["$translateProvider",function(n){n.translations("en-US",{DIALOGS_ERROR:"Error",DIALOGS_ERROR_MSG:"An unknown error has occurred.",DIALOGS_CLOSE:"Close",DIALOGS_PLEASE_WAIT:"Please Wait",DIALOGS_PLEASE_WAIT_ELIPS:"Please Wait...",DIALOGS_P...
export { default } from './Menu';
define( "dojo/cldr/nls/nl/number", //begin v1.x content { "group": ".", "percentSign": "%", "exponential": "E", "scientificFormat": "#E0", "percentFormat": "#,##0%", "list": ";", "infinity": "∞", "minusSign": "-", "decimal": ",", "nan": "NaN", "perMille": "‰", "decimalFormat": "#,##0.###", "currencyFormat"...
/** * @author alteredq / http://alteredqualia.com/ * @author mrdoob / http://mrdoob.com/ */ THREE.PointLightHelper = function ( light, sphereSize ) { this.light = light; this.light.updateMatrixWorld(); var geometry = new THREE.SphereGeometry( sphereSize, 4, 2 ); var material = new THREE.MeshBasicMaterial( { w...
/*! * Module dependencies. */ var ReadPref = require('mongodb').ReadPreference , ObjectId = require('./types/objectid') , cloneRegExp = require('regexp-clone') , sliced = require('sliced') , mpath = require('mpath') , ms = require('ms') , MongooseBuffer , MongooseArray , Document /*! * Produces a c...
(function(e,t){"use strict";function n(){return t.qoopido.initialize("transport",e,arguments)}"function"==typeof define&&define.amd?define(["./base","./function/merge"],n):n()})(function(e){"use strict";var t;return t=e.base.extend({setup:function(t){var n=this;return n._settings=e["function/merge"]({},n._settings,t),n...
import baseIsNative from './_baseIsNative.js'; import getValue from './_getValue.js'; /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undef...
// Generated by CoffeeScript 1.3.3 (function() { var Lexer, RESERVED, compile, fs, lexer, parser, path, vm, _ref, __hasProp = {}.hasOwnProperty; fs = require('fs'); path = require('path'); _ref = require('./lexer'), Lexer = _ref.Lexer, RESERVED = _ref.RESERVED; parser = require('./parser').parser; ...
(function(){var c=window.AmCharts;c.AmGanttChart=c.Class({inherits:c.AmSerialChart,construct:function(a){this.type="gantt";c.AmGanttChart.base.construct.call(this,a);this.cname="AmGanttChart";this.period="ss"},initChart:function(){this.dataChanged&&this.processGanttData();c.AmGanttChart.base.initChart.call(this)},parse...
/* Highcharts JS v5.0.5 (2016-11-29) (c) 2009-2016 Torstein Honsi License: www.highcharts.com/license */ (function(a){"object"===typeof module&&module.exports?module.exports=a:a(Highcharts)})(function(a){(function(a){var h=a.Chart,k=a.each,q=a.pick,r=a.addEvent;h.prototype.callbacks.push(function(f){function a(){v...
YUI.add("lang/datatype-date-format_pl-PL",function(e){e.Intl.add("datatype-date-format","pl-PL",{a:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],A:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],b:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],B:["stycznia","lut...
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("lang/calendar-base_zh-Hans",function(e){e.Intl.add("calendar-base","zh-Hans",{very_short_weekdays:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"],fir...
var ffi = require('ffi'), ref = require('ref'), RefArray = require('ref-array'), Struct = require('ref-struct'), Union = require('ref-union'), _library = require('./../../'); loadDependentSymbols(); _library.php_lcg_globals = Struct({}); _library.php_lcg_globals.size = 1; _library._preload['php_l...
import mod1652 from './mod1652'; var value=mod1652+1; export default value;
// flow-typed signature: f6e603c55941b36c9d8577c99c4196b5 // flow-typed version: <<STUB>>/nyc_v^11.0.2/flow_v0.53.1 /** * This is an autogenerated libdef stub for: * * 'nyc' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * community ...
"use strict"; import he from 'he'; import assert from 'assert'; import * as views from './views'; import {Observable, config} from 'rx'; import {listActions} from './appUtils'; import {h1, div, pre, strong} from '@cycle/dom'; import { compose, is, length, isNil, filter, find, propEq, not, has, curr...
'use strict' const trips = require('vbb-trips') const pkg = require('../package.json') const {formatDate, readTimeFrame, writeFile} = require('./lib') const buildFeedInfo = (file) => { return readTimeFrame() .then(({beginning, end}) => { return writeFile(file, `\ feed_publisher_name,feed_publisher_url,feed_lang,...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global','sap/ui/core/library'],function(q){"use strict";sap.ui.getCore().initLibrary({name:"sap.ui.dt",vers...
$.fn.signalsTransformsTable.transforms.DFT={ name:'Discrete Fourier transform', abbr:'DFT', wikipedia:'http://en.wikipedia.org/wiki/Discrete_Fourier_transform', timeFnTemplate:['x[n]','y[n]'], freqFnTemplate:['X[k]','Y[k]'], sections:{ definitions:function(t,T,x,X){return{ time:[ {formula:{ item:x(t...
#! /usr/bin/env node /* Usage: limonade [input] [output] Params: input input folder to be scanned for images output output folder where the spritesheet will be saved Options: -h, --help show help -v, --version show version -f, --filename name of the spritesheet without ...
var countdown = require('..') , assert = require('assert') , mockdate = require('mockdate') describe('countdown', function() { after(mockdate.reset) it('should be empty when count down reached', function() { mockdate.set('2000-01-01') assert.equal(countdown('2000-01-01T00:00:00.000Z'), '') }) it...
// adopted from: https://github.com/fshost/node-dir // Copyright (c) 2012 Nathan Cartwright <fshost@yahoo.com> (MIT) var fs = require('fs') var path = require('path') var modifyStats = require('./modStats') var extend = require('../object/extend') var matches = require('../collection/contains'...
var { Cc, Ci, Cu } = require('chrome'); var addonSelf = require('sdk/self'); var actionButton = require('sdk/ui/button/action'); var tabs = require("sdk/tabs"); var mod = require("sdk/page-mod"); var protocol = require('./protocolCtrl'); var nativeService = require('./nativeService'); var pageUrl = addonSelf.data.url('...
import { themr } from 'react-css-themr'; import Checkbox from './checkbox'; export default themr('checkbox')(Checkbox);
'use strict' module.exports = SlackRtmDataStore // slackRtmClient should be of type RtmClient from @slack/client function SlackRtmDataStore(slackRtmClient) { this.rtmClient = slackRtmClient } SlackRtmDataStore.prototype.teamId = function() { return this.rtmClient.activeTeamId } SlackRtmDataStore.prototype.chann...
const Client = require("komada"); const Settings = require("./config/settings.json"); Client.start({ botToken: Settings.token, ownerID: Settings.ownerID, clientID: Settings.clientID, prefix: Settings.prefix, clientOptions: { fetchAllMembers: true } });
const exp = module.exports = {} // require const { promisify: prm } = require('util') const { join, dirname } = require('path') const fs = require('fs'), readFile = prm(fs.readFile), access = prm(fs.access) const express = require("express") const semver = require("semver") // params require('./params') new Msa.Pa...
module.exports = function() { console.log('oh'); };
app.module("core", function(modules, name) { // import whats needed var $$ = modules.$$; var utils = modules.utils, local_storage = utils.storage; var libs = modules.libs, randomString = libs.randomString, Monitor = libs.Monitor; var globals = modules.globals, options...
import $ from 'jquery'; import cookie from 'js/cookie.js'; function encode(username, password) { return sha1(username + password).toString(); } var cookieName = 'sessionKey'; function setSessionKey(sessionKey) { cookie.set(cookieName, sessionKey, 10); } function getSessionKey() { return cookie.get(cookie...
export default Ember.Controller.extend({ });
(function(angular) { 'use strict'; describe('Directive: cdSessionBar', function () { // load the directive's module beforeEach(module('cardsApp')); var element, scope; beforeEach(inject(function ($rootScope) { scope = $rootScope.$new(); })); it('should de...
import Flask from './Flask' import * as listeners from './res/listeners' Flask._version = '1.3.0' Flask._env = 'development' Flask.listeners = listeners export default Flask
(function () { var koView = ko.views.manager.currentView.scimoz; var currentPos = koView.currentPos; try { // Group operations into a single undo koView.beginUndoAction(); var prefixes = [ '', '-o-', '-ms-', '-moz-', '-webkit-' ]; var addPrefixes = function (line) { var build = ''; for ( var i = 0,...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar", "ja", {euro: "ユーロ記号", lsquo: "左シングル引用符", rsquo: "右シングル引用符", ldquo: "左ダブル引用符", rdquo: "右ダブル引用符", ndash: "半角ダッシュ", mdash: "全角ダッシュ", iex...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Notifications Schema */ var NotificationsSchema = new Schema({ // Notifications model fields // ... }); mongoose.model('Notifications', NotificationsSchema);
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'showblocks', 'fo', { toolbar: 'Vís blokkar' } );
var index = require('../'); var expect = require('chai').expect; describe('scale-gif', function() { it('should exist', function() { expect(index).to.exist; }); it('should have a handler', function() { expect(index.handler).to.be.a('function'); }); it('should call .done(err) when things fail', funct...
"use strict"; import THREE from 'three'; import ShaderDefault from './ShaderDefault'; import ParticleShader from './ParticleShader'; export default class Main { constructor(paths) { console.log('[Main] init...', paths.length); const RANGE = 200 , NUM_ROWS = 30 , ...
angular.module('eventUtils') .directive('evInit', ['$eventUtils', function($eventUtils) { return { priority: Number.MAX_SAFE_INTEGER, restrict: 'A', // Attribute only link: function(scope, elem, attrs, ctrl) { // Parse events var events = $eventUtils.parseOptions(attrs.evIni...
// UMD Wrapper // - http://ifandelse.com/its-not-hard-making-your-library-support-amd-and-commonjs/ // - replace SCRIPT with processed script // - replace NAME with library name (function (root, factory, name) { // AMD if(typeof define === "function" && define.amd) { define(function () { return (root[...
var Response = require('../../../../../../response'); var Promise = require('bluebird'); module.exports = function(request) { return Promise.try(function() { return new Response(200, { method: 'GET', path: '/api/v1/cars/' + request.params.id }); }); };
(function ($) { YaDisk.Path = function (cwd) { this._cwd = cwd; }; YaDisk.Path.prototype = { constructor: YaDisk.Path, normalize: function (path) { var sep = YaDisk.Path.SEP, dirs = path.split(sep), result = []; for(var i = 0, len = dirs.length; i < len; i++) { ...
/*global jasmine, __karma__, window*/ Error.stackTraceLimit = Infinity; // The default time that jasmine waits for an asynchronous test to finish is five seconds. // If this timeout is too short the CI may fail randomly because our asynchronous tests can // take longer in some situations (e.g Saucelabs and Browserstac...
'use strict'; /** * Custom observer implementation that uses publish/register methods * @returns {Object} public methods to the observer: register, * publish and release */ var PubSub = function PubSub() { // list of channels var channels = {}; // register a subscriber to a channel ...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { Text, View, Image } from 'react-native' import styles from './styles' import images from '../../Images' export default class ImageTest extends Component { static propTypes = { logger: PropTypes.func } constructor(props) { ...
(function () { "use strict"; var fs = require('fs'), baseDir = '../data/', prefix = 'game_', suffix = '.json'; function saveGame(gameId, game, callback) { var path = baseDir + prefix + gameId.toString() + suffix; fs.writeFile(path, game.toJSON(), function (err) { callback(err, gameId); ...
'use strict'; /* * Public */ let publicLdapContext = require('../context')(); publicLdapContext.units.getUnitByName('enac-it', function(err, data) { console.log(JSON.stringify(data, null, 2)); }); /* * Full */ let fullLdapContext = require('../context')(); fullLdapContext.options.modelsMapper = fullLdapCon...
// -------------------------------------------------------------------------- \\ // File: Resize.js \\ // Module: Resize \\ // Requires: ResizeController.js ...
/* Gradebook from Names and Scores I worked on this challenge [with Jacob Crofts] This challenge took me [1] 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 tw...
/** * Playlist * * @module Playlist * @extends Model * @description :: A short summary of how this model works and what it represents. * */ module.exports = { attributes: { /* e.g. nickname: 'string' */ title: 'string', owner: 'string' } };
const Promise = require('bluebird'); const text = 'Most Recent Follower: {{follower_recent}} -- Top Tipper: {{donator_top}} -- Most Recent Tipper: {{donator_recent}} -- Highest Tip: {{donation_top}} -- Most Recent Follower: {{follower_recent}}'; const matches = text.match(/\{\{[a-z0-9-_]+\}\}/gi); const parsedMatch...
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ module.exports = { coverageReporters: [["lcov", {"projectRoot": "../../"}]] };
version https://git-lfs.github.com/spec/v1 oid sha256:339b1e0a6f5e5e1bce615a95cd9f2f56aa8bede4b02519778d607c4691e5c9f0 size 235858
var webpack = require('webpack'); var memoryFs = require('./memoryFs'); var path = require('path'); var utils = require('./utils'); var createLoaders = require('./createLoaders'); module.exports = { create: function (session) { return function (bundle) { if (!utils.getEntry(session.files)) { return...