code
stringlengths
2
1.05M
define(["exports", "./_base/kernel", "./sniff", "./_base/window", "./dom", "./dom-attr"], function(exports, dojo, has, win, dom, attr){ // module: // dojo/dom-construct // summary: // This module defines the core dojo DOM construction API. // TODOC: summary not showing up in output, see https://github....
import Ember from "ember-metal/core"; import {capitalize} from "ember-runtime/system/string"; QUnit.module('EmberStringUtils.capitalize'); if (!Ember.EXTEND_PROTOTYPES && !Ember.EXTEND_PROTOTYPES.String) { test("String.prototype.capitalize is not modified without EXTEND_PROTOTYPES", function() { ok("undefined" ...
// Copyright (c) 2016, Frappe Technologies and contributors // For license information, please see license.txt frappe.ui.form.on('OAuth Client', { refresh: function(frm) { } });
'use strict'; exports.__esModule = true; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _createBrowserHistory = require('history/createBrowserHistory'); var _createBrowserHistory2 = _in...
/** * Determines whether an observable sequence is empty. * * @memberOf Observable# * @returns {Observable} An observable sequence containing a single element determining whether the source sequence is empty. */ observableProto.isEmpty = function () { return this.any().se...
import Ember from "ember"; export default Ember.Controller.extend({ vehicle: 'bike', vehicles: ['bike', 'car'], states: ['', 'AL', 'AK', 'AZ', 'AR', 'CA', 'CO', 'CT'], isBike: Ember.computed.equal('vehicle', 'bike') });
import Ember from 'ember'; import {AjaxError} from 'ember-ajax/errors'; const { Service, computed: {filter}, get, set, isArray } = Ember; const emberA = Ember.A; // Notification keys take the form of "noun.verb.message", eg: // // "invite.resend.api-error" // "user.invite.already-invited" // // Th...
define('ace/mode/csharp', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/csharp_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle'], function(require, exports, module) { "use strict"; var oop = require("../lib/oop");...
var createPartial = require('../internal/createPartial'); /** Used to compose bitmasks for wrapper metadata. */ var PARTIAL_RIGHT_FLAG = 64; /** * This method is like `_.partial` except that partially applied arguments * are appended to those provided to the new function. * * The `_.partialRight.placehol...
// // Copyright (c) Microsoft and contributors. All rights reserved. // // 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...
var CasperUtils = require('./casperUtils').CasperUtils; CasperUtils.start(casper, CasperUtils.getUrl(), function() { casper.waitFor(CasperUtils.waits.jsMount) .then(CasperUtils.asserts.visibleSelectors([ 'a.intl', 'a.commands', 'a.fb', 'div.helperBar' ])) .then(CasperUtils....
"use strict"; var reduce_1 = require('./reduce'); /** * The Max operator operates on an Observable that emits numbers (or items that can be evaluated as numbers), * and when source Observable completes it emits a single item: the item with the largest number. * * <img src="./img/max.png" width="100%"> * * @param ...
{ "ALLOWED_FILE_TYPE": "許可されているファイルタイプ: ", "AUTHORIZATION_REQUIRED": "ファイルマネージャーは使用できません。許可が必要です。", "DIRECTORY_ALREADY_EXISTS": "フォルダー名'%s' は既に使用されています。", "DIRECTORY_NOT_EXIST": "フォルダー %s は存在しません。", "DISALLOWED_FILE_TYPE": "次のファイルは許可されていません: ", "ERROR_CREATING_ZIP": "Zipアーカイブを作成中にエラーが発生しました...
module.exports = 9520
if (typeof (WBBLANG)=="undefined") {WBBLANG = {};} WBBLANG['ru']= CURLANG = { bold: "Полужирный", italic: "Курсив", underline: "Подчеркнутый", strike: "Зачеркнутый", link: "Ссылка", img: "Изображение", sup: "Надстрочный текст", sub: "Подстрочный текст", justifyleft: "Текст по левому краю", justifycenter: "Тек...
/** * HTTP method override Interceptor. */ export default function (request, next) { if (request.emulateHTTP && /^(PUT|PATCH|DELETE)$/i.test(request.method)) { request.headers.set('X-HTTP-Method-Override', request.method); request.method = 'POST'; } next(); }
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v6.4.2 * @link http://www.ag-grid.com/ * @license MIT */ var utils_1 = require('../utils'); var eventService_1 = require("../eventService"); var gridOptionsWrapper_1 = require("../gridOptionsWrappe...
/** * @fileoverview Main Espree file that converts Acorn into Esprima output. * * This file contains code from the following MIT-licensed projects: * 1. Acorn * 2. Babylon * 3. Babel-ESLint * * This file also contains code from Esprima, which is BSD licensed. * * Acorn is Copyright 2012-2015 Acorn Contributor...
/*! angular-ladda 0.1.12 */ !function(){"use strict";angular.module("angular-ladda",[]).provider("ladda",function(){var a={style:"zoom-in"};return{setOption:function(t){angular.extend(a,t)},$get:function(){return a}}}).directive("ladda",["$compile","$timeout","ladda",function(a,t,e){return{restrict:"A",replace:!1,termi...
// Generated by CoffeeScript 1.3.3 /* Superslides 0.3.1 Fullscreen slideshow plugin for jQuery by Nic Aitch @nicinabox http://nicinabox.github.com/superslides/ */ (function() { var $; $ = jQuery; $.fn.superslides = function(options) { var $children, $container, $control, $nav, $this, adjust_image...
/* * Copyright (C) 2010 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/*! * inferno-create-class v1.0.0-beta39 * (c) 2016 Dominic Gannaway * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./inferno-component')) : typeof define === 'function' && define.amd ? defin...
/* * Trip.js - A jQuery plugin that can help you customize your tutorial trip easily * Version : 1.1.1 * * Author : EragonJ <eragonj@eragonj.me> * Blog : http://eragonj.me */ (function(window, $) { var Trip = function( tripData, userOptions ) { // save the settings this.settings = $.ext...
/*! * MediaElementPlayer * http://mediaelementjs.com/ * * Creates a controller bar for HTML5 <video> add <audio> tags * using jQuery and MediaElement.js (HTML5 Flash/Silverlight wrapper) * * Copyright 2010-2011, John Dyer (http://j.hn/) * Dual licensed under the MIT or GPL Version 2 licenses. * */if(typeof jQ...
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
loadIonicon('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408 260h-24v-47.8c0-70.4-57.6-128-128-128s-128 57.6-128 128V260h-24c-39.6 0-72 32.4-72 72v15.8c0 39.6 32.4 72.2 72 72.2h24c0 4 3.6 7.9 8 7.9s8-3.7 8-8.1V213h24c4.4 0 8-4 8-8.4 0-40 38.7-72.4 80-72.4s80 32.3 80 72.3c0 4.4 3.6 8.6 8 8.6h...
/** * @license wysihtml5x v0.5.0-beta6 * https://github.com/Edicy/wysihtml5 * * Author: Christopher Blum (https://github.com/tiff) * Secondary author of extended features: Oliver Pulges (https://github.com/pulges) * * Copyright (C) 2012 XING AG * Licensed under the MIT license (MIT) * */ var wysihtml5 = { v...
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("devtools","si",{title:"මුලද්‍රව්‍ය ",dialogName:"දෙබස් කවුළුවේ නම",tabName:"තීරුවේ නම",elementId:"මුලද්‍රව්‍ය කේතය",elementType:"මුලද්‍රව්‍ය වර්ගය"})...
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const Node = require("./Node.js"); const impl = utils.implSymbol; const mixin = utils.mixin; const ChildNode = require("./ChildNode.js"); const NonDocumentTypeChildNode = require("./NonDocumentTypeChildNode.js"); cons...
/*! * jquery.inputmask.phone.extensions.js * http://github.com/RobinHerbots/jquery.inputmask * Copyright (c) 2010 - 2014 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 3.1.29 */ !function(factory) { "function" == typeof define && define.amd ? define([ ...
// # DB API // API for DB operations var _ = require('lodash'), Promise = require('bluebird'), exporter = require('../data/export'), importer = require('../data/importer'), backupDatabase = require('../data/migration').backupDatabase, models = requ...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import sequelize from '../sequelize'; import User from './...
type Node1 = { kind: 'Node1', prop1?: string }; type Node2 = { kind: 'Node2', prop2?: string } export type ASTNode = Node1 | Node2;
module.exports = process.env.EXPRESS_COV ? require('./lib-cov/express') : require('./lib/express');
/* * JQuery zTree core v3.5.26 * http://zTree.me/ * * Copyright (c) 2010 Hunter.z * * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * * email: hunter.z@263.net * Date: 2016-11-03 */ (function(q){var H,I,J,K,L,M,u,r={},v={},w={},N={treeId:"",treeObj:null,view:{add...
export default (() => { const initialize = () => { return new Promise(resolve => { Module({ locateFile() { const i = import.meta.url.lastIndexOf('/') return import.meta.url.substring(0, i) + '/glslang.wasm'; }, ...
CKEDITOR.plugins.setLang("showblocks","ko",{toolbar:"블록 보기"});
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'elementspath', 'pt', { eleLabel: 'Camninho dos Elementos', eleTitle: 'Elemento %1' });
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'image', 'id', { alertUrl: 'Mohon tulis URL gambar', alt: 'Teks alternatif', border: 'Batas', btnUpload: 'Kirim ke Server', button2Img: 'Do you w...
/*! * Stylus * Copyright(c) 2010 LearnBoost <dev@learnboost.com> * MIT Licensed */ /** * Module dependencies. */ var Renderer = require('./renderer') , Parser = require('./parser') , nodes = require('./nodes') , utils = require('./utils'); /** * Export render as the module. */ exports = module.export...
$.noty.layouts.bottom={name:"bottom",options:{},container:{object:'<ul id="noty_bottom_layout_container" />',selector:"ul#noty_bottom_layout_container",style:function(){$(this).css({bottom:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<...
!function(e){"use strict";provide(["/demand/pledge","../todataurl"],function(t,a){var n=t.defer();return a.then(function(){0===e.createElement("canvas").toDataURL("image/jpeg").indexOf("data:image/jpeg")?n.resolve():n.reject()},n.reject),n.pledge})}(document); //# sourceMappingURL=jpeg.js.map
'use strict'; var Type = require('../type'); module.exports = new Type('tag:yaml.org,2002:map', { kind: 'mapping', construct: function (data) { return null !== data ? data : {}; } });
module.exports = function RGBToHex(data) { return { process: function() { return data.replace(/rgb\((\d+),(\d+),(\d+)\)/g, function(match, red, green, blue) { var redAsHex = parseInt(red, 10).toString(16); var greenAsHex = parseInt(green, 10).toString(16); var blueAsHex = parseInt(bl...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.dialog.add("mathjax",function(d){var c,b=d.lang.mathjax;return{title:b.title,minWidth:350,minHeight:100,contents:[{id:"info",elements:[{id:"equation",type:"textarea"...
/* * /MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Latin1Supplement.js * * Copyright (c) 2009-2017 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
/*! * jQuery JavaScript Library v3.0.0-beta1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector,-deprecated * https://jquery.com/ * * Includes Sizz...
/*! * Qoopido.js library v3.2.3, 2014-0-13 * https://github.com/dlueth/qoopido.js * (c) 2014 Dirk Lueth * Dual licensed under MIT and GPL */ !function(e){var r=[];Object.defineProperty||r.push("./queryselectorall"),window.qoopido.register("polyfill/document/queryselector",e,r)}(function(e,r,t,l,o,u){"use strict";retur...
describe("Player", function() { var Player = require('../src/Player.js'); var Song = require('../src/Song.js'); var player; var song; beforeEach(function() { player = new Player(); song = new Song(); }); it("should be able to play a Song", function() { player.play(song); expect(player.cu...
var dP = require('./_object-dp'); var createDesc = require('./_property-desc'); module.exports = require('./_descriptors') ? function (object, key, value) { return dP.f(object, key, createDesc(1, value)); } : function (object, key, value) { object[key] = value; return object; };
/*! UIkit 2.13.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ !function(t){var i;jQuery&&UIkit&&(i=t(jQuery,UIkit)),"function"==typeof define&&define.amd&&define("uikit-form-password",["uikit"],function(){return i||t(jQuery,UIkit)})}(function(t,i){"use strict";return i.component("formPassword",{defaul...
/*! jQuery UI - v1.10.2 - 2013-03-14 * http://jqueryui.com * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ jQuery(function(t){t.datepicker.regional.de={closeText:"Schließen",prevText:"&#x3C;Zurück",nextText:"Vor&#x3E;",currentText:"Heute",monthNames:["Januar","Februar","März","April","Mai","J...
YUI.add('dd-plugin', function (Y, NAME) { /** * Simple Drag plugin that can be attached to a Node or Widget via the plug method. * @module dd * @submodule dd-plugin */ /** * Simple Drag plugin that can be attached to a Node or Widget via the plug method. ...
/** @license * SoundManager 2: Javascript Sound for the Web * -------------------------------------------- * http://schillmania.com/projects/soundmanager2/ * * Copyright (c) 2007, Scott Schiller. All rights reserved. * Code provided under the BSD License: * http://schillmania.com/projects/soundmanager2/li...
'use strict'; /* globals describe, browser, beforeEach, it, expect, element, by */ describe('My Angular Application', function() { it('Should automatically redirect to / when location hash/fragment is empty', function() { browser.get('index.html'); expect(browser.getLocationAbsUrl()).toMatch('...
import isEqual from 'lodash.isequal'; import normalize from '@mapbox/geojson-normalize'; import hat from 'hat'; import featuresAt from './lib/features_at'; import stringSetsAreEqual from './lib/string_sets_are_equal'; import * as Constants from './constants'; import StringSet from './lib/string_set'; import Polygon fr...
/* * Copyright (c) 2017-2019 Tom Shawver */ 'use strict' const toBuffer = require('src/encodings/binary') describe('Binary Encoding', () => { it('returns the same buffer that was provided', () => { const buf = toBuffer(new Buffer('foo')) expect(buf).toBeInstanceOf(Buffer) expect(buf.toString()).toEqu...
$(function(){ $('a[href*=#]:not([href=#])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { ...
JSHL.language = JSHL.language || {}; JSHL.language.javascript = { //文档注释 --> 普通注释 --> 字符串 --> 关键字--> 变量 --> 内置对象-->数字-->boolean-->操作符 //cls : ['js-doc','js-com','js-str','js-key'/*,'js-var'*/,'js-obj','js-num','js-bol','js-ope'], reg : { 'doc' : /.?(\/\*{2}[\s\S]*?\*\/)/, //文档注释 'com' : /(\...
/** @license ISC License (c) copyright 2017 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ const isSameType = require('./isSameType') const isSame = require('./isSame') const hasAlg = require('./hasAlg') const type = require('./type') const comp = (a, b) => a.valueOf() === b.valueOf() cons...
window.chat = function() {}; //WORK IN PROGRESS - NOT YET USED!! window.chat.commTabs = [ // channel: the COMM channel ('tab' parameter in server requests) // name: visible name // inputPrompt: string for the input prompt // inputColor: (optional) color for input // sendMessage: (optional) function to send the message...
import AbstractEntity from "./AbstractEntity" /** * Compares the provided values to determine whether they are equal. * * @param {*} value1 The 1st value to compare. * @param {*} value2 The 2nd value to compare. * @return {boolean} {@code true} if the values are equal. */ export default function (value1, value...
var extend = require( 'extend' ); var findParent = require( './find-parent' ); var falafel = require( './falafel-helper' ); var ignore = require( 'esformatter-ignore' ); module.exports = { setOptions: function ( opts ) { var me = this; opts = opts || { }; me.opts = opts; var jsxOptions = opts.jsx |...
/*! * 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. */ /** * OData-based DataBinding * * @namespace * @name sap.ui.model.odata * @public */ // Provides class sap.ui.model.odata.ODat...
var eos = require('../../stream/end-of-stream') var constants = require('constants') var util = require('util') var Readable = require('../../stream/readable-stream').Readable var Writable = require('../../stream/readable-stream').Writable var StringDecoder = require('../../node/string_decoder').StringDecod...
'use strict'; var debug = require('debug')('HID'); var util = require('util'); var EventEmitter = require('events').EventEmitter; util.inherits(HID, EventEmitter); function HID() { var _this = this; if (global.__chromehidtransport) return global.__chromehidtransport; global.__chromehidtransport = this; this._pol...
describe('getAttribute', function () { var chai = require('chai'), assert = chai.assert; var DomParser = require('../index.js'), parser = new DomParser(); it('attr value with "="', function(){ var html = '<div id="outer" data-a ttt = "asd\'">\n' + ' <a id="inner" href="/search...
const test = require('tape') const helpers = require('../test/helpers') const Last = require('../test/LastMonoid') const bindFunc = helpers.bindFunc const isFunction = require('../core/isFunction') const unit = require('../core/_unit') const concat = require('./concat') test('concat pointfree', t => { const f = ...
'use strict'; var streamArray = require('stream-array'), sharedOptions = require('./shared_options'), fs = require('fs'), vfs = require('vinyl-fs'), chokidar = require('chokidar'), debounce = require('debounce'); module.exports = build; module.exports.description = 'build documentation'; /** * Add yargs p...
var Environment = require('./Environment'); var Config = (function () { function Config(data) { this.data = data; } Object.defineProperty(Config.prototype, "serverAddress", { get: function () { return this.protocol + '://' + this.host + ':' + this.port + '/' + this.routesPrefix;...
class Client_Viewport_Header extends View_Browser { initElements() { super.initElements(); this.enable(); } handleSessionAuthenticated() { if (this.subviews.context_menu) { this.subviews.context_menu.show(); } } handleSessionUnauthenticated() { if (this.subviews.context_menu) { this.subviews.c...
/* eslint-env node */ /* import fetch, { * Request, * } from 'node-fetch';*/ const fetch = require('node-fetch'); const api = require('./api'); const endpoint = require('./endpoint'); const init = require('./init'); module.exports = apiConfig => api(fetch, fetch.Request, endpoint, init)(apiConfig);
/*jslint browser: true, nomen: true */ (function (requirejs) { 'use strict'; var allTestFiles = [], pathToModule = function (path) { return path.replace(/^\/base\//, '../../').replace(/\.js$/, ''); }; Object.keys(window.__karma__.files).forEach(function (file) { if (/^\...
require('dotenv').config() const express = require('express') const path = require('path') const bodyParser = require('body-parser') const Sequelize = require('sequelize') const app = express() const sequelize = new Sequelize( process.env.DB_NAME, process.env.DB_USERNAME, process.env.DB_PASSWORD, { ...
Mozilla/5.0 (Platform; Encryption; OS-or-CPU; Language) AppleWebKit/AppleWebKitVersion (KHTML, like Gecko) Chrome/ChromeVersion Safari/SafariVersion
var events = require('events'); var util = require('util'); module.exports = Response; function Response(options) { options || (options = {}); this.options = options; } util.inherits(Response, events.EventEmitter); Response.prototype.send = function(result) { this.emit('send', result); }; Response.prot...
var Fraction=require("./src/fractions"),Expression=require("./src/expressions").Expression,Equation=require("./src/equations"),Parser=require("./src/parser"),parse=function(r){var n=new Parser,e=n.parse(r);return e},toTex=function(r){return r instanceof Fraction||r instanceof Expression||r instanceof Equation?r.toTex()...
import EntityService from './EntityService'; import LevelService from './LevelService'; import {Point} from 'pixi.js'; import {centeredToTopLeft} from '../../utils/coordinate'; // coordinate system: // top-left origin // // 0---x+ // | // y // + const WIDTH = 1000; const HEIGHT = 1000; export default class ...
var router = require('../router.js'), lazy = require("lazy"), fs = require("fs"), Transaction = require('./transaction.js') router.registerUploader('import', importFile); module.exports = { importFile : importFile }; function importFile(reply, request) { var file = request.payload.fileUpload...
module.exports = { usage: "`<cmd> [n]` : " + __("Delete messages. With no param : 50, `n` : the n last ones"), restricted: true, exec: function (msg, values) { try { var num = Number(values[1]) + 1 num = (!isNaN(num))? num : 50 msg.channel.fetchMessages({limit: n...
// this allows culerity to wait until all ajax requests have finished jQuery(function($) { var original_ajax = $.ajax; var count_down = function(callback) { return function() { try { if(callback) { callback.apply(this, arguments); }; } catch(e) { window.running_ajax_calls -= 1; throw(e); ...
var ReduxDebug, ReduxFreeze, applyMiddleware, compose, createStore, cuid, instrument, makeAStore, makeDevToolsStore, ref, testComponentMixin; ref = require('redux'), createStore = ref.createStore, applyMiddleware = ref.applyMiddleware, compose = ref.compose; ReduxDebug = require('redux-debug'); ReduxFreeze = require...
#!/usr/bin/env node 'use strict' var minimist = require('minimist') var spawn = require('child_process').spawn var bulk = require.resolve('./bulk') var argv = minimist(process.argv.slice(2)) if (!argv._.length) { spawn(bulk, process.argv.slice(2), {stdio: 'inherit'}) } else { // assume dirs passed as args after...
require( '../setup' ); var path = require( 'path' ); var envelopeFn = require( '../../src/http/httpEnvelope.js' ); var util = require( 'util' ); var lastRequest; setupLog( "autohost.http.envelope", 1 ); describe( 'HTTP Envelope', function() { describe( 'when handling errors', function() { describe( 'with host defi...
import mongorito from 'mongorito'; import {Model as Model} from 'mongorito'; class User extends Model { } export default User;
/* * jQuery File Upload User Interface Plugin 9.0.0 * https://github.com/blueimp/jQuery-File-Upload * * Copyright 2010, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /*jslint nomen: true, unparam: true, regexp: true */ /*global define, w...
import {closure} from "./utils" import { CHANNEL_EVENTS, CHANNEL_LIFECYCLE_EVENTS, CHANNEL_STATES, } from "./constants" import Push from "./push" import Timer from "./timer" /** * * @param {string} topic * @param {(Object|function)} params * @param {Socket} socket */ export default class Channel { constr...
describe('tile-stitcher.js', function() { describe('stitch', function() { var ts = tileStitcher('src/tiles/{z}/{x}/{y}.png'), async = new AsyncSpec(this); async.it('should stitch tiles together in the proper order', function(done) { ts.stitch(19084, 24821, 19085, 24822, 16, function(stitchedCa...
const {promisify} = require('util'); const getCookies = promisify(require('chrome-cookies-secure').getCookies); const chokidar = require('chokidar'); const readFile = promisify(require('fs').readFile); const got = require('got'); const config = require('.bg-config.json') || {}; const argv = require('minimist')(process...
'use strict'; const utils = require('../common/utils'); module.exports = { instance : function (service, settings, initial) { let _self = this; let _service = service; let _settings = settings || {}; let _default = initial; let _overwrite = _settings.overwrite || false; let _file = _settings.file || (se...
var cvHeader = new Vue({ el: '.header', data: { src: 'img/myavatar.jpg', name:'朱如倩', position:'应聘 · 前端开发工程师', github: 'GitHub · ' + 'june111', gender: '女', age: '23', workexp: '1 年工作经验', education: '本科', phone: '18820209318', qq: '4...
'use strict';module.exports = function(css){var TokenType=require('../token-types');var tokens=[],urlMode=false,blockMode=0,c, // current character cn, // next character pos=0,tn=0,ln=1,col=1;var Punctuation={' ':TokenType.Space,'\n':TokenType.Newline,'\r':TokenType.Newline,'\t':TokenType.Tab,'!':TokenType.ExclamationM...
function Solve(args) { var length, sequences, i, currentNumber, previousNumber; sequences = 0; previousNumber = 2000000001; for (i = 1, length = parseInt(args[0]); i <= length; i++) { currentNumber = parseInt(args[i]); if (currentNumber < previousNumber...
'use strict'; import BaseCommand from './baseCommand'; const Bluebird = require('bluebird'); export default class SetVarCommand extends BaseCommand { run () { this._arguments.forEach((arg) => { const tokens = arg.split('='); process.env[tokens[0]] = tokens[1]; }); return Bluebird.resolve({ code: 0 }); }...
version https://git-lfs.github.com/spec/v1 oid sha256:2219cd700d446dc4d4be606dbd2336881ed52282c9daf01e2664822b2569f9db size 1344
version https://git-lfs.github.com/spec/v1 oid sha256:a81c8a37170f986a3094a02d20dd3d4894683f951451e0a50b301d663430737c size 11397
import LatLon from './lib/latlon.js'; import config from '../../config.json'; export let degrees = Math.PI / 180; export let center = new LatLon(...config.center); export let factor = 1 / config.scale; export let rotate = config.rotate * degrees;
const validUrl = /^https?:\/\//i module.exports = options => { if (!validUrl.test(options.url)) { throw new Error(`"${options.url}" is not a valid URL`) } }
(function Nav() { var Nav = React.createClass({ displayName: "Nav", render: function () { var self = this; return React.createElement( "nav", { className: "navbar navbar-inverse" }, React.createElement( "div", { className: "container-fluid" }, React.createElement( "div", ...
require('dotenv').config() const Sequelize = require('sequelize') const { SQL_DIALECT, SQL_USERNAME, SQL_PASSWORD, SQL_HOST, SQL_PORT, SQL_DATABASE } = process.env const url = `${SQL_DIALECT}://${SQL_USERNAME}:${SQL_PASSWORD}@${SQL_HOST}:${SQL_PORT}/${SQL_DATABASE}` return new Sequelize(url) .authenticate() .then(...