code stringlengths 2 1.05M |
|---|
import "./styles.css";
import React from "react";
import {
TransitionGroup,
CSSTransition
} from "react-transition-group";
import {
BrowserRouter as Router,
Switch,
Route,
Link,
Redirect,
useLocation,
useParams
} from "react-router-dom";
export default function AnimationExample() {
return (
<R... |
let webpack = require('webpack');
let HtmlWebpackPlugin = require('html-webpack-plugin');
// var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: {
'app': './src/main.ts',
'lazy-load': './src/modules/lazy-load/app.module.ts'
},
resolve: {
extensions: ['', '.js', ... |
import Avatar from './avatar'
import Date from './date'
import CoverImage from './cover-image'
import Link from 'next/link'
export default function HeroPost({
title,
coverImage,
date,
excerpt,
author,
slug,
}) {
return (
<section>
<div className="mb-8 md:mb-16">
<CoverImage
ti... |
'use strict';
angular.module('healthApp')
.factory('Modal', function($rootScope, $modal) {
/**
* Opens a modal
* @param {Object} scope - an object to be merged with modal's scope
* @param {String} modalClass - (optional) class(es) to be applied to the modal
* @return {Object} ... |
function (doc, req) {
// some show function
}
|
// Karma configuration
// Generated on 2016-04-02
module.exports = function(config) {
'use strict';
config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,
// base path, that will be used to resolve files and exclude
basePath: '../',
// t... |
pm.payments.list().then(function(pmlist) {
console.log(pmlist.items.length + " payments from total of " + pmlist.count);
}, function(error) {
console.log("couldnt list payments:" + error);
});
|
// TODO import BigInteger from 'bigi'
// TODO import Point from 'ecurve'
// For now, I just copy-paste the definition from there
// ---------- copypasta start ----
declare class $npm$bigi$BigInteger {
constructor(input: string | Array<number>, base?: number): void;
static (input: string | Array<number>, base?: num... |
BasicGame.Game = function (game) {
};
BasicGame.Game.prototype = {
/* Creates the game objects (ideally with already loaded assets) */
create: function () {
// Phase One:
//Phase Two:
},
update: function () {
// Phase One:
//Phase Two
},
render: function () {... |
'use strict';
angular.module('treasuremapApp')
.factory('Auth', function Auth($location, $rootScope, $http, User, $cookieStore, $q) {
var currentUser = {};
if($cookieStore.get('token')) {
currentUser = User.me();
}
return {
/**
* Authenticate user and save token
*
*... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || fu... |
'use babel';
export default function(editor) {
const selection = editor.getSelectedText();
if(selection==''){
editor.insertText('~~S~~');
}
else{
editor.insertText(`~~${selection}~~`);
}
}
|
import { Meteor } from 'meteor/meteor';
import { dbThreads } from '/db/dbThreads';
import { debug } from '/server/imports/utils/debug';
import { limitSubscription } from '/server/imports/utils/rateLimit';
Meteor.publish('onlinePeopleNumber', function() {
debug.log('publish onlinePeopleNumber');
let onlinePeopleNu... |
/*!
* env.js - environment for decentraland
* Copyright (c) 2014-2015, Fedor Indutny (MIT License).
* Copyright (c) 2014-2016, Christopher Jeffrey (MIT License).
* Copyright (c) 2016-2017, Manuel Araoz (MIT License).
* https://github.com/decentraland/decentraland-node
*/
'use strict';
var lazy = require('./util... |
/**
* @module Derived repository for the Article entity
*/
define(['services/repository'], function (repository) {
/**
* Repository ctor
* @constructor
*/
var ArticleRepository = (function () {
var privatearticlerepository = function (entityManagerProvider, entityTypeName, resourceName, fetchStrategy) {
... |
// flow-typed signature: 0fa3bf617dfc01c2baf8ecf5a41441a9
// flow-typed version: <<STUB>>/supertest_v^3.0.0/flow_v0.55.0
/**
* This is an autogenerated libdef stub for:
*
* 'supertest'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
*... |
//
// HLF Tip Extension
// =================
// [Styles](../css/tip.html) | [Tests](../../tests/js/tip.html)
//
// The `Tip` extension does several things. It does basic parsing of trigger
// element attributes for the tip content. It can anchor itself to a trigger by
// selecting the best direction. It can follow the ... |
define('data/progressbars', function () {
/**
* A module representing a progressbars dataset.
* @exports data/progressbars
* @type {{title: string}}
*/
var progresssbarsData = {
title: 'Progress Bars'
};
return progresssbarsData;
});
|
import { Meteor } from 'meteor/meteor';
export function formatDateTimeText(date) {
if (! date) {
return '????/??/?? ??:??:??';
}
return (
`${date.getFullYear()}/${padZero(date.getMonth() + 1)}/${padZero(date.getDate())} ${padZero(date.getHours())}:${padZero(date.getMinutes())}:${padZero(date.getSeconds(... |
var ExtractTextPlugin = require("../../../");
module.exports = {
entry: "./index",
plugins: [
new ExtractTextPlugin("file.css")
]
};
|
var expect = require('expect.js');
var EventEmitter = require('events').EventEmitter;
var Job = require('../').Job;
describe('Job', function () {
var job;
describe('with no plugins', function () {
beforeEach(function () {
job = new Job(
{
_id: 'man',
project: {
dis... |
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 120910005, "Date": "03\/31\/2012", "Time": "12:47 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location":... |
const { environment } = require("@rails/webpacker");
module.exports = environment;
|
import React from 'react';
import PropTypes from 'prop-types';
import { duration } from './filters';
export default class Duration extends React.Component {
static propTypes = {
startTime: PropTypes.instanceOf(Date),
endTime: PropTypes.instanceOf(Date),
};
constructor(props) {
super(props);
if (... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M5 17c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7V1H5v4H1v2h4v10zm14-2V7c0-1.1-.9-2-2-2H9v2h8v8h2z"
}), 'CropTwoTone'); |
// ==========================================================================
// Project: SproutCore Handlebar Views
// Copyright: ©2011 Strobe Inc. and contributors.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
require("sprou... |
// https://github.com/bbecquet/Leaflet.PolylineDecorator/blob/master/src/L.RotatedMarker.js
L.RotatedMarker = L.Marker.extend({
options: {
angle: 0
},
statics: {
TRANSFORM_ORIGIN: L.DomUtil.testProp(
['transformOrigin', 'WebkitTransformOrigin', 'OTransformOrigin', 'MozTransform... |
exports.index = function(req, res){
res.render('index.html');
};
exports.partials = function (req, res) {
var name = req.params.name;
res.render('partials/' + name);
}; |
System.register(['aurelia-dependency-injection', 'aurelia-templating', '../common/widget-base', '../common/decorators', '../common/constants'], function (_export, _context) {
"use strict";
var inject, customAttribute, WidgetBase, generateBindables, constants, _dec, _dec2, _dec3, _class, Tooltip;
function _class... |
// This file was automatically generated. Do not modify.
'use strict';
goog.provide('Blockly.Msg.sd');
goog.require('Blockly.Msg');
Blockly.Msg["ADD_COMMENT"] = "تاثرات ڏيو";
Blockly.Msg["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "Can't delete the variable '%1' because it's part of the definition of the function '%2'";... |
"use strict";
/**
* Exports object that contains names of arguments as a key and their configuration objects as a value
*
* @example
* module.exports = {
* argumentName: {
* desc: 'Description for the argument',
* required: false,
* optional: true,
* type: String || Number || Array || Object... |
/**
* Module dependencies.
*/
var Socket = require('./socket')
, EventEmitter = process.EventEmitter
, parser = require('./parser')
, util = require('./util');
/**
* Exports the constructor.
*/
exports = module.exports = SocketNamespace;
/**
* Constructor.
*
* @api public.
*/
function SocketNamespace... |
/* @flow */
import type VueRouter from '../index'
import { History } from './base'
export class AbstractHistory extends History {
index: number;
stack: Array<Route>;
constructor (router: VueRouter, base: ?string) {
super(router, base)
this.stack = []
this.index = -1
}
push (location: RawLocati... |
/* eslint-disable import/prefer-default-export */
import courseAPI from 'api/course';
import actionTypes from './constants';
export function fetchNotification() {
return (dispatch) => {
dispatch({ type: actionTypes.FETCH_NOTIFICATION_REQUEST });
return courseAPI.userNotifications.fetch()
.then((respons... |
"use strict";
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
const mockery = require("mocker... |
var connect = require("connect"),
cookieSession = require("connect-cookie-session");
connect(
connect.cookieParser(), // cookieSession needs cookieParser
cookieSession({
// You should use your own secret key (and keep it secret!)
secret : "d3b07384d113edec49eaa6238ad5ff00"
}),
... |
/* global describe, it */
import React from 'react';
import { shallow } from 'enzyme';
import { assert } from 'chai';
import Row from '../src/Row';
let wrapper = shallow(
<Row />
);
describe('<Row />', () => {
it('should render', () => {
assert(wrapper.find('.row').length, 'a row');
});
});
|
'use strict';
module.exports = function doAvg(size, counts) {
var nMax = size.length;
var total = 0;
for(var i = 0; i < nMax; i++) {
if(counts[i]) {
size[i] /= counts[i];
total += size[i];
} else size[i] = null;
}
return total;
};
|
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
angular.module('ebApp', ['ionic', 'angular-growl', 'ebA... |
'use strict';
var _ = require('lodash');
//helper functions
function extractNames (v) {
return v.name;
}
function get_get (roles,v) {
return v.get(roles);
}
function remove_nulls (v) {
return v;
}
//MenuItem class
function MenuItem (options) {
options = _.assign ({name: null, title:null, link:null, roles:nu... |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
var assert = require("assert");
var path = require("path");
var local = path.join.bind(path, __dirname);
describe("Patch", function() {
var NodeGit = require("../../");
var Repository = NodeGit.Repository;
var reposPath = local("../repos/workdir");
var oid = "fce88902e66c72b5b93e75bdb5ae717038b221f6";
befo... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
function makeRequest(url) {
httpRequest = new XMLHttpRequest();
if (!httpRequest) {
alert('Giving up :( Cannot create an XMLHTTP instance');
return false;
}
httpRequest.onreadystatechange = function() {
if (httpRequest.readyState === XMLHttpRequest.DONE) {
if (httpRequest.status === 200) {
... |
module.exports={A:{A:{"2":"H D G E A B EB"},B:{"2":"C p x J L N I"},C:{"1":"1 2 3 4 5 6 8 9 b c d e f g h i j k l m n o M q r s t u v w y","2":"0 ZB BB F K H D G E A B C p x J L N I O P Q R S T U V W X Y Z XB RB"},D:{"1":"1 2 3 4 5 6 8 9 k l m n o M q r s t u v w y LB GB FB bB a HB IB JB","2":"F K H D G E A B C p x J L... |
define(
//begin v1.x content
{
"field-sat-relative+0": "w tę sobotę",
"field-sat-relative+1": "w przyszłą sobotę",
"field-dayperiod": "rano / po południu / wieczorem",
"field-sun-relative+-1": "w zeszłą niedzielę",
"field-mon-relative+-1": "w zeszły poniedziałek",
"field-minute": "minuta",
"field-day-relative+-1... |
module.exports={"title":"CSS3","hex":"1572B6","source":"http://www.w3.org/html/logo/","svg":"<svg role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><title>CSS3 icon</title><path d=\"M1.5 0h21l-1.91 21.563L11.977 24l-8.565-2.438L1.5 0zm17.09 4.413L5.41 4.41l.213 2.622 10.125.002-.255 2.716h-6.64l.2... |
/*!
* 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.
*/
sap.ui.define('sap/ui/test/TestUtils', ['jquery.sap.global', 'sap/ui/core/Core'],
function(jQuery/*, Core*/) {
"use strict";
/*glo... |
'use strict';
angular.module('scHelper').factory('Rect', function() {
function Rect() {
var limit = this.limit = {};
this.width = 0;
this.height = 0;
this.x = 0;
this.y = 0;
this.left = function() {
return this.x;
};
this.right = function() {
return this.x + this.width;
... |
'use strict';
exports.__esModule = true;
var _browser = require('../utils/browser.js');
var browser = _interopRequireWildcard(_browser);
var _document = require('global/document');
var _document2 = _interopRequireDefault(_document);
var _eventTarget = require('../event-target');
var _eventTarget2 = _interopRequi... |
/*!
* froala_editor v4.0.8 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2021 Froala Labs
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) :
typeof define === 'function... |
/* */
"format global";
/**
* 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 appl... |
"use strict";
const fs = require('fs');
const path = require('path');
var watsonKeysPath = "";
if(window.ENV_ELECTRON){
const electron = require('electron');
const currentWindow = electron.remote.getCurrentWindow();
watsonKeysPath = path.join(currentWindow.dataPath , 'wttskeys.json');
}
if(window.ENV_CEP){
/... |
'use strict';
/**
* @ngdoc service
* @name $cacheFactory
*
* @description
* Factory that constructs {@link $cacheFactory.Cache Cache} objects and gives access to
* them.
*
* ```js
*
* var cache = $cacheFactory('cacheId');
* expect($cacheFactory.get('cacheId')).toBe(cache);
* expect($cacheFactory.get('no... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs/ReplaySubject'), require('@ngrx/effects')) :
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', 'rxjs/ReplaySubject', '@ngrx/effects... |
/**
* Module Dependencies
*/
var rrep = /(\$(`|&|'|\d+))/g;
var slice = [].slice;
var noop = function(m) { return m[0]; }
/**
* Expose `tokens`
*/
module.exports = tokens;
/**
* Create a tokenizer
*
* @param {Regex} regex
* @param {String|Function} rep
* @return {Function}
*/
function tokens(regex, rep) ... |
/*
* Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com)
*
* sisane: The stunning micro-library that helps you to develop easily
* AJAX web applications by using Angular.js 1.x & sisane-server
* sisane is distributed under the MIT License (MIT)
* Sources at https://github.... |
'use strict';
/**
* @ngdoc function
* @name flightNodeApp.controller:ForagingStep4Controller
* @description
* # ForagingStep4Controller
* Controller for rookery foraging census form, step 4 (disturbances).
*/
angular.module('flightNodeApp')
.controller('ForagingStep4Controller', ['$scope', 'authService', 'co... |
require('../../styles/main.css');
require('../../styles/btn/btn');
require('../../styles/dropdown-menu/dropdown-menu');
require('../../styles/input-group/input-group');
require('../../styles/modal/modal');
require('../../styles/navbar/navbar');
require('../../styles/tab-content/tab-content');
require('../../styles/tabs... |
import Session from 'flarum/Session';
/**
* The `preload` initializer creates the application session and preloads it
* with data that has been set on the application's `preload` property. It also
* preloads any data on the application's `preload` property into the store.
* Finally, it sets the application's `foru... |
'use strict';
var Reflux = require('reflux'),
Im = require('immutable'),
{ isInBag } = require('../utils/StoreUtils'),
PostsActions = require('../../actions/posts/PostsActions');
var PostStore = Reflux.createStore({
listenables: PostsActions,
init: function() {
this._posts = Im.Map({});
},
... |
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'link',
{
init : function( editor )
{
// Add the link and unlink buttons.
editor.addCommand( 'link', new CKEDITOR.dialogCommand( 'link' ... |
let mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel applica... |
(function (view) {
"use strict";
view.URL = view.URL || view.webkitURL;
if (view.Blob && view.URL) {
try {
new Blob;
return;
} catch (e) {}
}
// Internally we use a BlobBuilder implementation to base Blob off of
// in order to support older browsers that only have BlobBuilder
var BlobBuilder = view.... |
var test = require("tape")
var webpack = require("webpack")
var assign = require("object-assign")
var conf = require("./utils/conf")
test("eslint-loader can return warning", function(t) {
webpack(assign({},
conf,
{
entry: "./test/fixtures/warn.js",
}
),
function(err, stats) {
if (err) {
... |
window.onload = function() {
// References to elements on the page
var serverField = document.getElementById('server');
var channelField = document.getElementById('channel');
var idField = document.getElementById('idNum');
var results = document.getElementById('results');
var details = docu... |
{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "Incident number": 62440120, "Date": "9\/1\/2006", "Time": "03:38 PM", "Police District": 7.0, "Offense 1": "SIMPLE ASSAULT", "Address": "4534 N TEUTONI... |
var exp = Math.exp;
var pow = Math.pow;
var E = Math.E;
function squared(n) {
return Math.pow(n, 2);
}
exports =
module.exports =
function MovingAverage(timespan) {
if (typeof timespan != 'number')
throw new Error('must provide a timespan to the moving average constructor');
if (timespan <= 0)
throw ne... |
/*
* Globalize Culture te
*
* 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... |
//if we are providing a global variables we need to get them out of use-strict-function pattern
var puzzles;
(function () { // This prevents problems when concatenating scripts that aren't strict.
'use strict';
/**
* @description
* ## Info
* This namespace contains all puzzles that are added on the top of core of Col... |
define(['start/controllers/home'], function() {});
|
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
/**
* Copyright (c) 2013-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 {
ATTRIBUTE_NAME_CHAR,
ATTRIBUTE_NAME_START_CHAR,
ID_ATTRIBUTE_NAME,
ROOT_ATTRIBUTE_NAME,
getPropertyInfo,
shouldSetA... |
'use strict';
cApp.controller('loginController',function($scope,DecentralStorage,$location,$rootScope,WalletManager,Session,Encryption){
/**********login init***********/
$scope.pageClass = 'page-login';
var storage= DecentralStorage;
var password,passphrase;
$scope.page = 1;
$scope.form = {};
/**********logi... |
/**
@Name : layui.laytpl 模板引擎
@Author:贤心
@License:LGPL
*/
layui.define(function(exports){
"use strict";
var config = {
open: '{{',
close: '}}'
};
var tool = {
exp: function(str){
return new RegExp(str, 'g');
},
//匹配满足规则内容
query: function(type, _, ... |
var LazyWrapper = require('./_LazyWrapper'),
getData = require('./_getData'),
getFuncName = require('./_getFuncName'),
lodash = require('./wrapperLodash');
/**
* Checks if `func` has a lazy counterpart.
*
* @private
* @param {Function} func The function to check.
* @returns {boolean} Returns... |
'use strict';
const express = require('express');
const router = express.Router(); // eslint-disable-line new-cap
router.post('/commands/:commandName/execute', require('./executeCommand'));
router.get('/commands/:commandName/execute', require('./executeCommand'));
router.get('/commands', require('./getCommandsRoute')... |
import Workers from './Workers';
export default Workers;
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
export const TAG_NAMES = {
META: "meta",
LINK: "link"
};
export const TAG_PROPERTIES = {
NAME: "name",
CHARSET: "charset",
HTTPEQUIV: "http-equiv",
REL: "rel",
HREF: "href",
PROPERTY: "property"
};
|
var select = require('xml-crypto').xpath.SelectNodes
, dom = require('xmldom').DOMParser
, SignedXml = require('xml-crypto').SignedXml
, FileKeyInfo = require('xml-crypto').FileKeyInfo
, fs = require('fs')
function signXml(xml, xpath, key, dest)
{
var sig = new SignedXml()
sig.signingKey = fs.readFileSyn... |
module.exports = {
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
'Chrome'
],
launch_in_dev: [
],
browser_args: {
Chrome: {
mode: 'ci',
args: [
'--disable-gpu',
'--headless',
'--remote-debugging-port=0',
'--window-size=... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var Compiler = require("./Compiler");
var MultiCompiler = require("./MultiCompiler");
var NodeEnvironmentPlugin = require("./node/NodeEnvironmentPlugin");
var WebpackOptionsApply = require("./WebpackOptionsApply")... |
setInterval(function() {
console.log('ok');
}, 100);
setInterval(function() {
console.error('thisnok');
}, 100);
|
/* */
define(['exports', 'aurelia-dependency-injection', 'aurelia-binding', './collection-strategy'], function (exports, _aureliaDependencyInjection, _aureliaBinding, _collectionStrategy) {
'use strict';
exports.__esModule = true;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons... |
/**
* Copyright (c) 2014, 2016, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
"use strict";
define(['ojs/ojcore', 'jquery', 'ojs/ojcomponentcore'],
function(oj, $)
{
/**
* Copyright (c) 2014, Oracle and/or its affiliates.
* All rights reserved.
*/
/*
** Import... |
'use strict';
const get = require('../get');
/*!
* Like `schema.path()`, except with a document, because impossible to
* determine path type without knowing the embedded discriminator key.
*/
module.exports = function getEmbeddedDiscriminatorPath(doc, path, options) {
options = options || {};
const typeOnly =... |
;(function ( w, doc, undefined ) {
// enable strict mode
'use strict';
/**
* Local object for method references
* and define script meta-data
*/
var ARIAswitch = {};
w.ARIAswitch = ARIAswitch;
ARIAswitch.NS = 'ARIAswitch';
ARIAswitch.AUTHOR = 'Scott O\'Hara';
ARIAswitch.VERION = '0.2.0'... |
var util = require("util");
var choreography = require("temboo/core/choreography");
/*
AddFavoriteFood
Adds a specified food to a user's favorite food list.
*/
var AddFavoriteFood = function(session) {
/*
Create a new instance of the AddFavoriteFood Choreo. A TembooSession object, containing a ... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var levelup = _interopDefault(require('levelup'));
var sublevel = _interopDefault(require('sublevel-pouchdb'));
var through2 = require('through2');
var getArguments = _interopDefault(requir... |
// Browser Events Responder
// ------------------------
// Takes incoming event message types and converts them into a format suitable for sending over the websocket
'use strict';
var fs = require('fs');
module.exports = function(responderId, config, ss) {
var code, name;
name = config && config.name || 'events'... |
/**
* @namespace basis.router
*/
var namespace = 'basis.router';
//
// main part
//
var location = global.location;
var document = global.document;
var eventUtils = require('basis.dom.event');
var Value = require('basis.data').Value;
var parsePath = require('./router/ast.js').parsePath;
va... |
// This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import './tpls/currency.tpl.html';
import './tpls/field.tpl.html';
import './tpls/fieldpicker.tpl.ht... |
import url from 'url'
import request from 'request'
import merge from 'deepmerge'
import { ERROR_CODES } from '../helpers/constants'
import { RuntimeError } from './ErrorHandler'
import pkg from '../../package.json'
/**
* RequestHandler
*/
class RequestHandler {
constructor (options, eventHandler, logger) {
... |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.2.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extend... |
import { Suspense } from 'react'
let result
let promise
function Data() {
if (result) return result
if (!promise)
promise = new Promise((res) => {
setTimeout(() => {
result = 'next_streaming_data'
res()
}, 500)
})
throw promise
}
export default function Page() {
return (
... |
version https://git-lfs.github.com/spec/v1
oid sha256:e9637ae2c19e764acb5bd0b5112b9fdea0712a42dc60997fb9c57ccbfbf3f77d
size 18994
|
/**
* Wi-Fi chat-plugin. Only works in a room with id 'wifi'
* Handles giveaways in the formats: question, lottery
* Credits: Codelegend, SilverTactic, DanielCranham, bumbadadabum
**/
'use strict';
const BAN_DURATION = 7 * 24 * 60 * 60 * 1000;
function checkPlural(variable, plural, singular) {
if (!plural) plural =... |
/**
* @fileoverview Firebase Storage API.
* Version: 3.5.1
*
* Copyright 2016 Google Inc. 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.apa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.