code
stringlengths
2
1.05M
const chalk = require('chalk') /** * Adds mark check symbol */ function addCheckMark(callback) { process.stdout.write(chalk.green(' ✓')) if (callback) callback() } module.exports = addCheckMark
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _deleteProperty = require('babel-runtime/core-js/reflect/delete-property'); var _deleteProperty2 = _interopRequireDefault(_deleteProperty); var _assign = require('babel-runtime/core-js/object/assign'); v...
var fs = require('fs'); var mongoose = require('mongoose'); var database = require('./database'); var debug = require('debug')('api'); var clicolour = require('cli-color'); var Apps = database.Apps; // Done function done(err, callback) { } // Main api var api = {}; function removeFirst(string) { if (typeof string...
import { pushQuery, pushAdditional } from './helpers'; import { assign, isUndefined } from 'lodash' // The "SchemaCompiler" takes all of the query statements which have been // gathered in the "SchemaBuilder" and turns them into an array of // properly formatted / bound query strings. function SchemaCompiler(client,...
import flatten from './flatten' export default function flattenOften(arr, max) { if (!(max > 0)) throw new Error("'max' must be a positive number") let l = arr.length arr = flatten(arr) let round = 1 while (round < max && l < arr.length) { l = arr.length arr = flatten(arr) round++ } return ar...
Template.postSubscribe.helpers({ canSubscribe: function() { // you cannot subscribe to your own posts return Meteor.userId() && this.userId !== Meteor.userId(); }, subscribed: function() { var user = Meteor.user(); if (!user) return false; return _.include(this.subscribers, user._id); } });...
'use strict'; /* jasmine specs for controllers go here */ describe('controllers', function(){ beforeEach(module('spApp')); it('should ....', inject(function() { //spec body })); it('should ....', inject(function() { //spec body })); });
const should = require('should'); const supertest = require('supertest'); const testUtils = require('../../utils'); const config = require('../../../core/shared/config'); const localUtils = require('./utils'); describe('Email API', function () { let request; before(async function () { await localUtils...
import React from 'react' import { shallow } from 'enzyme' import sinon from 'sinon' import MinimizeButton from '../EventsList/MinimizeButton' import { Button } from 'reactstrap' describe('<MinimizeButton />', () => { const shallowRender = (props) => { return shallow( <MinimizeButton {...props} ...
describe('purlView', function() { beforeEach(function() { var that = this, done = false; require(['purl', 'views/libs/purlView'], function(purl, purlView) { that.purl = purl; that.purlView = purlView; done = true; }); //等待初始化完成 waitsFor(function() { return done; }, "Create util"); }); afte...
import * as t from 'constants/ActionTypes'; const initialState = { /* * comics = { * "manhua-yiquanchaoren": [ * { * title: "rtyukjkl" * link: "sfdafg" * cid: "asdfasdf", * }, * { * title: "rtyukjkl" * link: "sfdafg" * cid: "12333" * } * ...
function FizzBuzz() { this.respond = function(i) { return i % 3 === 0; }; }; var fizzbuzz = new FizzBuzz; var a = prompt("Please enter a number"); a = parseInt(a); var output = fizzbuzz.respond(a).toString(); alert("Divisible by 3? " + output);
"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")...
PieceFunctions.newPiece = function ($el){ this.functions = PieceFunctions; if (!!$el){ this.$el = $el; this.side = $el.data('side'); this.type = $el.data('type'); } this.getImage = function(){ } this.img = this.getImage(this.type, this.side); this.$el; ...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M7 16V8l-4 4zm4-9h10v2H11zm0 4h10v2H11zm0 4h10v2H11zm-8 4h18v2H3zM3 3h18v2H3z" /> , 'FormatIndentDecreaseTwoTone');
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global','./library','sap/ui/core/LayoutData'],function(q,l,L){"use strict";var T=L.extend("sap.m.ToolbarLay...
import cx from 'classnames' import _ from 'lodash' import React, { Component, PropTypes } from 'react' import { customPropTypes, createShorthandFactory, getElementType, getUnhandledProps, makeDebugger, META, SUI, useKeyOnly, useKeyOrValueAndKey, useValueAndKey, } from '../../lib' import Icon from '...
/* * * LearningToCode constants * */ export const DEFAULT_ACTION = 'app/LearningToCode/DEFAULT_ACTION';
"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")...
module.exports={A:{A:{"2":"K D G E A B hB"},B:{"2":"2 C d J M H I"},C:{"1":"3 4 CB FB","2":"0 1 2 6 7 8 9 eB DB F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c e f g h i j k l m n o L q r s t u v w x y z HB GB BB YB XB"},D:{"1":"RB MB LB kB JB NB OB PB","2":"0 1 2 3 4 6 7 8 9 F N K D G E A B C d J M H I O P Q...
// Generated by CoffeeScript 1.6.2 var error; try { allHellBreaksLoose(); catsAndDogsLivingTogether(); } catch (_error) { error = _error; print(error); } finally { cleanUp(); }
/** * Disable all fitting logic. * * @type {number} */ export const FITTING_NONE = 0; /** * Stretch child elements to fit the parent container. * * @type {number} */ export const FITTING_STRETCH = 1; /** * Shrink child elements to fit the parent container. * * @type {number} */ export const FITTING_SHRINK...
describe('loginCtrl', function () { var $rootScope, $q, deferred, $scope, store, $state, spy, socket, createController, auth, Auth,$ionicHistory, $http, $httpBackend, $controller; beforeEach(module('app')); beforeEach(inject(function ($injector) { $q = $injector.get('$q'); deferred = $q....
// For the examples, make sure that the output is stable var consoleLog = console.log var stringify = require('json-stable-stringify') console.log = function () { consoleLog.apply(this, Array.prototype.map.call( arguments, (arg) => stringify(arg, { space: 2 }) )) }
import { approxDeepEqual } from '../../assert' import transform from '../../../src/path/transform' import encoder from '../../../src/path/encoder' import lineToCurve from '../../../src/path/transformers/line-to-curve' describe('lineToCurve()', function() { })
(function() { 'use strict'; angular .module('app.user') .controller('ChangePasswordController', ChangePasswordController); ChangePasswordController.$inject = ['$location', '$rootScope', 'dataService']; function ChangePasswordController($location, $rootScope, dataService) { var vm = this; vm.g...
import { nodeList } from "../dom/node_list"; var splitNode = function(pivot) { if (pivot.nextSibling) { var parent = pivot.parentNode; var fork = document.createElement(parent.nodeName); var childNodes = nodeList.toArray(parent.childNodes); childNodes = childNodes.slice(childNodes.indexOf(pivot) + 1)...
(function() { 'use strict'; describe('Routing', function() { var state; beforeEach(module('myApp')); beforeEach(inject(function ($state) { state = $state; })); it('State 1 url should be /state1', function () { var config = state.get('state1'); expect(config....
"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")...
require('./lib/newrelic'); require('./lib/underscore'); var express = require('express'), fs = require('fs'), path = require('path') ; global.Project = {}; global.app = express(); Project.root_path = __dirname; require('./config/application.js').configure({ express: express, path...
import { moduleFor, test } from 'ember-qunit'; moduleFor('route:curriculum-inventory-sequence-block', 'Unit | Route | curriculum inventory sequence block', { needs: ['service:currentUser', 'service:iliosMetrics', 'service:headData', 'service:session'], }); test('it exists', function(assert) { let route = this.sub...
//# Bootstrap row with auto clearfix control var React = require('react');///addons module.exports = function (props) { var items = []; var xs_row = 0; var sm_row = 0; var md_row = 0; var lg_row = 0; React.Children.forEach(props.children, function (child, index){ var xs = 12; var sm = 12; var ...
'use strict' var inherits = require('inherits') var AbstractIterator = require('abstract-leveldown').AbstractIterator var createKeyRange = require('./util/key-range') var deserialize = require('./util/deserialize') var noop = function () {} module.exports = Iterator function Iterator (db, location, options) { Abst...
"use strict"; const should = require("should"); const Parser = require("../lib/Parser"); const BasicEvaluatedExpression = require("../lib/BasicEvaluatedExpression"); describe("Parser", () => { const testCases = { "call ident": [ function() { abc("test"); }, { abc: ["test"] } ], "call member":...
class CheckboxToggler { constructor(options, container){ this.options = options; this.container = container; this._init(); this._bind(); } option(_key, _value) { } _init() { if (!this.container) { throw new Error('Container element not found'); } else { this.$container = ...
Request = Meteor.wrapAsync(Npm.require('request'));
angular.module('collabjs.controllers') .controller('AdminAccountsCtrl', ['$scope', '$q', 'adminService', 'uiService', function ($scope, $q, adminService, uiService) { 'use strict'; $scope.accounts = []; $scope.init = function () { adminService.getAccounts().then(function (accounts) { ...
;(function( should, sum, undefined ) { 'use strict'; describe( 'Get email', function() { beforeEach(function() { window.BT_SharedWorkerName = 'shared_sync_worker#randalmaia@gmail.com'; }); it("get user email", function () { var inbox = new Inbox(); var email = inbox.getEmail(); email.should.equal('r...
/* @flow */ import React from 'react-native'; import AppText from '../AppText'; import Icon from '../Icon'; import Colors from '../../../Colors.json'; const { View, StyleSheet } = React; const styles = StyleSheet.create({ label: { color: Colors.white, fontWeight: 'bold', margin: 16 }, icon: { color: Co...
var SizeMonitor = /** @class */ (function () { function SizeMonitor() { } SizeMonitor.init = function () { var _this = this; var NativeResizeObserver = window.ResizeObserver; if (NativeResizeObserver) { this.resizeObserver = new NativeResizeObserver(function (entries) { ...
/* eslint no-param-reassign: ["error", { "props": false }] */ import * as types from './mutation-types'; export default { [types.LOGIN_SUCCESS](state, { token }) { state.isAuthenticated = true; state.token = token; localStorage.token = token; }, [types.LOGOUT](state) { state.isAuthenticated = fa...
(function (angular) { "use strict"; angular.module( "healthBam.program", [ "ngResource" ] ); }(window.angular));
"use strict"; var assert = require("assert"); var fs = require("fs"); var glob = require("glob"); var vows = require("vows-si"); var jsv = require("JSV").JSV.createEnvironment(); var gitUrlParse = require("git-url-parse"); var isThere = require("is-there"); var libsToRun = require("./support/libsToRun") function pars...
import { Form } from '../../../../src'; const fields = { state: { label: 'State', value: 'USA', fields: { city: { label: 'City', value: 'New York', fields: { places: { label: 'NY Places', fields: { centralPark: { ...
'use strict'; module.exports = function mochaIstanbul(grunt) { // Load task grunt.loadNpmTasks('grunt-mocha-istanbul'); return { coverage: { src: 'test/spec/server', /* the folder name for the tests */ options: { recursive: true, coverage: tr...
var crypto = require('crypto') , http = require('http') , Cleverbot = function () { this.params = Cleverbot.default_params; }; Cleverbot.default_params = { 'stimulus': '', 'start': 'y', 'sessionid': '', 'vText8': '', 'vText7': '', 'vText6': '', 'vText5': '', 'vText4': '', 'vText3': '', ...
var glob = require('glob'); var async = require('async'); var parseBlueprint = require('../parse/blueprint'); var endpointSorter = require('./endpoint-sorter'); module.exports = function(options, cb) { var sourceFiles = options.sourceFiles; var autoOptions = options.autoOptions; var routeMap = {}; glo...
$(document).ready(function(){$("ul#filters a").click(function(){$(this).css("outline","none");$("ul#filters .current").removeClass("current");$(this).parent().addClass("current");var e=$(this).text().toLowerCase().replace(" ","-");e==="all"?$("ul#project-list li.hidden").fadeIn("slow").removeClass("hidden"):$("ul#proje...
import { setupServer } from 'msw/node'; import { rest } from 'msw'; const server = setupServer( rest.get('*/i18n/iso-locales', (req, res, ctx) => { const defaultLocales = [ { code: 'af', name: 'Afrikaans (af)', }, { code: 'en', name: 'English (en)', }, ...
/* * The MIT License (MIT) * * Copyright (c) 2015 Richard Backhouse * * 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...
module.exports={A:{A:{"2":"YB","8":"K C G E","260":"A B"},B:{"260":"D w Z I M H"},C:{"8":"WB AB UB OB","516":"0 1 3 5 6 7 8 F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e f L h i j k l m n o p q r s t u v z x"},D:{"1":"IB DB FB ZB GB","8":"F J K C G E A B D w Z I M H N O","132":"0 1 3 5 6 7 8 P Q R S T...
'use strict'; const AbstractConnectionManager = require('../abstract/connection-manager'); const Utils = require('../../utils'); const debug = Utils.getLogger().debugContext('connection:mysql'); const Promise = require('../../promise'); const sequelizeErrors = require('../../errors'); const dataTypes = require('../../...
'use strict' const fs = require('fs') const log = require('bestikk-log') log.task('Check unsupported features') const data = fs.readFileSync('build/asciidoctor-browser.js', 'utf8') const mutableStringPattern = /\['\$(g)?sub!'\]/ if (mutableStringPattern.test(data)) { log.error('Mutable String methods are not suppor...
var os = require('os') , isWin = /^win32/.test(os.platform()); // A reference configuration file. exports.config = { // ----- How to setup Selenium ----- // // There are three ways to specify how to use Selenium. Specify one of the // following: // // 1. seleniumServerJar - to start Selenium Standalon...
define(function(require, exports, module) { "use strict"; var app = require("app"); var Collection = Backbone.Collection.extend({ url: function() { return app.api + "repos/" + this.user + "/" + this.repo + "/commits?callback=?"; } }); module.exports = Collection; });
'use strict'; import type MediaStreamError from './MediaStreamError'; export default class MediaStreamErrorEvent { type: string; error: ?MediaStreamError; constructor(type, eventInitDict) { this.type = type.toString(); Object.assign(this, eventInitDict); } }
import Controller from './CustomController.js'; const VisibleTodos = function() { return { value: [], deps: { todos: ['todos'] }, get: function(refs, deps) { return refs.map((ref) => deps.todos[ref]); } }; }; const state = { nextRef: 0, url: '/', todos: {}, visibleTodos: V...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @name: S12.14_A4; * @section: 12.14; * @assertion: Sanity test for "catch(Indetifier) statement"; * @description: Checking if deleting an exception fails; */ // CHE...
export const hello = (event, context, cb) => { const p = new Promise((resolve, reject) => { resolve('success'); }); p.then(r => cb(null, { message: 'Go Serverless Webpack (Babel) v1.0! Second module!', event }) ).catch(e => cb(e)); };
import Ember from 'ember'; export default Ember.Route.extend({ status: 'friends', titleToken: function() { return this.get('status'); } });
import { blockString, hasBlock, optionsHaveIgnoredAtRule, rawNodeString, report, ruleMessages, validateOptions, whitespaceChecker, } from "../../utils" import { isString } from "lodash" export const ruleName = "block-closing-brace-newline-after" export const messages = ruleMessages(ruleName, { expec...
var a = [1, 2, 3]; var b = [7, 5, 1]; var i = 0; while (i < 3) console.log(a[i] - b[i++]); //https://pt.stackoverflow.com/q/345392/101
var searchData= [ ['hash',['hash',['../struct__dictionary__.html#a94cbe0bcb2d50b793bf7898ff983cf6f',1,'_dictionary_']]], ['have',['have',['../structgz_file__s.html#a23e1c8c5dbaaba5b7f2abc17cebd9dcc',1,'gzFile_s']]], ['hcrc',['hcrc',['../structgz__header__s.html#ab54066d1aca7e674fbc6d5579cc48894',1,'gz_header_s']]...
import testRule from "../../../testUtils/testRule" import rule, { ruleName, messages } from ".." testRule(rule, { ruleName, config: [1], accept: [ { code: "a { b { top: 0; }}", }, { code: "@media print { a { b { top: 0; }}}", }, { code: "a { top: 0; b { top: 0; }}", }, { code: "a { @nest ...
'use strict'; module.exports = function (t, a) { a(t('user'), false); a(t('officialization'), false); a(t('official'), false); a(t('officialHippo'), true); };
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M21 3H3v18h18V3zm-2 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3-5h-2V7h-4v3H8l4 4 4-4z" /></React.Fragment> , 'MoveToInboxSharp');
import React from 'react'; import HashTagPic from './HashTagPicComponent'; const HashTagPicsContainer = (props) => { return ( <div> <p> <i className="icon small instagram"></i>Tag your grams for this Spread with {props.hashtag} <i className="icon small arrow circle down"></i> </p> {pro...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M1 5h2v14H1V5zm4 0h2v14H5V5zm18 0H9v14h14V5zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z" /> , 'BurstModeSharp');
// Copyright IBM Corp. 2014,2016. All Rights Reserved. // Node module: loopback-sdk-angular // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT // Karma configuration // Generated on Fri Jan 17 2014 19:17:51 GMT+0100 (CET) module.exports = function(config) ...
import './lib/actionButton'; import './lib/tabBar'; import './views/autoTranslateFlexTab.html'; import './views/autoTranslateFlexTab'; export { AutoTranslate } from './lib/autotranslate';
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @generated SignedSource<<e96120e3bc16826b5420f0b47a9ca39b>> * @flow * @lightSyntaxTransform * @nogrep */ /* eslint-disable ...
BASE.require([ "BASE.query.ExpressionVisitor", "Array.prototype.indexOfByFunction", "BASE.collections.Hashmap", "BASE.query.Queryable" ], function () { BASE.namespace("BASE.query"); var Future = BASE.async.Future; var ExpressionVisitor = BASE.query.ExpressionVisitor; var Queryable ...
var loc = document.getElementById("c_location"); var map; function getLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition, showError); } else { loc.value = "Geolocation is not supported by this browser."; } } function showPos...
/* * grunt-bower-vinstall * https://github.com/slhenty/grunt-bower-vinstall * * Copyright (c) 2014 cognivator * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Please see the Grunt documentation for more information regarding task // creation: http://gruntjs.com/creat...
jQuery(document).ready(function($) { $('html').removeClass('no-js'); });
/*! * chadQuery JavaScript Library v1.9.1 * http://chadquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 chadQuery Foundation, Inc. and other contributors * Released under the MIT license * http://chadquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { /...
import { module, test } from 'qunit'; import Server from 'ember-cli-mirage/server'; import { Model, belongsTo, hasMany } from 'ember-cli-mirage'; import PostShorthandRouteHandler from 'ember-cli-mirage/route-handlers/shorthands/post'; import JSONAPISerializer from 'ember-cli-mirage/serializers/json-api-serializer'; imp...
"use strict" function foo() { if (true) return var x = 1 return "foo" } function bar() { for (var i = 0; i < 10; i++) { if (i === 0) continue var y = 2 if (i === 1) break var z = 3 switch (z) { case 3: var m = "" return case 2: break de...
async function* fn() { for await (const result of [Promise.resolve("ok")]) { return { result }; } } return fn().next().then(result => { expect(result).toEqual({ done: true, value: { result: "ok" } }); });
lychee.define('game.Main').requires([ 'game.state.Game' ]).includes([ 'lychee.app.Main' ]).exports((lychee, global, attachments) => { const _game = lychee.import('game'); const _Main = lychee.import('lychee.app.Main'); /* * IMPLEMENTATION */ const Composite = function(data) { let states = Object.assi...
function gen_harvest_request(resourcetype, source) { var xml = '<Harvest service="CSW" version="2.0.2" xmlns="http://www.opengis.net/cat/csw/2.0.2">'; xml += '<Source>' + source + '</Source>'; xml += '<ResourceType>' + resourcetype + '</ResourceType>'; xml += '</Harvest>'; return xml; } function ...
/* * File: jquery.flexisel.js * Version: 1.0.0 * Description: Responsive carousel jQuery plugin * Author: 9bit Studios * Copyright 2012, 9bit Studios * http://www.9bitstudios.com * Free to use and abuse under the MIT license. * http://www.opensource.org/licenses/mit-license.php */ (function ($) { $.fn.fl...
import closeLastOpenedWindow from 'src/support/action/closeLastOpenedWindow'; describe( 'closeLastOpenedWindow', () => { let done; beforeEach(() => { global.browser = { windowHandles: jest.fn(() => ({ value: [ 'one', ...
'use strict'; var Q = require('q'), U = require('../util'), PATH = require('../path'), FS = require('fs'), BlockNode = require('./block').BlockNodeName, fileNodes = require('./file'), BemCreateNode = require('./create'), BemBuildNode = require('./build'), BemDeclNode = require('./decl'...
angular.module('contact', []);
$(document).ready(function(){ ///////////////// // Global variables ///////////////// var newEmailId = 0; //////////////// // Functions dealing with submit buttons //////////////// $('body').on('click', '#btn-all-ok', function(){ $(this).attr('id', 'btn-all-not-ok'); $(this).text('Wait a second...
var __defProp = Object.defineProperty; var __defProps = Object.defineProperties; var __getOwnPropDescs = Object.getOwnPropertyDescriptors; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormal...
/** * Safe chained function * * Will only create a new function if needed, * otherwise will pass back existing functions or null. * * @param {function} functions to chain * @returns {function|null} */ export default function createChainedFunction() { for (var _len = arguments.length, funcs = new Array...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.reset = reset; exports.default = void 0; var _extends2 ...
/*! * froala_editor v1.2.3 (http://editor.froala.com) * Copyright 2014-2014 Froala */ /** * German */ $.Editable.LANGS['de'] = { translation: { "Bold": "Fett", "Italic": "Kursiv", "Underline": "Unterstrichen", "Strikethrough": "Durchgestrichen", "Font Size": "Schriftgr\u00f6\u00dfe", "C...
'use strict' var should = require('should') var config = require('../lib/config') , reserved = require('../config/reserved') , Grant = require('../').express() describe('config', function () { describe('initProvider', function () { it('shortcuts', function () { var provider = {}, options = {}, serve...
/** * Created by yunshengli on 2014/10/22. */ (function(window) { var LOG_LEVELS = ["DEBUG", "LOG", "INFO", "WARN", "ERROR"], //日志级别 //TODO 是否可以做成队列阈值和倒计时时间由UI配置? THRESHOLD = 200, // 触发日志上传的阈值,设置大一点,避免高频的请求导致并发问题 TIMER = 1000, // 倒计时,间隔发送时间 URL = location.protocol + "//__ro...
import { Color, LinearFilter, MathUtils, Matrix4, Mesh, PerspectiveCamera, Plane, Quaternion, RGBFormat, ShaderMaterial, UniformsUtils, Vector3, Vector4, WebGLRenderTarget } from '../../../build/three.module.js'; class Refractor extends Mesh { constructor( geometry, options = {} ) { super( geometry ...
'use strict'; const gulp = require('gulp'); const build = require('@microsoft/sp-build-web'); build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`); build.initialize(gulp);
import { useState, useEffect } from 'react' export default function RegeneratorTest() { const [message, setMessage] = useState('') useEffect(() => { ;(async () => { await new Promise((resolve) => setTimeout(resolve, 50)) setMessage('Hello World') })() }, []) return <h1>{message}</h1> }
/** * jqPlot * Pure JavaScript plotting plugin using jQuery * * Version: @VERSION * Revision: @REVISION * * Copyright (c) 2009-2016 Chris Leonello * jqPlot is currently available for use in all personal or commercial projects * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL ...
import LooseTransformer from "./loose"; import VanillaTransformer from "./vanilla"; import annotateAsPure from "@babel/helper-annotate-as-pure"; import nameFunction from "@babel/helper-function-name"; import splitExportDeclaration from "@babel/helper-split-export-declaration"; import { types as t } from "@babel/core"; ...
goog.require('ol.Map'); goog.require('ol.View'); goog.require('ol.layer.Image'); goog.require('ol.layer.Tile'); goog.require('ol.source.ImageWMS'); goog.require('ol.source.OSM'); var layers = [ new ol.layer.Tile({ source: new ol.source.OSM() }), new ol.layer.Image({ extent: [-13884991, 2870341, -7455066...
import handlePageDidActivate from '../handlePageDidActivate'; import {PREBUFFER, PLAY, actionCreators} from '../../actions'; import {pageDidActivate, pageWillDeactivate} from 'pages/actions'; import {delay} from 'redux-saga'; import {expect} from 'support/chai'; import {runSagaInPageScope} from 'support/sagas'; impor...
define([ 'lib/glMatrix', 'misc/Utils', 'misc/Tablet', 'editor/tools/SculptBase', 'editor/tools/Paint', 'editor/tools/Smooth', 'mesh/Mesh' ], function (glm, Utils, Tablet, SculptBase, Paint, Smooth, Mesh) { 'use strict'; var vec3 = glm.vec3; var mat3 = glm.mat3; var Masking = function (main) { ...