text stringlengths 2 1.05M |
|---|
// @flow
import React, { useEffect, useState, useContext } from "react"
import { createPoint, createShape } from "../../utils/helper"
import Vertex from "../Vertex"
import BEM from "../../utils/BEM"
import "./Shape.scss"
import { ShapeView } from "./ShapeView"
import { TransformContext } from "../CanvasTransform"
cons... |
var test = require('.././');
require('domready')(function () {
console.log('dom ready, starting test.');
var body = document.getElementsByTagName("body")[0];
var container = document.createElement('div');
container.setAttribute("id", "container");
body.appendChild(container);
test.init(function() {
co... |
import url from 'url'
import http from 'http'
import path from 'path'
import https from 'https'
import merge from 'lodash.merge'
import request from 'request'
import EventEmitter from 'events'
import logger from '@wdio/logger'
import { isSuccessfulResponse, getErrorFromResponseBody } from './utils'
import pkg from '.... |
// @link http://acme-schemas.triniti.io/json-schema/acme/curator/command/update-widget/1-0-0.json#
import Fb from '@gdbots/pbj/FieldBuilder';
import Format from '@gdbots/pbj/enums/Format';
import GdbotsPbjxCommandV1Mixin from '@gdbots/schemas/gdbots/pbjx/mixin/command/CommandV1Mixin';
import Message from '@gdbots/pbj/M... |
module.exports = {
chainWebpack: (config) => {
const svgRule = config.module.rule("svg");
svgRule.uses.clear();
svgRule
.use("babel-loader")
.loader("babel-loader")
.end()
.use("vue-svg-loader")
.loader("vue-svg-loader");
},
};
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function getRandomInt(max) {
return Math.floor(Math.random() * Math.floor(max));
}
var Mocker = /** @class */ (function () {
function Mocker() {
this.pick = function () {
var args = [];
for (var _i = 0; ... |
const path = require('path');
// This is a custom Jest transformer turning file imports into filenames.
// http://facebook.github.io/jest/docs/en/webpack.html
module.exports = {
process(src, filename) {
const assetFilename = JSON.stringify(path.basename(filename));
if (filename.match(/\.svg$/)) {... |
var assert = require('assert');
var oembed = require('./index');
describe('oembed', function() {
it('youtube', function() {
return oembed('https://www.youtube.com/watch?v=J---aiyznGQ')
.then(res => {
assert.equal(res.title, 'Charlie Schmidt\'s Keyboard Cat! - THE ORIGINAL!');
})... |
;/*!src/zepto.before.js*/
var BJ_REPORT=function(n){if(n.BJ_REPORT)return n.BJ_REPORT;var r=[],e={id:0,uin:0,url:"",combo:1,ext:{},level:4,ignore:[],random:1,delay:1e3,submit:null},t=function(n,r){return Object.prototype.toString.call(n)==="[object "+(r||"Object")+"]"},o=function(n){var r=typeof n;return"object"===r&&!... |
/**
Copyright 2014 Gordon Williams (gw@pur3.co.uk)
This Source Code is subject to the terms of the Mozilla Public
License, v2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
------------------------------------------------------------------
Handle... |
import React from 'react';
const ShopItem = ({ name, price, onPut }) => {
return (
<div className="ShopItem" onClick={() => onPut(name, price)}>
<h4>{name}</h4>
<div>{price}원</div>
</div>
);
};
export default ShopItem;
|
webpackJsonp([8],{
/***/ 873:
/***/ (function(module, exports, __webpack_require__) {
var disposed = false
function injectStyle (ssrContext) {
if (disposed) return
__webpack_require__(896)
}
var normalizeComponent = __webpack_require__(202)
/* script */
var __vue_script__ = __webpack_require__(898)
/* template */... |
import React from 'react';
import {Switch, Route} from 'react-router-dom';
import './App.scss';
import Header from '../Header/Header';
import Directory from '../Directory/Directory';
import Shop from '../Shop/Shop';
import SigninSignup from '../SigninSignup/SigninSignup';
import PageNotFound from '../PageNotFound/PageN... |
/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) 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
*
* Unles... |
import path from 'path';
import del from 'del';
import nock from 'nock';
import pathExists from 'path-exists';
import tempfile from 'tempfile';
import test from 'ava';
import m from '.';
test.beforeEach(t => {
t.context.tmp = tempfile();
});
test.afterEach(async t => {
await del(t.context.tmp, {force: true});
});
... |
import theme from '@nuxt/content-theme-docs'
export default theme({
head: {
meta: [
// { name: 'google-site-verification', content: "VqBuI6LAOEm-RHyKbbLnmhReR-Tk04T9foBKmr9m_LM" }
]
},
docs: {
primaryColor: '#F8E479'
},
pwa: {
manifest: {
name: '@vurian/wizard'
}
}
}) |
(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{O1Gv:function(e,t,a){"use strict";a.r(t),a.d(t,"_frontmatter",(function(){return m})),a.d(t,"default",(function(){return u}));var n=a("zLVn"),i=(a("q1tI"),a("7ljp")),o=a("Bl7J"),r=a("IP2g"),s=a("wHSu"),c=a("tBDR"),b=a("Bn85"),p=a("/k7T"),m={layout:"about",title:... |
/* jshint esnext: true */
import path from './svg-path';
const EPSILON = 1e-12;
const PI = Math.PI;
const HALF_PI = PI / 2;
const TAU = 2 * PI;
const constant = (x) => { return () => { return x; }; };
const asin = (x) => { return x >= 1 ? HALF_PI : x <= -1 ? -HALF_PI : Math.asin(x); };
function intersect(... |
// source: proto/item_service.proto
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = j... |
// Copyright 2016 Erik Neumann. 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 required by applica... |
let config = {
awardLevel: [
{'lastRank': 1, 'className': 'award champion'},
{'lastRank': 3, 'className': 'award gold'},
{'lastRank': 6, 'className': 'award silver'},
{'lastRank': 10, 'className': 'award bronze'},
],
dataURL: 'ranklist.json',
requestTimeout: 25000,
requestInterval: 30000,
};
export defaul... |
import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.fi... |
// Win: COM3
// OSX: /dev/tty.usbserial-EN275366
const config = {
dmx: {
driver: 'enttec-usb-dmx-pro',
device: '/dev/tty.usbserial-EN275366',
startChannel: 1,
nbChannels: 11,
channels: {
x: 1,
y: 3,
speed: 5
}
}
};
module.exports = config; |
import { Component } from 'react'
import pt from 'prop-types'
import {
format,
addMonths,
subMonths,
isDate,
getDate,
isEqual as isEqualDates,
startOfMonth,
endOfMonth,
eachDay,
addWeeks,
startOfWeek,
endOfWeek,
isSameMonth
} from 'date-fns'
const dateToDayObjects = dateValue => ({
dateValu... |
// @flow
import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
import '@storybook/addon-options/register';
|
module.exports.run = async (client, message, args, data) => {
if(!data.plugins.economy.enabled) return message.channel.send(`⚠️ Le système d'économie n'est pas activé sur ce serveur. Activez-le avec la commande \`${data.prefix}enable economy\``);
const toDeposit = args[0];
const user = await client.f... |
/*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.lang['tt']={"editor":"Форматлаулы текст өлкәсе","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Ярдәм өчен ALT 0 басыгыз","browseServer":"Сервер карап ч... |
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
'use strict';
var Icon = require('../Icon-1083255b.js');
var React = require... |
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import { createHashHistory } from 'history';
import { routerMiddleware, routerActions } from 'react-router-redux';
import { createLogger } from 'redux-logger';
import { persistStore, persistReducer } from 'redux-persist';
im... |
class Paddle extends GameEntity{
constructor(x, y, canvas) {
super(x, y, canvas);
this.vector = new MovementVector(1, 0, 0);
this.hitbox = new HitBox(x, y, Paddle.WIDTH, Paddle.HEIGHT);
this.image = new ImageRectangle(Paddle.WIDTH, Paddle.HEIGHT, Paddle.COLOR, this.context);
}
... |
(function (_, $) {
$.ceEvent('on', 'ce.commoninit', function (context) {
$('.cm-yad-city', context).autocomplete({
delay: 600,
source: function source(request, response) {
var url = 'yandex_delivery.autocomplete?type=locality&q=' + encodeURIComponent(request.term);
$.ceAjax('request', ... |
$(document).ready(() => {
// Getting references to our form and inputs
const signInBtn = $("form.form-signin");
const emailInput = $("input#inputEmail");
const passwordInput = $("input#inputPassword");
// When the form is submitted, we validate there's an email and password entered
signInBtn.on("submit", e... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(React.createElement(React.Fragment, null, React.createElement("path", {
d: "M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm0 12.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.... |
angular.module('customElements')
.directive('postEditor',[
function(){
return {
restrict:'A',
scope:{
id:'=postEditor',
comment: '=',
sharedId: '=',
sharingType:'=',
... |
const testFunctionalConfig = {
port: 3000,
polyfills: ['@babel/polyfill'],
mode: 'development',
storageAdapter: {
module: 'resolve-storage-lite',
options: {}
}
}
export default testFunctionalConfig
|
var should = require('should');
var x11 = require('x11');
var async = require('async');
var EVMW = require('../lib/ewmh');
var get_property = require('x11-prop').get_property;
var os = require('os');
describe('setting properties...', function() {
before(function(done) {
var self = this;
async.paral... |
var socialUrls = require('@tryghost/social-urls');
function getStructuredData(metaData) {
var structuredData,
card = 'summary';
if (metaData.twitterImage || metaData.coverImage.url) {
card = 'summary_large_image';
}
structuredData = {
'og:site_name': metaData.site.title,
... |
function listOfWeights (array) {
var object = {}
array.forEach(function(v) {
object[v] = 0.1
})
return object
}
function weightedRandomIn (weightedList) {
// Figure out the total of all the weights
var totalWeight = 0
for (var i in weightedList) {
totalWeight += weightedList... |
/* global define */
/*
jQuery plugin for an side-panel which can open and close on the
left or right edge of the document.
Methods are invoked by passing the method name as a string in the
constructor method, e.g. `$(...).panel('open')`.
Methods:
`open` - Opens the panel
`close` - Closes the panel
`toggle` - T... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[399],{974:function(t,s,e){"use strict";e.r(s);var n=e(6),i=Object(n.a)({},(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("p",[t._v("在"),e("code",[t._v("第4.9小节")]),t._v(",我们已经知道,切片... |
"use strict";
/* global describe, it */
const {observable, bundleChanges} = require('../../lib/observable');
const {computed} = require('../../lib/computed');
const {subscribe} = require('../../lib/subscribe');
const assert = require('chai').assert;
const sinon = require('sinon');
describe('subscribe', function() {... |
/**
* Copyright 2017 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
'use strict';
angular.module('creamApp')
.factory('Perference', function ($resource, DateUtils) {
return $resource('api/perferences/:id', {}, {
'query': { method: 'GET', isArray: true},
'get': {
method: 'GET',
transformResponse: function (data) {
... |
import stripePackage from "stripe";
import handler from "./libs/handler-lib";
import { calculateCost } from "./libs/billing-lib";
export const main = handler(async (event, context) => {
const { storage, source } = JSON.parse(event.body);
const amount = calculateCost(storage);
const description = "Scratch c... |
// import Vue from 'vue'
// let
// new Vue({
// el:"#root",
// template: '<App/>'
// }) |
exports.swapVerticalCircleOutlinedImpl = require('@material-ui/icons/SwapVerticalCircleOutlined').default;
|
// Modules to control application life and create native browser window
const {app, BrowserWindow} = require('electron')
// import {PythonShell} from 'python-shell';
const {PythonShell} = require('python-shell');
PythonShell.runString('x=1+1;print(x)', null, function (err) {
if (err) throw err;
console.log('fini... |
var callbackArguments = [];
var argument1 = function callback(a,b,c) {
callbackArguments.push(JSON.stringify(arguments))
base_0[3][2] = {"59":1.6181186456889842e+308,"843":"l","fuw":"","1.071474030063186e+308":"m'k"}
return a+b*c
};
var argument2 = "";
var argument3 = function callback(a,b,c) {
callbackArgument... |
const _ = require('lodash'),
EventEmitter = require('events').EventEmitter,
WSProcessor = require('./wsprocessor'),
TCPProcessor = require('./tcpprocessor'),
logger = require('pomelo-logger').getLogger('pomelo', __filename);
const HTTP_METHODS = [
'GET', 'POST', 'DELETE', 'PUT', 'HEAD'
];
const ST_STARTED = 1;
... |
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
var Constants = /** @class */ (function () {
function Constants() {
}
Constants.TEXT_CANCEL = 'Cancel';
Constants.TEXT_CLEAR_ALL_FILTERS = 'Clear All Filters';
... |
import React, { useState, useEffect, useRef, useContext } from 'react';
import { observer } from 'mobx-react-lite';
import { UiStoreContext, VisualizationStoreContext } from 'store/stores';
import { ItemStatus, drawItemLabel, zoomContext } from 'utils/drawing';
import * as s from './styles';
const ItemLabelCanvas = o... |
var assert = require('assert');
var base64_utf8 = require('../lib/index');
describe('base64_utf8', () => {
it('encode', () => {
var encodeString = base64_utf8.encode('小胡子哥');
assert(encodeString === '5bCP6IOh5a2Q5ZOl', 'encode error');
});
it('decode', () => {
var decodeString = base64_utf8.decode('... |
var lUpdate = document.getElementById('l-update'),
lSlide = document.getElementById('l-slide'),
lSet = document.getElementById('l-set'),
lChange = document.getElementById('l-change'),
lStart = document.getElementById('l-start'),
lEnd = document.getElementById('l-end');
slider.noUiSlider.on('update', functi... |
const { singular } = require('pluralize');
const Fuse = require('fuse.js');
const { foods } = require('../database.json');
const fuse = new Fuse(foods, {
keys: ['name', 'alternateNames'],
threshold: 0.4,
});
exports.handler = (event, context, callback) => {
const q = singular(event.queryStringParameters.q);
... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* 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 a... |
Ext.data.JsonP.tm_net_event_Error({"tagname":"class","name":"tm.net.event.Error","autodetected":{},"files":[{"filename":"websocket.js","href":"websocket.html#tm-net-event-Error"}],"extends":"tm.net.event.WebSocketEvent","members":[{"name":"data","tagname":"property","owner":"tm.net.event.Error","id":"property-data","me... |
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css
//= link quick_search_ebsco_discovery_service_api_searcher_manifest.js
|
import React, { useEffect } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { useLocation, useHistory } from 'react-router-dom'
import { Helmet } from 'react-helmet'
import { selectCustomer, authCustomerThanx } from '@open-tender/redux'
import { isObject } from '@open-tender/js'
import { Mess... |
const { VIEW } = require('../lib/views');
const {
fileErrorSummary,
fileUploadNunjucksVariables,
uploadFiles,
} = require('../lib/file-upload-helpers');
const { deleteDocument } = require('../lib/documents-api-wrapper');
const getAppealSideBarDetails = require('../lib/appeal-sidebar-details');
const { getTaskStat... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
let permId = '';
$(document).ready(function(){
$('ul.admin-perms li').each(function(key, value) {
let liId = $(this).attr('id');
liId = liId.replace('li-', '');
if(key !== $('ul.admin-perms li').length - 1) {
permId += liId + ',';
} else {
permId += liId;
... |
var book = {
"name": "سفر خروج",
"numChapters": 40,
"chapters": {
"1": {
"1": "<span>1 </span> و این است نامهای پسران اسرائیل كه بهمصر آمدند، هر كس با اهل خانهاش همراه یعقوب آمدند:",
"2": "<span>2 </span> رؤبین و شمعون و لاوی و یهودا،",
"3": "<span>3 </span> یساكار و زبول... |
import Link from "next/link";
import Layout from "../components/layout/layout";
import NewsDisplay from "../components/newsDisplay/newsDisplay";
export default function HealthPage({ newsNews, guardianNews, nytNews }) {
const newsApiArticles = newsNews;
const gAndNytArticles = [...guardianNews, ...nytNews].flat();
... |
/*
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.mobile.app.TextBox"]){dojo._hasResource["dojox.mobile.app.TextBox"]=true;dojo.provide("dojox.m... |
const _urlData = "https://www.datos.gov.co/resource/sfav-4met.json"
var vlSpec = {
"data": { "url": "https://www.datos.gov.co/resource/sfav-4met.json" },
"transform": [{ "fold": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "_noviembre"] }],
"mark": "b... |
// Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one character in either string.
//
// Example 1:
// Input: "sea", "eat"
// Output: 2
// Explanation: You need one step to make "sea" to "ea" and another step to make "eat" to... |
// modules are defined as an array
// [ module function, map of requires ]
//
// map of requires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the require for previous bundles
parcelRequire = (function (modules, cache, entry, globalName)... |
function imagePreview(input) {
console.log('Hecho');
filePreview(input);
};
function filePreview(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.readAsDataURL(input.files[0]);
reader.onload = function (e) {
$('#preview + img').remove();
... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
import Vue from 'vue';
window.Vue = require('vue');
Vue.use(require('vue-resource'));
window.... |
import { useState, useCallback } from 'react';
function useHooks({ columns, dataSource, onAdd, onEdit, onDelete }) {
const ds = (dataSource || []).map(d => Object.assign(d, { key: d.id }));
const [data, setData] = useState(ds);
const [loading, setLoading] = useState(false);
const handleAdd = useCallback(
... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["keyboard-dd970efc-js"],{
/***/ "./node_modules/@ionic/core/dist/esm/keyboard-dd970efc.js":
/*!****************************************************************!*\
!*** ./node_modules/@ionic/core/dist/esm/keyboard-dd970efc.js ***!
\*********************... |
'use strict';
const express = require('express');
const jwt = require('jsonwebtoken');
const passport = require('passport');
const router = express.Router();
require('../config/passport')(passport);
const msg = require('../config/msg');
const Adza_Profile = require('../models').Adza_Profile;
const Buyer_Profile = req... |
let joke = document.getElementById("fetch_Joke");
let randomJoke = document.getElementById("randomJokeBtn");
let allJokes = document.getElementById("getAllJokesBtn");
joke.addEventListener('submit', function (e) {
e.preventDefault();
let jokeByID = document.getElementById("jokeID").value;
fetchJokeByID(jok... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("@styled-icons/crypto/Ary"), exports);
|
/* global SettingsHelper */
/* global asyncStorage */
/* global Requester */
/* global Commands */
/* global Config */
/* global DUMP */
/* global IAC_API_WAKEUP_REASON_ENABLED_CHANGED */
/* global IAC_API_WAKEUP_REASON_LOGIN */
/* global IAC_API_WAKEUP_REASON_LOGOUT */
/* global IAC_API_WAKEUP_REASON_STALE_REGISTRATIO... |
import * as shell from 'shelljs';
import { prompt } from '@pyramation/prompt';
import dargs from 'dargs';
const glob = require('glob').sync;
const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp');
const repo = 'git@github.com:coolir/tmpl-ts-npm-module.git';
const clone = async argv =>... |
const {remote, ipcRenderer} = require('electron')
const fs = require('fs')
const path = require('path')
const $ = window.$
/*
██████ ██████ ██████ ████████ ██████ ████████ ██ ██ ██████ ███████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████ ██████ ██ ██ ██ ██ ██ ... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('route:store/orders', 'Unit | Route | store/orders', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
var route = this.subject();
assert.ok(route);
});
|
import React from 'react'
import Navbar from './Navbar'
import '../styles/global.scss'
const Layout = (props) => {
return (
<>
<Navbar />
<span>Load me</span>
{props.children}
</>
)
}
export default Layout
|
/* eslint-disable fp/no-nil, fp/no-unused-expression */
/**
* External dependencies.
*/
const R = require('ramda')
/**
* Internal dependencies.
*/
const getYoutubeDirectUrl = require('./core/get-youtube-direct-url')
const getYoutubeDirectUrlForMany = async ids => {
const youTubeIds = ids.split(',')
const uni... |
export { default } from 'ember-metrics/metrics-adapters/mixpanel';
|
// core
import React, { Component } from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import { withRouter } from 'react-router-dom'
// assets
// components
import Menu from '@material-ui/core/Menu'
import MenuItem from '@material-ui/core/MenuItem'
import ListItemIcon from '@materia... |
if(!dojo._hasResource["dojox.off.ui"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo._hasResource["dojox.off.ui"] = true;
dojo.provide("dojox.off.ui");
dojo.require("dojox.storage.Provider");
dojo.require("dojox.storage.manager");
dojo.require("dojox.storage.GearsStor... |
const Block = require('./block');
describe('Block' , () => {
let data, lastBlock, block;
beforeEach(() =>{
data = 'bar';
lastBlock = Block.genesis();
block = Block.mineBlock(lastBlock, data);
})
it('sets the `data` to match the inpute' , () => {
expect(block.data).to... |
import React, { useState } from 'react';
import Scroll from './Scroll';
export default function MarksCalculator() {
const [firstInSem, setfirstInSem] = useState(0);
const [secondInSem, setsecondInSem] = useState(0);
const [finalSem, setfinalSem] = useState(0);
const [assignment, setassignment] = useState(0);
... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("omi"));
else if(typeof define === 'function' && define.amd)
define(["omi"], factory);
else if(typeof exports === 'object')
exports["missed-video-call-round... |
import React from 'react'
import styled from '@emotion/styled'
import { Box } from 'rebass'
import { Container } from './blocks'
import { useColorMode } from 'theme-ui'
import theme from './theme'
const data = {
sponsors: [
{
name: 'GitHub',
link: 'https://github.com/',
image:
'https://... |
'use strict';
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
entry: {
'entry.min': './src/entry.js',
},
mode: 'production',
output: {
chunkFilename: '[name].[contenthash].js',
filename: ... |
const Builder = require('./webpack/build')
const fs = require('fs-extra')
const path = require('path')
const cli = require('./cli')
const CWD = process.cwd()
const defBuild = {
env: 'production',
outputPath: path.resolve(CWD, 'dist'),
dir: path.resolve(CWD, ''),
static: '',
outHtml: true,
favicon: false,
... |
module.exports = function(candidate) {
var max = Math.floor(Math.sqrt(candidate));
var index = 3;
if(candidate % 2 == 0 && candidate != 2)
{
return false;
}
while(index <= max)
{
if(candidate % index == 0)
{
return false;
}
index += 2;
... |
// @flow
import {allViewNames as defaultViewOrder} from '../../views/views'
import difference from 'lodash/difference'
import {
trackHomescreenOrder,
trackHomescreenDisabledItem,
trackHomescreenReenabledItem,
} from '../../lib/analytics'
import * as storage from '../../lib/storage'
import {type ReduxState} from '..... |
const path = require("path");
const slsw = require("serverless-webpack");
const nodeExternals = require("webpack-node-externals");
module.exports = {
entry: slsw.lib.entries,
target: "node",
mode: slsw.lib.webpack.isLocal ? "development" : "production",
optimization: {
minimize: false,
concatenateModu... |
// CodeMirror is the only global var we claim
window.CodeMirror = (function() {
"use strict";
// BROWSER SNIFFING
// Crude, but necessary to handle a number of hard-to-feature-detect
// bugs and behavior differences.
var gecko = /gecko\/\d/i.test(navigator.userAgent);
var ie = /MSIE \d/.test(navigator.use... |
var Area = [
{
"provinceCode": "110000",
"provinceName": "北京市",
"mallCityList": [
{
"cityCode": "110100",
"cityName": "北京市",
"mallAreaList": [
{
"areaCode": "110101",
... |
import { useEffect } from "react";
import { Link, Redirect } from "react-router-dom";
import { FaGithub } from "react-icons/fa";
import { VscLoading } from "react-icons/vsc";
import Cookies from "js-cookie";
import jwt_decode from "jwt-decode";
import { githubClientID } from "./../../utils/constants";
import "./index.... |
import _ from 'lodash'
import shortid from 'shortid'
const orderBucketSize = 200
function generateOrderBuckets({ orders }) {
const buckets = []
const bucketCount = Math.trunc(orders.length / orderBucketSize) + 1
for(let i = 0; i < bucketCount; ++i) { // test
const bucketContents = orders.slice(i * orderBucke... |
/* global describe, it */
'use strict';
var chai = require('chai');
var expect = chai.expect;
var extract = require('../src/keywords').extract;
describe('keywords', function() {
it('can extract and reverse keywords', function() {
expect(
extract(['ONE', 'TWO'])
).to.deep.equal(['ONE', 'TWO']);
});
... |
webpackJsonpjwplayer([4],{17:function(e,t,i){var n,r;n=[i(8)],r=function(e){function t(e){e||i()}function i(){throw new Error("Invalid DFXP file")}var n=e.seconds;return function(r){t(r);var a=[],s=r.getElementsByTagName("p");t(s),s.length||(s=r.getElementsByTagName("tt:p"),s.length||(s=r.getElementsByTagName("tts:p"))... |
const MB = 1024 * 1024
const defaultOptions = {
limit: 1,
onStart () {},
onProgress () {},
onPartComplete () {},
onSuccess () {},
onError (err) {
throw err
}
}
function remove (arr, el) {
const i = arr.indexOf(el)
if (i !== -1) arr.splice(i, 1)
}
class MultipartUploader {
constructor (file, o... |
/*!
* vuelidate-provider v1.4.0
* (c) 2020 Denis
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).VuelidateProvider={})}(this,(function(t){"use strict";
/*!
* isobject <ht... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.