code
stringlengths
2
1.05M
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import Tablelvl2Cont...
/* jscs:disable */ import Mirage from 'ember-cli-mirage'; export default Mirage.Factory.extend({ uuid(i) { return `post-${i}`; }, description(i) { return `Title for post ${i}.`; }, slug(i) { return `post-${i}`; }, markdown(i) { return `Markdown for post ${i}.`; }, html(i) { return `HTML for po...
CKEDITOR.plugins.setLang("forms","tt",{button:{title:"Төймә үзлекләре",text:"Text (Value)",type:"Төр",typeBtn:"Төймә",typeSbm:"Submit",typeRst:"Reset"},checkboxAndRadio:{checkboxTitle:"Checkbox Properties",radioTitle:"Radio Button Properties",value:"Value",selected:"Сайланган"},form:{title:"Форма үзлекләре",menu:"Форм...
"use strict"; var gulp = require("gulp"), minifycss = require("gulp-clean-css"), uglify = require("gulp-uglify"), concat = require("gulp-concat"), header = require("gulp-header"), buffer = require("vinyl-buffer"), pkg = require("./package.json"), debug = require("gulp-debug"), eslint = require("gulp-eslint"), ...
// # Request Entity Too Large Error // Custom error class with status code and type prefilled. function RequestEntityTooLargeError(message) { this.message = message; this.stack = new Error().stack; this.code = 413; this.type = this.name; } RequestEntityTooLargeError.prototype = Object.create...
(function () { 'use strict'; angular.module('ezplus') .directive('ezPlus', ezPlus); function ezPlus() { var service = { restrict: 'A', scope: { ngModel: '=' }, link: link }; return service; ///////////...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v7.2.2 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var utils_1 = require('./utils'); function defaultGroupComparator(valueA, valueB, nodeA, nodeB) { var nodeAIsGroup = utils...
loadIonicon('<svg width="1em" height="1em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M335.7 32H177.1C158.8 32 144 46.6 144 64.9v381c0 18.4 14.8 34.1 33.1 34.1h158.5c18.3 0 32.3-15.7 32.3-34.1v-381C368 46.6 354 32 335.7 32zM241 55h30c2.2 0 4 1.8 4 4s-1.8 4-4 4h-30c-2.2 0-4-1.8-4-4s1.8-4 4-4zm15.5...
import{canUseDOM}from"./dom";import{isTesting}from"./testing";var animationEvent={supported:!1},transitionEvent={supported:!1,name:null};canUseDOM&&!isTesting&&("undefined"==typeof AnimationEvent&&"undefined"==typeof WebKitAnimationEvent||(animationEvent.supported=!0),"undefined"!=typeof TransitionEvent?(transitionEven...
function pug_attr(t, e, n, f) { return e !== !1 && null != e && (e || "class" !== t && "style" !== t) ? e === !0 ? " " + (f ? t : t + '="' + t + '"') : ("function" == typeof e.toJSON && (e = e.toJSON()), "string" == typeof e || (e = JSON.stringify(e), n || e.indexOf('"') === -1) ? (n && (e = pug_escape(e)), ...
/* Highcharts JS v6.0.3 (2017-11-14) (c) 2009-2016 Torstein Honsi License: www.highcharts.com/license */ (function(S,N){"object"===typeof module&&module.exports?module.exports=S.document?N(S):N:S.Highcharts=N(S)})("undefined"!==typeof window?window:this,function(S){var N=function(){var a="undefined"===typeof S?win...
import React from 'react/addons'; import ContextPure from 'mixins/context-pure'; import ThemeManager from 'styles/theme-manager'; import DefaultRawTheme from 'styles/raw-themes/light-raw-theme'; const TestUtils = React.addons.TestUtils; const update = React.addons.update; const GrandChildComponent = React.createClass...
/** * jq.web.carousel - a carousel library for html5 mobile apps * @copyright AppMobi 2011 - AppMobi * */ (function($) { var cache = []; var objId=function(obj){ if(!obj.jqmCarouselId) obj.jqmCarouselId=$.uuid(); return obj.jqmCarouselId; } $.fn.carousel = function(opts) ...
/** * Template7 1.0.5 * Mobile-first JavaScript template engine * * http://www.idangero.us/template7/ * * Copyright 2015, Vladimir Kharlampidi * The iDangero.us * http://www.idangero.us/ * * Licensed under MIT * * Released on: March 28, 2015 */ window.Template7 = (function () { 'use strict'; fu...
'use strict'; var Bluebird = require('bluebird'); module.exports = { up: function (db) { return Bluebird .delay(1000) .then(function () { return db.sequelize.query('INVALID QUERY'); }); } };
/*! Qoopido.demand 3.5.3 | https://github.com/dlueth/qoopido.demand | (c) 2016 Dirk Lueth */ !function(){"use strict";function n(){return{matchType:/^application\/json/,onPreRequest:function(){var n=this,r=n.url;n.url=".json"!==r.slice(-5)?r+".json":r},process:function(){var n=JSON.parse(this.source);provide(function()...
/* ========================================================================== jQuery Audio Player Based on http://tympanus.net/codrops/2012/12/04/responsive-touch-friendly-audio-player Initialize: $('audio').audioPlayer({ classPrefix: 'audioplayer' }); Support: Latest Chrome Latest Fir...
module.exports = function (argv) { var params = {}; for (var i = 0; i < argv.length; i++) { var arg = argv[i]; if (typeof arg === 'string') { if (arg.match(/^\d+$/)) { params.port = parseInt(arg, 10); } else if (arg.match('^/')) { ...
var source = '"\\u{714E}\\u{8336}"';
/* Copyright © 2011-2015 by Neil Jenkins. MIT Licensed. */ ( function ( doc, undefined ) { "use strict"; var DOCUMENT_POSITION_PRECEDING = 2; // Node.DOCUMENT_POSITION_PRECEDING var ELEMENT_NODE = 1; // Node.ELEMENT_NODE; var TEXT_NODE = 3; // Node.TEXT_NODE; var DOCUMENT_NODE = 9; ...
// Fine Uploader 5.11.0 - (c) 2013-present Widen Enterprises, Inc. MIT licensed. http://fineuploader.com (function(global) { var qq = function(element) { "use strict"; return { hide: function() { element.style.display = "none"; return this; }, ...
angular.module("SignalR",[]).constant("$",$).factory("Hub",["$",function(n){var o=null,t=function(t){o=t&&t.rootPath?n.hubConnection(t.rootPath,{userDefaultPath:!1}):n.hubConnection()};return function(r,e){var c=this;return null===o&&t(e),c.connection=o,c.proxy=c.connection.createHubProxy(r),c.on=function(n,o){c.proxy....
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('glamor')) : typeof define === 'function' && define.amd ? define(['react', 'glamor'], factory) : (global.glamorous = factory(global.React,global.Glamor)); }(this, (function ...
(function ($) { var methods = { init : function(options) { var defaults = { onShow: null, swipeable: false, responsiveThreshold: Infinity, // breakpoint for swipeable }; options = $.extend(defaults, options); return this.each(function() { // For each set of...
raw`hello ${name}`
/*! lightgallery - v1.2.20 - 2016-06-28 * http://sachinchoolur.github.io/lightGallery/ * Copyright (c) 2016 Sachin N; Licensed Apache 2.0 */ (function($, window, document, undefined) { 'use strict'; var defaults = { pager: false }; var Pager = function(element) { this.core = $(elemen...
(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...
module.exports = { prefix: 'fab', iconName: 'hubspot', icon: [512, 512, [], "f3b2", "M267.4 211.6c-25.1 23.7-40.8 57.3-40.8 94.6 0 29.3 9.7 56.3 26 78L203.1 434c-4.4-1.6-9.1-2.5-14-2.5-10.8 0-20.9 4.2-28.5 11.8-7.6 7.6-11.8 17.8-11.8 28.6s4.2 20.9 11.8 28.5c7.6 7.6 17.8 11.6 28.5 11.6 10.8 0 20.9-3.9 28.6-11.6 7.6-7.6 ...
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...
(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...
/** * @license AngularJS v1.4.12 * (c) 2010-2015 Google, Inc. http://angularjs.org * License: MIT */ (function() {'use strict'; function isFunction(value) {return typeof value === 'function';}; /* global: toDebugString: true */ function serializeObject(obj) { var seen = []; return JSON.stringify(obj, fu...
module.exports = function(config) { var appBase = 'app/'; // transpiled app JS and map files var appSrcBase = 'app/'; // app source TS files var appAssets = 'base/app/'; // component assets fetched by Angular's compiler // Testing helpers (optional) are conventionally in a folder called `testing...
module.exports = { options: { requireCurlyBraces: [ 'if', 'else', 'for', 'while', 'do', 'try', 'catch' ], requireSpacesInFunctionExpression: { beforeOpeningCurlyBrace: true }, disallowSpacesInFunctionExpression: { beforeOpeningRoundBrace: true }, disallowSpacesInsideParentheses: true, requireSpacesInsideObj...
( new foo).bar()
/* * Lightcase - jQuery Plugin * The smart and flexible Lightbox Plugin. * * @author Cornel Boppart <cornel@bopp-art.com> * @copyright Author * * @version 2.0.1 (11/02/2015) */ ;(function ($) { window.lightcase = { cache : {}, support : {}, labels : { 'errorMessage' : 'Source could not be found.....
/* * Copyright (C) 2009 Camptocamp * * This file is part of MapFish Client * * MapFish Client 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 License, or * (at your option) any...
/* * /MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/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 License. * You may obtain a copy of the License at * * h...
angular.module('my-custom-templates', ['fixtures/one.tpl.html']); angular.module("fixtures/one.tpl.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("fixtures/one.tpl.html", "1 2 3"); }]);
var path = require('path') , fs = !process.browser && require('fs') , rimraf = !process.browser && require('rimraf') var dbidx = 0 , location = function () { return path.join(__dirname, '_leveldown_test_db_' + dbidx++) } , lastLocation = function () { return path.join(__dirname...
/* * Copyright (C) 2007, 2008 Apple 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: * * 1. Redistributions of source code must retain the above copyright * notice, this list of ...
// Vex Flow Notation // Implements clefs // // Requires vex.js. /** * @constructor */ Vex.Flow.Clef = function(clef) { if (arguments.length > 0) this.init(clef); } Vex.Flow.Clef.types = { "treble": { code: "v83", point: 40, line: 3 }, "bass": { code: "v79", point: 40, line: 1 }...
/** * @file * A Backbone View that provides keyboard interaction for a contextual link. */ (function (Drupal, Backbone) { "use strict"; /** * Provides keyboard interaction for a contextual link. */ Drupal.contextual.KeyboardView = Backbone.View.extend({ events: { 'focus .trigger': 'focus', ...
/** * Handsontable 0.9.7 * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs * * Copyright 2012, Marcin Warpechowski * Licensed under the MIT license. * http://handsontable.com/ * * Date: Sun Jun 30 2013 01:24:48 GMT+0200 (Central European ...
YUI.add("lang/datatype-date-format_fr-FR",function(A){A.Intl.add("datatype-date-format","fr-FR",{"a":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"A":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"b":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],"B"...
CKEDITOR.plugins.setLang("templates","de-ch",{button:"Vorlagen",emptyListMsg:"(Keine Vorlagen definiert)",insertOption:"Aktuelle Inhalte ersetzen",options:"Vorlagenoptionen",selectPromptMsg:"Klicken Sie auf eine Vorlage, um sie im Editor zu öffnen",title:"Inhaltsvorlagen"});
!function($){"use strict";void 0!==patternfly&&($.pfPaletteColors=patternfly.pfPaletteColors)}(jQuery);
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'undo', 'et', { redo: 'Toimingu kordamine', undo: 'Tagasivõtmine' });
/* * Chained - jQuery / Zepto chained selects plugin * * Copyright (c) 2010-2013 Mika Tuupola * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * * Project home: * http://www.appelsiini.net/projects/chained * * Version: 0.9.9 * */ ;(function($, window, document, ...
var Fiber = require('fibers'); try { Fiber(function() { function foo() { var hello = Math.random(); foo(); } foo(); }).run(); } catch (err) { err.name === 'RangeError' && console.log('pass'); }
/* http://keith-wood.name/countdown.html * Italian initialisation for the jQuery countdown extension * Written by Davide Bellettini (davide.bellettini@gmail.com) Feb 2008. */ $.countdown.regional['it'] = { labels: ['Anni', 'Mesi', 'Settimane', 'Giorni', 'Ore', 'Minuti', 'Secondi'], labels1: ['Anni', 'Mesi', 'Settim...
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.socketCluster=e()}}(function(){var define,module,expo...
module.exports={title:"Tesla",slug:"tesla",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Tesla icon</title><path d="M12 5.362l2.475-3.026s4.245.09 8.471 2.054c-1.082 1.636-3.231 2.438-3.231 2.438-.146-1.439-1.154-1.79-4.354-1.79L12 24 8.619 5.034c-3.18 0-4.188.354-4.335 1.792 0 0-2....
// angular-formly-templates-bootstrap version 6.0.0 built with ♥ by Astrism <astrisms@gmail.com>, Kent C. Dodds <kent@doddsfamily.us> (ó ì_í)=óò=(ì_í ò) (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("angular...
YUI.add('history-hash-ie', function(Y) { /** * Improves IE6/7 support in history-hash by using a hidden iframe to create * entries in IE's browser history. This module is only needed if IE6/7 support * is necessary; it's not needed for any other browser. * * @module history * @submodule history-hash-ie * @since...
YUI.add('exec-command', function (Y, NAME) { /** * Plugin for the frame module to handle execCommands for Editor * @class Plugin.ExecCommand * @extends Base * @constructor * @module editor * @submodule exec-command */ var ExecCommand = function() { ExecComman...
/*! * Qoopido.js library v3.3.6, 2014-5-25 * https://github.com/dlueth/qoopido.js * (c) 2014 Dirk Lueth * Dual licensed under MIT and GPL */ !function(t){window.qoopido.register("polyfill/string/ucfirst",t)}(function(){"use strict";return String.prototype.ucfirst||(String.prototype.ucfirst=function(){var t=this;return...
'use strict'; var builtinModules = require('builtin-modules'); module.exports = function (str) { if (typeof str !== 'string') { throw new TypeError('Expected a string'); } return builtinModules.indexOf(str) !== -1; };
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = extractValueFromConditionalExpression; var _index = require('./index'); var _index2 = _interopRequireDefault(_index); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** ...
(function () { 'use strict'; delete i; }())
define( [], function() { function showHide( elements, show ) { var display, elem, values = [], index = 0, length = elements.length; // Determine new display value for elements that need to change for ( ; index < length; index++ ) { elem = elements[ index ]; if ( !elem.style ) { continue; } display...
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
var moment = require("../../moment"); var getVerifier = function (test) { return function (input, format, expected, description, asymetrical) { var m = moment(input, format); test.equal(m.format('YYYY MM DD'), expected, 'compare: ' + description); //test round trip if (!asymetrical...
/** * @license Highcharts JS v5.0.5 (2016-11-29) * * (c) 2009-2016 Torstein Honsi * * License: www.highcharts.com/license */ (function(factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; } else { factory(Highcharts); } }(function(Highcharts) { (...
// The Inflector transforms words from singular to plural, class names to table names, modularized class names to ones without, // and class names to foreign keys. The default inflections for pluralization, singularization, and uncountable words are kept // in inflections.coffee // // If you discover an incorrect infle...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = aukLogger; var _nightingale = require('nightingale'); /** * @function * @param app */function aukLogger(app) { const logConfig = app.config.get('log'); app.logger = new _nightingale.ConsoleLogger('app', lo...
'use strict'; var util = require('util'); var Tab = require('../client/tab').Tab; function ColdwalletSettingsTab() { Tab.call(this); } util.inherits(ColdwalletSettingsTab, Tab); ColdwalletSettingsTab.prototype.tabName = 'coldwalletsettings'; ColdwalletSettingsTab.prototype.mainMenu = 'coldwalletsettings'; Coldwa...
var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); var browserify = require('browserify'); var del = require('del'); var watchify = require('watchify'); var source = require('vinyl-source-stream'); var stylish = require('jshint-stylish'); var buffer = require('vinyl-buffer'); var _ = require('lodash');...
/*Project aria2-WIOW * * Copyright (c) 2014, multiSnow <infinity.blick.winkel@gmail.com> * *Permission to use, copy, modify, and/or distribute this software for *any purpose with or without fee is hereby granted, provided that the *above copyright notice and this permission notice appear in all *copies. * *THE...
'use strict'; var path = require('path') , fs = require('fs') , argv = require('minimist')(process.argv.slice(2)); ; var env = {}; var Config = function() { var t = this; var configObject = util.loadConfigFiles(); for(var prop in configObject) { t[prop] = configObject[prop]; } for (var fnNam...
/* eslint-disable no-console */ /* eslint no-param-reassign: [2, {"props": false }] */ const util = require('util'); import chalk from 'chalk'; import { effects, isCancelError } from 'redux-saga'; const { /* call, */cancel, fork, /* put, */race, take } = effects; const conlog = (...msgs) => console.log(chalk.blue.bold...
var util = require('util'), Tab = require('../client/tab').Tab; var NzdTab = function() { Tab.call(this); }; util.inherits(NzdTab, Tab); NzdTab.prototype.tabName = 'nzd'; NzdTab.prototype.mainMenu = 'fund'; NzdTab.prototype.generateHtml = function() { return require('../../jade/tabs/nzd.jade')(); }; NzdTab...
import Collection from "./Collection"; import Sprite from "./Sprite"; /** * Composes Sprite and Collection * @class Group * @requires Collection * @requires Sprite */ export default class Group { constructor () { /** * @member {Collection} Group#collection - The group's collection */...
/** * Global error handler * @param {Error} err * @returns {*} */ module.exports = function handleGlobalError (err) { var compiler = this; return compiler.config.get("errorHandler")(err, compiler); };
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _leaflet = require('leaflet'); var _react = require('react'); exports.default = _react.PropTypes.instanceOf(_leaflet.Map);
global.Metal = require('../src/' + require('../package').name); var _ = require('lodash'); var chai = require('chai'); var sinon = require('sinon'); chai.use(require('sinon-chai')); global._ = _; global.expect = chai.expect; var sandbox; beforeEach(function() { sandbox = sinon.sandbox.create(); global.stub = _.b...
version https://git-lfs.github.com/spec/v1 oid sha256:beef2ebaaced3fbdd9b56490c0e0a42b2615cb1469c5f7271d533954e487ef19 size 9417
import { PLATFORM } from 'aurelia-pal'; export class DashboardRouter { heading = 'Dashboard Router'; configureRouter(config, router) { config.map([ // There is no way to refactor this that I can tell { route: '', name: 'dashboard', moduleId: PLATFORM.moduleName('./dashboard'), nav: false, title:...
const GROUP_SIZE = 2500; const SEC_PER_DAY = 60 * 60 * 24; // Divide data into smaller groups, and render one layer for each group. // This allows us to cheaply cull invisible flights by turning layers off and on. export function sliceData(data) { if (!data) { return []; } return data.flatMap((day, i) => { ...
var searchData= [ ['d_524',['D',['../class_tree_builder.html#a3492015b7d90ae531e127d48edd57a3f',1,'TreeBuilder']]], ['decompressed_5fgaps_525',['DECOMPRESSED_GAPS',['../class_distance_calculator.html#a9f70a25047b64665cb1ac392482df94f',1,'DistanceCalculator']]], ['default_5fcapacity_526',['DEFAULT_CAPACITY',['../c...
module.exports = function (config) { 'use strict'; config.set({ basePath: '../../', frameworks: ['jasmine'], files: [ 'node_modules/angular/angular.js', 'node_modules/angular-route/angular-route.js', 'node_modules/angular-resource/angular-resource.js', 'node_modules/angular-mocks/angular-mocks.js',...
/** * @author alteredq / http://alteredqualia.com/ */ THREE.Loader = function( showStatus ) { this.showStatus = showStatus; this.statusDomElement = showStatus ? this.addStatusElement() : null; }; THREE.Loader.prototype = { addStatusElement: function ( ) { var e = document.createElement...
// The logger expects the client config to have been already loaded import { config } from '../utils/config'; var dispatch = null; // eslint-disable-line no-var var logs = null; // eslint-disable-line no-var export const logger = (level, msg, payload = {}) => { if (!dispatch || !logs) { throw new Erro...
'use strict'; /** * This module represents the config.xml file. * * @author Sam Verschueren <sam.verschueren@gmail.com> * @since 20 May 2015 */ // module dependencies var fs = require('fs'), et = require('elementtree'); module.exports = (function() { var _this = { /** * This meth...
QUnit.test('Math.sinh', assert => { const { sinh } = Math; assert.isFunction(sinh); assert.name(sinh, 'sinh'); assert.arity(sinh, 1); assert.looksNative(sinh); assert.nonEnumerable(Math, 'sinh'); assert.same(sinh(NaN), NaN); assert.same(sinh(0), 0); assert.same(sinh(-0), -0); assert.same(sinh(Infini...
+(function (global, factory) { if (typeof exports === 'undefined') { factory(global.webduino || {}); } else { module.exports = factory; } }(this, function (scope) { 'use strict'; var Pin = scope.Pin, Module = scope.Module; function Servo(board, pin, minAngle, maxAngle) { Module.call(this);...
import angular from 'angular'; import { checkComponent } from './check.component'; export const check = angular.module('check',[]) .config(($stateProvider, $urlRouterProvider) => { $urlRouterProvider.otherwise('/'); $stateProvider.state('check', { url: '/', template: '<check...
angular.module('app').directive('imageLoad',[function(){ return { restrict: 'A', terminal:true, link: function(scope, element, attr, ctrl) { var containerSize={}, setImageUrl=function(){ if (containerSize.w > 0 && !!containerSize.src) { ...
/*globals describe, beforeEach, afterEach, it*/ /*jshint expr:true*/ var should = require('should'), sinon = require('sinon'), Promise = require('bluebird'), hbs = require('express-hbs'), utils = require('./utils'), // Stuff we are testing handlebars ...
import { event } from '../../core'; import { Component, define } from '../../component'; import { Route } from './route'; // import { URL } from 'url'; import qs from 'querystring'; const debug = require('debug')('xin:components:app'); const URL = window.URL; // if (!URL) { // URL = window.URL; // } export class A...
var fs = require('fs'); var util = require('util'); var EventEmitter = require('events').EventEmitter; function Stream() { } Stream.prototype.writeLine = function(message) { } Stream.prototype.close = function(callback) { process.nextTick(function() { callback(null, true); }); } function ConsoleStream() { ...
var bracket = require('./bracket_push'); describe("bracket push", function() { it("checks for appropriate bracketing in a set of brackets", function() { expect(bracket("{}")).toEqual(true); }); xit("returns false for unclosed brackets", function() { expect(bracket("{{")).toEqual(false); }); xit("re...
"use strict"; /* * Copyright (c) 2013-2019 Bert Freudenberg * * 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...
import HashMap from 'ringcentral-integration/lib/HashMap'; export default new HashMap({ dialer: '/dialer', allCalls: '/calls' });
'use strict'; var MongoClient = require('mongodb').MongoClient; MongoClient.connect('mongodb://localhost:27017/course', function (err, db) { if (err) { throw err; } var grades = db.collection('grades'); var cursor = grades.find({}); cursor.skip(1); cursor.limit(4); cursor.sort('grade', 1); //curs...
function add_routes(routes){ var geojson = JSON.parse(routes); var center = JSON.parse(center); console.log(geojson); for(i = 0; i < geojson.features.length; i++){ add_route(geojson.features[i]); } }
import Vue from 'vue' import VeeValidate from 'vee-validate' const config = { errorBagName: 'errors', // change if property conflicts. fieldsBagName: 'fields', events: 'input|blur', inject: true } Vue.use(VeeValidate, config)
export {default as Link} from './link.js';
'use strict'; function UserSession() {} UserSession.prototype.getLoggedUser = function() { throw new Error("UserSession.getLoggedUser() should not be called in an unit test"); }; var userSession = new UserSession(); module.exports = { getInstance: function () { return userSession; } };
/** * Copyright (c) 2015-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. */ var path =...
(function () { var pswmod = angular.module('settings.module'); // CONTROLLER pswmod.controller('pswCtrl', function ($scope, userService) { var that = this; $scope.message = null; $scope.changePassword = function ($oldpw, $newpw, $newpw2) { $scope.message = null; ...