code stringlengths 2 1.05M |
|---|
/**
* @file Manages Salesforce Analytics API
* @author Shinichi Tomita <shinichi.tomita@gmail.com>
*/
var _ = require('underscore')._,
Promise = require('./promise');
/**
* Report instance to retrieving asynchronously executed result
*
* @protected
* @class Analytics~ReportInstance
* @param {Analyti... |
/*!
* Jasny Bootstrap v3.1.0 (http://jasny.github.io/bootstrap)
* Copyright 2012-2014 Arnold Daniels
* Licensed under Apache-2.0 (https://github.com/jasny/bootstrap/blob/master/LICENSE)
*/
if (typeof jQuery === 'undefined') { throw new Error('Jasny Bootstrap\'s JavaScript requires jQuery') }
/* ==================... |
/*
AngularJS v1.5.6
(c) 2010-2016 Google, Inc. http://angularjs.org
License: MIT
*/
(function(){'use strict';function d(b){return function(){var a=arguments[0],e;e="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.5.6/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){e=e+(1==a?"?":"&")+"p"+(a-1)+"=";var d=encodeURI... |
// src/js-vendor/jquery/jquery-ui/jquery.ui.datepicker.js
__d87705f75640a9e1351f1490996722dc = (function () {
var module = {
exports: {}
};
var exports = module.exports;
/*!
* jQuery UI Datepicker 1.8.24
*
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT... |
CKEDITOR.plugins.setLang("preview","hi",{preview:"प्रीव्यू"}); |
if (process.env.NODE_ENV === 'production') {
module.exports = require('./configureStore.production'); // eslint-disable-line global-require
} else {
module.exports = require('./configureStore.development'); // eslint-disable-line global-require
}
|
require=(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)... |
'use strict';
var libmime = require('libmime');
var libqp = require('libqp');
var libbase64 = require('libbase64');
var punycode = require('punycode');
var addressparser = require('addressparser');
var stream = require('stream');
var PassThrough = stream.PassThrough;
var fs = require('fs');
var hyperquest = require('h... |
/*syn@0.1.1#browsers*/
var syn = require("./synthetic");
require("./mouse");
syn.key.browsers = {
webkit: {
'prevent': {
"keyup": [],
"keydown": ["char", "keypress"],
"keypress": ["char"]
},
'character': {
"keydown": [0, "key"],
"keypress": ["char", "char"],
"keyup": [0, "key"]
},
'special... |
/**
* ReactDOMServer v15.6.1
*/
;(function(f) {
// CommonJS
if (typeof exports === "object" && typeof module !== "undefined") {
module.exports = f(require('react'));
// RequireJS
} else if (typeof define === "function" && define.amd) {
define(['react'], f);
// <script>
} else {
var g;
... |
// Strip ANSI formatting from string
'use strict';
var stringifiable = require('es5-ext/object/validate-stringifiable')
, r = require('ansi-regex')();
module.exports = function (str) { return stringifiable(str).replace(r, ''); };
|
/**
* Plugin which allows items to be dropped onto a toolbar and be turned into new Toolbar items.
* To use the plugin, you just need to provide a createItem implementation that takes the drop
* data as an argument and returns an object that can be placed onto the toolbar. Example:
* <pre>
* Ext.create('Ext.ux.Too... |
/**
* 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.parseOptions",[]).provider("$parseOptions",function(){var a=this.def... |
cordova.define("cordova-plugin-file.DirectoryReader", function(require, exports, module) { /*
*
* 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 A... |
YUI.add('recordset-sort', function(Y) {
/**
* Adds default and custom sorting functionality to the Recordset utility
* @module recordset
* @submodule recordset-sort
*/
var Compare = Y.ArraySort.compare,
isValue = Y.Lang.isValue;
/**
* Plugin that adds default and custom sorting functionality to the Recordset ut... |
var frontend = require('../controllers/frontend'),
config = require('../config'),
express = require('express'),
utils = require('../utils'),
frontendRoutes;
frontendRoutes = function frontendRoutes(middleware) {
var router = express.Router(),
subdir = config.paths.subdir,... |
require('./angular-locale_lg-ug');
module.exports = 'ngLocale';
|
/*global self, document, DOMException */
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
// Full polyfill for browsers with no classList support
if (!("classList" in document.createElement("_"))) {
(function (view) {
"use strict";
if (!('Element' in view)) return;
var
... |
exports.development = exports.production = {
client: 'pg',
connection: process.env.DATABASE_URL || "",
pool: {
min: 2,
max: 10
},
migrations: {
directory: './app/migrations'
}
}
|
'use strict';
beforeEach(function () {
jasmine.addMatchers({
toBeInstanceOf: function () {
return {
compare: function (actual, expected) {
return {
pass: (actual instanceof expected)
};
}
};
}
});
});
|
Vector = function(x,y) {
this.x = x ;
this.y = y ;
}
Vector.Zero = function() {
return new Vector(0,0);
}
Vector.Sum = function(vector1,vector2) {
return new Vector(parseFloat(vector1.x) + parseFloat(vector2.x), parseFloat(vector1.y) + parseFloat(vector2.y)) ;
}
Vector.Sub = function(vector1,vector2) {
return n... |
System.register(["angular2/src/facade/lang", "angular2/src/facade/collection", "angular2/change_detection", "./compile_step", "./compile_element", "./compile_control", "../util"], function($__export) {
"use strict";
var isPresent,
RegExpWrapper,
MapWrapper,
Parser,
CompileStep,
Compile... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.ui.commons.Carousel.
sap.ui.define(['jquery.sap.global', './library', 'sap/ui/core/Control', 'sap/ui/core/Res... |
/**
* Stores group data during feature tree construction.
*/
export default class NodeGroup {
/**
* Creates feature group data structures.
*/
constructor () {
this.subgroups = [] // Each value of the feature
this.cells = [] // All cells within this group and below
this.parent = undefined
thi... |
var chai = require('chai');
var sinon = require('sinon');
var assert = chai.assert;
var expect = chai.expect;
var should = chai.should();
describe('MQTT Client - subscribe and unsubscribe', function() {
var client;
beforeEach(function(done) {
client = new MqttClient({
host : 'localhost',
port... |
var mongoose = require ('mongoose');
var connectionString = "mongodb://localhost/survey";
mongoose.connect(connectionString);
mongoose.connection.on('connected', function () {
console.log('You are up and running');
});
mongoose.connection.on('error', function(error) {
console.log('Uh oh, there is a probl... |
"use strict";
var BuildingsUnitsConstruction;
/**
* The Buildings Units Construction is a plug-in that manages buildings and
* units construction/productions. Buildings and units construction tasks are
* scheduled using events, the plug-in handles the production progress along
* with resource reduction. The plug-i... |
/*
* Copyright (c) 2017-2019 Tom Shawver
*/
'use strict'
const Plaintext = require('src/algorithms/plaintext')
const algo = new Plaintext()
describe('Plaintext Algorithm', () => {
it('passes back the provided string on encrypt', async () => {
const foo = await algo.encrypt(null, 'foo')
expect(foo).toEqu... |
import {
event as d3_event,
select as d3_select
} from 'd3-selection';
import { services } from '../services';
import { actionNoop } from '../actions';
import { behaviorEdit, behaviorDrag } from '../behavior';
import { geoVecSubtract, geoViewportEdge } from '../geo';
import { modeSelectNote } from './index';
... |
var expect, pokemonData;
expect = require('chai').expect;
pokemonData = require('../lib/index');
describe('pokemon-data', function() {
return it('should work!', function() {
return expect('true').to.be["true"];
});
});
|
var Geometry = {};
Geometry.Vector = function (x,y){
this.x = x || 0;
this.y = y || 0;
}
Geometry.Vector.prototype.copy = function(){
var vect = new Geometry.Vector(this.x, this.y);
return vect;
}
module.exports = Geometry;
|
'use strict'
const resolve = require('@xmpp/resolve')
function sc(socket, params) {
return new Promise((resolve, reject) => {
socket.once('error', reject)
socket.connect(params, () => {
socket.removeListener('error', reject)
resolve()
})
})
}
function getURIs(domain) {
return resolve(do... |
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
// base config
var config = require("./config/baseConfig.js");
var apiRouter = require('./services/apiRouter.js');
app.use(bodyParser.json({limit:'10kb',strict:false}));
app.use(bodyParser.urlencoded({ extended: false }))... |
var I = require('ski/i')
var fninfo = require('fninfo')
function collection () {
var arr = []
arr.has = {}
arr.add = function (x) {
arr.push(x)
arr.has[x] = true
}
return arr
}
function mapArgs (fn, mapObj) {
mapObj = mapObj || {}
var params = fninfo(fn).params
var required = collection()
va... |
import Immutable from 'immutable'
import * as a from './actions.js'
import user from '../user'
import * as manageActions from '../manage/actions.js'
const initialBookingsState = Immutable.fromJS({currentBooking: null, bookings: null});
export default function Bookings(state = initialBookingsState, action) {
swit... |
import { DefineMap, DefineList} from 'can';
export const Item = DefineMap.extend({
seal: false
}, {
price: 'number'
});
export const ItemsList = DefineList.extend({
'#': Item,
has: function(item) {
return this.indexOf(item) !== -1;
},
toggle: function(item) {
var index = this.indexOf(item);
... |
version https://git-lfs.github.com/spec/v1
oid sha256:3e85955d63aae4741dfe7691220767b3031e8bb34a9023ee2bcca18dccd4b5da
size 541
|
const
logger = require('../logger'),
Input = require('./'),
dgram = require('dgram');
const DEFAULTS = {
host : "0.0.0.0",
port : 514,
protocol : "udp4"
};
class UDPServer extends Input {
constructor(id,type) {
super(id,type);
}
configure(config,callback) {
config = config || {};
this.host = config.ho... |
// --------- This code has been automatically generated !!! 2017-01-16T16:52:10.035Z
"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... |
'use strict';
var path = require('path');
var _ = require('lodash');
function requiredProcessEnv(name) {
if(!process.env[name]) {
throw new Error('You must set the ' + name + ' environment variable');
}
return process.env[name];
}
// All configurations will extend these options
// =========================... |
/**
* @license AngularJS v1.2.15
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, angular, undefined) {
'use strict';
/**
* @ngdoc object
* @name angular.mock
* @description
*
* Namespace from 'angular-mocks.js' which contains testing related c... |
define(function (require, module, exports) {
"use strict";
var debug = require('./model/debug');
debug(5);
var home = require('./page/home');
function initTheme () {
debug.log('this is demo.');
home.init();
}
return {
init: initTheme
}
}); |
const includes = require('lodash/includes');
const exec = require('shell-utils').exec;
const android = includes(process.argv, '--android');
const release = includes(process.argv, '--release');
const BRANCH = process.env.BRANCH;
const RECORD = process.env.RECORD === 'true';
function run() {
if (android) {
runAnd... |
// Predefined vars
var userName, isLoggedIn, dataStore;
var port = chrome.extension.connect();
function convertBool(string){
switch(string.toLowerCase()){
case "true": case "yes": case "1": return true;
case "false": case "no": case "0": case null: return false;
default: return Boolean(string);
}
}
function... |
module.exports = {
maxAmount: 100000000,
maxPayloadLength: 1024 * 1024,
blockHeaderLength: 248,
addressLength: 208,
maxAddressesLength: 208 * 128,
maxClientConnections: 100,
numberLength: 100000000,
feeStartVolume: 10000 * 100000000,
feeStart: 1,
maxRequests: 10000 * 12,
requ... |
/*
Created by Freshek on 31.10.2017
*/
class GlobalSettings {
constructor() {
var self = this;
chrome.storage.local.get({
headerColor: "#191919",
headerOpacity: "0.9",
windowColor: "#191919",
windowOpacity: "0.8",
timerTick: 300,
showRuntime: false,
speedFormat: 'h... |
import React, {PureComponent} from 'react';
import {connect} from "react-redux";
import {loadNotes} from './../state/modules/notes.js';
import API from './../../api/index.js';
import Note from './notes/Note'
class Notes extends PureComponent {
render() {
let {notes} = this.props;
return <div>
<h1>Ogło... |
(function() {
'use strict';
angular
.module('supermodular.asyncparallel')
.factory('asyncParallelService', asyncParallelService);
asyncParallelService.$inject = [];
/* @ngInject */
function asyncParallelService() {
var data = {
};
return data;
}
})();
|
import React, {Component, PropTypes} from 'react';
import {ToolbarGroup} from 'material-ui/Toolbar';
import TextField from 'material-ui/TextField';
import debounce from 'lodash/debounce';
/**
* Renders a seach input to be rendered inside a Toolbar.
* The onChange will be called debounced.
* @example
* <Toolbar>
*... |
// psuedocode:
// Establish a board, and an array of the letters
// Generate a random letter from the array, and a random number from 1 to 100
// Check to see if the numbers match the the arrays and print the board
var board = [[47, 44, 71, 8, 88],
[22, 69, 75, 65, 73],
[83, 85, 97, 89, 57],
[2... |
'use strict';
var numberIsInteger = require('number-is-integer');
var numArr = require('num-arr');
module.exports = function (val) {
if (!numberIsInteger(val)) {
throw new TypeError('Expected an integer');
}
var arr = numArr(val);
var sum = 0;
arr.forEach(function (el) {
sum += Math.pow(el, arr.length);
})... |
'use strict';
/*
* Defining the Package
*/
var Module = require('meanio').Module;
var md5 = require('MD5');
var Chat = new Module('chat');
/*
* All MEAN packages require registration
* Dependency injection is used to define required modules
*/
Chat.register(function(app, auth, database,http) {
//We enable rou... |
console.log('module');
export default 2;
|
module.exports = {
/**
* The default view.
* @param {object} params The parameters to use in the controller.
* @param {function((null | object)=, object=, object=)} callback The callback to run upon completion of the controller running.
*/
index: function(params, callback) {
"use str... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Sébastien CAPARROS (GlitchyVerse)
*
* 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 limitati... |
import Chai from "chai";
import Moment from "moment";
import SparklineMicrochart from "../../../../client/views/charts/sparkline_microchart.jsx";
import "../../dom_setup.js";
import ClientHelper from "../../client_helper.js";
const assert = Chai.assert;
describe("SparklineMicrochart", () => {
let $;
beforeEac... |
System.config({
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"optional": [
"es7.decorators",
"es7.classProperties",
"runtime"
]
},
paths: {
"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*"
},
map: {
"babel": "npm:babel-core@5.8.... |
define(['moment'], function (moment) {
var charts = [];
function getTable(chart) {
var table = new google.visualization.DataTable();
$.each(chart.data.columns, function (i, column) {
// annotations and tooltips
if (column.role !== 'data') {
table.addColum... |
/**
* @see - https://egghead.io/lessons/angularjs-http
*/
var app = angular.module('kinveyRestAPIApp', ['ui.router', 'ngResource', 'appServices', 'appControllers']);
app.run(['$rootScope', '$state', function ($rootScope, $state) {
$rootScope.$on('$stateChangeError',
function (event, toState, toParams, fr... |
/**
* Created by ren on 2/21/16.
*/
chrome.contextMenus.create({
title: "Save to NexusPad Doc",
contexts:["selection"],
onclick: function(info) {
getUuid(function() {
getUserSessionId(function(sid) {
$.ajax({
url: 'https://nexuspad.com/api/doc?utoken=' + sid,
type: 'POST',
data: $.param... |
System.register(["angular2/core"], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwn... |
var System = require('systemjs');
var jas = require('jasmine-core');
var TestsReporter = require('jasmine2-reporter').Jasmine2Reporter
var jasmine = jas.core( jas );
var env = jasmine.getEnv();
var jasmineInterface = jas.interface(jasmine, env);
function extend(destination, source) {
for (var property in source) de... |
'use strict';
const _ = require('lodash');
const path = require('path');
const regexStringsToRemove = ['/^', '?(?=\\/|$)/i'];
const keyReplacementString = '(?:([^\\/]+?))';
module.exports = function getSwaggerDataFromRouteStack(stack, pathPrefix) {
pathPrefix = pathPrefix || '';
let routes = [];
if (!stack... |
/* eslint-env node */
const getChannelURL = require("ember-source-channel-url");
module.exports = function() {
return Promise.all([
getChannelURL("release"),
getChannelURL("beta"),
getChannelURL("canary")
]).then(urls => {
return {
command: "ember test --reporter xunit",
npmOptions: ["-... |
// Adapting Wilm Thoben's Envelope example from the Processing Handbook ex2
/*
This sketch shows how to use envelopes and oscillators. Envelopes are pre-defined amplitude
distribution over time. The sound library provides an ADSR envelope which stands for attack,
decay, sustain, release. The amplitude rises then dec... |
var assert = require('assert');
var ryter = require('../ryter.js');
describe('ryter', function() {
var apps = 0, blog = 0, news = 0, appsrecent = 0, calmon = 0;
var desc, spec = {
routes: {
apps: function() { apps++; },
'apps/recent': function() { appsrecent++; },
blog: function() { blog++; }... |
import React from 'react'
const TeamMemberNameDescription = () => (
<span>
Members must be from your government organisation and already have a Digital Marketplace account registered.
</span>
)
export default TeamMemberNameDescription
|
const viDatatables = {
lengthMenu: "Hiển thị _MENU_ dòng",
search: "Tìm kiếm",
paginate: {
first: "Trang đầu",
previous: "Trang trước",
next: "Trang sau",
last: "Trang cuối",
},
zeroRecords: "Không tìm thấy dữ liệu",
info: "Đang hiển thị _START_ đến _END_ trên tổ... |
Overview.Wall = {};
Overview.Wall.Element = null;
Overview.Wall.ElementHeight = 50;
Overview.Wall.ElementSpacing = 8;
Overview.Wall.ElementOffset = Overview.Wall.ElementHeight + Overview.Wall.ElementSpacing;
Overview.Wall.Elements = [];
Overview.Wall.Load = function() {
this.Element = document.getElementById("Wa... |
listSubs = new SubsManager({
cacheLimit: 9999,
expireIn: 9999
});
singleSubs = new SubsManager({
cacheLimit: 20,
expireIn: 3
}); |
// ------------------------------------
// Constants
// ------------------------------------
export const COUNTER_INCREMENT = 'COUNTER_INCREMENT'
export const COUNTER_DOUBLE_ASYNC = 'COUNTER_DOUBLE_ASYNC'
export const COUNTER_TRIPLE = 'COUNTER_TRIPLE'
// ------------------------------------
// Actions
// -------------... |
var express = require('express');
var router = express.Router();
var request = require("request");
var fs = require('fs');
var path = require('path');
function getPackage(packageName, cb) {
/*
var registryUrl = 'https://registry.npmjs.org';
var url = [registryUrl, packageName].join('/');
request(url,... |
'use strict';
module.exports = function() {
var sequence = {};
sequence.elements = [];
sequence.adder = function(value) {
return function() {
sequence.elements.push(value);
};
};
return sequence;
};
|
var mongoose = require('mongoose');
var Map = mongoose.model('Map');
var messages = require('../../lib/messages');
/**
* Load
*/
exports.load = function (req, res, next, id) {
Map.load(id, function (err, map) {
if (err) return next(err);
if (!map) {
return res.json(
400,
messages.err... |
(function () {
// The util functions
YAHOO.namespace('tagz.Utils');
var lang = YAHOO.lang;
if(Array.prototype.forEach) {
YAHOO.tagz.Utils.foreach = function(func,list,self) {
return list.forEach(func,self);
};
} else {
YAHOO.tagz.Utils.foreach = function(func,lis... |
import React from 'react';
// import components
import Jumbotron from './home/Jumbotron';
const HomePage = () => {
return (
<div className="container">
<Jumbotron />
</div>
);
};
export default HomePage;
|
version https://git-lfs.github.com/spec/v1
oid sha256:9c87ad1140c7f93080bc94008cd067a9177538f00b820875f91cf7d52f2fb4a9
size 1632
|
var searchData=
[
['pathnode',['PathNode',['../classmicropather_1_1_micro_pather.html#a6758fcf0e2e95b928357175bece60c03',1,'micropather::MicroPather']]]
];
|
/*
Exact Change
Design a cash register drawer function checkCashRegister() that accepts purchase price as the first argument (price), payment as the second argument (cash), and cash-in-drawer (cid) as the third argument.
cid is a 2D array listing available currency.
Return the string "Insufficient Funds" if cash-in-... |
var Mortal = artifacts.require("./Mortal.sol");
var Mansplaining = artifacts.require("./Mansplaining.sol");
var MPGame = artifacts.require("./MPGame.sol");
module.exports = function(deployer) {
deployer.deploy(Mortal);
deployer.link(Mortal, MPGame);
deployer.deploy(MPGame);
deployer.link(MPGame, Mansplaining);... |
/**
* Created by double on 02/09/15.
*/
var DSINK_API_BASE_URI = 'http://127.0.0.1:20001/api/v0.1';
var DSINK_REGISTER_URI = DSINK_API_BASE_URI + '/user';
var DSINK_LOGIN_URI = DSINK_API_BASE_URI + '/auth';
var DSINK_RESOURCE_URI = DSINK_API_BASE_URI + '/resource';
//
//var CONFIG_URI = 'http://127.0.0.1:8080/con... |
module.exports = {
entry: "./app/assets/frontend/main.jsx",
output: {
path: __dirname + "/app/assets/javascripts",
filename: "bundle.js"
},
resolve: {
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [{
test: /\.jsx$/,
loader: "babel-l... |
const User1 = require('../../model/user/user-schema');
const authUtils = require('../../auth/authUtils');
describe('functional test Create User', () => {
beforeEach((done) => {
User1.collection.drop();
User1.ensureIndexes();
mockgoose(mongoose).then(() => {
global.server = require('../../index');
... |
'use strict';
/* Services */
// Demonstrate how to register services
// In this case it is a simple value service.
angular.module('mainApp.services', []).
value('version', '0.1');
|
import React from 'react';
import BrandLogo from '../../../shared/BrandLogo';
import introVideoPath from '../../../../assets/images/video/synbaas_intro.mp4';
import videoPlaceholder from '../../../../assets/images/video/video-placholder.jpg';
import emailFlow from '../../../../assets/images/email_notification_flow.... |
/** @module {object} lib/utilities **/
var fs = require('fs')
, path = require('path');
/**
* @namespace _ - Alias for exports object
* @exports lib/utilities
*/
var _ = exports;
/**
* Merge an original object with any number of other objects
* @param {object} original - The original object to be extended
* ... |
'use strict';
var util = require('util');
var chainlib = require('chainlib');
var BaseDB = chainlib.DB;
var Transaction = require('./transaction');
var Wallet = require('./wallet');
var async = require('async');
var bitcore = require('bitcore');
var BufferWriter = bitcore.encoding.BufferWriter;
var errors = require('.... |
(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports... |
import Vue from 'vue';
import Hello from './app/Hello.vue';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/js/bootstrap.js';
import './index.scss';
|
var assert = require('assert');
var notEqual = require('../lib/rules/notEqual.js');
describe('notEqual', function() {
var arrayToCompare, value;
it('returns true if nothing is passed', function() {
assert.equal(notEqual(), true);
});
it('returns true if there is nothing to compare with', function() {
... |
export const getFilters = ({ filters }) => filters
export const getRAC = ({ filters: { RAC } }) => RAC
export const getName = ({ filters: { name } }) => name
|
'use strict';
const expect = require('chai').expect;
const injectr = require('injectr');
const path = require('path');
const sinon = require('sinon');
const _ = require('lodash');
const initialise = function() {
const fsMock = {
existsSync: sinon.stub(),
lstatSync: sinon.stub(),
mkdirSync: sinon.spy(),
... |
var __ = require('underscore'),
Backbone = require('backbone'),
$ = require('jquery'),
//userProfileModel = require('../models/userProfileMd'),
loadTemplate = require('../utils/loadTemplate'),
domUtils = require('../utils/dom'),
app = require('../App.js').getApp(),
timezonesModel = requi... |
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.eslint.json'
},
plugins: [
'@typescript-eslint',
'eslint-plugin-tsdoc',
'eslint-plugin-jsdoc',
'eslint-plugin-import'
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'p... |
export default class CustomGeometry extends THREE.BufferGeometry {
constructor(opts) {
super();
this.width = opts.width || 128;
this.height = opts.height || 128;
this.widthSegment = opts.widthSegment || 2;
this.heightSegment = opts.heightSegment || 2;
this.halfwidt... |
var nodeFlows = require('../nodeFlows');
exports.executeActivity = executeActivity;
function executeActivity(workflow, args, callback) {
args.branches.some(function (branch) {
//returning true breaks the loops so it doesnt continue
//we stop the loop on an error condition or if the condition eval... |
/*
* Gulp Tasks.
*/
var gulp = require("gulp");
var gutil = require("gulp-util");
var babel = require("gulp-babel");
gulp.task("babel", function (done) {
return gulp.src("src/**/*.js")
.pipe(babel({
presets: ["babel-preset-es2015"]
}).on("error", function (ex) {
gutil.log(ex.message);
console.log(ex.cod... |
'use strict';
/**
* svg-sprite is a Node.js module for creating SVG sprites
*
* @see https://github.com/svg-sprite/svg-sprite
*
* @author Joschi Kuphal <joschi@kuphal.net> (https://github.com/jkphl)
* @copyright © 2018 Joschi Kuphal
* @license MIT https://github.com/svg-sprite/svg-sprite/blob/main/LICENSE
*/
... |
'use strict';
createModule.moduleName='mock2';
createModule.$inject=[];
module.exports=createModule;
createModule.func=function(){};//overrriden in tests
function createModule(){createModule.args=arguments;createModule.func();return {};}
|
angular.module('barsOfGold')
.controller('TransactionListController',['$scope',function($scope){
$scope.transactions = [];
$scope.socket.on('transactions',function(data){
$scope.transactions = data.transactions;
$scope.headerTitle = data.title;
$scope.$apply();
});
}])
.controlle... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.