code stringlengths 2 1.05M |
|---|
// Replaces all require('mano').db with require to base db setup e.g. require('../../db');
'use strict';
var repeat = require('es5-ext/string/#/repeat')
, globalRewrite = require('../utils/global-rewrite')
, re1 = /require\('mano'\)\.db(?!D)/g
, re2 = /mano\.db(?!D)/g;
module.exports = function (path) ... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
module.metadata = {
"stability": "experimental"
};
const { Cc, Ci, Cr, Cu } = require("chrome")... |
/**
* @project Piball
* @author André Lademann <vergissberlin@googlemail.com>
* @copyright Copyright (c) 2016 piball.io (http://www.piball.io)
* @license http://piball.io/license
*/
var Badge = (function () {
var helper;
Badge.colours = {
green: [67, 157, 161, 255],
red: [235, 0, 0,... |
/*globals require, console*/
'use strict';
var production = false;
var gulp = require('gulp');
var browserify = require('browserify');
var watchify = require('watchify');
var imagemin = require('gulp-imagemin');
var browserSync = require('browser-sync');
var source = require('vinyl-source-stream');
var reactify = requi... |
"use strict";
var util = require("./util");
var table = module.exports;
var getNewConfig = function () {
return {
head: [
{ id: "icon" , label : " " , width: 3, paddingRight: true , visible: true },
{ id: "line" , label : "Line" , width: 6, paddingRight: true , visible: true },
{ id... |
const moment = require('moment');
const scrapeOne = require(__dirname + '/scrape_one');
var test = module.exports = exports = function(res, daysToScrape, endDate) {
daysToScrape = daysToScrape || 1;
queryDate = endDate ? moment(new Date(endDate)) : moment();
var promiseArr = [];
for (var i = 0; i < daysToScra... |
var React = require('react');
var {
PropTypes,
} = React;
var ReactNative = require('react-native');
var {
View,
NativeMethodsMixin,
requireNativeComponent,
StyleSheet,
} = ReactNative;
var MapCircle = React.createClass({
mixins: [NativeMethodsMixin],
propTypes: {
...View.propTypes,
/**
... |
/* globals console */
let HasPrintNameMixin = Base => class extends Base {
printName() {
console.log(`{Name: ${this.name}}`);
}
};
var ValidationMixin = Base => class extends Base {
_isStringValid(str, options = {}) {
options.min = options.min || 0;
options.max = options.max || Num... |
'use strict';
angular.module('directives.on-enter-blur', [])
.directive('onEnterBlur', function () {
return function ($scope, element, attrs) {
element.bind('keydown keypress', function (event) {
if (event.which === 13) {
element.blur();
event.preventDefault();
}
... |
define(['exports'], function (exports) { 'use strict';
var UxDialog = (function () {
function UxDialog() {
}
UxDialog.$view = "<template><slot></slot></template>";
UxDialog.$resource = 'ux-dialog';
return UxDialog;
}());
exports.UxDialog = UxDialog;
});
//# sourceMappingURL=... |
$(function() {
var FADE_TIME = 150; // 毫秒
var TYPING_TIMER_LENGTH = 400; // 毫秒
var COLORS = [
'black', 'grey', 'green', 'blue',
'yellow', 'pink', 'yellow', 'brown',
'orange', 'chocolate', 'midnightblue', 'lavender'
];
//初始化
var $window = $(window);
var $usernameInput = $('.usernameInput');
... |
"use strict";
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import * as Three from 'three';
import {parseData, updateScene} from './scene-creator';
import {disposeScene} from './three-memory-cleaner';
import OrbitControls from './libs/orbit-controls';
import diff from... |
var TextBoxDefinition = {
defaultWidth: 100,
defaultHeight: null
};
export default TextBoxDefinition; |
this.primereact = this.primereact || {};
this.primereact.csstransition = (function (exports, React, reactTransitionGroup) {
'use strict';
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(Rea... |
define(['../internal/arrayReduceRight', '../internal/baseCallback', '../internal/baseEachRight', '../internal/baseReduce', '../lang/isArray'], function(arrayReduceRight, baseCallback, baseEachRight, baseReduce, isArray) {
/**
* This method is like `_.reduce` except that it iterates over elements of
* `collecti... |
require('babel-register')();
require.extensions['.css'] = function() {}; |
/*!
* Start Bootstrap - Freelancer Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
// jQuery for page scrolling feature - requires jQuery Easing plugin
$(function() {
$('body').on('click', '.page-scroll... |
define([
// '../../../../src/utils/realPath'
], function(
// realPath
){
var realPath = hello.utils.realPath;
//
// Events
//
describe('utils / realPath', function(){
var test_location_root = window.location.protocol + "//" + window.location.hostname;
var test_location_dir = window.location.pathname.replace(/\/[^\... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.PickListSubList = void 0;
var _classnames = _interopRequireDefault(require("classnames"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireWildcard(require("react"));
var _ObjectUtils ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.OrderListControls = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _Button = require("../button/Button");
var _ObjectUtils = _interopRequireDef... |
import"nanoid/non-secure";import"./Debug-5337ef47.js";import"redux";import"./turn-order-406c4349.js";import"immer";import"lodash.isplainobject";import"./reducer-95b86815.js";import"rfc6902";import"./initialize-6ecd151b.js";import"./transport-ce07b771.js";export{C as Client}from"./client-bc484c95.js";import"flatted";imp... |
/**
* Static HTTP Server
*/
// modules
var static = require( 'node-static' ),
port = (process.env.PORT | 0) || 4321,
http = require( 'http' );
// config
var file = new static.Server( './pub', {
cache: 3600,
gzip: true
} );
// serve
http.createServer( function ( request, response ) {
request.add... |
import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link } from 'react-router'
import './app.css'
const App = React.createClass({
contextTypes: {
router: React.PropTypes.object.isRequired
},
getInitialState() {
return {
tacos: [
{ name: 'duc... |
//
//Copyright (c) 2014, Priologic Software Inc.
//All rights reserved.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this lis... |
var searchData=
[
['catmullrom',['catmullRom',['../a00775.html#ga8119c04f8210fd0d292757565cd6918d',1,'glm']]],
['ceil',['ceil',['../a00662.html#gafb9d2a645a23aca12d4d6de0104b7657',1,'glm']]],
['ceilmultiple',['ceilMultiple',['../a00719.html#ga1d89ac88582aaf4d5dfa5feb4a376fd4',1,'glm::ceilMultiple(genType v, genTy... |
module.exports = {
pluginID: "AnotherPlugin",
description: function () {},
test: true,
templateType: null,
};
|
/*
* 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.
*/
'... |
import Telescope from 'meteor/nova:lib';
import Categories from "./collection.js";
import Users from 'meteor/nova:users';
const canInsert = user => Users.canDo(user, "categories.new");
const canEdit = user => Users.canDo(user, "categories.edit.all");
// category schema
Categories.schema = new SimpleSchema({
name: {... |
tinymce.addI18n('ug',{
"Redo": "\u0642\u0627\u064a\u062a\u0627 \u0642\u0649\u0644\u0649\u0634",
"Undo": "\u0626\u0627\u0631\u0642\u0649\u063a\u0627 \u064a\u06d0\u0646\u0649\u0634",
"Cut": "\u0643\u06d0\u0633\u0649\u0634",
"Copy": "\u0643\u06c6\u0686\u06c8\u0631\u06c8\u0634",
"Paste": "\u0686\u0627\u067e\u0644\u0627\u06... |
export { default } from './ReactComponent.js';
|
var cluster = require('cluster');
module.exports = {
run: run
};
function run(createServer) {
if (cluster.isMaster) {
console.log('Master pid ', process.pid);
startWorker();
} else {
createServer();
}
}
function startWorker() {
var worker = cluster.fork();
worker.once('disconnect', function (... |
/**
* Module dependencies.
*/
var express = require('express')
, passport = require('passport')
, nowww = require('nowww')
, log = require('debug')('root:config')
, MongoStore = require('connect-mongo')(express)
, mandrillMailer = require('lib/mailer').mandrillMailer
, resolve = require('path').resolve
... |
version https://git-lfs.github.com/spec/v1
oid sha256:2bf80e8c8892a317ece4d9f37fdcc01f7a17be3a31d0459abe4bdee8638dccf9
size 222
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isMediaQuery;
function isMediaQuery(property) {
return property.substr(0, 6) === '@media';
} |
angular
.module('cocktailApp')
.value('cocktailList', [{
id: 'cf6a9493-cbfe-4d15-90b7-1e730c002e55',
source: '4c1c50c3-369d-4eb6-b0a6-f447d7273bea',
name: 'Gin and Tonic',
equipment: [
{name: 'Highball glass'}
],
ingredients: [{
name: 'Gin',
quantity: 25,
unit: 'ml'
... |
import '../../css/main.scss';
import './materialize';
|
var arraySome = require('./_arraySome'),
baseIteratee = require('./_baseIteratee'),
baseSome = require('./_baseSome'),
isArray = require('./isArray'),
isIterateeCall = require('./_isIterateeCall');
/**
* Checks if `predicate` returns truthy for **any** element of `collection`.
* Iteration is ... |
var forOwn = require('../object/forOwn');
var isArray = require('./isArray');
function isEmpty(val){
if (val == null) {
// typeof null == 'object' so we check it first
return false;
} else if ( typeof val === 'string' || isArray(val) ) {
return !val.length;
} else if ( typeof val === 'object' || ... |
'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var ImageCollectionsBookmark = React.createClass({
displayName: 'ImageCollectionsBookmark',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createEleme... |
'use strict';
function mapWithSeparator(items, itemRenderer, spacerRenderer) {
var mapped = [];
if (items.length > 0) {
mapped.push(itemRenderer(items[0], 0, items));
for (var ii = 1; ii < items.length; ii++) {
mapped.push(spacerRenderer(ii - 1), itemRenderer(items[ii], ii, items));
}
}
retu... |
if(typeof sne == "undefined") sne = { steps: {} };
sne.steps.docchooser = {};
(function ()
{
var docchooserCallback = null;
var usernameMap = null;
var docs = [];
var $docs = $('#docs');
sne.steps.docchooser.show = function (cb)
{
logNavigation('docchoser');
$('#docChooser').addClass('active');
... |
import React from 'react';
import { connect } from '../utils/griddleConnect';
import compose from 'recompose/compose';
import { textSelector, classNamesForComponentSelector, stylesForComponentSelector } from '../selectors/dataSelectors';
import { toggleSettings as toggleSettingsAction } from '../actions';
const enhanc... |
(function () {
function create(window) {
var location, navigator, XMLHttpRequest;
window = window || require('jsdom').jsdom().createWindow();
location = window.location || {};
navigator = window.navigator || { userAgent: "Node.js" };
if ('function' !== typeof window.XMLHttpRequest && 'function' !== typeof w... |
goog.provide('ol.test.renderer.canvas.Layer');
describe('ol.renderer.canvas.Layer', function() {
describe('#composeFrame()', function() {
it('clips to layer extent and draws image', function() {
var layer = new ol.layer.Image({
extent: [1, 2, 3, 4]
});
var renderer = new ol.renderer.c... |
/**
.setAlign(Blockly.ALIGN_RIGHT) * Visual Blocks Language
*
* Copyright 2012 Massachusetts Institute of Technology. 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 a... |
version https://git-lfs.github.com/spec/v1
oid sha256:c32c7af615c44088fd2201ec0c442e1f7bcba5463b768d6c75ac51417208b915
size 1999
|
define(['./module'], function(app) {
'use strict';
var communitiesRepository = function($http) {
this.getOne = function(key) {
return $http.get("/data/" + key + ".json");
};
this.getAll = function() {
return $http.get("/data/communities.json");
}... |
var CACHE_NAME = 'morpheus';
var CACHED_FILES = [
'css/morpheus-latest.min.css',
'fonts/FontAwesome.otf',
'fonts/fontawesome-webfont.eot',
'fonts/fontawesome-webfont.svg',
'fonts/fontawesome-webfont.ttf',
'fonts/fontawesome-webfont.woff',
'fonts/fontawesome-webfont.woff2',
'js/morpheus-external-latest.min.js',
... |
/* eslint-disable padding-line-between-statements,strict */
module.exports.foo = function () {
try {
}
catch (e) {
};
};
|
var test = require('tape');
if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
test('has native Symbol support', function (t) {
t.equal(typeof Symbol, 'function');
t.equal(typeof Symbol(), 'symbol');
t.end();
});
return;
}
var hasSymbols = require('../hasSymbols');
test('polyfilled Symbols'... |
Flame.FocusSupport = {
// To make text fields/areas behave consistently with our concept of key responder, we have to also
// tell the browser to focus/blur the input field
didBecomeKeyResponder: function() {
this.$().focus();
},
didLoseKeyResponder: function() {
this.$().blur();
... |
"use strict";
var $__ParseTree_46_js__,
$__ParseTreeType_46_js__;
var ParseTree = ($__ParseTree_46_js__ = require("./ParseTree.js"), $__ParseTree_46_js__ && $__ParseTree_46_js__.__esModule && $__ParseTree_46_js__ || {default: $__ParseTree_46_js__}).ParseTree;
var ParseTreeType = ($__ParseTreeType_46_js__ = require(... |
module.exports = require('./lib/release');
|
(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... |
/* global processWebhookMessage */
RocketChat.API.v1.addRoute('chat.delete', { authRequired: true }, {
post: function() {
try {
check(this.bodyParams, {
msgId: String,
roomId: String,
asUser: Match.Maybe(Boolean)
});
const msg = RocketChat.models.Messages.findOneById(this.bodyParams.msgId, { fi... |
/*!
Scroller 1.2.2
©2011-2014 SpryMedia Ltd - datatables.net/license
*/
(function(m,n,k){var l=function(e){var g=function(a,b){!this instanceof g?alert("Scroller warning: Scroller must be initialised with the 'new' keyword."):("undefined"==typeof b&&(b={}),this.s={dt:a,tableTop:0,tableBottom:0,redrawTop:0,redrawBotto... |
var _ = require('lodash');
var GraphQL = require('./GraphQL');
var GraphQLFilter = require('./GraphQLFilter');
var Util = require('./Util');
var MetaStore = function() {
this._rawData = {};
};
MetaStore.prototype.export = function () {
return JSON.stringify(this._rawData, null, 2);
}
MetaStore.prototype.impo... |
/*
* 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.
*/
... |
var response_lib = require('../../lib/response_lib');
var reql = require('../../lib/request_lib');
var base = '/svc/elections/us/v3/finances';
var keyName = 'campaign-finance';
function electioneeringCommunications (keys) {
this.myKeys = keys;
}
/* Electioneering Communications */
electioneeringCommunications.p... |
import { userList } from './elements';
import itemForUser from './itemForUser';
export default function renderList(users) {
userList.innerHTML = '';
users.forEach((user) => {
userList.appendChild(itemForUser(user));
});
}
|
'use strict';
var expect = require('chai').expect;
var Backbone = require('backbone');
var sinon = require('sinon');
var screen = require('./fake_screen');
var SplitLogPanel = require('../../lib/reporters/dev/split_log_panel');
var Chars = require('../../lib/chars');
var TestResults = require('../../lib/reporters/dev... |
/**
* @file 字符串相关的函数
* @author mengke01(kekee000@gmail.com)
*/
define(
function (require) {
var string = {
/**
* HTML解码字符串
*
* @param {string} source 源字符串
* @return {string}
*/
decodeHTML: function (source) {
... |
var path = require("path")
var webpack = require('webpack')
var BundleTracker = require('webpack-bundle-tracker')
var config = require('./webpack.base.config.js')
// Use webpack dev server
config.entry = [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'./assets/js/index'
]
/... |
var spdy = require('spdy');
var http = require('http');
var assert = require('assert');
describe('SPDY Proxy', function() {
var spdyAgent;
before(function(done) {
var i = 2;
process.argv[i++] = '--key';
process.argv[i++] = __dirname + '/../keys/mykey.pem';
process.argv[i++] = '--cert';
process... |
/*
* 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.
*/
'... |
var fireworks = (function() {
var canvasEl = document.querySelector('.fireworks');
var ctx = canvasEl.getContext('2d');
var numberOfParticules = Number(location.href.split('?')[1]) || 40;
var pointerX = 0;
var pointerY = 0;
var tap = ('ontouchstart' in window || navigator.msMaxTouchPoints) ? 'touchstart' :... |
import events from './events'
import hed from './hed'
import validate from './validate'
export default {
events: events,
hed: hed,
validateEvents: validate,
}
|
var testcase = require('nodeunit').testCase;
var jsdom = require("../..");
var EventMonitor = function() {
self = this;
self.atEvents = [];
self.bubbledEvents = [];
self.capturedEvents = [];
self.allEvents = [];
self.handleEvent = function(event) {
self.allEvents.push(event);
switch(event.eventPhase... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _extends2 = _interopRequireDefaul... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _int... |
"use strict";"production"===process.env.NODE_ENV?module.exports=require("./oidc-client-ts.cjs.production.min.js"):module.exports=require("./oidc-client-ts.cjs.development.js"); |
import Vue from 'vue';
import ErrorTrackingSettings from './components/app.vue';
import createStore from './store';
export default () => {
const formContainerEl = document.querySelector('.js-error-tracking-form');
const {
dataset: { apiHost, enabled, project, token, listProjectsEndpoint, operationsSettingsEndp... |
/**
* 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.
*
* @flow
*/
import invariant from 'shared/invariant';
// Renderers that don't support microtasks
// can re-export everything from... |
define(function() {
var ctor = function () {
};
return ctor;
}); |
/**
@module ember
@submodule ember-views
*/
import { inspect } from 'ember-utils';
import { Mixin, get, isNone, assert } from 'ember-metal';
import { MUTABLE_CELL } from '../compat/attrs';
function validateAction(component, actionName) {
if (actionName && actionName[MUTABLE_CELL]) {
actionName = actionName.val... |
// [VexFlow](http://vexflow.com) - Copyright (c) Mohit Muthanna 2010.
// Author Larry Kuhns 2011
import { StaveModifier } from './stavemodifier';
export class StaveSection extends StaveModifier {
static get CATEGORY() { return 'stavesection'; }
constructor(section, x, shift_y) {
super();
this.setAttribut... |
module.exports = adduser
var uuid = require("node-uuid")
, crypto
try {
} catch (ex) {}
function sha (s) {
return crypto.createHash("sha1").update(s).digest("hex")
}
function adduser (username, password, email, cb) {
if (!crypto) crypto = require("crypto")
password = ("" + (password || "")).trim()
if (!... |
/**
* Copyright (c) Meta Platforms, Inc. and 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<<a4fd2ef174e1953094da46d80d9685b7>>
* @flow
* @lightSyntaxTransform
* @nogrep
*/
/* eslint-disabl... |
//
// The Box module defines algorithms for dealing with css boxes
//
module.exports = (function(window, document) {
// Original code licensed by Adobe Systems Incorporated under the Apache License 2.0.
// https://github.com/adobe-webplatform/brackets-css-shapes-editor/blob/master/thirdparty/CSSShapesEditor.js#L44... |
/**
* 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.
*
* @flow
*/
import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
import type {FiberRoot} from 'react-reconciler/src... |
var nixt = require('nixt')
var should = require('should')
var pkg = require('../package.json')
var endpoint = typeof process.env.ENDPOINT !== 'undefined' ? ' -e ' + process.env.ENDPOINT + ' ' : ' '
var surge = 'node ' + pkg.bin + endpoint
var opts = {
colors: false,
newlines: false
}
describe('surge', function ()... |
'use strict';
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]; } } } return target; };
function _objectWithoutProperties(obj, keys) {... |
;(function(){
'use strict';
angular
.module('<%= slugifiedAppName %>', [
'ngCookies',
'ngResource',
'ngSanitize',
'restangular',
'btford.socket-io',
'ui.router',
'ui.bootstrap',
'core',
'authentication',
'administration'
])
.run( run );
/* @inject */
function run($rootScope, $location, A... |
var encoding;
(function (encoding) {
// TODO:
encoding.ISO_8859_1 = System.Text.Encoding.Default;
encoding.US_ASCII = System.Text.Encoding.ASCII;
encoding.UTF_16 = System.Text.Encoding.Unicode;
encoding.UTF_16BE = System.Text.Encoding.BigEndianUnicode;
// TODO:
encoding.UTF_16LE = System.Te... |
'use strict';
module.exports = function(kbox, drupal, appName) {
var _ = require('lodash');
var taskOpts = {
name: 'drush-version',
kind: 'string',
description: 'The version of drush that you want.'
};
var drushVersions = _.pluck(drupal, 'drush');
// Add an option
kbox.create.add(appName, {... |
import Stylis from 'stylis/stylis.min';
import _insertRulePlugin from 'stylis-rule-sheet';
import React, { cloneElement, createContext, Component, createElement } from 'react';
import { isElement, isValidElementType, ForwardRef } from 'react-is';
import memoize from 'memoize-one';
import stream from 'stream';
import Pr... |
/*!
* jQuery JavaScript Library v1.10.0 -wrap,-ajax,-ajax/script,-ajax/jsonp,-ajax/xhr
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-05-26T2... |
/*
7. Write an expression that checks if given positive
integer number n (n ≤ 100) is prime. E.g. 37 is prime.
*/
taskName = "7. Prime number";
function Main(bufferElement) {
var integer = ReadLine("Enter a integer: ", GetRandomInt(1, 100));
SetSolveButton(function() {
ConsoleClear();
... |
var Fiber = Npm.require('fibers');
var Future = Npm.require('fibers/future');
var PHASE = {
QUERYING: "QUERYING",
FETCHING: "FETCHING",
STEADY: "STEADY"
};
// Exception thrown by _needToPollQuery which unrolls the stack up to the
// enclosing call to finishIfNeedToPollQuery.
var SwitchedToQuery = function () {}... |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakRemove = (props) => (
<SvgIcon {...props}>
<path d="M10 3H8c0 .37-.04.72-.12 1.06l1.59 1.59C9.81 4.84 10 3.94 10 3zM3 4.27l2.84 2.84C5.03 7.67 4.06 8 3 8v2c1.61 0 3.09-.55 4.27-1.46L8.7 9.97C7.14 11.24... |
var EventEmitter = require('events').EventEmitter,
inherits = require('util').inherits;
var StreamSearch = require('streamsearch');
var B_DCRLF = Buffer.from('\r\n\r\n'),
RE_CRLF = /\r\n/g,
RE_HDR = /^([^:]+):[ \t]?([\x00-\xFF]+)?$/,
MAX_HEADER_PAIRS = 2000, // from node's http.js
MAX_HEADER_SIZE ... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'contextmenu', 'bn', {
options: 'Context Menu Options' // MISSING
});
|
/**
* Compiled inline version. (Library mode)
*/
/*jshint smarttabs:true, undef:true, latedef:true, curly:true, bitwise:true, camelcase:true */
/*globals $code */
(function(exports, undefined) {
"use strict";
var modules = {};
function require(ids, callback) {
var module, defs = [];
for (var i = 0; i < id... |
"use strict";
var Trait = require("traits").Trait,
tBodyArguments = require("./tBodyArguments");
module.exports = function (withAlert, withScene) {
var values = [
{
name: "on",
type: "bool",
optional: true
},
{
name: "bri",
t... |
/*! @name videojs-contrib-ads @version 6.7.0 @license Apache-2.0 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('video.js'), require('global/window'), require('global/document')) :
typeof define === 'function' && define.amd ? define([... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
/**
* Error codes used by Apple
* @see <a href="https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingWIthAPS/CommunicatingWIthAPS.html#//apple_ref/doc/uid/TP40008194-CH101-SW4">The Binary Interface and Notification Formats</a>
*/
var Errors = {
'noE... |
// Copyright 2018 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
author: Mathias Bynens
description: >
Some binary properties used to be part of the Unicode property escapes
proposal but were later removed. They must not be supported.
esid: sec-sta... |
// XXX should check error codes
var failure = function (test, code, reason) {
return function (error, result) {
test.equal(result, undefined);
test.isTrue(error && typeof error === "object");
if (error && typeof error === "object") {
if (typeof code === "number") {
test.instanceOf(error, Met... |
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { BadgeModule } from '../badge/badge.module';
import { IconModule } from '../icon/icon.module';
import { Tab } from './tab';
import { TabButton } from './tab-button';
import { TabHighlight } from './tab-highlight';
import {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.