code
stringlengths
2
1.05M
/* */ var stream = require("readable-stream"); var duplexer2 = require("./index"); var writable = new stream.Writable({objectMode: true}), readable = new stream.Readable({objectMode: true}); writable._write = function _write(input, encoding, done) { if (readable.push(input)) { return done(); } else { r...
'use strict'; var mongoose = require('mongoose'), Schema = mongoose.Schema; var QuoteSchema = new Schema({ Symbol: String, 'Date': Date, Open: Number, High: Number, Low: Number, Close: Number, Volume: Number, Adj_Close: Number }); module.exports = mongoose.model('Quote', Quo...
var InspectletAPI = require('../lib/inspectletapi.js'); var config = require('./config.json'); var insp = new InspectletAPI(config.username, config.password, false); insp.logIn(function (logInError, logInData) { console.log('logged in'); insp.getSites(function (error, data) { console.log(data); in...
/** * Copyright reelyActive 2015-2016 * We believe in an open Internet of Things */ var util = require('util'); var events = require('events'); var midimaps = require('./utils/midimaps'); var channelmaps = require('./utils/channelmaps'); var DEFAULT_MIDI_MAP = 'cMaj'; var DEFAULT_CHANNEL_MAP = 'allOnOne'; var DEFA...
module.exports = { 'selectors': [ '*', '[attribute]', '.class', '.class:hover', '.class::before', '.class:first-child', '.class:not(.class8)', '.class + .class5', '.class .class3', '.class > .class4', '.class ~ .class6', '.class.class2', '.class7', 'div', '#...
'use strict'; var debug = require('../../debug'); var dbman = require('../../dbman'); var log = debug.getLogger({ prefix: '[route.tool]- ' }); var tools = dbman.getCollection('tools'); var jobsites = dbman.getCollection('jobsites'); var ObjectId = dbman.getObjectId(); module.exports = { get: function (req, res...
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: '<json:package.json>', test: { files: ['test/**/*.js'] }, lint: { files: ['grunt.js', '*.js', 'lib/**/*.js', 'test/**/*.js'], aftermin: ['<config:min.dist.dest'] }, watch: { main: { ...
export default class PageService { constructor ($resource, $cacheFactory) { 'ngInject'; const pageCache = $cacheFactory('Pages'); return $resource( constants.apiUrl + 'pages/:ID', {ID: '@id'}, { 'get': { method:'GET', cache: pageCache }, 'que...
'use strict'; var t = require('tcomb-react'); var Factory = require('react-bootstrap/Glyphicon'); var name = t.react.getDisplayName(Factory); var Glyph = require('./util/Glyph'); var Type = t.struct({ __tag__: t.enums.of(name, name), glyph: Glyph }, name); module.exports = t.react.bind(Factory, Type, {stric...
const assert = require('assert'); const app = require('../../src/app'); describe('\'queue\' service', () => { it('registered the service', () => { const service = app.service('queue'); assert.ok(service, 'Registered the service'); }); });
"use strict"; const $ = wfl.jquery; const Action = require('./Action'); const ActionPerformer = { do: (type, data, reversable, direction, state) => { let action; if (type instanceof Action) { action = type; } else { action = new Action(type, data, reversable, direction, state); ...
version https://git-lfs.github.com/spec/v1 oid sha256:7be55b1f6dc5066020291688ca9a8613b80df085a674238d26932c12a14efa30 size 689165
import {msg} from 'translate' export const createValuesFeatureLayerSource = () => ({ id: 'values', type: 'Values', description: msg('featureLayerSources.Values.description') })
var esprima = require('esprima'); var babelJscs = require('babel-jscs'); var Errors = require('./errors'); var JsFile = require('./js-file'); var Configuration = require('./config/configuration'); var MAX_FIX_ATTEMPTS = 5; function getErrorMessage(rule, e) { return 'Error running rule ' + rule + ': ' + 'T...
let mix = require('laravel-mix') /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel applicat...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
/** * Options * * @param {String} arg Pin address. * @param {Number} arg Pin address. * @param {Array} arg List of Pin addresses. * * @return {Options} normalized board options instance. */ function Options(arg) { if (!(this instanceof Options)) { return new Options(arg); } var opts = {}; if (typ...
/* * Author: Abdullah A Almsaeed * Date: 4 Jan 2014 * Description: * This is a demo file used only for the main dashboard (index.html) **/ $(function () { "use strict"; //Make the dashboard widgets sortable Using jquery UI $(".connectedSortable").sortable({ placeholder: "sort-highlight", conn...
version https://git-lfs.github.com/spec/v1 oid sha256:f130cf13122eb650674d17203d62a2a16b40821bbef3ca4b0d2e5038bb44ccc0 size 349729
/* global Fae, modal, FCH */ /** * Fae modals * @namespace */ Fae.modals = { ready: function() { this.$body = $('body'); this.openClass = 'modal-open'; this.modalClass = 'MODAL_ID-modal-open'; this.showEvent = 'modal:show'; this.shownEvent = 'modal:shown'; this.closeEvent = 'modal:close'; ...
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Web Client * Copyright (C) 2005, 2006, 2007, 2009, 2010 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obt...
window.WebFontConfig = { google: { families: [ 'Open+Sans::latin', 'Raleway::latin' ] } }; (function() { let wf = document.createElement('script'); wf.src = ('https:' === document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; wf.type = 'text/javascript'; ...
// These are the pages you can go to. // They are all wrapped in the App component, which should contain the navbar etc // See http://blog.mxstbr.com/2016/01/react-apps-with-pages for more information // about the code splitting business import { getAsyncInjectors } from 'utils/asyncInjectors'; const errorLoading = (e...
const moduleNotFound = require('../../../src/formatters/moduleNotFound'); const expect = require('expect'); it('Formats module-not-found errors', () => { const error = { type: 'module-not-found', module: 'redux' }; expect(moduleNotFound([error])).toEqual([ 'This dependency was not found:', '', '* redux...
var util = require('util'), events = require('events'), steam = require('./main'); function Session(opt) { opt = opt || {}; this.access_token = null; this.umqid = null; this.steamid = null; this.messagelast = 0; this.scope = opt.scope || ['read_profile', 'write_profile', 'read_client', ...
define([ "../core", "../queue", "../effects" // Delay is optional because of this dependency ], function( chadQuery ) { // Based off of the plugin by Clint Helfers, with permission. // http://blindsignals.com/index.php/2009/07/chadquery-delay/ chadQuery.fn.delay = function( time, type ) { time = chadQuery.fx ? cha...
angular.module('ngCordova.plugins.deviceOrientation', []) .factory('$cordovaDeviceOrientation', ['$q', function($q) { return { watchHeading: function(options) { var q = $q.defer(); navigator.compass.watchHeading(function(result) { q.resolve(result); }, function(err) { q.reject...
var Map = function(container, model, opt_imagepath) { var self = this, baseLayer = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' }), map = L.map(container[0], { center: new L.LatLng(...
angular.module('JWTDemoApp') // Creating the Angular Controller .controller('LoginController', function($http, $scope, $state, AuthService, $rootScope) { // method for login $scope.login = function() { // requesting the token by usename and passoword $http({ url : 'authenticate', method : "POST", params ...
angular.module('directives').directive('recommendationBox', function ($api, $location, Recommendation) { return { restrict: "E", templateUrl: "common/directives/recommendationBox/recommendationBox.html", replace: true, link: function (scope, element, attrs) { var recbox = scope.recbox = { ...
// flow-typed signature: f0fa30a5aa3fb573cd7f5c56d1892016 // flow-typed version: <<STUB>>/file-loader_v0.11.2/flow_v0.56.0 /** * This is an autogenerated libdef stub for: * * 'file-loader' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with th...
'use strict'; exports.buildEACCES = path => Object.assign(new Error(`EACCES: permission denied '${path}'`), { errno: -13, code: 'EACCES', path }); exports.buildENOSPC = () => Object.assign(new Error('ENOSPC, write'), { errno: -28, code: 'ENOSPC' }); exports.buildENOENT = path => Object.assign(new Error(`ENOENT:...
var gulp = require('gulp'); var sass = require('gulp-ruby-sass'); var jade = require('gulp-jade'); var autoprefixer = require('gulp-autoprefixer'); var sourcemaps = require('gulp-sourcemaps'); var babel = require('gulp-babel'); var browserSync = require('browser-sync'); var watch = require('gulp-watch'); var plumber = ...
'use strict'; var __ = require('underscore'), Backbone = require('backbone'), $ = require('jquery'), usersShortCollection = require('../collections/usersShortCl'), userShortView = require('./userShortVw'), simpleMessageView = require('./simpleMessageVw'); module.exports = Backbone.View.extend({ ...
module.exports = { env: { es6: true, node: true, mocha: true }, extends: 'standard', rules: { indent: ['error', 2], 'linebreak-style': ['error', 'unix'], quotes: ['error', 'single'], semi: ['error', 'always'], 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, 'spa...
//Vue.config.debug = true; var vm = new Vue({ el: '#app', data:{ nodeList: [], nodeTotal: 0, partitionList: [], updateTimer: 0, }, components: { }, methods: { update: function() { var self = this; var client = new meta_sApp...
module.exports = { input: `# Heading one\n---\n# Heading two`, output: [ { type: 'h1', text: 'Heading one' }, { type: 'hr' }, { type: 'h1', text: 'Heading two' } ] };
function renderLastTrackerItems(items) { let template = ` <table class="ui red striped table"> <thead> <th>Reference Number</th> <th>Status</th> <th>Track point</th> <th>Next checking</th> </thead> <tbody> {{lines}} </tbody> </table> `; const lines = items.map( item => { retu...
var mythosApp = angular.module('mythosApp', [ 'ngRoute', 'mythosControllers', 'ui.bootstrap' ]); mythosApp.config(['$routeProvider', function($routeProvider) { // Dashboard $routeProvider.when('/dashboard', { templateUrl: 'dashboard.html', controller: ...
describe('toFixed', function () { beforeEach(module('xt')); it('assigns a name', [ 'toFixed', function (toFixed) { expect(toFixed).toBeDefined(); } ]); });
/*! * Fierce Planet - Event * * Copyright (C) 2011 Liam Magee * MIT Licensed */ var FiercePlanet = FiercePlanet || {}; /** * Possible events: * - Lifecycle events * - Agent events (create, change, destroy) * - Resource events (create, change, destroy) * * Event listeners: * - Logging * - Recording ...
/** * @param {number} N * @return {number} */ const binaryGap = function (N) { let max = 0, findFirst = false, dist = 0; for (let i = 0; i < 32; ++i) { if (N & 1) { if (findFirst) { max = Math.max(max, dist); } else { findFirst = true; ...
import thunk from 'redux-thunk'; import rootReducer from './rootReducer'; import schedulerSaga from 'sagas/scheduler'; import { Subject } from 'rxjs'; import { routerMiddleware } from 'react-router-redux'; import { applyMiddleware, compose, createStore } from 'redux'; const sagaMiddleware = (saga) => { const s...
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ const express = require('express'); const bodyParser = require('body-parser'); const jwt = require('jwt-simple'); const auth = require('./auth.js')(); const auth_...
import { WebSocket as MockWebSocket, Server as MockServer } from 'mock-socket'; import { adapters } from '@rails/actioncable'; function startPing(socket) { setTimeout(() => { socket.send( JSON.stringify({ type: 'ping', message: new Date().getTime() }) ); startPing(socket); }, 3000); } function ...
// build-dependencies: scan, concat, once Bacon.Property.prototype.startWith = function(seed) { return withDesc(new Bacon.Desc(this, "startWith", [seed]), this.scan(seed, (prev, next) => next)); }; Bacon.EventStream.prototype.startWith = function(seed) { return withDesc(new Bacon.Desc(this, "startWith", [seed...
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; }; /* Tabulator v4.6.1 (c) Oliver Folkerd */ var Mu...
import React from 'react' import Helmet from "react-helmet" import { prefixLink } from 'gatsby-helpers' import { TypographyStyle, GoogleFont } from 'react-typography' import typography from './utils/typography' const BUILD_TIME = Date.now(); module.exports = React.createClass({ propTypes () { return { bo...
/** * Fusion.Widget.Legend * * $Id$ * * Copyright (c) 2007, DM Solutions Group Inc. * 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 ...
import { applyMiddleware, compose, createStore } from 'redux'; import { routerMiddleware } from 'react-router-redux'; import thunk from 'redux-thunk'; import rootReducer from './rootReducer'; export default function configureStore(initialState = {}, history) { // Compose final middleware and use devtools in debug en...
/** * THIS FILE IS AUTO-GENERATED * DON'T MAKE CHANGES HERE */ import { BigNumberDependencies } from './dependenciesBigNumberClass.generated'; import { createE } from '../../factoriesAny.js'; export var eDependencies = { BigNumberDependencies: BigNumberDependencies, createE: createE };
/** * Created by Michał on 2017-09-02. */ //script runs after submitting the answer $("#answer_form").submit(function (event) { event.preventDefault(); searchViaAjax(); }); //AJAX request and its configuration function searchViaAjax() { $.ajax({ type: "GET", contentType: "application/j...
this.NesDb = this.NesDb || {}; NesDb[ 'FF4E61F3D48E54FCE35E8A4E5DF8BCC92440CD2F' ] = { "$": { "name": "Day Dreamin' Davey", "class": "Licensed", "catalog": "NES-6D-USA", "publisher": "HAL Laboratory", "developer": "Sculptured Software", "region": "USA", "players": "1", "date": "1992-06" }, "cartridg...
var music = document.getElementById('audio'); function playAudio() { if (music.paused) { music.play(); pButton.className = 'pause'; } else { music.pause(); pButton.className = 'play'; } }
/** * New node file */ require("rapid-core"); require("rapid-httpserver"); //自动检测配置目录并载入 rapid.autoConfig();
import express from 'express'; import serialize from 'serialize-javascript'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { Provider } from 'react-redux'; import { createMemoryHistory, match, RouterContext } from 'react-router'; import { syncHistoryWithStore } from 'react-router-...
import React, {Component, PropTypes} from 'react'; import transitions from '../styles/transitions'; import SlideInTransitionGroup from '../internal/SlideIn'; function getStyles(props, context, state) { const {datePicker} = context.muiTheme; const {selectedYear} = state; const styles = { root: { backgr...
'use strict'; const parser = require('./parser'); const autoParser = require('./auto-parser'); function parse (source, opts) { if (!opts.syntax) { opts.syntax = this; } return parser(source, opts) || autoParser(source, opts); } module.exports = parse;
import defaultParams from './params.js' import { toArray, capitalizeFirstLetter, warn } from './utils.js' const swalStringParams = ['swal-title', 'swal-html', 'swal-footer'] export const getTemplateParams = (params) => { const template = typeof params.template === 'string' ? document.querySelector(params.template) ...
'use strict'; /* * Feed Route * path: /feed */ let express = require('express'); let router = express.Router(); router.get('/', (req, res, next) => { console.log('entered feed') res.send('OK') }) module.exports = router;
export default function while(test, block){ var result = undefined; while((test()|0) === 0x01){ result = block(); } return result; }
version https://git-lfs.github.com/spec/v1 oid sha256:d3f3ad116b975b3f9ed3caf871eb872fd812854a11fa9e6755cf84cd28b5b9b7 size 11448
// Future versions of Hyper may add additional config options, // which will not automatically be merged into this file. // See https://hyper.is#cfg for all currently supported options. // Partial config module.exports = { // My plugins plugins: [ // Theme 'hypermaterial-vibrancy', // Adds system reso...
import React, {Component} from 'react' import PropTypes from 'prop-types' import './style.css' import Container from 'gComponents/utility/container/Container.js' import FirstSubscriptionContainer from 'gComponents/subscriptions/FirstSubscription/container.js' import Plan from 'lib/config/plan.js' import { connect } fr...
(function(window) { "use strict"; var prev = window.oops || null, curr = function(){}; propertyExpand( curr, { core: { expand: propertyExpand }, typing: { isObject: isObject, isCallable: function( value ){ return (typeof value === 'function'); }, isArray: Array.isArray, isString: func...
app.controller("teamPanelCtrl", function($scope,$rootScope,user,$firebaseArray,$window) { /*initialzation and checking*/ var courses = firebase.database().ref("courses"); $scope.courseFB=$firebaseArray(courses); var team = firebase.database().ref("Team"); $scope.teamFB=$firebaseArray(team); var user...
import { assert, expect } from 'meteor/practicalmeteor:chai'; import { populateULRModuleFixture, dePopulateModuleFixture } from '../../../../test-fixtures/modules'; import { populateULRFixture, dePopulatePlannerFixture } from '../../../../test-fixtures/planner'; import { populateULRModuleFulfilment, ...
/** * response.js * ---------------------------- * The response wraps the standard http * response object and allows the framework * to add additional behaviour & data. */ // Dependencies var http = require("http"); var js2xmlparser = require("js2xmlparser"); /** * Ctor **/ function Response(res) { this.p...
var mysql = require('mysql'); var pool = mysql.createPool(require('../config/database').connection); var results = { getAllByUserId: function(req, res, next) { pool.query('CALL results_find_by_user_id(?)', [req.user.userId], function(error, rows) { if (error) { res.status(500)...
var extend = require('deap/shallow'), async = require('async'), redis = require('redis'); var Store = module.exports = function(config) { var self = this; this.type = 'redis'; //apply defaults config = extend( { host: 'localhost', port: 6379, options: {}, log: empty, error: empty }, config|...
describe('Executing `connectEvents` with a hash as the first argument', function() { var ch, label1 = 'one', label2 = 'two', cbOne, cbTwo, p, ret, eventsHash; beforeEach(function() { cbOne = function() {}; cbTwo = function() {}; ch = Wreqr.radio.channel('test'); ...
(function () { 'use strict'; angular .module('bulma.toast', []); })();
//= require affix //= require alert //= require button //= require carousel //= require collapse //= require dropdown //= require tab //= require transition //= require scrollspy //= require modal //= require tooltip //= require popover
'use strict' var BaseModel = require('model-toolkit').BaseModel; module.exports = class Bank extends BaseModel { constructor(source) { super('bank', '1.0.0'); this.code = ''; this.name = ''; this.description = ''; this.copy(source); } }
var Big = require('big.js'), db = require('../db') module.exports = function updateItem(store, data, cb) { store.getTable(data.TableName, function(err, table) { if (err) return cb(err) var key = db.validateKey(data.Key, table), itemDb = store.getItemDb(data.TableName) if (key instanceof Error) retu...
App.NodesEditorController = App.EditorController.extend({ editorDialogBody : 'dialog/nodeEditorBody', editorDialogTabs : 'dialog/nodeEditorTabs', title : Ember.I18n.translate("nodeDetails"), generalTabActive : function() { return this.get('tabsConfig')[0].isActive; }.property('tab...
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './DoctrineOriginalWordmark.svg' /** DoctrineOriginalWordmark */ function DoctrineOriginalWordmark({ width, height, className }) { return ( <SVGDeviconInline classNa...
// Compiled by ClojureScript 0.0-2322 goog.provide('clojure.browser.net'); goog.require('cljs.core'); goog.require('goog.Uri'); goog.require('goog.net.xpc.CrossPageChannel'); goog.require('goog.net.xpc.CfgFields'); goog.require('goog.net.EventType'); goog.require('goog.net.XhrIo'); goog.require('goog.json'); goog.requi...
import PropTypes from 'prop-types' import { connect } from 'react-redux' import Component from './button' const mapDispatchToProps = (dispatch, { name, href, type, onClick }) => { return { onClick: (e) => { if (onClick) onClick() if (!href && type !== 'submit') e.preventDefault() e.stopPropagat...
//=require modernizr-base tests['cssgradients'] = function() { /** * For CSS Gradients syntax, please see: * webkit.org/blog/175/introducing-css-gradients/ * developer.mozilla.org/en/CSS/-moz-linear-gradient * developer.mozilla.org/en/CSS/-moz-radial-gradient * dev.w3.org/csswg/css3-images/...
module.exports = function({{from.column}}, {{to.column}}, request, response) { var filter = '{{from.column}} = ' + {{from.column}} + ' AND {{to.column}} = ' + {{to.column}}; if({{from.column}} === 0) { filter = '{{to.column}} = ' + {{to.column}}; } else if({{to.column}} === 0) { filter = '{{from.column}} = ' +...
'use strict'; module.exports = function (done) { $.router.get('/api/login_user', async function (req, res, next) { res.apiSuccess({user: req.session.user, token: req.session.logout_token}); }); $.router.post('/api/login', async function (req, res, next) { if (!req.body.password) return next(new Err...
const DrawCard = require('../../drawcard.js'); class FrozenSolid extends DrawCard { setupCardAbilities(ability) { this.attachmentRestriction(card => card.getType() === 'location' && !card.isLimited() && card.getPrintedCost() <= 3); this.whileAttached({ effect: ability.effects.blankExclu...
// function rippleDuoshuo(){ $(".ds-post-button").attr("ripple","0"); // }
var request = require('request') , cheerio = require('cheerio') , fs = require('fs') , querystring = require('querystring') , util = require('util'); var linkSel = 'h3.r a' , descSel = 'div.s' , itemSel = 'li.g' , nextSel = 'td.b a span' , noneFoundSel = ".med:contains(No results)"; var URL = 'http:/...
var CONFIG; var Q = require('q'); var fs = require('fs'); var crypto = require('crypto'); var paths = require('./routePaths'); var cachedHashes = $H({}); var path = require('path'); exports.Mangler = new Class({ initialize : function() { this.urls = $H({}); this.hashes = $H({}); if (!CONFIG) CONFIG...
'use strict'; // Jobs controller angular.module('jobs').controller('JobsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Jobs', '$anchorScroll', function($scope, $stateParams, $location, Authentication, Jobs, $anchorScroll ) { $scope.authentication = Authentication; // Create new Job $sc...
import { Indicator, IndicatorInput } from '../indicator/indicator'; export class VolumeProfileInput extends IndicatorInput { } export class VolumeProfileOutput { } export function priceFallsBetweenBarRange(low, high, low1, high1) { return (low <= low1 && high >= low1) || (low1 <= low && high1 >= low); } export clas...
// Find an element in a sorted array of integers. // Array may contain duplicate elements. // Find the first occurence of the element. // Author: Tanvir Aslam Mohammed const binSearchDups = (arr, target) => { if (!arr || arr.length === 0 || typeof target !== "number") return -1; const len = arr.length; let star...
const $ = require('jquery'); const QUnit = require('qunit').QUnit; const templr = require('./../../src/templr-browser'); QUnit.module('templr'); QUnit.test('appendTo - remote source', function (assert) { const done = assert.async(); const src = '/tpl/appendTo.html'; const param = { items: [ {name: 'i...
'use strict'; var angular = require('angular'); var tartan = require('tartan'); var ngTartan = require('../../module'); function makeDraggable(window, canvas, getOffset, repaint) { var document = window.document; var drag = null; var dragTarget = document.releaseCapture ? canvas : window; function onMouseDow...
System.config({ baseURL: "/", defaultJSExtensions: true, transpiler: "babel", babelOptions: { "optional": [ "runtime", "optimisation.modules.system" ] }, paths: { "github:*": "jspm_packages/github/*", "npm:*": "jspm_packages/npm/*" }, map: { "angular": "g...
'use strict'; const processors = require('../processors.js'); module.exports = { help: 'Iterate over the JSON input, returning only objects that match the given Javascript predicate.', usage: '<predicate>', minPositionalArguments: 1, maxPositionalArguments: 1, outputsObject: true, needsSandbox...
var test = require("tape") var path = require("path") var fs = require("fs") var readimage = require("readimage") var writepng = require("../writepng") function readfile(filename, cb) { var buf = fs.readFileSync(path.join(__dirname, filename)) readimage(buf, cb) } var pngHeader = new Buffer([137, 80, 78, 71]) t...
$(document).ready(function() { var now = new Date(); var today = (now.getMonth() + 1) + '-' + now.getDate(); $('#Brewday').val(today); }); $(document) .one('focus.textarea', '.autoExpand', function() { var savedValue = this.value; this.value = ''; this.baseScrollHeight = this.scrollHeight; this...
/*! * jQuery dataAttributes - v1.0.0 * A fixed jQuery .data() method. * https://github.com/marcofugaro/jquery-data-attributes **/ !function(t){t.fn.dataAttributes=function(a,e){if(this.length){if(e)return this.attr("data-"+a,e);if(a)return this.attr("data-"+a);var i={};return t.each(this[0].attributes,function(t...
function FrameRateService() { var frameCountLimit = 30; var frameEndTimes; return { reset: function() { frameEndTimes = []; var frameEndTime = new Date() .getTime(); frameEndTimes.push(frameEndTime); }, next: function() { ...
/* * jsPlumb * * Title:jsPlumb 1.3.11 * * Provides a way to visually connect elements on an HTML page, using either SVG, Canvas * elements, or VML. * * This file contains the HTML5 canvas renderers. * * Copyright (c) 2010 - 2012 Simon Porritt (http://jsplumb.org) * * http://jsplumb.org * http://githu...
var kue = require('kue'); var console = require('tracer').colorConsole(); var publisher = function (config, conn) { var queue = null; var jobs = {}; var start = function () { queue = kue.createQueue(); startPublisher(); }; function setStatus(data, status) { if (data) { ...
'use strict'; exports.mockSchemaObject = function (defaults, options) { var ret = { _obj: defaults || {}, _options: options || {}, _errors: [] }; ret._this = ret; return ret; };