code
stringlengths
2
1.05M
'use strict'; module.exports = function (t, a, d) { var x = {}, fn; fn = function (y, cb) { setTimeout(function () { if (cb) { cb(null, 3); } }, 0); return y; }; t({}).invoke(fn, x)(function (r) { a(r, x); }).end(d, d); }; var deferred = require('../../../lib/deferred'); module.exports = funct...
var chai = require('chai'); var assert = chai.assert; var Web3 = require('../index.js'); var web3 = new Web3(); var u = require('./helpers/test.utils.js'); describe('web3.shh', function() { describe('methods', function() { u.methodExists(web3.shh, 'post'); u.methodExists(web3.shh, 'newIdentity'); ...
"\u00A9";
"use strict"; /** * @license * Copyright 2013 Palantir Technologies, Inc. * * 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 * * Unle...
/* * * Networkgraph series * * (c) 2010-2019 Paweł Fus * * License: www.highcharts.com/license */ 'use strict'; import H from '../../parts/Globals.js'; H.networkgraphIntegrations = { verlet: { /** * Attractive force funtion. Can be replaced by API's * `layoutAlgorithm.attractiveFor...
console.warn("warn -",`Imports like "const pluralsight = require('simple-icons/icons/pluralsight');" have been deprecated in v6.0.0 and will no longer work from v7.0.0, use "const { siPluralsight } = require('simple-icons/icons');" instead`),module.exports={title:"Pluralsight",slug:"pluralsight",get svg(){return'<svg r...
var assert = require('assert'); var R = require('..'); describe('unless', function() { it('calls the whenFalse function if the validator returns a falsey value', function() { assert.deepEqual(R.unless(R.isArrayLike, R.of)(10), [10]); }); it('returns the argument unmodified if the validator returns a truth...
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors // MIT License. See license.txt wn.provide("wn.ui.form"); wn.ui.form.Toolbar = Class.extend({ init: function(opts) { $.extend(this, opts); this.make(); this.add_update_button_on_dirty(); this.appframe.add_module_icon(this.frm.meta.module...
'use strict'; module.exports = require('./Switch');
'use strict'; var path = require('path'); var tmp = require('tmp-sync'); var expect = require('chai').expect; var ember = require('../../helpers/ember'); var convertToJson = require('../../helpers/convert-help-output-to-json'); var Promise = require('../../../lib/ext/promise'); ...
module.exports={title:"Guangzhou Metro",slug:"guangzhoumetro",svg:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Guangzhou Metro icon</title><path d="M16.433 12.329A16.188 16.188 0 0 1 22.118.009L17.684 0a16.2 16.2 0 0 0-4.776 11.374V24h3.525zm-8.869 0A16.174 16.174 0 0 0 1.882.009L6.319...
describe('javascript-compiler api', function() { if (!Handlebars.JavaScriptCompiler) { return; } describe('#nameLookup', function() { var $superName; beforeEach(function() { $superName = handlebarsEnv.JavaScriptCompiler.prototype.nameLookup; }); afterEach(function() { handlebarsEn...
ace.define("ace/snippets/plain_text",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="",t.scope="plain_text"}); (function() { ace.require(["ace/snippets/plain_text"], function(m) { if (typeof module == "object" && typeof exports == "o...
define(['app'], function (app) { app.registerFactory('Host', ['$http', function ($http) { var Host = function (id) { if (!id) { return; } this.id = id; } Host.prototype.save = function (playbook, hostgroup) { return $http.put('/playbook/'+playbook.data._id+'/hostgroup/'+hostgroup.data._id+'/...
/*! * Ajax Bootstrap Select * * Extends existing [Bootstrap Select] implementations by adding the ability to search via AJAX requests as you type. Originally for CROSCON. * * @version 1.4.0 * @author Adam Heim - https://github.com/truckingsim * @link https://github.com/truckingsim/Ajax-Bootstrap-Select * @copyr...
/** * Copyright (c) 2008-2011 The Open Source Geospatial Foundation * * Published under the BSD license. * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text * of the license. */ /** * @include GeoExt/widgets/MapPanel.js * @include GeoExt/widgets/tree/LayerNode.js * @include GeoExt/wid...
/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the 2-clause BSD license. * See license.txt in the OpenLayers distribution or repository for the * full text of the license. */ /** * @requires OpenLayers/Renderer.js */ /** * Class: OpenLaye...
!function(a){a.fn.datepicker.dates.rs={days:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota","Nedelja"],daysShort:["Ned","Pon","Uto","Sre","Čet","Pet","Sub","Ned"],daysMin:["N","Po","U","Sr","Č","Pe","Su","N"],months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar"...
/* * Normalized hide address bar for iOS & Android * (c) Scott Jehl, scottjehl.com * MIT License */ (function( win ){ var doc = win.document; // If there's a hash, or addEventListener is undefined, stop here if( !location.hash && win.addEventListener ){ //scroll to 1 window.scrollTo( 0, 1 ); var scr...
var Vue = require('vue'); var VueResource = require('../dist/vue-resource.common.js'); Vue.use(VueResource); describe('Vue.http', function () { it('post("jsfiddle.net/html")', () => { return Vue.http.post('http://jsfiddle.net/echo/html/', {html: 'text'}, {emulateJSON: true}).then(res => { e...
var assert = require('assert'), fs = require('fs'), path = require('path'), mu = require('../lib/mu'); mu.root = path.join(__dirname, 'examples'); [ 'tenthousand', 'boolean', 'carriage_return', 'comments', 'complex', 'date', 'deep_partial', // 'delimiters', 'error_not_found', ...
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'removeformat', 'lv', { toolbar: 'Noņemt stilus' } );
;(function(window, document, undefined) { "use strict"; (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....
define(["./kernel", "../has", "./lang"], function(dojo, has, lang){ // module: // dojo/_base/array // our old simple function builder stuff var cache = {}, u; function buildFn(fn){ return cache[fn] = new Function("item", "index", "array", fn); // Function } // magic snippet: if(typeof fn == "strin...
'use strict'; var _ = require('lodash'); var chai = require('chai'); var should = chai.should(); var expect = chai.expect; var bitcore = require('..'); var Opcode = bitcore.Opcode; describe('Opcode', function() { it('should create a new Opcode', function() { var opcode = new Opcode(5); should.exist(opcode)...
/** * @file * Views listing behaviors. */ (function ($, Drupal) { "use strict"; /** * Filters the view listing tables by a text input search string. * * Text search input: input.views-filter-text * Target table: input.views-filter-text[data-table] * Source text: .views-table-filter-t...
/** * VexFlow - Accidental Tests * Copyright Mohit Muthanna 2010 <mohit@muthanna.com> */ Vex.Flow.Test.Accidental = {} Vex.Flow.Test.Accidental.Start = function() { module("Accidental"); Vex.Flow.Test.runTest("Basic", Vex.Flow.Test.Accidental.basic); Vex.Flow.Test.runRaphaelTest("Basic (Raphael)", Vex....
'use strict'; module.exports = function (grunt) { var Q = require('q'); var SauceTunnel = require('sauce-tunnel'); var TestRunner = require('../src/TestRunner')(grunt); Q.longStackSupport = true; function reportProgress(notification) { switch (notification.type) { case 'tunnelOpen': grunt.log...
/* Highcharts JS v6.0.0 (2017-10-04) Indicator series type for Highstock (c) 2010-2017 Kacper Madej License: www.highcharts.com/license */ (function(b){"object"===typeof module&&module.exports?module.exports=b:b(Highcharts)})(function(b){(function(b){b=b.seriesType;b("zigzag","sma",{name:"Zig Zag (1%)",params:{...
// This file has been autogenerated. exports.scopes = [[function (nock) { var result = nock('https://ciserversdk.blob.core.windows.net:443') .put('/cont1?restype=container') .reply(201, "", { 'transfer-encoding': 'chunked', 'last-modified': 'Tue, 19 Mar 2013 19:51:26 GMT', etag: '"0x8CFF2F246D86330"', serv...
'use strict'; var DataTypes = require('./data-types') , SqlString = require('./sql-string') , _ = require('lodash').runInContext() // Prevent anyone messing with template settings by creating a fresh copy , parameterValidator = require('./utils/parameter-validator') , inflection = require('inflection') , uui...
import Mmenu from '../../core/oncanvas/mmenu.oncanvas'; import options from './_options'; import { extendShorthandOptions } from './_options'; import * as DOM from '../../_modules/dom'; import { extend } from '../../_modules/helpers'; // Add the options. Mmenu.options.columns = options; export default function () { ...
/** * 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. * * @provides...
(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...
/* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2012, CKSource - Frederico Knabben. All rights reserved. * * The software, this file, and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying, or distributing this...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v5.0.0-alpha.0 * @link http://www.ag-grid.com/ * @license MIT */ var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; functio...
YUI.add('widget-stdmod', function(Y) { /** * Provides standard module support for Widgets through an extension. * * @module widget-stdmod */ var L = Y.Lang, Node = Y.Node, UA = Y.UA, Widget = Y.Widget, EMPTY = "", HD = "hd", BD = "bd", FT = "ft", ...
var path = require('path'); var fs = require('fs'); var test = require('tape'); var resolve = require('../'); var symlinkDir = path.join(__dirname, 'resolver', 'symlinked', 'symlink'); try { fs.unlinkSync(symlinkDir); } catch (err) {} try { fs.symlinkSync('./_/symlink_target', symlinkDir, 'dir'); } catch (err)...
var _ = require('../../../../src/util') var def = require('../../../../src/directives/style') var Vue = require('../../../../src/vue') function checkPrefixedProp (prop) { var el = document.createElement('div') var upper = prop.charAt(0).toUpperCase() + prop.slice(1) if (!(prop in el.style)) { var prefixes = ...
/** * Copyright 2013 Facebook, Inc. * * 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 ...
/* * /MathJax/jax/output/HTML-CSS/fonts/Latin-Modern/Variants/Regular/Main.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 *...
import useMediaQuery from"./useMediaQuery";export default function useMediaQueryTheme(...e){return useMediaQuery(...e)};
/*! * VERSION: 0.6.0 * DATE: 2016-07-13 * UPDATES AND DOCS AT: http://greensock.com * * @license Copyright (c) 2008-2016, GreenSock. All rights reserved. * This work is subject to the terms at http://greensock.com/standard-license or for * Club GreenSock members, the software agreement that was issued with your ...
/** * When source maps are enabled, `style-loader` uses a link element with a data-uri to * embed the css on the page. This breaks all relative urls because now they are relative to a * bundle instead of the current page. * * One solution is to only use full urls, but that may be impossible. * * Instead, this f...
var Promise = require('bluebird'); var semver = require('semver'); module.exports = Promise.method(function (bookshelf) { var knex = bookshelf.knex; if (knex.client.dialect === 'postgresql') { return knex.raw('show server_version') .then(function(result) { var version = result.rows[0].server_vers...
/*! * Connect - Cache * Copyright(c) 2011 Sencha Inc. * MIT Licensed */ /** * Expose `Cache`. */ module.exports = Cache; /** * LRU cache store. * * @param {Number} limit * @api private */ function Cache(limit) { this.store = {}; this.keys = []; this.limit = limit; } /** ...
 (function () { "use strict"; jQuery(function () { ko.applyBindings(cdnViewModel()); //Manage CDNs jQuery("#manageButton").click(function () { window.location = "../Lists/CDNs"; return false; }); //Inject CDNs jQuery("#injectButton")....
/* * Copyright (C) 2010 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...
// Copyright (c) 2013, Joyent, Inc. All rights reserved. var EventEmitter = require('events').EventEmitter; var util = require('util'); var assert = require('assert-plus'); function InvalidUpgradeStateError(msg) { if (Error.captureStackTrace) Error.captureStackTrace(this, InvalidUpgradeStateError); t...
// 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, software // distributed ...
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const CharacterData = require("./CharacterData.js"); const impl = utils.implSymbol; function ProcessingInstruction() { throw new TypeError("Illegal constructor"); } ProcessingInstruction.prototype = Object.create(C...
/** * UI-Router Extras: Sticky states, Future States, Deep State Redirect, Transition promise * Module: statevis * @version 0.1.0 * @link http://christopherthielen.github.io/ui-router-extras/ * @license MIT License, http://www.opensource.org/licenses/MIT */ (function(angular, undefined){ "use strict"; // statevis...
/** * angular-strap * @version v2.0.0-rc.2 - 2014-01-29 * @link http://mgcrea.github.io/angular-strap * @author [object Object] * @license MIT License, http://www.opensource.org/licenses/MIT */ 'use strict'; angular.module('mgcrea.ngStrap.helpers.debounce', []).constant('debounce', function (func, wait, immediate...
"use strict"; var arrays = require("../utils/arrays"), visitor = require("./visitor"); /* AST utilities. */ var asts = { findRule: function(ast, name) { return arrays.find(ast.rules, function(r) { return r.name === name; }); }, indexOfRule: function(ast, name) { return arrays.indexOf(ast.rules, fu...
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var tryCatch_1 = require('../util/tryCatch'); va...
CodeMirror.registerHelper("fold","indent",function(cm,start){var lastLine=cm.lastLine(),tabSize=cm.getOption("tabSize"),firstLine=cm.getLine(start.line),myIndent=CodeMirror.countColumn(firstLine,null,tabSize);function foldEnded(curColumn,prevColumn){return curColumn<myIndent||curColumn==myIndent&&prevColumn>=myIndent||...
/* * Copyright (C) 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 conditions a...
'use strict'; var $export = require('./_export'); var toObject = require('./_to-object'); var toPrimitive = require('./_to-primitive'); var getPrototypeOf = require('./_object-gpo'); var getOwnPropertyDescriptor = require('./_object-gopd').f; // B.2.2.4 Object.prototype.__lookupGetter__(P) require('./_descriptors') &&...
/* * /MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Other.js * * Copyright (c) 2012 Design Science, Inc. * * Part of the MathJax library. * See http://www.mathjax.org for details. * * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the Licen...
describe('keyboardAttach directive', function() { beforeEach(module('ionic')); function setup() { var el, content; inject(function($compile, $rootScope) { el = angular.element('<div keyboard-attach></div>'); content = angular.element('<ion-content></ion-content>'); content.append(el); ...
//! moment.js locale configuration //! locale : Malayalam [ml] //! author : Floyd Pink : https://github.com/floydpink ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' ...
IonicModule .factory('$ionicClickBlock', [ '$document', '$ionicBody', '$timeout', function($document, $ionicBody, $timeout) { var CSS_HIDE = 'click-block-hide'; var cbEle, fallbackTimer, pendingShow; function preventClick(ev) { ev.preventDefault(); ev.stopPropagation(); } function addClickBloc...
(function(e){e.fn.datepicker.dates.bg={days:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота","Неделя"],daysShort:["Нед","Пон","Вто","Сря","Чет","Пет","Съб","Нед"],daysMin:["Н","П","В","С","Ч","П","С","Н"],months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","...
const Discord = require('discord.js'); exports.run = async(client, msg, guild)=> { let name = msg.guild.id; const embed = new Discord.RichEmbed(); embed.setColor(3447003); embed.setAuthor(`${client.guilds.get(name).name}`, client.guilds.get(name).iconURL); embed.setTitle('Server Info'); embed.setThumbnail(client...
import * as d3 from 'd3'; import { d3keybinding } from '../lib/d3.keybinding.js'; import { t, textDirection } from '../util/locale'; import { actionChangePreset } from '../actions/index'; import { operationDelete } from '../operations/index'; import { modeBrowse } from '../modes/index'; import { svgIcon } from '../svg/...
'use strict'; // the gulp task runner var gulp = require('gulp'); // Gulp plugins var $ = require('gulp-load-plugins')(); // NPM modules var wiredep = require('wiredep').stream; var browserSync = require('browser-sync').create(); // Paths var paths = { styles: { vanilla: ['src/styles/**/*.css'], sass: ...
const Discoverer = require('./Discoverer'); const droplit = require('droplit-plugin'); const request = require('request-lite'); const EventEmitter = require('events').EventEmitter; const PollInterval = 1000 * 10; // in ms const StepSize = 10; const TempLower = 1200; // in Kelvins const TempUpper = 6500; // in Kelvins ...
module.exports = function (options) { options = options || {} if (!options.keepassClient) { throw new Error('needs options.keepassClient') } if (!options.appDataClient) { throw new Error('needs options.appDataClient') } if (!options.dialog) { throw new Error('needs options.dialog') } retur...
/* Pickard module @antouank 2014 */ 'use strict'; var Pickard, chromeCommunication = require('./lib/chrome-communication'), log = require('consologger'), PORT = 9500; // main Pickard object Pickard = function(){ var thisPickard = this, generateLoadPromise; // increments on every Runt...
import Collection from '../common/collection'; import Model from './model'; export default Collection.extend({ //url: '/api/books', url: 'http://localhost:3000/collections/manifests', model: Model });
/** converts all textareas to ACE Editors in place. Sets some default * options on the editor. Expects Prototype, ACE and mode-latex to be * loaded beforehand. */ if(line_offset_number == null) var line_offset_number = 0; // Does some not-so-nice hot swapping so we can offset the line numbers. // This is used to ...
'use strict'; import './sec2min-filt';
import React from 'react'; import PropTypes from 'prop-types'; import { Alert, Button } from 'react-bootstrap'; import { Link } from 'react-router'; const RenderUserHasSignedOtherCampaign = ({ signedCampaignId }) => ( <div className="user-has-signed-other-campaign-alert"> <Alert bsStyle="warning"> <h4>You ...
/** * Sorts an array by allowing multiple sorting criteria. * * It applies the Schwartzian transform: * https://en.wikipedia.org/wiki/Schwartzian_transform * * Author: David Rivera * Github: https://github.com/jherax * License: "MIT" * * You can fork this project on github: * https://github.com/jherax/array-...
/** * Change focus to the parent context. If the current context is the top level browsing context, * the context remains unchanged. * * @see https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/frame/parent * @type protocol * */ module.exports = function frameParent () { var reque...
import mod1369 from './mod1369'; var value=mod1369+1; export default value;
'use strict'; const async = require('async'); const debug = require('debug')('server-shutdown'); const httpAdapter = require('./adapter/http'); const socketioAdapter = require('./adapter/socketio'); function noop() { // this function does nothing } class ServerShutdown { constructor() { this.sockets = new Set();...
/*! * headroom.js v0.9.3 - Give your page some headroom. Hide your header until you need it * Copyright (c) 2016 Nick Williams - http://wicky.nillia.ms/headroom.js * License: MIT */ (function(root, factory) { 'use strict'; if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous ...
// Copyright 2015, Christopher Joakim <christopher.joakim@gmail.com> var fs = require('fs'); var sprintf = require("sprintf-js").sprintf module.exports = function(grunt) { grunt.registerTask('build-timestamp', 'Create a build_timestamp.txt file', function() { var d = new Date(); var ts = d.toString(); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 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]; } } }...
/* * @Author: kuychaco * @Date: 2015-05-29 22:04:45 * @Last Modified by: kuychaco * @Last Modified time: 2015-05-29 22:30:27 */ 'use strict'; var comment = { "id": 106990292, // PRIMARY KEY "url": "https://api.github.com/repos/relentlessbreakfast/sampleGraph/issues/comments/106990292", "html_url": "https...
// jQuery Plugin // wrapper // (function($){ //Meepers //| //->Level // | // -> Room // | // -> Tile // -> Sprite Sprite = function () { var self = this; self.x = 0; self.y = 0; self.dx = 0; self.dy = 0; self.dir = DIR_UP; self.speed = 0; self.size = 0; self.thre...
version https://git-lfs.github.com/spec/v1 oid sha256:55fcc78bf81873f0061478016226663ab8e1ad1ce2a95cea4d298344338cf4e1 size 56802
function clicked_event(event){ var link = "php/viewCalendarRelated/meetingPopup.php?id=" + event.id + "&title=" + event.title + "&department=" + event.department + "&supervisor_id=" + event.creator_id + "&start=" + event.start + "&end=" + event.end + "&description=" + event.description + "&voting_id=" +...
/** */ import chai from 'chai' import { keysIn } from '../lib/fun' describe('keysIn', function () { it('returns the keys of an object as an array', function () { const a = { 'a': 0, 'b': 1, 'c': 2, 'd': 3 } const Person = function () {} Person.prototype.age = function () {} const bob = new Person(...
/* eslint-env node, mocha */ import { assert } from 'chai'; import compileUpdateQuery from '../../src/querycompilers/update'; describe('Update query compiler', () => { it('accepts props with table, records, selection, orderby and limit', () => { const query = compileUpdateQuery({ collection: [ 'CO...
// Regular expression that matches all symbols in the `Tai_Tham` script as per Unicode v6.3.0: /[\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD]/;
/// <reference path="../../typings/functions.d.ts" /> import {xtract_spectral_variance} from "./xtract_spectral_variance"; export function xtract_spectral_spread(spectrum, spectral_centroid) { return xtract_spectral_variance(spectrum, spectral_centroid); }
/* eslint react/no-multi-comp:0, no-console:0 */ import createDOMForm from 'rc-form/src/createDOMForm'; import React, { Component, PropTypes } from 'react'; import ReactDOM from 'react-dom'; import { regionStyle } from './styles'; class Form extends Component { static propTypes = { form: PropTypes.object, }; ...
import keyMirror from 'keymirror' export default keyMirror({ COIN_DATA: null, UPDATE_AVAILABLE: null, COIN_MAP: null, CURRENCY_DATA: null, SELECT_CURRENCY: null, ONLINE: null, OFFLINE: null, SELECT_COIN: null })
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.dom.text} class, which represents * a DOM text node. */ /** * Represents a DOM text node. * @constructor * @augment...
// flow-typed signature: 13875f101e5069b8f155664f9be93570 // flow-typed version: <<STUB>>/node-plop_v0.5.5/flow_v0.46.0 /** * This is an autogenerated libdef stub for: * * 'node-plop' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the * ...
import React from 'react'; import { render } from 'react-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import throttle from 'lodash/throttle'; import { loadState, saveState } from './app-logic/localStorage'; import rootReducer from './reducers/root'; import App from './components/Ap...
module.exports = { dev: { options: { sourceMap: true, sourceMapIncludeSources: true, mangle: false }, files: { '<%= paths.build %>/script.min.js': ['<%= paths.js %>/page.js', '<%= paths.js %>/**/*.js', '!<%= paths.vendor %>/**/*.js', '!<%= pat...
var serverRoot = "SERVER_ROOT"; var accountSid = "ACCOUNT_SID"; var authToken = "AUTH_TOKEN"; var callNumber = "+15555555555"; var client = require('twilio')(accountSid, authToken); var express = require('express'); var bodyParser = require('body-parser'); var app = express(); app.use(bodyParser.json()); app.use(body...
/** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup Ads Ads * @ingroup UnaModules * * @{ */ function BxAdsEntry(oOptions) { this._sActionsUri = oOptions.sActionUri; this._sActionsUrl = oOptions.sActionUrl; this._sObjName = oOptions....
const BLOCK_LENGTH = 1 << 14 class Piece { constructor (length) { this.length = length this.missing = length this.sources = null this._chunks = Math.ceil(length / BLOCK_LENGTH) this._remainder = (length % BLOCK_LENGTH) || BLOCK_LENGTH this._buffered = 0 this._buffer = null this._canc...
{ window.onload = function() { $('#loginbtn').on('click', function() { validate(ajaxLogin); }); $('#registerbtn').on('click', function() { validate(ajaxRegister); }); } function validate(handler) { $('#error').html(''); $('#form').validate({ rules : { username: { minlength: 2, maxlen...
var should = require('should'); var myproject = require('../'); describe('Synchronous Adder', function() { describe('add()', function() { it('should return 3 when adding 1 and 2', function() { var adder = new myproject.SyncAdder(); adder.add(1, 2).should.equal(3); }); }); });
/** * @fileoverview Rewrites HTTP headers for Usajobs.gov REST API access. Release 5.7 of the Usajobs.gov REST API requires HTTP headers be modified to include an API key. This is unfortunate since web browsers prevent javascript apps from altering HTTP headers (for security reasons)--javascript based web a...