code stringlengths 2 1.05M |
|---|
/** !
* Created by EYHN on 2017/4/17. https://github.com/EYHN
* 修改自 sexdevil/LSLoader https://github.com/sexdevil/LSLoader
*/
(function () {
window.lsloader = {
jsRunSequence: [], //js 运行队列 {name:代码name,code:代码,status:状态 failed/loading/comboJS,path:线上路径}
jsnamemap: {}, //js name map 防fallba... |
define(function () {
var EDITABLE_PADDING = 24;
var Statusbar = function (context) {
var $document = $(document);
var $statusbar = context.layoutInfo.statusbar;
var $editable = context.layoutInfo.editable;
var options = context.options;
this.initialize = function () {
if (options.airMode... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.echarts = {})));
}(this, (function (exports) { 'use strict';
if (typeof __DEV__ === "undefined") {
if (type... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define ==... |
/*!
* OOjs UI v0.18.3
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2017 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2017-01-04T00:22:40Z
*/
( function ( OO ) {
'use strict';
/**
* Namespace for all classes, static methods and s... |
'use strict';
describe('Service: <%= cameledName %>', function () {
// load the service's module
beforeEach(module('<%= scriptAppName %>'));
// instantiate service
var <%= cameledName %>;
beforeEach(inject(function (_<%= cameledName %>_) {
<%= cameledName %> = _<%= cameledName %>_;
}));
it('should... |
exports.parse = function() {
throw new Error("Boom!");
};
|
/* */
"format cjs";
"use strict";
exports.__esModule = true;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } new... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'pagebreak', 'mn', {
alt: 'Page Break', // MISSING
toolbar: 'Хуудас тусгаарлагч оруулах'
} );
|
/**
* angular-ui-sortable - This directive allows you to jQueryUI Sortable.
* @version v0.16.1 - 2016-12-16
* @link http://angular-ui.github.com
* @license MIT
*/
(function(window, angular, undefined) {
'use strict';
/*
jQuery UI Sortable plugin wrapper
@param [ui-sortable] {object} Options to pass to $.fn.sor... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno'), require('inferno-create-element')) :
typeof define === 'function' && define.amd ? define(['exports', 'inferno', 'inferno-create-element'], factory) :
(factory((global.Inferno = g... |
(function() {
/* global define, Ember */
define('ember', [], function() {
"use strict";
return {
'default': Ember
};
});
define('ember-data', [], function() {
"use strict";
return {
'default': DS
};
});
})();
define('jquery', [], function() {
"use strict";
return {
'default': jQuery
}... |
class C {
[Symbol.iterator]: number;
[Symbol.iterator]?: number;
}
|
'use strict';
const assert = require('assert');
let battle;
describe('Substitute', function () {
afterEach(function () {
battle.destroy();
});
it('should deduct 25% of max HP, rounded down', function () {
battle = BattleEngine.Battle.construct();
battle.join('p1', 'Guest 1', 1, [{species: 'Mewtwo', ability:... |
/*
Copyright (c) 2014 Ramesh Nair (hiddentao.com)
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish,... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.PopperUtils = factory());
}(this, (function () { 'use strict';
/**
* Get CSS computed property of the given element
* @me... |
function intval(mixed_var, base) {
// discuss at: http://phpjs.org/functions/intval/
// original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// improved by: stensi
// bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// bugfixed by: Brett Zamir (http://brett-zamir.me)
// bugfixed... |
export default function debounce(fn) {
var pending;
return function () {
if (!pending) {
pending = new Promise(function (resolve) {
Promise.resolve().then(function () {
pending = undefined;
resolve(fn());
});
});
}
return pending;
};
} |
/**
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
/*
Highmaps JS v5.0.8 (2017-03-08)
Highmaps as a plugin for Highcharts 4.1.x or Highstock 2.1.x (x being the patch version of this file)
(c) 2011-2016 Torstein Honsi
License: www.highcharts.com/license
*/
(function(y){"object"===typeof module&&module.exports?module.exports=y:y(Highcharts)})(function(y){(function(... |
var Keen = require('keen.io');
var wifi = require('wifi-cc3000');
var keen = Keen.configure({
projectId: "542b084ce8759666375da5e5",
writeKey: "5eb5ca575ff8bb7108c21fe13a6cd0e81c1e82b8df8d0fdf7d583029a0702cf892dc5a8b8e9b3884c0415d8a3603ce06465b4b7053aee014a8ab25e640af5b8750ea316034afbdc01899177aa55795829a14... |
/*
* Translated default messages for the jQuery validation plugin.
* Locale: NL
*/
jQuery.extend(jQuery.validator.messages, {
required: "Dit is een verplicht veld.",
remote: "Controleer dit veld.",
email: "Vul hier een geldig e-mailadres in.",
url: "Vul hier een geldige URL in.",
... |
(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" width="512" height="512" viewBox="0 0 512 512"><path d="M391.553 64H57.607C53.13 64 48 67.745 48 72.16v214.216c0 4.413 5.13 8.624 9.607 8.624H115v88.894L205.128 295h186.425c4.477 0 7.447-4.21 7.447-8.624V72.16c0-4.415-2.97-8.16-7.447-8.16z"/><path d="M456.396 127H424... |
require('./angular-locale_yue');
module.exports = 'ngLocale';
|
/*! SWFMini - a SWFObject 2.2 cut down version for webshims
*
* based on SWFObject v2.2 <http://code.google.com/p/swfobject/>
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfmini = function() {
var wasRemoved = function(){webshims.error('This method was removed f... |
define(['exports', './utils', './exception'], function (exports, _utils, _exception) {
'use strict';
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj['default'] : obj; };
exports.__esModule = true;
exports.HandlebarsEnvironment = HandlebarsEnvironment;
exports.createFrame = createFr... |
this is file 391 |
var moment = require("../../moment");
/**************************************************
Portuguese - Brazilian
*************************************************/
exports["lang:pt-br"] = {
setUp : function (cb) {
moment.lang('pt-br');
cb();
},
tearDown : function (cb) {
... |
var webpack = require('webpack');
module.exports = {
context: __dirname,
entry: [
// Add the client which connects to our middleware
// You can use full urls like 'webpack-hot-middleware/client?path=http://localhost:3000/__webpack_hmr'
// useful if you run your app from another point like django
'w... |
Package.describe({
summary: "Moved to the 'mongo' package",
version: '1.0.9-plugins.0'
});
Package.onUse(function (api) {
api.imply("mongo");
});
|
var path = require( 'path' );
var fs = require( 'graceful-fs' );
var del = require( 'del' ).sync;
var utils = require( './utils' );
var writeJSON = utils.writeJSON;
var cache = {
/**
* Load a cache identified by the given Id. If the element does not exists, then initialize an empty
* cache storage. If specifie... |
(function(factory){if(typeof define==="function"&&define.amd){define("bootstrap.wysihtml5.ja-JP",["jquery","bootstrap.wysihtml5"],factory)}else{factory(jQuery)}})(function($){$.fn.wysihtml5.locale["ja-JP"]={font_styles:{normal:"通常の文字",h1:"見出し1",h2:"見出し2",h3:"見出し3"},emphasis:{bold:"太字",italic:"斜体",underline:"下線"},lists:... |
$ch.define("layout",function(){"use strict";var a="https://cdn.jsdelivr.net/chopjs-layout/"+$$CHOP.MODULE_VERSION.layout+"/chopjs-layout.css",b=void 0!==$$CHOP.find(".chopjs-layout-css");if(!b){var c=document.createElement("style");c.className+=" chopjs-layout-css",c.innerHTML=$$CHOP.http({url:a,async:!1}).responseText... |
import { add } from '../../_i18n';
import nl from './nl';
import fa from './fa';
import de from './de';
import ru from './ru';
export default function () {
add(nl, 'nl');
add(fa, 'fa');
add(de, 'de');
add(ru, 'ru');
}
|
var progress = require('request-progress');
var request = require('request');
var Q = require('q');
var mout = require('mout');
var retry = require('retry');
var createError = require('./createError');
var createWriteStream = require('fs-write-stream-atomic');
var destroy = require('destroy');
var errorCodes = [
'... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'contextmenu', 'eo', {
options: 'Opcioj de Kunteksta Menuo'
});
|
/*!
* Justified Gallery - v3.5.0
* http://miromannino.github.io/Justified-Gallery/
* Copyright (c) 2014 Miro Mannino
* Licensed under the MIT license.
*/
(function($) {
/* Events
jg.complete : called when all the gallery has been created
jg.resize : called when the gallery has been resized
*/
$.fn.... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'fakeobjects', 'es', {
anchor: 'Ancla',
flash: 'Animación flash',
hiddenfield: 'Campo oculto',
iframe: 'IFrame',
unknown: 'Objeto desconocido'
})... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'contextmenu', 'sq', {
options: 'Mundësitë e Menysë së Kontekstit'
});
|
/**
* Gumby Fixed
*/
!function() {
'use strict';
function Fixed($el) {
this.$el = $el;
this.fixedPoint = '';
this.pinPoint = false;
this.offset = 0;
this.pinOffset = 0;
this.top = 0;
this.constrainEl = true;
this.state = false;
this.measurements = {
left: 0,
width: 0
};
// set up modul... |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("hiddenfield",function(d){return{title:d.lang.forms.hidden.title,hiddenField:null,minWidth:350,minHeight:110,onShow:function(){delete this.hiddenField;v... |
// Copyright 2008 The Closure Library Authors. 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 requ... |
// moment.js language configuration
// language : canadian english (en-ca)
// author : Jonathan Abourbih : https://github.com/jonbca
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.expor... |
//! moment.js locale configuration
//! locale : Punjabi (India) [pa-in]
//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof... |
/*
* tablesorter pager plugin
* updated 11/13/2011
*/
(function($) {
$.extend({tablesorterPager: new function() {
// hide arrows at extremes
var pagerArrows = function(c) {
var a = 'addClass', r = 'removeClass', d = c.cssDisabled;
if (c.updateArrows) {
c.container[(c.totalRows < c.size) ? a : r](d);... |
function(head, req) {
var ddoc = this;
var Mustache = require("vendor/couchapp/lib/mustache"),
path = require("vendor/couchapp/lib/path").init(req),
Atom = require("vendor/couchapp/lib/atom");
var templates = ddoc.templates;
var assetPath = path.asset(),
browse... |
/** Items controller **/
// Load dependencies
var Boom = require('boom');
module.exports.get = function(request, reply) {
// `this` - is a reference to sensihome scope
this.items.get(request.params.id, function(err, items) {
if (err) {
return reply(err.toBoomError());
}
// 200 : Success
reply(items);... |
/* eslint-disable max-nested-callbacks */
'use strict'; // eslint-disable-line
const _ = require('lodash');
const assert = require('assert-diff');
const setupAPI = require('./setup-api');
const RippleAPI = require('ripple-api').RippleAPI;
const validate = RippleAPI._PRIVATE.validate;
const fixtures = require('./fixture... |
let ivm = require('isolated-vm');
let isolate = new ivm.Isolate;
let context = isolate.createContextSync();
let global = context.global;
function recur1() {
return global.getSync('recur2').applySync(undefined, []);
}
global.setSync('recur1', new ivm.Reference(recur1));
console.log(isolate.compileScriptSync(`
functi... |
import { t } from '../core/localizer';
import { matcher } from 'name-suggestion-index';
import * as countryCoder from '@ideditor/country-coder';
import { presetManager } from '../presets';
import { fileFetcher } from '../core/file_fetcher';
import { actionChangePreset } from '../actions/change_preset';
import { action... |
var EventEmitter = require('events').EventEmitter,
_ = require('lodash'),
eventBatch = require('./eventbatch'),
dbapi = require('./dbapi');
// pgq.Consumer()
module.exports = function(config) {
var self = new EventEmitter();
var initialize = function(config) {
var requiredParams = {
consumerName... |
angular.element(document).ready(function() {
angular.module( 'ripplecharts', [
'templates-app',
'templates-common',
'ripplecharts.landing',
'ripplecharts.markets',
'ripplecharts.manage-currencies',
'ripplecharts.manage-gateways',
'ripplecharts.multimarkets',
'ripplecharts.activeAccoun... |
module.exports = function () {
return [
'**.frostcast.net'
, 'google.com'
]
}
|
System.config({
defaultJSExtensions: true,
transpiler: "babel",
babelOptions: {
"optional": [
"runtime",
"optimisation.modules.system"
]
},
paths: {
"github:*": "jspm_packages/github/*",
"npm:*": "jspm_packages/npm/*"
},
map: {
"angular2": "npm:angular2@2.0.0-beta.1",
... |
"use strict";
var React = require("react/addons");
describe("Container", function () {
var Container = require("../Container");
var container;
var pages;
var result;
var props;
beforeEach(function () {
container = Object.create(Container);
props = container.props = {};
... |
/**
* Create selectors for news store
*/
import { createSelector } from 'reselect';
import { isAuthenticatedSelector } from './userSelectors';
import { userBrandsSelector } from './brandSelectors';
const newsStateSelector = state => state.news;
export const newsSelector = createSelector(
newsStateSelector,
use... |
var endtime = null;
var stepper = null;
var defaulttime = (2 * 60 + 30) * 1000;
function displayTime(d, func) {
var min = 0, sec = 0, ms = 0;
if (d > 0) {
var dd = d;
ms = Math.floor(d % 1000 / 100);
d = Math.floor(d / 1000);
sec = d % 60;
d = Math.floor(d / 60);
... |
import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route('login', {path: '/'});
this.route('pos');
this.route('error-orders');
this.route('kitchen');
this.route('skara');
});
export defaul... |
/**
* Disk Adapter
*/
module.exports = {
adapter: require('sails-disk'),
connection: {
adapter: 'disk'
}
}; |
var webpack = require('webpack');
var config = require('./webpack.base.conf');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
config.output.filename = '[name].[chunkhash].js';
config.output.chunkFilename = '[id].[chunkhash].js';
config.devtool =... |
var config = {
nodeEnv: process.env.NODE_ENV || 'development',
database: process.env.MONGODB_URI,
database_development: 'mongodb://localhost/dnc-election',
googleCaptchaKey: process.env.GOOGLE_CAPTCHA_KEY,
paypalUsername: process.env.PAYPAL_USERNAME,
paypalPassword: process.env.PAYPAL_PASSWORD,
paypalSignature: ... |
var express = require("express");
var router = express.Router();
var extend = require('util')._extend;
var nodemailer = require("nodemailer");
var transport = nodemailer.createTransport({
service: "Gmail",
auth: {
user: process.env.EMAIL,
pass: process.env.PW
}
});
var mailOptions = {
from : "contact.paulminer... |
//Generic methods start
document.getElementById("loginidsrv").addEventListener("click", login, false);
document.getElementById("invoiceapi").addEventListener("click", kcapi, false);
document.getElementById("readproductapi").addEventListener("click", readproductapi, false);
document.getElementById("writeproductap... |
function getSelectedInformation(txt, element) {
txt = txt.toString();
text = jQuery.trim(txt);
len = text.length;
full = jQuery.trim($(element).text());
field_name = $(element).attr("id");
start = full.indexOf(text)+1;
end = start+len-1;
return {'from':start, 'to':end, 'text':text, 'field_name':field_na... |
/*
Terminal Kit
Copyright (c) 2009 - 2021 Cédric Ronvel
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
... |
'use strict';
var myApp = angular.module('starter', [
'PhoneGap',
'LocalStorageModule',
'ionic'
]);
myApp.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('home', {
url: '/',
templateUrl: 'partials/home.html',
control... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
// containers
import ProfilePage from './ProfilePage';
import Collective from './Collective'
// components
import NotFound from '../components/NotFound';
// actions
import fetchProfil... |
require.config({
paths: {
"jquery": "jquery.min",
"bootstrap": "bootstrap.min",
"TweenMax": "TweenMax.min",
// "indicators": "debug.addIndicators",
"velocity": "velocity.min",
"animationVelocity": "animation.velocity.min",
"ScrollMagic": "ScrollMagic.min"
},
shim: {
'bootstrap': {
deps: ['jquery'... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Category = mongoose.model('Category'),
_ = require('lodash');
/**
* Create a Category
*/
exports.create = function(req, res) {
var category = new Category(req.body);
category.... |
'use strict';
/**
* @ngdoc function
* @name yeoAskarApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the yeoAskarApp
*/
angular.module('yeoAskarApp')
.controller('MainCtrl', function ($scope) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
... |
var azure = require('azure-storage');
var accountName = 'vscodetest';
var accountKey = 'TVHpH9j2ZQsWdnnoiXe50zfJjezEw4WWRZri9qzN9XE+SroY8XSaUQH31rcxV5w2vdYLyp42uB/BMCxduQcy1A==';
var tableService = azure.createTableService(accountName, accountKey);
class Users{
constructor(parameters){
this.parameters = pa... |
/**
*
* Store Orders
*
* Programmer By Emay Komarudin.
* 2013
*
*
**/
Ext.define('App.store.Orders.sCurrency',{
extend : 'Ext.data.Store',
model : 'App.model.Orders.mCurrency',
proxy: {
type: 'rest',
url: api_url +'/currency',
reader: {
type: 'json',
root: 'results',
successProperty: 'success',
to... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
export { default } from 'ember-animated-status-label/components/animated-status-label'
|
/**
* Created by ck on 14/05/2017.
*/
let norm = require('n-orm');
let uuid = require('uuid');
let moment = require('moment');
let UserEntity = require('./erp/UserEntity');
let AccountEntity = require('./erp/AccountEntity');
let ClientEntity = require('./erp/ClientEntity');
let MaterialEntity = require('./erp/Materia... |
import { Dimensions } from 'react-native'
export default {
cardContainer: {
flex: 1,
},
container: {
flex: 1,
},
coverSubtitle: {
color: '#FFF',
fontSize: 15,
fontWeight: '600',
},
coverContainer: {
marginBottom: 55,
position: 'relative',
},
coverImage: {
height: Dimen... |
/* Copyright (c) 2011 Raphaël Velt
* Licensed under the MIT License
* Thanks to Vincenzo Cosenza for the italian translation
* */
var _nodes = [],
_edges = [],
_groups = [],
_groupVert = [],
_overall = [],
_sheetID = [];
var key = document.location.hash.length > 1 ? document.location.hash.su... |
import React, { Component } from 'react';
import Home from '../components/Home';
class HomeContainer extends Component {
render() {
return (
<Home />
);
}
};
export default HomeContainer;
|
function alert(title, message){
var app = [NSApplication sharedApplication];
[app displayDialog:message withTitle:title];
}
|
/* eslint-disable */
module.exports = {
"dirt": {
"id": 1,
"transform": {
"position": [
0,
0,
0
],
"scale": [
1,
1,
1
],
"rotation": [
0,
0,
0,
1
]
},
"name": "Dirt",
"block": {
... |
/**
* @ngdoc overview
* @name ngmNutrition
* @description
* # ngmNutrition
*
* Main module of the application.
*/
angular
.module('ngmNutrition', [])
.config([ '$routeProvider', '$compileProvider', function ( $routeProvider, $compileProvider) {
// https://medium.com/swlh/improving-angular-performance-wit... |
var express = require('express'),
morgan = require('morgan'),
bodyParser = require('body-parser'),
compress = require('compression'),
methodOverride = require('method-override'),
config = require('./config'),
path = require('path');
module.exports = function () {
var app = express();
... |
// flow-typed signature: cf916fca23433d4bbcb7a75f2604407d
// flow-typed version: f821d89401/react-router-dom_v4.x.x/flow_>=v0.53.x
declare module "react-router-dom" {
declare export class BrowserRouter extends React$Component<{
basename?: string,
forceRefresh?: boolean,
getUserConfirmation?: GetUserConfi... |
import Spinner from './Spinner'
it('renders without crashing', () => {
const wrapper = shallow(<Spinner />);
expect(wrapper).toMatchSnapshot();
});
|
var searchData=
[
['readline',['readLine',['../class_connection.html#a1df16b436751b686d96c24ca0c498659',1,'Connection']]],
['rearrange',['rearrange',['../class_graph_viewer.html#a3009a66958686ccb7e78b68e37c3c423',1,'GraphViewer']]],
['red',['RED',['../graphviewer_8h.html#a8d23feea868a983c8c2b661e1e16972f',1,'grap... |
var sp = require('./suppose-process')
var ss = require('./suppose-stream')
function suppose()
{
if(typeof arguments[0] === 'string')
return sp.apply(null, arguments)
return ss.apply(null, arguments)
}
suppose.process = sp
suppose.stream = ss
module.exports = suppose
|
(function () {
'use strict';
angular.module('sidenav.module')
.controller('sidenavController', SidenavController);
SidenavController.$inject = ['$window', 'currentUser', '$state', '$mdSidenav'];
function SidenavController($window, currentUser, $state, $mdSidenav) {
var vm = this;
vm.user = angular.copy(cu... |
({
baseUrl: ".",
name: "noodles",
out: "./../browser-build/noodles.js",
deps:function(){
var Config = require.nodeRequire(__dirname + '/../../../lib/noodles').Config,
plugins = Config.coretags,
languages = Config.languages,
files = [],
l2 = languages.length,
t,plugin;
for(var i = 0, l = plugins.l... |
Items = new Meteor.Collection('items');
Router.map(function () {
this.route('home', {
path: '/'
});
this.route('items', {
controller: 'ItemsController',
action: 'customAction'
});
});
if (Meteor.isServer) {
var seed = function () {
Items.remove({});
for (var i = 0; i < 100; i++) {
... |
import {__} from 'embark-i18n';
import {dappPath} from 'embark-utils';
import * as fs from 'fs-extra';
const async = require('async');
const path = require('path');
const os = require('os');
const semver = require('semver');
const constants = require('embark-core/constants');
const DEFAULTS = {
"BIN": "parity",
"V... |
import React from 'react'
import PropTypes from 'prop-types'
import { Menu, Icon, Popover } from 'antd'
import { Link } from 'dva/router'
import uri from 'utils/uri'
import { l } from 'utils/localization'
import styles from './Header.less'
import { classnames } from 'utils'
function createMenu(items, handleClick, mode... |
// vendor dependencies
var expect = require('chai').expect
var rewire = require('rewire')
var path = require('path')
// local dependencies
var enduro = require(ENDURO_FOLDER + '/index')
var babel = require(global.ENDURO_FOLDER + '/libs/babel/babel')
var request = require('request-promise')
var theme_manager = requir... |
import mongoose from 'mongoose';
const { Schema }=mongoose;
const CommentSchema = new Schema({
content: { type: String, required: true },
author: { type: String, required: true }
});
if (!CommentSchema.options.toJSON) CommentSchema.options.toJSON = {};
CommentSchema.options.toJSON.transform = function (doc, ret, o... |
$(function() {
return $('.modal-link').click(function() {
var resource;
resource = $(this).attr('data-resource');
return $.post(resource.replace(/_/g, "/"), {
id: $(this).attr('data-id')
}, function(data) {
var form, messages, submit;
$('#modal').h... |
/**
*
* app.js
*
* This is the entry file for the application, mostly just setup and boilerplate
* code. Routes are configured at the end of this file!
*
*/
// Load the ServiceWorker, the Cache polyfill, the manifest.json file and the .htaccess file
import 'file?name=[name].[ext]!../serviceworker.js';
import 'f... |
function AddRemoveElements(arr){
let data = [];
for(let i = 0; i < arr.length; i++){
let splitted = arr[i]
.split(' ');
let num = Number(splitted[1]);
switch(splitted[0]){
case "add":
data.push(num);
break;
case "remove"... |
import React from "react";
import PropTypes from "prop-types";
import { color } from "utils";
import CountUp from "react-countup";
import { LineChart, Line, XAxis, YAxis, CartesianGrid, ResponsiveContainer } from "recharts";
import styles from "./cpu.less";
const countUpProps = {
start: 0,
duration: 2.75,
... |
jsonp_handler({
"version": "1",
"build": 804,
"title": "kage-glyph-sample",
"minruntime": 1,
"baseurl": "http://rawgit.com/ksanaforge/kage-glyph-sample/master/",
"description": "",
"browserify": {
"external": [
"react",
"react-dom",
"react-addons-update",
"react-addons-pure-render-mixin",
"boots... |
//remember signatures that have occured within a time.
module.exports = function (time) {
time = time || 1000
var keys = {}
var hist = []
function cleanup() {
var n = Date.now()
while(hist.length) {
var item = hist[0]
if(keys[item] > n) return
hist.shift()
delete keys[item]
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.