code
stringlengths
2
1.05M
/* eslint-env jest */ const defaults = require('101/defaults') const EventEmitter = require('events').EventEmitter const parseErr = require('error-to-json').parse const shimmer = require('shimmer') const uuid = require('uuid') const defaultPrimusOpts = require('../default-primus-opts') const SubscriptionObservable = r...
/** * @ignore * attribute management and event in one * @author yiminghe@gmail.com, lifesinger@gmail.com */ KISSY.add('base', function (S, Attribute, EventCustom) { /** * @class KISSY.Base * @mixins KISSY.Event.Target * @mixins KISSY.Base.Attribute * * A base class which objects requir...
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h(h.f, null, h("path", { fillOpacity: ".3", d: "M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v9.17h2L13 7v5.5h2l-1.07 2H17V5.33C17 4.6 16.4 4 15.67 4z" }), h("path", { d: "M11 20v-5.5H7v6.17C7 21.4 7.6 22 8.33 22...
#! /usr/local/bin/node 'use strict'; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _minimist = require('minimist'); var _minimist2 = _interopRequireDefault(_minimist); var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug); var _path = r...
/*global require*/ 'use strict'; require.config({ shim: { underscore: { exports: '_' }, backbone: { deps: [ 'underscore', 'jquery' ], exports: 'Backbone' }, foundation: { deps: ['jque...
/** * Copyright 2015 Telerik AD * * 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 ...
define(['plugins/http', 'durandal/app', 'knockout', 'viewmodels/newGame'], function(http, app, ko, NewGame) { var ctor = function () { var self = this; function gameObj(eventId, name, image, rules, scoreType) { this.eventId = eventId; this.name = name; // str thi...
export const uri = 'os' export const getMemory = (state, id) => state[uri].memory[id]
//// NPM const chalk = require('chalk') //// CORE const path = require('path') //// LOCAL const api = require('../api') const { format, log } = require('../log') const { dft } = require('../viewer') const config = require('../../config/config.json') module.exports = { description: chalk`File System stored T-SQL scr...
/** * @fileOverview router * @name index.js<f/socket/router> * @author Masaki Sueda <sueda_masaki@cyberagent.co.jp> */ var fs = require('fs'); var url = require('url'); var path = require('path'); var _ = require('underscore'); var beezlib = require('beezlib'); var bootstrap = require('../../bootstrap'); var con...
const AWS = require('aws-sdk'); const __ = require('lodash'); const BaseClient = require('./baseClient'); class ApplicationAutoScalingClient extends BaseClient { get _awsApplicationAutoScalingClient() { if(!this._internalApplicationAutoScalingClient) { let params = { accessKeyId: this._accessKey,...
// Generated by CoffeeScript 1.9.3 /* Это базовый клас исполнителя команд - его мы по факту возвращаем из фабрики он инкапсулирует в себе несколько методов, которые выполняют всю работу на верхнем уровне абстракции */ (function() { var BaseExecutor, _, bind = function(fn, me){ return function(){ return fn.ap...
8.0-alpha3:a5a082039926b30f9cb681c9b009146be4e6538db1040ec084cfe7c8f36469ff 8.0-alpha4:a5a082039926b30f9cb681c9b009146be4e6538db1040ec084cfe7c8f36469ff 8.0-alpha5:a5a082039926b30f9cb681c9b009146be4e6538db1040ec084cfe7c8f36469ff 8.0-alpha6:a5a082039926b30f9cb681c9b009146be4e6538db1040ec084cfe7c8f36469ff 8.0-alpha7:a5a08...
'use strict'; var assert = require('./utils').assert; var Func = require('../lib/Func'); describe('Func', function() { describe('constructor', function() { it('should be a function', function() { assert.isFunction(Func); }); it('should accept an object and initialise properly', function() { ...
import { combineReducers } from 'redux'; import list from './list'; import detail from './detail'; export default combineReducers({ list, detail, });
$(window).ready(function () { $('.picunit a').each(function (i, el) { var imgurl = $('.picdetailurl span:eq(' + i + ')').text(); console.log(imgurl); $(el).click(function (event) { document.documentElement.style.overflow = 'hidden'; imgtag = format('<img src="{0}" alt...
// All code points in the `Meroitic_Cursive` script as per Unicode v6.1.0: [ 0x109A0, 0x109A1, 0x109A2, 0x109A3, 0x109A4, 0x109A5, 0x109A6, 0x109A7, 0x109A8, 0x109A9, 0x109AA, 0x109AB, 0x109AC, 0x109AD, 0x109AE, 0x109AF, 0x109B0, 0x109B1, 0x109B2, 0x109B3, 0x109B4, 0x109B5, 0x109B6, 0x109B7, 0x...
BR.OpacitySlider = L.Control.extend({ options: { position: 'topleft', callback: function(opacity) {} }, onAdd: function (map) { var container = L.DomUtil.create('div', 'leaflet-bar control-slider'), input = $('<input id="slider" type="text"/>'), item = localSt...
'use strict' var difference = require('array-differ') var extend = require('xtend') module.exports = function keyDifference (obj) { var others = [].slice.call(arguments, 1) var source = Object.keys(obj) var rest = Object.keys(extend.apply(null, others)) return difference(source, rest) }
'use strict'; angular.module('Trendicity') .factory('TrendicityInterceptor', function ($injector, $q) { var hideLoadingModalIfNecessary = function() { var $http = $http || $injector.get('$http'); if ($http.pendingRequests.length === 0) { $injector.get('$ionicLoading').hide(); } }; ...
!function(a,b){var c=function(a,b){this.initialize(a,b)},d=c.prototype=new b.Shape;d._toVertex=null,d._fromVertex=null,d.Shape_initialize=d.initialize,d.initialize=function(a,b){var c=this.Shape_initialize();return this._toVertex=a,this._fromVertex=b,a.addEdge(this),b.addEdge(this),c},d.Shape_updateContext=d.updateCont...
import React from 'react'; import ReactDom from 'react-dom'; import { Router, Route, Link, IndexRoute } from 'react-router' import { createHistory, useBasename } from 'history' import alt from './alt' import App ...
version https://git-lfs.github.com/spec/v1 oid sha256:8ac3471e2d008b89bd66b3f52e030ff607cc25de26837e58ef415303f4582007 size 4964
'use strict' //---------------------------------------------------------- // logic //---------------------------------------------------------- const flatAr = ar => ar.reduce((a, b) => a.concat(b), []) //---------------------------------------------------------- // exports //------------------------------------------...
'use strict'; // Classes exports.Char = require('./Char'); exports.CharSide = require('./CharSide'); // Tools, ordered chronologically by when used. exports.autoFit = require('./auto-fit'); exports.breakTextIntoLines = require('./break-text-into-lines'); exports.charWhitelist = require('./char-whitelist'); expo...
import Ember from 'ember'; const { String: { htmlSafe } } = Ember; export function pageTransform(width) { let transform = `transform: translate3d(${width}%, 0px, 0px)`; return htmlSafe(`-webkit-${transform}; -ms-${transform}; ${transform}`); } export function pageTransformOffset(offset, columns) { let width ...
/*! * conkitty, https://github.com/hoho/conkitty * Copyright 2013-2014 Marat Abdullin * Released under the MIT license */ 'use strict'; module.exports = { TEMPLATE_NAME: 'template name', COMMAND_NAME: 'command name', VARIABLE: 'variable', JAVASCRIPT: 'JavaScript', STRING: 'string', CSS: 'cs...
;(function() { "use strict"; angular .module('RDash') .directive('orderFormForm', function() { return { restrict: 'E', scope: { entity: '=' }, controller: 'orderFormFormController', templateUrl: 'components/orderForm/form/orderFormFormTmpl.html' ...
export default ngModule => { ngModule // Redirect to playlist.list .config(function($urlRouterProvider) { $urlRouterProvider.otherwise('/'); }) // Use HTML5 pushstate (nice URLs) .config(function($locationProvider) { $locationProvider.hashPrefix('!'...
//Loads the correct sidebar on window load, //collapses the sidebar on window resize. // Sets the min-height of #page-wrapper to window size //$(".loading").show(); $(function() { $(window).bind("load resize", function() { topOffset = 50; width = (this.window.innerWidth > 0) ? this.window.innerWidth...
// 函数传递 // function say(world) { // console.log('sql: ' + world + '.'); // } // function execute(someFunction, value) { // someFunction(value); // } // execute(say, 'Hello world'); // function eat(food){ // console.log('sql: ' + food + '.'); // } // execute(eat, 'apple'); function execute(someFunction, v...
#! /usr/bin/env node var main = require('./main'), program = require('commander'); program .usage('[options] [task]') .option('-r, --report', 'print an hours report') .option('-t, --time <items>', 'backdates by time specified (i.e. 1h 5m)') .parse(process.argv); if (program.args.length === 0) { program...
import {constants} from "../../utils/constants" import {createWinningTicket, getTicketHash} from "../helpers/ticket" import signMsg from "../helpers/signMsg" import chai, {assert, expect} from "chai" import {solidity} from "ethereum-waffle" import {ethers} from "hardhat" import setupIntegrationTest from "../helpers/se...
import React from 'react'; import * as snapshot from '../utils/snapshot'; import { TouchableOpacity, ActionSheetIOS, StyleSheet } from 'react-native'; /** * Simple developer menu, which allows e.g. to clear the app state. * It can be accessed through a tiny button in the bottom right corner of the screen. * ...
import expect from "expect.js"; import sinon from "sinon"; import Action from "../../../main/javascript/flux/Action"; describe("Action", () => { it("should call listeners when triggered.", () => { var action = new Action("test1"); var listener = sinon.spy(); action.onDispatch(listener); ...
define([ 'utils/Config', 'utils/Debug', 'utils/String', 'backbone', 'views/PageView', 'views/ToDoView', 'text!../../templates/PageView.container.html', 'text!../../templates/PageView.controls.html' ], function( Config, Debug, StringUtil, Backbone, PageView, ToDoVi...
app.directive('modelanythingPluginsCourselist', [ "settings", "$location", "SessionService", "User", "Course", function( settings, $location, SessionService, User, Course ) { return { templateUrl: settings.widgets + 'modelanything/plugins/courselist.html', link: functio...
//!*script var MAX_COUNT = 9; // 履歴最大数
const autoplay = { props: { /** * Flag to enable autoplay */ autoplay: { type: Boolean, default: false }, /** * Time elapsed before next slide */ autoplayTimeout: { type: Number, default: 2000...
Tinytest.addAsync('Job - create job', function(test, done){ var jobId = Random.id(); var originalCreateJob = Jobs.createOrUpdate; Jobs.createOrUpdate = function(_id, jobInfo){ var expected = { "data.key": "test", 'data.name': 'jobname', 'type': "new-job", 'appId': 'app-id', 'stat...
const curry = require('ramda').curry module.exports = curry((arg, fn) => fn(arg) )
exports.BattleScripts = { init: function() { for (var i in this.data.Pokedex) { var hp = this.modData('Pokedex', i).baseStats.hp; var spd = this.modData('Pokedex', i).baseStats.atk; var def = this.modData('Pokedex', i).baseStats.def; var spa = this.modData('Pokedex', i).baseStats.spa; var spd = this.modData('Pokedex', ...
export function mapUrl (availableActions = {}, url = []) { const notFound = {action: null, params: []} // test for empty input if (url.length === 0 || Object.keys(availableActions).length === 0) { return notFound } /*eslint-disable */ const reducer = (prev, current) => { if (prev.action && prev.act...
// @flow import React from 'react' import { Table } from 'antd' import m from 'moment' type Props = { fetchRepos: () => void, repos: Object } const columns = [{ title: 'Name', dataIndex: 'name' }, { title: 'Language', dataIndex: 'language' }, { title: 'Fork', dataIndex: 'fork', render: (text) => { ...
0o1
'use strict'; /* global alertify */ angular.module('septWebRadioApp', [ 'ngRoute', 'ngAnimate', 'ngCookies', 'ngResource', 'ui.bootstrap', 'septWebRadioControllers', 'septWebRadioDirectives', 'septWebRadioFactories', 'septWebRadioFilters' ]); angular.module('septWebRadioApp') .config(['$routeProv...
var CLI = module.exports = {}; var commander = require('commander'); var fs = require('fs'); var path = require('path'); var async = require('async'); var debug = require('debug')('pm2:monit'); var semver = requi...
/* eslint-env mocha*/ const { expect } = require('chai'); const players = require('../../src/reducers/players'); const { addPlayer, ADD_TO_GRAVEYARD, BURN_CARD, DRAW_CARD, gainMana, shuffleCard, shuffleDecks, summon } = require('../../src/actions'); const { initialPlayerState } = require('../testData'); describe('pla...
// Generated on 2014-12-06 using // generator-webapp 0.5.1 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // If you want to recursively match all subfolders, use: // 'test/spec/**/*.js' module.exports = function (grunt) { // Time how long tasks t...
var log4js = require('../lib/log4js'); log4js.configure({ appenders: [ { type: "file", filename: "madeup/path/to/file.log" } ], replaceConsole: true }); logger = log4js.getLogger(); logger.info("Does this work?");
/*! * (C) Ionic http://ionicframework.com - MIT License * Built with http://stenciljs.com */ Ionic.defineComponents("mvy6pg4yo2jt",function(n,t,I,o,u){var O=function(){return function(){}}(),i=function(){return function(){}}(),c=function(){return function(){}}();n["ION-COL"]=O,n["ION-GRID"]=i,n["ION-ROW"]=c},["ION-C...
/** * 1. Building application menu. * 2. Adding separator between submenu. * 3. Build application menu with template. */ 'use strict'; const remote = require('electron').remote; const Menu = remote.Menu; /** * Create menu instance. */ var menu = new Menu(); /** * Create menu template. */ var template = [{ ...
var path = require('path'); var paths = require('./paths'); module.exports = function(modules) { return { filename: '', filenameRelative: '', sourceMap: true, sourceRoot: '', moduleRoot: path.resolve('src').replace(/\\/g, '/'), moduleIds: false, comments: false, compact: false, co...
import React from 'react' import { shallow } from 'enzyme'; import TodoList from '../../src/components/TodoList' const setup = propOverrides => { const props = Object.assign({ todos: [], }, propOverrides) const wrapper = shallow(<TodoList {...props} />) return { props, wrapper } } describe('TodoList', () ...
'use strict'; const _ = require('lodash'); const knex = require('knex'); const uuid = require('uuid'); const expect = require('chai').expect; const Ormur = require('../lib'); const util = require('../lib/util'); const knexConnection = knex({ client: 'postgresql', connection: 'postgres://postgres:@localhost:5432/...
module.exports = function(config) { var settings = { basePath: '', frameworks: ['mocha', 'browserify', 'es5-shim', 'sinon'], files: [{ pattern: 'dist/js/gardr/**/*.js', watched: false, included: false, served: true ...
var bckArray = ["bck_1", "bck_2", "bck_3", "bck_4", "bck_5", "bck_6", "bck_1"]; var currentLVL = 1; var currentBck; var backgroundVelocity = 5; export function update(level){ if(level > currentLVL) { currentBck.loadTexture(bckArray[level - 1], 0); backgroundVelocity += 4; } } export function create(gam...
(function(){function D(){var a="{}";if("userDataBehavior"==k){d.load("jStorage");try{a=d.getAttribute("jStorage")}catch(b){}try{r=d.getAttribute("jStorage_update")}catch(c){}h.jStorage=a}E();x();F()}function u(){var a;clearTimeout(G);G=setTimeout(function(){if("localStorage"==k||"globalStorage"==k)a=h.jStorage_update;e...
var abstractService = require("./abstractService") var HomeScreenService = (function () { function HomeScreenService(packageRepository, launchWithPersistentConsole) { this.packageRepository = packageRepository; this.launchWithPersistentConsole = launchWithPersistentConsole; } H...
/** * @license AngularJS v1.3.6 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, document, undefined) {'use strict'; /** * @description * * This object provides a utility for producing rich Error messages within * Angular. It can be called as follows: * * var exampleMinEr...
$(function () { 'use strict' QUnit.module('tooltip plugin') QUnit.test('should be defined on jquery object', function (assert) { assert.expect(1) assert.ok($(document.body).tooltip, 'tooltip method is defined') }) QUnit.module('tooltip', { beforeEach: function () { // Run all tests in noC...
var ExtractTextPlugin = require("extract-text-webpack-plugin"); var Webpack = require('webpack'); var path = require('path'); var nodeModulesPath = path.resolve(__dirname, 'node_modules'); var buildPath = path.resolve(__dirname, 'build'); var mainPath = path.resolve(__dirname, 'js', 'app.js'); var config = { node: {...
/** * Created by raunak on 20/6/17. */ import {combineReducers} from 'redux' import ReducerFetchCityData from './reducer_fetch_city_data' import ReducerAddToCart from './reducer_Add_To_Cart' const rootReducers=combineReducers({ CityData:ReducerFetchCityData, AddToCart:ReducerAddToCart }); export default ro...
var searchData= [ ['yesbutton',['yesButton',['../class_modal_panel.html#ad03ef3b69d09cf3c4b6a9d309bb7401d',1,'ModalPanel']]] ];
/** * Created by USER: tarso. * On DATE: 29/08/16. * By NAME: app01.js. */ /** * black-scholes * * Source: https://www.npmjs.com/package/black-scholes */ 'use strict' var bs = require("black-scholes"); var nCall; var nPut; var nS; // Current price of the underlying var nK; /...
var url = require('url'); var util = require('util'); var http = require('http'); var events = require('events'); var endpoint = require('endpoint'); var modulebox = require('../lib/dispatch.js'); function Test(settings) { if (!(this instanceof Test)) return new Test(settings); var self = this; this.box = modu...
var mddf = require('../'); var fdstore = require('fd-chunk-store'); var sparse = require('sparse-chunk-store'); var df = mddf({ size: 4096, dim: 3, store: sparse(fdstore(4096, 'data.mddf')) }); var near = df.near(process.argv.slice(2)); (function next () { near(function (err, pt, data) { if (!...
const express = require('express'); const find = require('array-find'); const Archive = require('./archive'); const ServerConfig = require('../utils/server-config'); const BLP = require('blizzardry/lib/blp'); const {DecodeStream} = require('blizzardry/lib/restructure'); const DBC = require('blizzardry/lib/dbc/entities'...
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import axios from 'axios'; class Struktur extends React.Component{ constructor(){ super(); this.state = { value: '', list: [], data: [], } } loadData(data){ var _this = th...
const http = require('http'); const metrics = require('./metrics'); const profiling = require('./profiling'); const DEFAULT_HOSTNAME = '0.0.0.0'; const DEFAULT_PORT = 9142; const DEFAULT_PATH = '/metrics'; function slash_metrics_handler(req, res) { res.statusCode = 200; res.end(metrics.getMetrics()); }; fun...
var fs = require('fs'); var exec = require('child_process').execSync; exports.convert = function(doc, format, outDir) { try{ fs.statSync(doc); }catch(err){ if(err.code == 'ENOENT') return false; } if(typeof outDir === 'undefined' || outDir === null){ outDirProperty = '' }else{ console.log(...
import * as React from 'react'; import { experimentalStyled as styled } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardHeader from '@material-ui/core/CardHeader'; import CardMedia from '@material-ui/core/CardMedia'; import CardContent from '@material-ui/core/CardContent'; import ...
exports.lte = function () { /** * Tests if the first argument is less than or equal to the second argument. * May be used inline or as a conditional block. * @category comparisons * * @signature {{lte value test}} * @param {string|integer} value Smaller value * @param {string|integer} test Greater v...
var convert = require("./convert"); var globalToSlim = require("../lib/global/slim"); describe("global -> slim", function() { it("works", function() { return convert({ converter: globalToSlim, sourceFileName: "global", expectedFileName: "global_slim" }); }); it("turns `meta.deps` into `stealRequire` c...
exports.BattleScripts = { inherit: 'gen5', gen: 3, init: function() { for (var i in this.data.Learnsets) { this.modData('Learnsets', i); var learnset = this.data.Learnsets[i].learnset; for (var moveid in learnset) { if (typeof learnset[moveid] === 'string') learnset[moveid] = [learnset[moveid]]; l...
var app = app || {}; //var Codemirror = require('../../node_modules/react-codemirror/dist/react-codemirror.min.js') (function() { app.APP_TEST = 1; app.STANDARD_TEST = 0; app.SERVER_TEST = 2; var TestButton = app.TestButton; var CodeEditor = app.CodeEditor; var UrlEditor = app.UrlEditor; ...
'use strict'; const Code = require('code'); const Hapi = require('hapi'); const Hoek = require('hoek'); const Inert = require('inert'); const Lab = require('lab'); const Vision = require('vision'); const HapiSwagger = require('../../lib/index.js'); const Helper = require('../helper.js'); const expect = Code.expect; co...
/** * @fileoverview Disallow parenthesesisng higher precedence subexpressions. * @author Michael Ficarra */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const rule = r...
describe('ns.Box', function() { beforeEach(function() { ns.layout.define('app', { 'app': { 'content@': true } }); ns.layout.define('content1', { 'app content@': { 'content1': {} } }, 'app'); ns...
import React from 'react'; import PrimaryCallToAction from '../../../shared/js/components/gironde.fr/PrimaryCallToAction'; import Markdown from '../../../shared/js/components/Markdown'; import MoneyAmount from '../../../shared/js/components/MoneyAmount'; /* interface FocusDetailProps{ className: string title...
// shared config (dev and prod) const {resolve} = require('path'); const {CheckerPlugin} = require('awesome-typescript-loader'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { resolve: { extensions: ['.ts', '.tsx', '.js', '.jsx'], }, context: resolve(__dirname, '../../src'), m...
/* */ module.exports = function(hljs) { return { aliases: ['cmake.in'], case_insensitive: true, keywords: { keyword: 'add_custom_command add_custom_target add_definitions add_dependencies ' + 'add_executable add_library add_subdirectory add_test aux_source_directory ' + 'bre...
var gulp = require('gulp'); var gutil = require("gulp-util"); var webpack = require("webpack"); var WebpackDevServer = require("webpack-dev-server"); var path = require('path'); var Server = require('karma').Server; var config = { entry: path.resolve(__dirname, 'app/main.js'), output: { path: path.resolv...
/** * Simulator process * Pokemon Showdown - http://pokemonshowdown.com/ * * This file is where the battle simulation itself happens. * * The most important part of the simulation happens in runEvent - * see that function's definition for details. * * @license MIT license */ 'use strict'; const Tools = requ...
/* * THIS FILE IS AUTO GENERATED FROM 'lib/stages/ecma_peep.kep' * DO NOT EDIT */ define(["require", "exports", "akh/error", "bes/object", "neith/tree", "../ecma_peep"], (function(require, exports, Error, __o, __o0, ecma_peep) { "use strict"; var optimize, setProperty = __o["setProperty"], node = ...
/* eslint no-undef: 0, fp/no-unused-expression: 0, fp/no-nil: 0, fp/no-mutation:0 , react/jsx-filename-extension:0 */ import React from 'react'; import {mount} from 'enzyme'; import {root} from 'utils'; import {HeaderPure} from './index'; jest.mock('react-router-dom/Link'); jest.mock('components/Container'); jest.mo...
/* * * mads - version 2.00.01 * Copyright (c) 2015, Ninjoe * Dual licensed under the MIT or GPL Version 2 licenses. * https://en.wikipedia.org/wiki/MIT_License * https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html * */ var mads = function () { /* Get Tracker */ if (typeof custTracker == 'undefined' && t...
const { expect } = require('chai') const path = require('path') const ldnode = require('../../index') const supertest = require('supertest') const serverOptions = { root: path.join(__dirname, '../resources/headers'), multiuser: false, webid: true, sslKey: path.join(__dirname, '../keys/key.pem'), sslCert: pat...
const fetch = require("node-fetch"); let get = (uri, resolve, reject) => { return new Promise((resolve, reject) => { fetch(uri) .then((resource) => { if (resource.ok) { return resource.json(); } else throw(resource); }) .then((result) => { resolve(result); }) ....
CKEDITOR.plugins.add( 'cia_inlinesave', { init: function( editor ) { editor.addCommand( 'cia_inlinesave', { exec : function( editor ) { SaveData(); } }); editor.ui.addButton( 'Inlinesave', { label: 'Save', command: 'cia_inlinesave', icon: this.path + 'images/inlinesa...
define({ // See <http://docs.scipy.org/doc/numpy/reference/ufuncs.html#available-ufuncs> for a full list 'name' : 'Vectorized (universal) functions', 'sub-menu' : [ { 'name' : 'Characterizing arrays', 'sub-menu' : [ { 'name' : 'max: Return ...
// Generated by CoffeeScript 1.4.0 (function() { $('document').ready(function() { var init, pendulumswing, rotation, swingtime; rotation = 3; swingtime = 700; init = function() { return $('#get_in_touch_pivot').stop().animate({ rotate: rotation }, 0, function() { $('#get_i...
/* * author: vic wang */ (function() { debuggap = { version: '1.0.0' } var qs = function(q, c) { c = c ? c : document; return c.querySelector(q); }; var qsa = function(q, c) { c = c ? c : document; return c.querySelectorAll(q); }; var dg = debuggap; // the pref...
"use strict"; module.exports = function(){ var dao = new app.dao.project() , resolve = new app.views.json().promise; return { list: function (req, res, next) { var input = app.utils.mongoose.query(req.query); resolve( dao.list(input.query, input.fiel...
/** * Action types. */ export const FETCH_REPOSITORIES = 'home/FETCH_REPOSITORIES'; export const UPDATE_REPOSITORIES = 'home/UPDATE_REPOSITORIES'; /** * Returns an action of type FETCH_REPOSITORIES, that tells * the app to fetch repositories from the given organization. * * @param {string} organization - Organ...
/** * array_merge for phpjs */ function array_merge () { // eslint-disable-line camelcase // discuss at: http://locutus.io/php/array_merge/ // original by: Brett Zamir (http://brett-zamir.me) // bugfixed by: Nate // bugfixed by: Brett Zamir (http://brett-zamir.me) // input by: josh // example 1: var...
"use strict"; var log_1 = require("../log/log"); var production = process.env["NODE_ENV"] === "production" ? "production" : "development"; function getEnvironmentalVariable(variable, defaultValue, printToConsole) { defaultValue = defaultValue ? defaultValue : ""; printToConsole = printToConsole !== undefined ...
'use strict'; var spies = require('./spy'); var chmodSpy = spies.chmodSpy; var fchmodSpy = spies.fchmodSpy; var futimesSpy = spies.futimesSpy; var fstatSpy = spies.fstatSpy; var vfs = require('../'); var os = require('os'); var path = require('path'); var fs = require('graceful-fs'); var del = require('del'); var Wr...
version https://git-lfs.github.com/spec/v1 oid sha256:c8b4fcb018b12f9e11099f7a8ad08808bfa3f4a6012357390ac1182b36657227 size 12227
/* * grunt-fontface * https://github.com/nsmith7989/grunt-fontface * * Copyright (c) 2014 Nathanael Smith * Licensed under the MIT license. */ 'use strict'; module.exports = function (grunt) { // Please see the Grunt documentation for more information regarding task // creation: http://gruntjs.com/creating-t...