text stringlengths 3.22k 29.5k |
|---|
var
system = require('system'),
webpage = require('webpage'),
fs = require('fs'),
stderr = system.stderr || system.stdout,
url = system.args[1],
reporter = system.args[2] || 'spec',
configured = false,
runStarted = false,
isSlimer = 'MozApplicationEvent' in window,
config = {},
hookData
try {
c... |
import StereoRecorderNode from './js/StereoRecorderNode.js';
import WaveExporter from './js/WaveExporter.js';
import ToggleButton from './js/ToggleButton.js';
import CanvasControl from './js/CanvasControl.js';
import Settings from './settings.js';
/* global ResonanceAudio */
let audioContext;
let stereoRecorder;
let ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
function Base64Decode(token) {
if (token.length === 0) return null;
// The last character in the token is the number of padding characters.
var numberOfPaddingCharacters = token.slice(-1);
// The Base64 str... |
import _regeneratorRuntime from 'babel-runtime/regenerator';
import _asyncToGenerator from 'babel-runtime/helpers/asyncToGenerator';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
/**
* this plugin adds the RxCollection.sync()-function to rxdb
* you can use it to sync collections with remote or l... |
/*
* Copyright 2012 LinkedIn Corp.
*
* 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 agreed to i... |
const theme = {
xs: 0,
sm: 600,
md: 960,
lg: 1280,
palette: {
common: {
black: '#000',
white: '#fff',
type: 'light',
},
primary: {
light: '#4dabf5',
main: '#2196f3',
dark: '#1769aa',
contrastText: '#fff',
},
secondary: {
light: '#ff4081',
... |
let constants = require('../core/constants');
constants = constants.default;
let axios = require('axios');
/**
* A helper function to loop through an array and output Promise object
* @author zeyap
*/
Array.prototype.forEachConsecutively = function(fn){
let that = this;
let callback = function(arr,i,callback... |
import _ from 'lodash'
import { getItems } from 'feathers-hooks-common'
import { Forbidden } from '@feathersjs/errors'
import { populateObject, unpopulateObject, populateObjects, unpopulateObjects } from './hooks.query'
import { objectifyIDs } from '../db'
import { hasServiceAbilities, hasResourceAbilities, getQue... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
gTestfile = '11.4.4.js';
/**
F... |
import React from 'react';
import PropTypes from 'prop-types';
import { View, Text, TouchableOpacity, Vibration, ViewPropTypes } from 'react-native';
import { connect } from 'react-redux';
import Icon from 'react-native-vector-icons/MaterialIcons';
import moment from 'moment';
import equal from 'deep-equal';
import { K... |
import _ from 'lodash';
import changeCase from 'change-case';
import cypher from './cypher.js';
import utils from './utils';
import merge from 'deepmerge';
class QueryHelper {
constructor(classDefs) {
this.classDefs = classDefs;
this.aliasPrefixes = ('a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z').sp... |
// Last time we checked, was there a problem connecting to deluge?
var delugeConnectionError = true;
$(document).ready(function() {
$('.spinner').show();
$(window).trigger('hashchange');
login();
$('#add_torrent_url').keyup(function(event) {
if (event.keyCode == 13) {
addUrl();
... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import React, { Component } from 'react';
import {Glyphicon, Panel, Well} from 'react-bootstrap';
import update from 'immutability-helper';
import Experiment from './Experiment.js'
import RatingWidget from './RatingEditWidget';
import levenshtein from 'fast-levenshtein';
import './RatingApp.css';
const BONUS_VALUE = ... |
Cookies.set("channel", "test2")
const rtc = {
// 用来放置本地客户端。
client: null,
// 用来放置本地音视频频轨道对象。
localAudioTrack: null,
localVideoTrack: null,
};
const options = {
// 替换成你自己项目的 App ID。
appId: "506215541da2fb4447649b00e75c4d0a",
// 传入目标频道名。
channel: Cookies.get("channel") ? Cookies.get("... |
"use strict";
/**
* Copyright 2017 Google Inc.
*
* 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 ... |
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _createClass = function () { function defin... |
import protect from '@freecodecamp/loop-protect';
import {
attempt,
cond,
flow,
identity,
isError,
matchesProperty,
overSome,
partial,
stubTrue
} from 'lodash-es';
// the config files are created during the build, but not before linting
// eslint-disable-next-line import/no-unresolved
import sassData... |
const React = require('react')
const prettyBytes = require('prettier-bytes')
const Checkbox = require('material-ui/Checkbox').default
const LinearProgress = require('material-ui/LinearProgress').default
const TorrentSummary = require('../lib/torrent-summary')
const TorrentPlayer = require('../lib/torrent-player')
con... |
import { render, Component } from 'preact';
import t from 'Utility/i18n';
import { fetchSvaDataBySlug } from '../Utility/companies';
import PropTypes from 'prop-types';
const STEPS = {
country: {
at: 'atdsb',
be: 'beapd',
bg: 'bgcpdp',
hr: 'hrazop',
cy: 'cydp',
cz: '... |
import React, { PureComponent } from 'react';
import {
Descriptions,
Select,
Row,
Col,
Input,
Badge,
Card,
Button,
message,
Modal,
Upload,
Form,
Table,
} from 'antd';
import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale';
import PageHeaderWrapper from '@/co... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
var frameModule = require("ui/frame");
var buttonModule = require("ui/button");
var view = require("ui/core/view");
var observable = require("data/observable");
const layout = require("tns-core-modules/ui/layouts/grid-layout");
const ScrollView = require("tns-core-modules/ui/scroll-view/").ScrollView;
const Label = req... |
/**
* Copyright 2015 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
"use strict";
exports.__esModule = true;
var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_getIterator2);
exports.default = function (_ref) {
var t = _ref.types;
function hasRestProperty(path) {
var foundRestProperty = false;
path.traverse({
... |
var should = require('chai').should();
var bitcore = require('../..');
var BufferUtil = bitcore.util.buffer;
var BlockHeader = bitcore.BlockHeader;
var dataPow = require('../data/mchain/block-pow');
var dataPos = require('../data/mchain/block-pos');
var bhhexPow = dataPow.blockheaderhex;
var hashPow = dataPow.hash;
var... |
$(document).ready(function() {
consultaPefilAlumno().then(function(resultado) {
buildHTMLDatosPeril(resultado);
})
});
window.onload = function() {
consultaProcedencias();
consultaEdos();
consultaUnisAlumno().then(function(resultado) {
buildSelectUniversidades(resultado);
})
};
... |
/**
*
* 2018-2019 EdgeVerve Systems Limited (a fully owned Infosys subsidiary),
* Bangalore, India. All Rights Reserved.
*
*/
// Author : Atul
var oecloud = require('oe-cloud');
var loopback = require('loopback');
var bootstrap = require('./bootstrap');
const uuidv4 = require('uuid/v4');
var debug = r... |
//dependencies imports
import React, { Component } from "react";
import { CardElement, injectStripe } from "react-stripe-elements";
import PropTypes from "prop-types";
import { connect } from "react-redux";
//modal imports
import UnsubscribeModal from "./UnsubscribeModal.js";
//redux imports
import {
getPlans,
ge... |
/* GENERATED FILE */
import { html, svg, define } from "hybrids";
const PhAlignCenterHorizontal = {
color: "currentColor",
size: "1em",
weight: "regular",
mirrored: false,
render: ({ color, size, weight, mirrored }) => html`
<svg
xmlns="http://www.w3.org/2000/svg"
width="${size}"
height... |
'use strict';
exports.__esModule = true;
exports.default = undefined;
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 t... |
/*
* Copyright 2017 Red Hat Inc.
*
* 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 agreed to... |
import React, { forwardRef, useCallback, useEffect, useRef } from "react";
import { Form, Input, Button } from "antd";
import { DeleteOutlined } from "@ant-design/icons";
import { observer } from "mobx-react";
import { types, destroy, isAlive } from "mobx-state-tree";
import ProcessAttrsMixin from "../../../mixins/Pro... |
'use strict';
var __decorate =
(this && this.__decorate) ||
function(decorators, target, key, desc) {
var c = arguments.length,
r =
c < 3
? target
: desc === null
? (desc = Object.getOwnPropertyDescriptor(target, key))
: desc,
d;
if (
typeof Reflect === 'object' &&
typeof Refle... |
#!/usr/bin/env node
'use strict';
// Dépendences
const meow = require('meow'); // https://www.npmjs.com/package/meow
const fetch = require('node-fetch'); // https://www.npmjs.com/package/node-fetch
const clipboardy = require('clipboardy'); // https://www.npmjs.com/package/clipboardy
const chalk = require('chalk... |
////////////////////////////////////////////////////////////////
// Storage
function getlocal(key) {
return parseInt(localStorage.getItem(key));
}
function setlocalmax(key, value) {
if (isNaN(getlocal(key)) || value > getlocal(key)) {
localStorage.setItem(key, value);
}
}
function setlocalmin(key... |
/* jshint -W097 */// jshint strict:false
/*jslint node: true */
"use strict";
// you have to require the utils module and call adapter function
const utils = require('@iobroker/adapter-core'); // Get common adapter utils
const jsonPath = require('jsonpath');
const trigger_poll_state = 'trigger_poll'; // state for tr... |
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) { var target = {... |
import dateFormat from 'dateformat';
import { isString, mapValues, reduce, isDate, unescape } from 'lodash';
import { roundToNearestHalf } from '~/lib/utils/common_utils';
import { sanitize } from '~/lib/dompurify';
import { s__, n__, __, sprintf } from '../../../locale';
/**
* Returns i18n month names array.
* If `... |
const Config = require('../config.json');
const Util = require('../util/Util');
const YZRoll = require('../util/YZRoll');
const YZEmbed = require('../util/YZEmbed');
const PanicCommand = require('./panic');
const { RollParser } = require('../util/RollParser');
const ARTIFACT_DIE_REGEX = /^d(6|8|10|12)$/i;
module.expo... |
/* @license
* Copyright 2019 Google LLC. 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 a... |
import paper from '@scratch/paper';
import {CROSSHAIR_SIZE, getBackgroundGuideLayer, getDragCrosshairLayer, getRaster} from './layer';
import {getAllRootItems, getSelectedRootItems} from './selection';
import {getHitBounds} from './bitmap';
import log from '../log/log';
// Vectors are imported and exported at SVG_ART_... |
'use strict';
var PRODUCTS = {};
var lastPageImages = [ ];
var totalVotesOnPage = 0;
var content = document.getElementById('content');
var productSrc = [
['./img/bag.jpg', 'bag', 'bag'],
['./img/banana.jpg', 'banana', 'banana'],
['./img/bathroom.jpg', 'bathroom', 'bathroom'],
['./img/boots.jpg', 'boots', 'boo... |
var nickNames = [
'The Atomic Flea',
'The Refridgerator',
'Ironhead',
'Flash',
'Sweet Feet',
'Shoeless',
'The Enigma',
'Tiny',
'The GOAT',
'Bacon Master',
'The Big Unit',
'Hot Donut',
'Niblets',
'Buffet Destroyer',
'The Sexy Panda... |
// AI.js
// Created by MonkeyShen 2012
// 下棋的AI
require('Evaluater')
var MAX_BOUND = 9999999;
var MIN_BOUND = -MAX_BOUND;
var HASH_TYPE_EXACT = 0;
var HASH_TYPE_LOWER_BOUND = 1;
var HASH_TYPE_UPPER_BOUND = 2;
AI = {
// 当前激活的阵营
active_camp : null,
// 搜索深度
max_depth : 3,
// 搜索次数
search_time... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ClassificationModel = exports.ObjectDetectionModel = voi... |
import React, { useEffect, useState } from "react";
import {
Text,
View,
StyleSheet,
ScrollView,
Image,
Dimensions,
TouchableOpacity,
TouchableNativeFeedback,
Platform,
} from "react-native";
import { useSelector, useDispatch } from "react-redux";
import Colors from "../../constants/Colors";
import { ... |
angular.module( 'orderCloud' )
.config( ShipmentsConfig )
.controller( 'ShipmentsCtrl', ShipmentsController )
.controller( 'ShipmentEditCtrl', ShipmentEditController )
.controller( 'ShipmentCreateCtrl', ShipmentCreateController )
;
function ShipmentsConfig( $stateProvider ) {
$stateProvider
... |
const WIDTH = 256;
const HEIGHT = 256;
const CELL_SIZE = 16;
function mat3(...values) {
const mat = new Float32Array(9);
mat.set(values);
return mat;
}
function mat3_projection(width, height) {
return mat3(
2 / width, 0, 0,
0, -2 / height, 0,
-1, 1, 1);
}
functi... |
import React, { useCallback, useMemo, useEffect, useState } from 'react';
import { Field, FieldGroup, TextInput, TextAreaInput, Box, Icon, AnimatedVisibility, PasswordInput, Button, Grid, Margins } from '@rocket.chat/fuselage';
import { useDebouncedCallback, useSafely } from '@rocket.chat/fuselage-hooks';
import { use... |
/**
* Copyright (c) 2014, <NAME> <<EMAIL>>
* Copyright (c) 2014, <NAME> <<EMAIL>>
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING-README file.
*/
var $userGroupList;
var GroupList;
GroupList = {
activeGID: '',
everyoneGID: '_everyone',
addGroup: function ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createGrantsStore = createGrantsStore;
exports.default = void 0;
var _rxjs = require("rxjs");
var _operators = require("rxjs/operators");
var _groqJs = require("groq-js");
var _operators2 = require("rxjs-etc/operators");
var _c... |
'use strict';
/**
* This is a dummy TypeScript test file using chai and mocha
*
* It's automatically excluded from npm and its build output is excluded from both git and npm.
* It is advised to test all your modules with accompanying *.test.js-files
*/
// tslint:disable:no-unused-expression
debugger;
const { exp... |
import React from "react";
import MP4Box from "mp4box";
const createWebSocket = (protocol, hostname, port, path) => {
var s = null;
console.log("path: ", path, ", hostname: ", hostname);
try {
const pathExProto = `${hostname}:${port}/${path}`;
if ("http:" === protocol) {
//console.log("check defaul... |
var five = require("../lib/johnny-five.js"),
board, Navigator, navigator, servos,
expandWhich, directionMap, scale;
directionMap = {
reverse: {
right: "left",
left: "right"
},
translations: [{
f: "forward",
r: "reverse",
fwd: "forward",
rev: "reverse"
}, {
r: "right",
l: "le... |
const FileSystem = require('fs')
const fs = FileSystem.promises
const path = require('path')
const log = require('../src/logger.js')
const lodash = require('lodash/lang')
module.exports = {
getProjects,
addBuild,
generateHTML,
generateBadge,
clearWorkspace,
clearFolder,
isValid
}
/**
* This will retur... |
/* global PARAMS, XMLHttpRequest */
const STORAGE_URL = PARAMS.OS_STORAGE_URL || 'http://localhost:8080/v1/AUTH_test'
function makeUrl (path) {
if (path.startsWith('http://') || path.startsWith('https://')) {
return new URL(path)
}
if (!path.startsWith('/')) {
return new URL(STORAGE_URL + '/' + path)
... |
/**
* @author Lowkey
* @date 2019/04/02 14:39:52
* @Description:
*/
import React from 'react';
import { Icon, WhiteSpace, Tabs, Button, WingBlank, List, Modal } from 'components';
import CnBadge from 'components/cnBadge';
import TitleBox from 'components/titlecontainer';
import { handlerChangeRouteClick } from 'uti... |
/*jshint moz:true */
// vi: sts=2 sw=2 et
//
// accelerator setting based on
// https://github.com/ambrice/spatialnavigation-tastycactus.com/blob/master/prefs.js
const Signals = imports.signals;
const Gtk = imports.gi.Gtk;
const GLib = imports.gi.GLib;
const GObject = imports.gi.GObject;
const Gettext = imports.gett... |
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { addMultipleVms, loadVmSizes, loadVmImages,
addItem } from '../../actions/actions';
import Article from 'grommet/components/Article';
import Header ... |
var React = window.React = require('react/addons');
var cx = React.addons.classSet;
var PropTypes = React.PropTypes;
var Tabstrip = require('./Tabstrip');
var Tab = require('./Tab')
var Draggable = require('./Draggable').Draggable;
var indexOf = require('./util/indexOf');
var refArray ... |
const bars = document.querySelectorAll("#first-bar");
const mainBar = document.querySelector("#main-bar");
// mainBar.addEventListener("click", (e) => {
// if (mainBar.classList.contains("cc")) {
// for (let i = 0; i < bars.length; i++) {
// if (i == 0) {
// bars[i].style.transform = "rotate... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.renamePropertyWithStableKeys = exports.inlineProjectConfigurations = exports.resolveNewFormatWithInlineProjects = exports.resolveOldFormatWithInlineProjects = exports.toOldFormatOrNull = exports.toNewFormatOrNull = exports.toNewFormat ... |
'use strict';
const util = require('util');
const EventEmitter = require('events').EventEmitter;
const httpMonitor = require('./http');
const tcpMonitor = require('./tcp');
const utils = require('./utils');
const crypto = require('crypto');
function Monitor (opts = {}, state = {}) {
EventEmitter.call(this);
... |
// 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... |
'use strict';
const fs = require('fs');
const os = require('os');
const path = require('path');
const { tmpdir } = require('os');
const test = require('ava');
const cryptoRandomString = require('crypto-random-string');
const delay = require('delay');
const pTimeout = require('p-timeout');
const { Readable } = require(... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TreeTableBodyCell = void 0;
var _react = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _ObjectUtils = _interopRequireDefault(require("../utils/ObjectUtils"));
var... |
var config = require('./config.json')
, log = require('winston')
, querystring = require('querystring')
, os = require('os')
, path = require('path')
, fs = require('fs-extra')
, async = require('async')
, request = require('request')
, mongoose = require('mongoose')
, moment = require('moment')
, a... |
/*
Copyright 2017 Google Inc.
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
import uuid from 'uuid'
import moment from 'moment'
import { mapField, mapServerField } from './table/address'
import { parseDateFromUnixTime } from './utils/transform.js'
import realm from './table'
import goelib from 'geolib'
import ClientMobx from '../mobxs/client'
import AddressMobx from '../mobxs/address'
class ... |
/* jshint esversion: 6 */
const gulp = require('gulp');
const autoprefixer = require('gulp-autoprefixer');
const uglifyes = require('uglify-es');
const composer = require('gulp-uglify/composer');
const uglify = composer(uglifyes, console);
const plumber = require('gulp-plumber');
const notif... |
import React, { Component } from 'react';
import { Alert, Label, Input, Form, FormGroup, Badge, Card, CardBody, CardHeader, Col, Pagination, PaginationItem, PaginationLink, Row, Table, Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import axios from 'axios';
import Pagnations from '../Usable/Pa... |
var delay = require('delay');
const low = require('lowdb');
const FileSync = require('lowdb/adapters/FileSync');
const fs = require('fs');
const request = require('request');
const Instagram = require('instagram-web-api');
const FileCookieStore = require('tough-cookie-filestore2');
const { isNull, map, isNumber,... |
import { HTMLManager, requireLoader } from "@jupyter-widgets/html-manager";
import { resolvePromisesDict } from "@jupyter-widgets/base";
import Papa from "papaparse";
export const WIDGET_STATE_MIMETYPE =
"application/vnd.jupyter.widget-state+json";
export const WIDGET_VIEW_MIMETYPE = "application/vnd.jupyter.widge... |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License");... |
/****************************************************************************
Copyright (c) 2013-2016 Chukong Technologies Inc.
http://www.cocos.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated engine source code (the "Software"), a limited,
worldw... |
import latestTime from './helpers/latestTime';
import {signData} from './helpers/signData';
import { pk } from './helpers/testprivateKey';
import { duration, promisifyLogWatch, latestBlock } from './helpers/utils';
import { takeSnapshot, increaseTime, revertToSnapshot } from './helpers/time';
import { catchRevert } fr... |
#!/usr/bin/env node
var AWS = require("aws-sdk");
var proxy = require('proxy-agent');
const fs = require('fs');
const util = require('util');
const path = require('path');
const process = require('process');
const deepmerge = require('deepmerge');
const cliargs = require('commander');
const cliprogress = require('cli-... |
const empty = 0;
const wall = 1;
const up = 2;
const right = 3;
const down = 4;
const left = 5;
const fruit = 6;
const W = 80;
const H = 50;
const T = 30;
const firstPauseTime = 1000;
const maxFruitCount = 5;
const fruitDropDelay = 2;
const lengthPerFood = 6;
const snakeColours = ['#3333ff','#ffee00','#ff22aa','#331... |
var $invoice_items = [];
$(document).ready(function(e){
loadPaymentDetails();
$(".btn").removeClass('disabled');
$("#saleItemAdd").validate({
rules: {
txtInvoiceNumber: {
required: true,
},
txtInvoiceDate: {
required: true,
},
customers_name: {
required: true,
},
txt... |
import React, { Component } from "react";
import {
Icon,
Button,
Dropdown,
Modal,
Segment,
Image
} from "semantic-ui-react";
import { connect } from "react-redux";
import { postActions } from "../../actions/postActions";
import { commentActions } from "../../actions/commentActions";
import PostComments from... |
import React from 'react';
import './index.less';
import { Input, Button, Table, Modal, Form, Select, Row, Col, Radio, message } from 'antd';
import { columns, RecodeShutdownType, RecordType } from './constant';
import ajax from '../../../utils/ajax';
import moment from 'moment';
const { Option } = Select;
const dateF... |
// Generated by BUCKLESCRIPT VERSION 3.0.0, PLEASE EDIT WITH CARE
'use strict';
var $$Array = require("bs-platform/lib/js/array.js");
var Curry = require("bs-platform/lib/js/curry.js");
var ReasonReact = require("reason-react/lib/js/src/ReasonReact.js");
var Js_undefined = require("bs-platform/lib/js/js_undefined.js")... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import { Button, Header, Segment } from 'semantic-ui-react';
import {
COLLECTION_TYPES,
CT_ARTICLES,
CT_CHILDREN_LESSONS,
CT_CLIPS,
CT_CONGRESS,
CT_DAILY_LESSON,
CT_HOLIDAY,
CT_LECTURE_SERIES,
C... |
var Botkit = require(__dirname + '/CoreBot.js');
var request = require('request');
var Twilio = require('twilio');
var async = require('async');
function Twiliobot(configuration) {
// Create a core botkit bot
var twilio_botkit = Botkit(configuration || {});
// customize the bot definition, which will be... |
var TabDescript=function(macroText, icon, title, subtitle) {
this.macroText = macroText;
this.icon = icon;
this.title = title;
this.subtitle = subtitle;
};
var Tab=function(tabDescript) {
this.tabDescript = tabDescript;
var design = [
['tabframe', 'div'],
['usable', 'div', 'fra... |
/**
* #### EvaluatorSetup.ts ####
*
* This file defines four base objects for use in Evaluator and it's associated
* methods:
* - boolean
* - string
* - number (complex)
* - tensor
*
* It has definitions for aditional functions in baseFunctionTable and
* specialFunctionTable too.
*
* At end of this file is... |
// MIT License
// Copyright (c) 2019
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
// <NAME>. <<EMAIL>>
// University of Central Florida
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentati... |
// ----------------------------------------
// Poly/ML IDE.
"use strict";
// FIXME
// namespace pollution.
// make the JSON uses more robust: check for properties before dispatching on them.
// FIXME try to abstract from CodeMirror and the rest of the UI as much as possible.
// - introduce an object to mediate betw... |
"use strict";
import {MB, Ajax as req, Common} from './modules/export.js';
/* *************************************************
* Functions
* *************************************************/
/**
* @param {Object} response
* @param {Object} response.request
* @param {string} response.request.batchSizeBytes
* ... |
//part of ClassSutup project
//module SUBJECTPAGE
var table;
var insert_mode=false;
var edit_mode=false;
var res = ["#subj_to_replace", "#subject"];
var selected = [];
var sending = false;
//trim polifill
if (!String.prototype.trim) {
(function() {
String.prototype.trim = function() {
ret... |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TextInput,
View,
AsyncStorage,
Dimensions
} from 'react-native';
import Bar from '../../components/Bar';
import Header from '../../components/Header';
import Button from '../../components/Button';
import Image... |
/**
* @fileOverview Render a group of scatters
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Animate from 'react-smooth';
import classNames from 'classnames';
import _ from 'lodash';
import pureRender from '../util/PureRender';
import Layer from '../container/Layer';
import L... |
'use strict';
/**
* New whoAmI file
*/
//var Promise = require("bluebird");
var mockup = { fb: { authenticate: false }, db: { data: false } };
var accessId = 0;
function resSendJsonProtected(res, data) {
// http://tobyho.com/2011/01/28/checking-types-in-javascript/
if (data !== null && typeof data === 'obj... |
import React, { useEffect, useRef, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { useNavigate, Link } from 'react-router-dom';
import { useForm } from "react-hook-form";
import { yupResolver } from '@hookform/resolvers/yup';
import Recaptcha from "react-google-invisible-recapt... |
import Menu from 'view/controls/components/menu/menu';
import { MenuItem } from 'view/controls/components/menu/menu-item';
import { itemMenuTemplate } from 'view/controls/templates/menu/menu-item';
import { _defaults as CaptionsDefaults } from 'view/captionsrenderer';
import { captionStyleItems } from './utils';
import... |
import React, { Component } from "react";
import { connect } from "dva";
import { Card } from "antd";
import { Alert, Switch, Form, Input, Button, message, Upload, Icon, Spin } from "antd";
const FormItem = Form.Item;
@Form.create()
@connect(({ setting, loading }) => ({
settingInfoLoading: loading.effects["settin... |
const GithubService = require('./github/github-service')
const cors = require('cors')
const path = require('path')
const express = require('express')
const cfg = require('./config')
const U = require('./utils')
const templates = require('./statuses/templates')
const envService = require('./pipelines/environments')
cla... |
/**
* Copyright 2018 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.