code
stringlengths
2
1.05M
'use strict'; //Medical histories service used to communicate Medical histories REST endpoints angular.module('medical-histories').factory('MedicalHistories', ['$resource', function($resource) { return $resource('medical-histories/:medicalHistoryId', { medicalHistoryId: '@_id' }, { update: { method: 'PUT' ...
(function () { 'use strict'; // Umbraco overrides function nexuUmbracoOverrides($provide) { $provide.decorator('$controller', function ($delegate) { return function (constructor, locals, later, ident) { var ctrl = $delegate(constructor, locals, later, id...
;(function(){ String.prototype.capitalize = function(){ var cap = this.charAt(0).toUpperCase(); return cap + this.substr(1); }; })();
/* * Copyright (c) 2012-2016 André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ const { assertSame } = Assert; // Clarify parsing of function bodies when rest parameter is used // https://bugs.ecmascript.org/show_bug.cgi?id=...
(function() { module.exports = function(params, callback) { var path = params.path || "."; var spawn = require('child_process').spawn, util = require('util'); var options = []; options.push('install'); var npminstall = spawn('npm', options, { cwd: path, detached: f...
var express = require("express"); // var router = require("./router.js"); var bodyParser = require("body-parser"); var questController = require('./controllers/questController.js'); var db = require("./db/config.js"); var app = express(); app.use(bodyParser.json()); app.set("port", process.env.PORT || 3000); var se...
define("jsm/util/RoleMap",[],function(){ "use strict"; /** * Reserved roles names are ["append","delete","get","set","getAll","has","set","length","hasOwnProperty"] * @namespace jsm.util * @class RoleMap * @constructor * @example <pre><code>var roles=new RoleMap(); roles.set("master","Master"); roles.append...
var btree = require('behaviortree') var btsexp = require('../index.js') var test = require('tape') test('succeeder', function (t) { t.plan(1) var tree = btsexp('(succeed)') tree.step() t.ok('nothing broke') }) test('custom', function (t) { t.plan(1) btree.register('beep', new btree.Task({ run: funct...
describe("Overall App Suite", function() { });
import test from 'ava'; import shebangCommand from '.'; test('main', t => { t.is(shebangCommand('#!/usr/bin/env node'), 'node'); t.is(shebangCommand('#!/bin/bash'), 'bash'); t.is(shebangCommand('#!/bin/bash -ex'), 'bash -ex'); t.is(shebangCommand('#! /bin/bash'), 'bash'); t.is(shebangCommand('#! /bin/bash -ex'), ...
export { default } from 'ember-video/components/player/settings-menu-item';
define(function (require) { var $ = require('jquery'); var DURATION = 500; var EASING = 'easing'; var MOVE_ANIMATION_COVER = 'cover'; var MOVE_ANIMATION_SLIDE = 'slide'; var MOVE_ANIMATION_REVEAL = 'reveal'; /** * oldPage Current displaying dom * newPage The new Page dom to show...
/** * View notes view * This allows users to browse the notes * within a hive of their choosing. */ var win = Ti.UI.currentWindow; var header = Ti.UI.createView({ width: '100%', height: '33%', top: 0 }); // Hive selection menu and buttons var navigation = Ti.UI.createView({ width: '100%', backgroundImage: '...
#lang 'sweet.js'; export function log(msg) { console.log(msg); }
import Animation from 'ember-burger-menu/animations/base'; export default Animation.extend({ animation: 'scale-rotate', outlet(open, width, right) { return { transform: open ? right ? `translate3d(-100px, 0, -${width * 2}px) rotateY(20deg)` : `translate3d(100px, 0, -${width * 2}px) rotateY(-20deg)` : ...
const path = require('path') const convict = require('convict') const pkg = require('../package.json') const config = convict({ env: { doc: 'The server environment', format: ['production', 'development', 'test'], default: 'development', env: 'NODE_ENV' }, appId: { doc: 'Application ID', ...
module.exports = require('./lib/elasticclient');
var playlists = {}; window.addEventListener('message', function (event) { console.log("Event data", event.data); if (event.data.action === 'tracksadded') { var playlistURI = event.data.uri; var position = event.data.position; var tracks = event.data.tracks; } if (event.data.action === 'navigate') { showThr...
// Allow attaching to jQuery selectors $.fn.draggable = function(options) { makeDraggable(this, options); return this; }; /** * This function makes an element movable around the page. * It supports mouse and touch input and allows whichever element * is specified to be moved to any arbitrary position. * *...
Router.map(function () { this.route('projects', { path: '/projects', waitOn: function () { return [ Meteor.subscribe('projects'), Meteor.subscribe('errors'), Meteor.subscribe('exclusions') ]; }, data: function () { var projects = Projects.find({}, {sort: {name...
"use strict"; var gulp = require('gulp'); var jasmine = require('gulp-jasmine'); var gutil = require('gulp-util'); var source = require('vinyl-source-stream'); var buffer = require('vinyl-buffer'); var uglify = require('gulp-uglify'); var browserify = require('browserify'); var bundler = browserify('src/bus.js'); gu...
define({ "showArcgisBasemaps": "Включить базовые карты портала", "add": "Щелкните, чтобы добавить новую базовую карту", "edit": "Свойства", "titlePH": "Заголовок базовой карты", "thumbnailHint": "Щелкните на изображении, чтобы обновить его", "urlPH": "URL-адрес слоя", "addlayer": "Добавить базовую карту",...
;(function($, window, document, undefined) { var pluginName = 'DialWidget', defaults = { delay: 0, theme: 'ring', speed: 50, value: 0, size: 0.8, onComplete: function () {}, backColor: undefined, foreColor: '#333', labelPosition: 'bottom', prefix: '', suffix: '' }; window.DialWi...
define({ "_widgetLabel": "Рисование", "selectDrawMode": "Выбрать режим рисования", "clear": "Очистить", "point": "Точка", "line": "Линия", "polyline": "Линия", "freehandPolyline": "Линия произвольной формы", "triangle": "Треугольник", "extent": "Конверт", "circle": "Круг", "ellipse": "Эллипс", "...
// https://github.com/emberjs/ember.js/blob/master/packages/ember-metal/lib/error_handler.js#L4-L14 const getStack = error => { let stack = error.stack; let message = error.message; if (stack && !stack.indexOf(message) > -1) { stack = `${message}\n${stack}`; } return stack; }; class ErrorHandler { co...
CKEDITOR.plugins.setLang("about","ku",{copy:"مافی لەبەرگەرتنەوەی \x26copy; $1. گشتی پارێزراوه. ورگێڕانی بۆ کوردی لەلایەن هۆژە کۆیی.",dlgTitle:"دەربارەی CKEditor",help:"سەیری $1 بکه بۆ یارمەتی.",moreInfo:"بۆ زانیاری زیاتر دەربارەی مۆڵەتی بەکارهێنان، تکایه سەردانی ماڵپەڕەکەمان بکه:",title:"دەربارەی CKEditor",userGuide:"...
/* eslint no-unused-vars:0 */ import createGlamorous from './create-glamorous' function splitProps({ css: cssOverrides = {}, // these are plucked off theme, // because they className, // should never innerRef, // be forwarded glam, // to the lower // component ever ...rest }) { return {toForward: res...
import Typography from 'typography' import ms from 'modularscale' import { MOBILE_MEDIA_QUERY, TABLET_MEDIA_QUERY } from 'typography-breakpoint-constants' const options = { baseFontSize: '18px', baseLineHeight: '26px', googleFonts: [ { name: 'Alegreya Sans', styles: [ '400', '400...
/*! * jQuery UI 1.8.1 * * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * http://docs.jquery.com/UI */ jQuery.ui||function(c){c.ui={version:"1.8.1",plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d)...
version https://git-lfs.github.com/spec/v1 oid sha256:2f129fc507512da2e78c07c4f5643c6a3ded36daee0ef476444a9afa74ee660a size 7320
version https://git-lfs.github.com/spec/v1 oid sha256:11bf5006da305bece81f377efda481c4de5d8e34e73015305e3d09c14f89ec83 size 6798
const EventEmitter = require('events') class Ghost extends EventEmitter { constructor(activity, ghostId, staticData) { super(); this.activity = activity; this.static = staticData || {}; this.startTime = new Date(); this.startOffset = 0; this.id = ghostId; } getId() { return this.id...
var Icon = require('../icon'); var element = require('magic-virtual-element'); var clone = require('../clone'); exports.render = function render(component) { var props = clone(component.props); delete props.children; return element( Icon, props, element('path', { d: 'M18.4 10.6C16.55 8.99 14.15 8 11....
/* eslint-env node */ const { babel } = require('@rollup/plugin-babel') const { nodeResolve } = require('@rollup/plugin-node-resolve') const replace = require('@rollup/plugin-replace') module.exports = { input: 'js/tests/integration/bundle.js', output: { file: 'js/coverage/bundle.js', format: 'iife' }, ...
!function() { var d3 = { version: "3.4.8" }; if (!Date.now) Date.now = function() { return +new Date(); }; var d3_arraySlice = [].slice, d3_array = function(list) { return d3_arraySlice.call(list); }; var d3_document = document, d3_documentElement = d3_document.documentElement, d3_window = win...
// --------- This code has been automatically generated !!! 2017-01-16T16:52:09.739Z "use strict"; require("requirish")._(module); /** * @module opcua.address_space.types */ var assert = require("better-assert"); var util = require("util"); var _ = require("underscore"); var makeNodeId = require("lib/datamodel/nodei...
import { sparkle, heartPurple, shout, needle } from '../.. /emoji.js'; import { easeOutQuad } from 'easing'; const hotOrDot = (hot, enemy)=> Array(100).fill(0).map((el, index)=> [ !enemy ? (hot ? sparkle : heartPurple) : (hot ? needle : shout), [ [ index*16, { fontOptions: { ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var fs = require('fs-extra'); var path = require('path'); var LiveServer = require('live-server'); var Handlebars = require('handlebars'); function __extends(d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __...
piDashboard.factory('HumidityResource', ['$resource', function($resource) { return $resource('http://cuddlefish.co/v2/api'); // return $resource('http://localhost:8000/api', null, { // 'update': { method:'PUT' } // }); } ]); // from webserver_pi/tornado_pi/tornado_app.py // (r"/", MainHandler), //...
// Copyright (c) 2011 Firebase.co and Contributors - http://www.firebase.co // // 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...
/** * External dependencies. */ var pathval = require('pathval'); /** * Internal dependencies. */ var assert = require('./assert'); /** * Return a status code expectation. * * @param {Number} expected status code * @returns {Function} * @api public */ exports.statusCode = function(code) { return functi...
import global from "../../global.js"; import { dataMap, removeTemplate } from "../utils.js"; import resolveArray, { arrayMap } from "./array.js"; import resolveNode from "./node.js"; export default function resolveValue(host, target, value, lastValue) { let type = typeof value; if (Array.isArray(value)) { type...
/** * Application utility functions * * @module */ var bluebird= require("bluebird"); /** * provides the proper response for routes * */ var responseHandler = function (req, res, dbFunc, socketFunc) { return bluebird.try(function () { return dbFunc(); }) .then(function (result) { res.json(result); ...
import app from '../../forum/app'; import Page from '../../common/components/Page'; import NotificationList from './NotificationList'; /** * The `NotificationsPage` component shows the notifications list. It is only * used on mobile devices where the notifications dropdown is within the drawer. */ export default cl...
const BaseData = require('./base/base.data'); const User = require('../models/user.model'); const VALIDATOR = require('../utils/validator/validator.new'); const { hashPasswordHelper } = require('../utils'); class UsersData extends BaseData { constructor(db) { super(db, User); } add(user) { ...
const { output } = require('../configuration.js') module.exports = { test: /\.(jpg|jpeg|png|gif|svg|eot|ttf|woff|woff2)$/i, use: [{ loader: 'file-loader', options: { // Set publicPath with ASSET_HOST env if available so internal assets can use CDN publicPath: output.publicPathWithHost, na...
const webpack = require('webpack'); const webpackMerge = require('webpack-merge'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const commonConfig = require('./webpack.common.conf.js'); const util = require('./util'); const ENV = process.env.NODE_ENV = process.env.ENV = 'production'; module.expor...
window.onload = () => { const div = document.querySelector('div') console.log(div.textContent) window.close() }
'use strict'; /** * Module dependencies. */ import {helpers} from './view'; /** * Ensures an object. * * @private * @function * @name ensureObject * @param {Mixed} o * @return {Object} */ const ensureObject = o => null != o && 'object' == typeof o ? o : {}; /** * Recursively makes an object safe for par...
(function(root, factory) { // Node.js or CommonJS if (typeof exports !== 'undefined') { var _ = require('underscore'); // if in node env just stub the request var req = function() {}; factory(root, exports, _, req); // browser } else { // we use reqwest as our `$.ajax` replacement for `sync...
app.controller('EditPictureController', ['$scope', 'Pictures', '$routeParams', 'Auth', '$location', function($scope, Pictures, $routeParams, Auth, $location) { Pictures.Single($routeParams.id).success(function(data) { $scope.picture = data; }).error(function(){ Auth.RemoveGlobal() }); $scope.Delete = ...
var assert = require('assert'); var Stack = require('./stack.js'); function Queue(size) { this.s1 = new Stack(size); this.s2 = new Stack(size); } Queue.prototype.enque = function (value) { while (!this.s1.empty()) { this.s2.push(this.s1.pop()); } this.s2.push(value); while (!this.s2.empty()) { t...
var url = require('url') var http; function MDiMapGeocoder() { this.address_fields = ['Street', 'City', 'State', 'ZIP'] this.defaults = { browser: false, wkid: 4326, outFields: [], get_url: { protocol: 'http:', host: 'geodata.md.gov', pathname: 'imap/rest/services/GeocodeServices/...
"use strict";module.exports=function(e){return typeof e=="string"?e.replace(/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]/g,""):e};
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.isNumber = isNumber; exports.isString = isString; exports.isBool = isBool; exports.isRegex = isRegex; exports.isDate = isDate; exports.isArray = isArray; exports.isNull = isNull; exports.isUndefined = isUndefined; exports.isDefined ...
/* * grunt-release * https://github.com/geddski/grunt-release * * Copyright (c) 2013 Dave Geddes * Licensed under the MIT license. */ 'use strict'; var shell = require('shelljs'); var semver = require('semver'); var request = require('superagent'); var Q = require('q'); module.exports = function(grunt){ grunt...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(...
'use strict'; require('es5-shim'); var test = require('tape'); var daytime = require('./index'); var toStr = Object.prototype.toString; var type = function (item) { return toStr.call(item).slice(8, -1).toLowerCase(); }; test('argument validation', function (t) { var error = new TypeError('both day and time must b...
/** * FerdinandJS - v0.6.0 - AMD-lite JavaScript module resolver * https://github.com/rbirkby/ferdinandJS * * Supports a subset of AMD with the following restrictions: * Static dependencies only, no module loading * Absolute module id paths only * Delayed factory invocation * Named modules only * Acy...
export default function () { return { path: '.npmignore', content: ` yarn.lock .gitignore .github/ **/*.test.js **/test.js test/ `, } }
var Wrapper = require('./Wrapper'); var expect = require('chai').expect; describe('Wrapper Specs', function () { var maxColumn = 14; it('should replace the third space with a newline', function() { var testString = "This is the first test"; var expectedResult = "This is the\nfirst test"; ...
// require('protractor') equivalent is requiring ptor let protractor = require('../../built/main'); // the webdriver stuff we are exposing externally describe('require(\'protractor\')', () => { describe('exported protractor classes', () => { it('should be defined', () => { var protractorClasses = ['Prot...
/** * projects.js * Returns the dynamic elements of the projects in JSON. * * @author Jason Valdron <jason@valdron.ca> * @package di-api */ (function() { 'use strict'; var async = require('async'); // Export the route function. module.exports = function(app){ var cache = { ...
module.exports = { module: { rules: [ { resource: /abc\.js$/, loader: "./loader?a!./loader?b" }, { resource: /def\.js$/, loaders: "./loader?c!./loader?d" } ] } }
var searchData= [ ['eventlistenerptr',['EventListenerPtr',['../EventListener_8h.html#aa00bcda9123d0b7abe465e9c125b210a',1,'EventListener.h']]] ];
import React, { Component } from 'react' import PropTypes from 'prop-types' import ProductsList from './ProductsList' import { GridList, GridTile } from 'material-ui/GridList'; import IconButton from 'material-ui/IconButton'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentAdd from 'm...
// Source : https://leetcode.com/problems/repeated-string-match // Author : Dean Shi // Date : 2017-10-09 /*************************************************************************************** * * Given two strings A and B, find the minimum number of times A has to be * repeated such that B is a substring of it...
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.ui.demokit.IndexLayout. sap.ui.define(['jquery.sap.global', 'sap/ui/Device', 'sap/ui/core/Control'...
"use strict"; var io = null; function getSocketsManager() { return io; } function initSocketsManager(app) { io = require('socket.io').listen(app); return io; } module.exports = { getSocketsManager : getSocketsManager, initSocketsManager : initSocketsManager };
/** * By Jan-Willem Wisgerhof <j.wisgerhof@uq.edu.au> */ (function () { Polymer({ is: 'uqlibrary-research-trending', properties: { // use these to display different sections of page cards: { type: Array, value: function () { return [ { 'type': ...
var assert = require('assert'); var asyncplify = require('asyncplify'); var asyncplifySort = require('..'); var should = require('should'); function itShouldEmitOrderedResultsOn(count, title, pageSize) { it('should return ordered results on ' + title, function (done) { var index = 1; this.timeout(3000); a...
// // Copyright (c) 2016 Oliver Merkel // All rights reserved. // // @author Oliver Merkel, <Merkel(dot)Oliver(at)web(dot)de> // function UctNode(parentNode, board, action) { this.verbose = false; this.action = action; this.parentNode = parentNode; this.children = []; this.wins = 0; this.visits = 0; this...
#!/usr/bin/env node 'use strict'; const args = process.argv.slice(2) const arg = args[0]; const isTTY = process.stdin.isTTY; if (/^(-v|--version)$/.test(arg)) version(); else if (!arg && isTTY || /^(-h|--help)$/.test(arg)) help(); else if (args.length) require('itchy/legacy')(args, main, exitIfError); e...
import * as user from '../service/user' export async function save(ctx, next) { let entry = ctx.body ctx.body = await user.save(entry) next() } export async function remove(ctx, next) { let id = ctx.params.id ctx.body = await user.remove(id) next() } export async function update(ctx, next) { ...
require('can-view-href');
/** * */ const _ = require ('lodash'); console.log(_.chunk(['a', 'b', 'c', 'd'], 2)); console.log(_.compact([0, 1, false, 2, '', 3])); console.log(_.difference([2, 1], [2, 3])); var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; console.log(_.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual)); console....
/**! * utility - benchmark/random_string.js * * Copyright(c) fengmk2 and other contributors. * MIT Licensed * * Authors: * fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com) */ 'use strict'; /** * Module dependencies. */ var crypto = require('crypto'); var utility = require('../'); function randomS...
google.charts.load('current', {'packages':['corechart']}); google.charts.setOnLoadCallback(drawVisualization); function drawVisualization() { // Some raw data (not necessarily accurate) var data = google.visualization.arrayToDataTable([ ['Date','Daily Use','Daily Average'], ['3/1/2016',8,8], ['3/2/2016',10,9]...
(function () { 'use strict'; angular.module('app.layout') .run(stepprogressbarTemplate); stepprogressbarTemplate.$inject = ['$templateCache']; function stepprogressbarTemplate ($templateCache) { var tplHtml = ''+ '<ul id="stepprogressbar">'+ '<li c...
import axios from 'axios' const REQUEST_POST = 'REQUEST_POST' const RECEIVE_POST = 'RECEIVE_POST' const requestPost = () => ({ type: REQUEST_POST, isFetching: true }) const receivePost = (json) => { return { type: RECEIVE_POST, isFetching: false, result: json } } export const fetchPost = (cid) =>...
/** * Created by Markus on 16.01.2015. */ (function () { "use strict"; var triangle = function ($M) { /** * Initial values for {@link $M.Geometrix.Triangle}. * Omitted properties get calculated by the given, where possible. * @typedef {Object} $M.Geometrix.Triangle~Opti...
// GLOBAL var _CurrentSlide = 0; function btnMoreClick(){ $.fn.fullpage.setAllowScrolling(false); $.fn.fullpage.setKeyboardScrolling(false); $.fn.fullpage.moveSlideRight(); document.getElementById("btnBack").style.visibility = "visible"; } function btnBackClick(){ $.fn.fullpage.setAllowScrolling(false)...
var searchData= [ ['info',['info',['../classtacopie_1_1logger.html#ae7dd235972bbf86a017fc39b3af80efeacaf9b6b99962bf5c2264824231d7a40c',1,'tacopie::logger']]] ];
/* * Popular Repositories * Copyright (c) 2014 Alberto Congiu (@4lbertoC) * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ /* global jest, describe, it, expect, beforeEach */ 'use strict'; jest.dontMock('object-assign'); // Nee...
const path = require('path') const glob = require('glob').sync const webpack = require('webpack') const HtmlWebpackPlugin = require('html-webpack-plugin') const ExtractTextPlugin = require('extract-text-webpack-plugin') const CleanWebpackPlugin = require('clean-webpack-plugin') const CopyWebpackPlugin = require('copy-w...
import OverviewPage from './OverviewPage'; import OverviewPageBody from './OverviewPageBody'; import OverviewPageHeader from './OverviewPageHeader'; export default OverviewPage; export { OverviewPageBody, OverviewPageHeader };
define(function (require) { var task = {}, data = require.use('iData').card.viewData; require('headCon', 'mainCon', 'utils/transToView', 'widget/viewTable', 'widget/totalProcess', 'jq/jq-infoView').ready = function (headCon, mainCon, transToView, viewTable, totalProcess) { task.viewData = functi...
//Playlist object var playlist = new Playlist(); //Videos var video1 = new Video("videos/lion.mp4", "Lion", "00:16"); var video2 = new Video("videos/bear.mp4", "Bear", "00:27"); var video3 = new Video("videos/squirrel.mp4", "Squirrel", "00:22"); //Videos added to playlist playlist.playlistAddVideo(video1);...
'use strict'; describe('toggle-ui', function() { beforeEach(function() { browser().navigateTo('/app/index-e2e.html'); }); it('should show the two initial toggles', function(){ expect(element('tbody.toggle').count()).toEqual(2); }); it('should remove a deleted toggle', function(){ expect(el...
/* */ System.register(['core-js', 'aurelia-dependency-injection', 'aurelia-history', './router', './pipeline-provider', './navigation-commands', 'aurelia-event-aggregator', './router-configuration'], function (_export) { 'use strict'; var core, Container, History, Router, PipelineProvider, isNavigationCommand, Ev...
//~ name a504 alert(a504); //~ component a505.js
import { expect } from 'chai'; import gql from 'fake-tag'; import { describe, it } from 'mocha'; import sinon from 'sinon'; import roles from '../../../../server/constants/roles'; import models from '../../../../server/models'; import * as utils from '../../../utils'; let host, user1, collective1, event1; let sandbox...
function(properties, context) { //Load any data fds; //Do the operation }
'use strict'; module.exports = { db: 'mongodb://localhost/partnumber-dev', app: { title: 'partnumber - Development Environment' }, facebook: { clientID: process.env.FACEBOOK_ID || 'APP_ID', clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET', callbackURL: '/auth/facebook/callback' }, twitter: { c...
console.log('META:', JSON.stringify(window.pjsc_meta, undefined, 2)); window.pjsc_output = window.pjsc_meta.pageResponse.request.requestId;
const {ipcMain} = require('electron'); const ipcResponse = require('../ipc-response'); const exec = require('child_process').exec; function getOutdated(packagePath) { return new Promise((resolve, reject) => { exec( `npm explore ${packagePath} -- npm outdated --json --depth 0`, {maxB...
var kafka = require('../kafka'), Producer = kafka.Producer, Client = kafka.Client, client = new Client(); var argv = require('optimist').argv; var topic = argv.topic || 'topic1'; var p = argv.p || 0; var count = argv.count || 1, rets = 0; var producer = new Producer(client); producer.on('ready', function ...
'use strict'; var gulp = require('gulp'); var sass = require('gulp-sass'); gulp.task('sass', function () { gulp.src('./scss/anvil.scss') .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest('./docs/css')); }); gulp.task('watch', function () { gulp.watch('./scss/**/*.scss', ['sass']); });
define(['modules/defaultview', 'libs/plot/plot', 'util/datatraversing', 'util/api', 'util/util'], function(Default, Graph, DataTraversing, API, Util) { function view() {}; view.prototype = $.extend(true, {}, Default, { init: function() { this.series = {}; this.colorvars = []; this.dom = $('<div />'); ...
"use strict"; var _ = require("lodash") var Q = require("q") exports.dependencies = function (builds) { return Q.all(builds.map(getDependencies.bind(this))) .then(_.flatten) } exports.vcsRoots = function (builds) { var self = this return Q.all(builds.map(safeGetVcsHrefs)) .then(_.flatten) .then(func...