code stringlengths 2 1.05M |
|---|
import React, { PureComponent } from 'react'
import { View, Text, Switch, StyleSheet } from 'react-native'
import stripe from 'tipsi-stripe'
import Button from '../components/Button'
import testID from '../utils/testID'
/* eslint-disable no-console */
export default class ApplePayScreen extends PureComponent {
stati... |
'use strict';
const assert = require('assert');
describe('Tools', function () {
describe('toId', function () {
it('should return an id', function () {
assert(Tools.toId("Test") === "test");
assert(Tools.toId({id: "Test"}) === "test");
});
});
describe('getPokemon', function () {
it('should return a Pok... |
/*
* Kendo UI v2014.2.1008 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial lice... |
!function(){"use strict";function o(o){function e(o){n.val(o),t.append(n),n[0].select();try{var e=document.execCommand("copy");if(!e)throw e}catch(e){console.log("failed to copy",o)}n.remove()}var t=angular.element(o.document.body),n=angular.element("<textarea/>");return n.css({position:"fixed",opacity:"0"}),{restrict:... |
(function(n,t,e,u){function r(n,e){var u=n,r=e,l=this,c=0,f=e.length;t(l,"valueOf",{value:function(){return c}}),t(l,"scope",{get:function(){return u}}),t(l,"prop",{get:function(){return c>=0&&f>c?r[c]:i.nullptr}}),t(l,"me",{get:function(){return c>=0&&f>c?l:i.nullptr},set:function(n){isNaN(n=+n)||(c=n)}}),t(l,"$",{get... |
/* global describe, beforeEach, it, expect */
import angular from 'angular';
import Tester from 'tester';
import template from './upload-progress-bar-spec.html';
import '../upload-progress-bar';
describe('uploadProgessBar', () => {
const tester = new Tester();
beforeEach(angular.mock.module('availity', 'avail... |
var teamSalesContacts = '<tr><td style="width: 100px;"><img src="../../images/janet.png" /></td><td style=""><strong>Team lead:</strong> Petra Wilson<br /><strong>Phone: </strong>555-313-899<br /><strong>Email: </strong>petraw@company.com</td></tr>',
teamSalesStaff = '<strong>Petra Wilson</strong> Team lead, Phon... |
/*!
* pts.js 0.9.3 - Copyright © 2017-2020 William Ngan and contributors.
* Licensed under Apache 2.0 License.
* See https://github.com/williamngan/pts for details.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factor... |
import{p as promiseResolve,b as bootstrapLazy}from"./index-76dbbf84.js";const patchBrowser=()=>{var o=import.meta.url;const e={};return""!==o&&(e.resourcesUrl=new URL(".",o).href),promiseResolve(e)};patchBrowser().then(o=>bootstrapLazy([["ion-icon",[[1,"ion-icon",{mode:[1025],color:[1],ios:[1],md:[1],flipRtl:[4,"flip-r... |
var assert = require('assert');
describe('resFromReqArr', function () {
var resFromReqArr = require('./../../lib/resFromReqArr');
it('returns a function when it\'s required', function () {
assert.equal(typeof resFromReqArr, 'function');
});
it('returns an object containing key value module pairs accordin... |
/*
* Copyright (c) (2016) Starlis LLC / Daniel Ennis (Aikar)
*
* http://aikar.co
* http://starlis.com
*
* @license MIT
*
*/
var xmpp = require('node-xmpp-client');
var Client = require('node-xmpp-client/lib/Client')
var ltx = require('ltx');
(function() {
"use strict";
var lcUsername = config.livecoding_u... |
version https://git-lfs.github.com/spec/v1
oid sha256:2758fa3cc208a060f4beaefbac0d345bacbc72f4d913ee9b19b4ede6d08604e6
size 401
|
import cn from "classnames";
import React from "react";
import PropTypes from "prop-types";
import { capitalize } from "../../utils/string";
import ExternalLink from "../external-link";
import Subtitle from "./subtitle";
import styles from "./index.module.css";
const iconMap = {
journal: "fa-newspaper",
website: "... |
import test from 'ava';
import es5 from './es5';
import 'babel-core/register';
import es6 from './es6';
test(t => {
t.ok(/ES5/.test(es5()));
t.ok(/ES6/.test(es6()));
t.end();
});
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _sortBy2 = require('lodash/sortBy');
var _sortBy3 = _interopRequireDefault(_sortBy2);
var _isFunction2 = require('lodash/isFunction');
var _isFunction3 = _interopRequireDefault(_isFunction2);
var _range2 = require('lodash/range');
... |
//Problem 1. Planar coordinates
//Write functions for working with shapes in standard Planar coordinate system.
//Points are represented by coordinates P(X, Y)
//Lines are represented by two points, marking their beginning and ending L(P1(X1,Y1), P2(X2,Y2))
//Calculate the distance between two points.
//Check if three... |
import v8 from 'node:v8';
import {parentPort, workerData} from 'node:worker_threads';
import normalizeExtensions from './extensions.js';
import {normalizeGlobs} from './globs.js';
import {loadConfig} from './load-config.js';
import providerManager from './provider-manager.js';
const MAX_DATA_LENGTH_EXCLUSIVE = 100 * ... |
// JavaScript Document
/**!
* 微信内置浏览器的Javascript API,功能包括:
*
* 1、分享到微信朋友圈
* 2、分享给微信好友
* 3、分享到腾讯微博
* 4、隐藏/显示右上角的菜单入口
* 5、隐藏/显示底部浏览器工具栏
* 6、获取当前的网络状态
* 7、调起微信客户端的图片播放组件
* 8、关闭公众平台Web页面
*
* @author zhaoxianlie(http://www.baidufe.com)
*/
var WeixinApi = (function () {
"use strict";
/**
* 分享到微信朋友... |
var userMessages = (function () {
function userMessagesContainer(container) {
var userMessages = {},
$container = $(container);
userMessages.showAndRemove = function (options) {
var target = $(options.container),
time = options.removeAfter ||... |
/* global moment */
angular.module('Kanban.service', ['Kanban.config', 'ngResource'])
.factory('UnitConverter', function() {
return {
inDay: function(durationInHour) {
return (durationInHour / 24.0).toFixed(1);
}
};
})
.factory('QueryBuilder', ['SYS_CONFIG', function(SYS_CONFIG) {
... |
(function (define) {
"use strict";
define(function () {
var GravatarController = function ($scope) {
$scope.email = "";
};
return ["$scope", GravatarController];
});
}(define));
|
define(['lodash'], function () {
'use strict';
/**
* Service to handle network object
*/
function NetworkService(NetworkModel, Restangular, UtilsService, LinksService, NextTopologyService) {
var self = this;
/**
* Update node and links status ( next topo, network obj);
... |
var mongoose = require('mongoose');
var inboxMessageSchema = new mongoose.Schema({
createdAt: {
type: Date,
default: new Date()
},
user: {
type: mongoose.Schema.Types.ObjectId,
ref: 'User'
},
message: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Message'
},
read: {
type: Boolean,
defaults: fals... |
const router = require('express').Router()
const v1 = require('./v1')
router.use('/v1', v1)
module.exports = router
|
/**
* Projectile for laser gun ability.
**/
ig.module(
'game.entities.laser'
)
.requires(
// require the projectile
'plusplus.abstractities.projectile',
// and an explosion for fun
'plusplus.entities.explosion',
// if you want to use the config
// don't forget to require it
'plusplus.core.config',
/... |
'use strict';
process.stdin.resume();
process.stdin.setEncoding('utf-8');
let inputString = '';
let currentLine = 0;
process.stdin.on('data', inputStdin => {
inputString += inputStdin;
});
process.stdin.on('end', _ => {
inputString = inputString.trim().split('\n').map(string => {
return string.trim(... |
import { CALL_API } from 'redux-api-middleware'
import * as types from 'constants/ActionTypes'
import { normalize } from 'normalizr'
import { userSchema } from 'constants/Schema'
import { stringToList } from '../utils'
const API_ROOT = 'https://api.github.com'
export function getRepos (account) {
return {
[CALL... |
/**
* A simple drop down menu example
*
* The princliple is plain, we define a stanard drop down menu
* HTML structure, paint it a bit with CSS and then hook up
* with unobtrusive events delegation technique
*
* Copyright (C) 2010 Nikolay Nemshilov
*/
// the HML structure
<ul id="the-menu">
<li>
<a href=... |
function cartype(){
if($('[name="ttype"]').val()==1){
$('[name="hseatca"]').attr('disabled',false);
$('[name="sseatca"]').attr('disabled',true);
$('[name="hsleepca"]').attr('disabled',true);
$('[name="ssleepca"]').attr('disabled',true);
}else if($('[name="ttype"]').val()==2){
$('[name="hseatca"]').a... |
// =============================================================================
// Slate.js | Tooltip Component
// (c) Mathigon
// =============================================================================
import { $, $N, customElement, $body } from '@mathigon/boost';
const $tooltip = $N('div', { class: 'toolti... |
(function() {
VanillaFormValidator.addRule('numericality', function(value, opts) {
if (value === '') {
return true;
}
return value - parseFloat(value) + 1 >= 0;
});
}).call(this);
|
exports.info = { FormatID: '1360',
FormatName: 'Domino XML Database Export',
FormatVersion: '',
FormatAliases: '',
FormatFamilies: '',
FormatTypes: '',
FormatDisclosure: '',
FormatDescription: 'This is an outline record only, and requires further details, research or authentication to provide information ... |
'use strict';
const fs = require('hexo-fs');
const path = require('path');
const cheerio = require('cheerio');
const marked = require('marked');
const stripIndent = require('strip-indent');
const util = require('hexo-util');
const highlight = util.highlight;
// copy style file into public folder
const baseDir = hexo.... |
// y86 asm to quartus MIF file
// By mingkaidox
var to_mif = function(codes, width, depth) {
if (0 != width % 8) return '';
var out = "% MIF made by Y86 assembler\n";
out += "DEPTH=" + depth + ';\n';
out += "WIDTH=" + width + ';\n';
out += 'ADDRESS_RADIX=HEX;\n';
out += 'DATA_RADIX=HEX;\n';
... |
(function () {
'use strict';
// imports
const Quick = quick.Quick;
const Rect = quick.Rect;
const Sprite = quick.Sprite;
class ClickableSprite extends Sprite {
constructor() {
super();
this.addTag('clickable');
this.setSolid();
}
onClick() {
// no default behavior
... |
/**
* unrar.js
*
* Copyright(c) 2011 Google Inc.
* Copyright(c) 2011 antimatter15
* Copyright(c) 2016 Thomas Lanteigne -- code porting
*
* Reference Documentation:
*
* http://kthoom.googlecode.com/hg/docs/unrar.html
*/
/*****************************************************************
* Libs
**************... |
search_result['2016']=["topic_00000000000004E1_events--.html","ScheduleStatus Events",""]; |
export const NamedContextVar = (name) => (superclass) => class extends superclass {
get ContextVarName() {
return name
}
}
|
const path = require("path");
const VueLoaderPlugin = require("vue-loader/lib/plugin");
const { dependencies } = require("./package.json");
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
target: "electron-renderer",
mode: "development",
entry: "./src/renderer/index.js",
output: {
pat... |
'use strict';
angular
.module('fli.home')
.controller('home.widget.stars.ctrl',
function (user) {
var vm = this,
STARS_COUNT = 24;
vm.type = 'stars';
vm.limitTo = STARS_COUNT;
function _setItems(items) {
vm.items = items || [];
}
function init() {
user.feeds.get(vm.t... |
module.exports = {
description: "",
ns: "react-material-ui",
type: "ReactNode",
dependencies: {
npm: {
"material-ui/Stepper/Step": require('material-ui/Stepper/Step')
}
},
name: "Step",
ports: {
input: {
active: {
type: "boolean",
name: "active",
required: f... |
/*
* Globalize Culture en-GB
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* This file was generated by the Globalize Culture Generator
* Translation: bugs found in this file need t... |
import angular from 'angular';
angular.module('availity.mock', [])
.factory('avValEmail', () => {
return {
name: 'dummyValidator',
validate() {
return true;
}
};
});
|
const React = require('react');
const IconBase = require('react-icon-base');
export default class Search extends React.Component {
render() {
return (
<IconBase viewBox='0 0 20 20' {...this.props}>
<path d='M12.14 4.18c1.87 1.87 2.11 4.75 0.72 6.89 0.12 0.1 0.22 0.21 0.36 0.31 0.2 0.16 0.47 0.36 0.81 0.59 0.... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.0.5-master-437a308
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.divider
* @description Divider module!
*/
angular.module('material.components.divider', [
'mate... |
var astar = {
//initializes each cell with the necessary variables
init: function(grid) {
for(var x = 0; x < grid.length; x++) {
for(var y = 0; y < grid[x].length; y++) {
var cell = grid[x][y];
cell.f = 0;
cell.g = 0;
ce... |
var player;
var tag = document.createElement('script');
tag.src = 'https://www.youtube.com/iframe_api';
var scriptTags = document.getElementsByTagName('script');
var lastScriptTag = scriptTags[scriptTags.length - 1];
lastScriptTag.parentNode.insertBefore(tag, lastScriptTag.nextSibling);
window.onYouTubeIframeAPIReady... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// tslint:disable no-console
let debug;
try {
debug = require('debug');
}
catch (_a) { }
function displayWarnings() {
if (process.listenerCount('warning') > 1)
return;
process.on('warning', (warning) => {
console.er... |
var app = angular.module( 'google-maps', [] );
app.service('markers', [ '$http', 'options', '$templateCache', function($http, options, $templateCache) {
this.loadMarkers = function(url, params, $scope) {
var _this = this;
if(!url) return;
$http.get(url, { params: params, cache: true }).success(functio... |
var container = document.getElementById("container"),
dimension = 2,
imageSize = 720;
//module
var puzzle = {};
var board = (function () {
var boardWidth, boardHeight;
function setBackground(el) {
var val = el.dataset.value;
el.style.backgroundPosition = "left " + ((val % dimension) * ... |
/**
* Refactored variant in order to properly encapsulate private/protected
* methods within a functional scope and make things look a lot cleaner
* and lintier for greater good.
*
* @voodootikigod
*/
/**
*
* Base64 encode / decode
* Adapted from: http://www.webtoolkit.info/
*
**/
var Base64 = (func... |
WS = require('aws-sdk');
exports.handler = function(event, context, callback) {
var bucketName = process.env.S3_BUCKET;
callback(null, bucketName);
}
|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import '../styles/style.scss';
const isClient = typeof window !== 'undefined';
let ua;
let cookie;
class SmartBanner extends Component {
static propTypes = {
daysHidden: PropTypes.number,
daysReminder: PropTypes.number,
appSto... |
'use strict';
/* global async, saveAs */
/*jshint -W069 */
(function() {
var pattern = 'var orders =';
var pageNames = ['paidonly', 'payatpickup-notship', 'open', 'shippedonly',
'history', 'canceled', ];
var pageDesc = ['已付款待出貨訂單', '超商取貨付款待出貨訂單', '等候付款訂單',
'已出貨訂單', '已完成訂單', '取消的訂... |
/*
*
* Right - Responsive Admin Template
* v 0.3.0
* http://adminbootstrap.com
*
*/
$(document).ready(function() {
quickmenu($('.quickmenu__item.active'));
$('body').on('click', '.quickmenu__item', function() {
quickmenu($(this))
});
function quickmenu(item) {
var menu = $('.sidebar__menu');
me... |
// ---------------------------------------------
// BZZ
// ---> Site
if (!site) { var site = {}; }
// ---------------------------------------------
// HELPERS
site.helpers = {};
// ---> Cachebust
site.helpers.addCachebust = function(src) {
if (src.toLowerCase().indexOf("http")>=0) {
if (src.indexOf("?")>=0) {... |
'use strict';
/**
* validations class
* @module validations
*/
angular.module('svBeaconApis', [])
.factory('Validations',
function ($log) {
var validations = {};
validations.patterns = {
required: function (value) {
return !!value;
},
url: /((([A-Za-z]{3,9}:(?:\/... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { expect } from 'chai';
import { describe, it } from 'mocha';
import dedent from '../dedent';
describe('dedent', () => {
it('r... |
(function() {
'use strict';
angular.module('dimApp')
.directive('dimStoreHeading', StoreHeading);
function StoreHeading() {
return {
controller: StoreHeadingCtrl,
controllerAs: 'vm',
bindToController: true,
scope: {
store: '=storeData'
},
restrict: 'E',
... |
(function() {
'use strict';
describe('verdictClassFilter', function() {
var filt, defs_;
beforeEach(function() {
// crucial
module('purkinje');
inject(function($filter, defs) {
filt = $filter('verdictClassFilter');
defs_ = de... |
function GUIModules(state) {
var _State = state;
this.Modules = {};
this.addGUIModule = function(name) {
this.Modules[name] = new GUIModule(name);
return this.Modules[name];
};
this.updateBindings = function() {
_.each(this.Modules, function(Module) {
_.each(Module.Elements, function(Eleme... |
'use strict';
var GulpConfig = (function () {
function gulpConfig() {
// folder definitions
this.baseFolder = './';
this.sourceFolder = this.baseFolder + 'src/';
this.samplesFolder = this.baseFolder + 'samples/';
this.testFolder = this.baseFol... |
import { parse } from 'acorn';
import MagicString from 'magic-string';
import findImportsAndExports from 'utils/ast/findImportsAndExports';
import annotateAst from 'utils/ast/annotate';
import disallowConflictingImports from '../utils/disallowConflictingImports';
export default function getModule ( mod ) {
mod.body =... |
var count = 0;
var inc = new GlideRecord('incident');
inc.addQuery('active', 'true');
inc.addQuery('incident_state', '!=', '11');
inc.addQuery('opened_by', '96a33bd70a0a3c4900ba4558b6f34650');
inc.addQuery('short_description', email.subject);
inc.query();
while (inc.next()) {
inc.work_notes = 'Duplicate ' + email.s... |
import mongoose from 'mongoose';
import shortid from 'shortid';
let MediaItemScheme = new mongoose.Schema({
_id: {
type: String,
unique: true,
'default': shortid.generate
},
created: {
type: Date,
default: Date.now
},
updated: {
type: Date,
default: Date.now
},
title: String,
body: String,
... |
jsx3.Class.defineClass("jsx3.io.XPCOMFileSystem",jsx3.io.FileSystem,null,function(e,b){var
ub={a:"UniversalXPConnect",b:"@mozilla.org/file/directory_service;1",c:"nsIProperties",d:"@mozilla.org/rdf/rdf-service;1",e:/^[a-zA-Z]:\\/,f:"string",g:"file:///",h:/\\/g,i:"/",j:"file://",k:"",l:"Desk",m:"nsIFile",n:"Documents",... |
$(function () {
// SITE CONFIG!
var siteRoot = 'http://localhost:9000';
var backEnd = 'http://localhost/reaktor-backend/';
var fileName;
var hash = location.search.substring(1, location.search.length);
var permalink = '<a href="' + siteRoot + '/single.html?' + hash + '">permalink: ' +... |
/**
* Created by Dawid Kulpa on 27.02.2017.
*/
const initialState = {
discovering: false,
lights: [],
};
export default function reducer(state = initialState, action) {
switch(action.type) {
case 'DISCOVERING_START':
return {...state, discovering: true}
break;
cas... |
/*global define*/
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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
//
/... |
'use strict';
var assert = require('assert');
var babel = require('babel-core');
var plugin = require('../index');
var sinon = require('sinon');
global.myGlobals = {};
var babelOptions = {
filename: 'foo/Foo.js',
plugins: [plugin, ['globals', {globalName: 'myGlobals'}]],
presets: ['es2015']
};
module.exports =... |
var res4_loaded = new Date().getTime();
|
import expect from 'expect';
import {
defaultAction,
} from '../actions';
import {
DEFAULT_ACTION,
} from '../constants';
describe('Video actions', () => {
describe('Default Action', () => {
it('has a type of DEFAULT_ACTION', () => {
const expected = {
type: DEFAULT_ACTION,
};
expec... |
/**
* Store a given maximun number of elements in localStorage.
* @author Juan Ramón González Hidalgo
*
* @param opts JSON object with the attribute names:
* - maxItems Max items to be stored (default: 100)
* - prefix Var name for the elements in the local storage space (default: '')
* - storage S... |
(function() {
// behold, organizational skills
var app = angular.module("onappnw", ["ui.router"]);
app.config(["$stateProvider", "$urlRouterProvider", function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise("/welcome");
$stateProvider.state("welcome", {
url: "/welcome",
views: {
"": {
... |
'use strict';
var yeoman = require('yeoman-generator');
module.exports = yeoman.generators.Base.extend({
initializing: function() {
this.argument('name', {type: String, required: true});
this.composeWith('yangular:view', {
args: [this.name],
options: {
viewsDir: this.config.get('viewsDi... |
/**
* ProductService.js
*/
var Service=require('../Service');
/**
* ProductService constructor
* @param pDatasource the data source
*/
var ProductService=function(pDatasource) {
this.parent=Service;
this.parent(pDatasource);
};
ProductService.prototype=new Service();
/**
* Gets the view model
* @param pParam... |
/* eslint no-process-exit: 0 */
"use strict";
require("requirish")._(module);
Error.stackTraceLimit = Infinity;
var argv = require('yargs')
.wrap(132)
.string("alternateHostname")
.describe("alternateHostname")
.alias('a', 'alternateHostname')
.string("port")
.describe("port")
.... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './js/components/App.jsx';
import './scss/main.scss';
import Select from 'react-select';
import 'react-select/dist/react-select.css';
ReactDOM.render(<App />, document.getElementById('main')); |
import axios from 'axios'
import safeEval from 'safe-eval'
export default async (timeout=10000) => {
const {data: text} = await axios('https://translate.google.com', {timeout}).catch(() => console.log('Could not get key') || '')
const key = safeEval(text.match(/TKK=eval\('\(.*\)'\);/g)[0])
if(key) return key
... |
var structopcodinfo =
[
[ "in_arg_pool", "structopcodinfo.html#a2fdb7997beb7f4db3a66b21b83c258a2", null ],
[ "inchns", "structopcodinfo.html#a96ac51aca36515108020d91694c30b4f", null ],
[ "instno", "structopcodinfo.html#a4af6eafa0184e7b06a9041c8fa7258dd", null ],
[ "intypes", "structopcodinfo.html#a3e5df... |
var $ = require('jquery');
var _ = require('underscore');
var getQueryParams = function(queryString) {
var query = (queryString || window.location.search).substring(1); // delete ?
if (!query) {
return false;
}
return _
.chain(query.split('&'))
.map(function(params) {
... |
const express = require('express');
const config = require('nconf');
const routerOptions = config.get('expressApp').routerOptions;
const router = express.Router(routerOptions);
const packageJson = require('../../package.json');
const testErrors = require('../routes/test-errors');
const path = require('path');
const boo... |
function n(n,t,e,r){return(e||r&&!e)&&((e>1||e<-1||0===e)&&(t+="s"),n.push(e+" "+t)),n}function t(n){return n.toFixed(10)}module.exports=function(e){var r="",o=[];if("number"==typeof e){o=n(o,"day",parseInt(t(e/86400))),o=n(o,"hour",parseInt(t(e%86400/3600))),o=n(o,"minute",parseInt(t(e%3600/60)));var u,a=(o=n(o,"secon... |
/**
* Created by codeforcoffee on 6/2/17.
*/
const chai = require('chai'),
expect = chai.expect,
should = require('chai').should();
const Node = require('../dist/index').Node;
const Tree = require('../dist/index').Tree;
describe('A Tree data structure type that contains a Root node data structure', () => {
... |
import Shipit from 'shipit-cli'
import { start } from '../../../tests/util'
import initTask from './init'
describe('deploy:init task', () => {
let shipit
beforeEach(() => {
shipit = new Shipit({
environment: 'test',
log: jest.fn(),
})
initTask(shipit)
// Shipit config.
shipit.ini... |
/**
* 路由请求
*
* Created by v_zhaoxiaoqiang on 2015/6/1.
*/
var fs = require('fs');
var url = require('url');
var config = require('./config');
var getStaticFieldConfig = config.getStaticFieldConfig;
/**
* 路由请求
*
* @param {Object} request HTTP请求对象
* @param {Object} response HTTP返回对象
* @public
*/
function rout... |
exports.onTerminate = onTerminate
function onTerminate (stream, listener) {
function term () {
stream.removeListener('end', term)
stream.removeListener('close', term)
stream.removeListener('error', term)
listener.call(stream)
}
stream.on('end', term).on('close', term).on('error', term)
}
|
let mod = new ActionObj('PutToLink');
module.exports = mod;
const targetInitFunc = function(creep) {
const links = creep.room.links;
for(const link of links) {
if(validateFunc(creep, link)) {
return link;
}
}
return false;
};
const validateFunc = function(creep, target) {
... |
/**
*
* team.wildersueden.org - v10
*
* @author Steven Klix (steven@wildersueden.org)
*
*/
/* DATETIME-PICKER */
$.getScript("https://team.wildersueden.org/plugins/jquery-datetimepicker/tarruda.datetimepicker.min.js", function() {
$('.datetimepicker-full').datetimepicker({
format: 'dd.MM.yyyy hh:mm:ss',... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
Ext.define('sisprod.view.RimeCriteriaValue.AddRimeCriteriaValue', {
extend: 'sisprod.view.base.BaseDataWindow',
alias: 'widget.addRimeCriteriaValue',
require: [
'sisprod.view.ba... |
'use strict';
define( function ( require ) {
var FrontAboutCtrl = require( 'front/FrontAboutCtrl' );
var FrontController = require( 'front/FrontController' );
var FrontHomeCtrl = require( 'front/FrontHomeCtrl' );
var FrontPopupCtrl = require( 'front/FrontPopupCtrl' );
var FrontP... |
module.exports = {
description: "",
ns: "react-material-ui",
type: "ReactNode",
dependencies: {
npm: {
"material-ui/svg-icons/device/brightness-auto": require('material-ui/svg-icons/device/brightness-auto')
}
},
name: "DeviceBrightnessAuto",
ports: {
input: {},
output: {
compon... |
function toJSONValue(e) {
const doc = e.currentTarget;
e.json.isNew = doc._isNew;
};
export default toJSONValue; |
/**
* Created by USER: tarso.
* On DATE: 09/05/17.
* By NAME: server_03.js.
*/
'use strict';
var express = require('express');
var app = express();
app.set('view engine', 'ejs');
module.exports = app; |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var Q = require('q'); /* jshint ignore:line */
var _ = require('lodash'); /* jshint ignore:line */
var Page = require('../../../../../..... |
/* Copyright 2016 Mozilla Foundation
*
* 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... |
export { default } from 'ember-offline-adapter/adapter';
|
"use strict";
const assert = require('assert');
const webcrypto = require('./config');
const checkAlgorithms = require('./helper').checkAlgorithms;
var keys = [];
describe("WebCrypto Aes", function () {
let BIG_MESSAGE;
let i = 0;
while (i++ < 200)
BIG_MESSAGE += "0123456789";
va... |
'use strict'
import React from 'react';
// import { PureRenderMixin } from 'react/addons';
import Playlist from '../../components/Playlist';
import UserStore from '../../stores/UserStore';
import PlaylistStore from '../../stores/PlaylistStore';
import ShowsStore from '../../stores/ShowsStore';
import LemurTunesActions... |
define(['shared/cd'], function(cd) {
return 'main_d';
});
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.