text stringlengths 5.97k 41.2k |
|---|
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, BadRequest } = require ('./base/errors');
// ---------------------------------------------------------------------------
module.exports = class zaif ext... |
import { initTestMarkup, createWrapper } from '../../helpers/scheduler/helpers.js';
import pointerMock from '../../helpers/pointerMock.js';
import fx from 'animation/fx';
import browser from 'core/utils/browser';
import timeZoneUtils from 'ui/scheduler/utils.timeZone';
import 'ui/scheduler/ui.scheduler';
import 'gener... |
const request = require("got");
const strlen = require("string-length");
const { PermissionsError, EmptyError } = require("./errors");
let tagRegex = /(@[\s\S]+?#0000|@\S+)/g;
let ignoreEvents = ['INVITE_CREATE','INVITE_DELETE'];
module.exports = bot => {
bot.removeAllListeners('unknown');
bot.on('unknown',data =... |
import m from 'mithril';
import _ from 'underscore';
import {catarse} from '../api'
import models from '../models';
import h from '../h';
import userVM from '../vms/user-vm';
import popNotification from './pop-notification';
const userBilling = {
controller(args) {
models.bank.pageSize(false);
cons... |
var gl;
var mouse = {
lastX : 0,
lastY : 0,
};
var angle = {
x : 0,
y : 0,
};
var drag = false;
function testGLError(functionLastCalled) {
var lastError = gl.getError();
if (lastError != gl.NO_ERROR) {
alert(functionLastCalled + " failed (" + lastError + ")");
... |
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
state: {
common: {
tripType: "1",
i18n: {},
tripType: "0", //0:因公
fromDay: {
showFromDay: "",
fromDay: "",
showWeek: ""
},
returnDay: {
showReturnDay: "",
returnDay: "",
showRe... |
mui.plusReady(function() {
plus.storage.setItem('status', '4');
var content = plus.storage.getItem('content'),
start_address = plus.storage.getItem('start_address'),
start_lon = plus.storage.getItem('start_lon'),
start_lat = plus.storage.getItem('start_lat'),
s_name = plus.stora... |
/*
* Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved.
*/
'use strict';
const IdentifierIssuer = require('./IdentifierIssuer');
const MessageDigest = require('./MessageDigest');
const Permuter = require('./Permuter');
const NQuads = require('./NQuads');
module.exports = class URDNA2015Sync {
const... |
"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];
... |
#!/usr/bin/env node
'use strict';
let yargs = require('yargs');
let Redis = require('ioredis');
var isEqual = require('lodash.isequal');
let myUtils = require('../lib/util');
// fix the cwd to project base dir for browserify and config loading
let path = require('path');
process.chdir( path.join(__dirname, '..') );
... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author <NAME> @sokra
*/
import { fileURLToPath } from "url";
import path from "path";
import { urlToRequest, interpolateName } from "loader-utils";
import cssesc from "cssesc";
import modulesValues from "postcss-modules-values";
import localByDefaul... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
function init_combinado(){
var infocombo = $("#montador_combo").data("combo-infos");
var dados = {
... |
'use strict';
var $ = require('jquery');
var UI = require('./core');
var $doc = $(document);
/**
* bootstrap-datepicker.js
* @via http://www.eyecon.ro/bootstrap-datepicker
* @license http://www.apache.org/licenses/LICENSE-2.0
*/
var Datepicker = function(element, options) {
this.$element = $(element);
this.op... |
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
"use strict";
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl... |
import tools from './tools'
class PasteFromWord {
constructor(config) {
this.imageHandler = config && config.imageHandler
}
get supportedImageTypes() {
return ['image/png', 'image/jpeg', 'image/gif']
}
/**
* 运行解析器
* @param pasteEvent 粘贴事件
* @returns
*/
parse(... |
import { Checkbox } from '@atlaskit/checkbox';
import { RadioGroup } from '@atlaskit/radio';
import Textfield from '@atlaskit/textfield';
import React, { useMemo, useState } from 'react';
import Select from 'react-select';
import makeAnimated from 'react-select/animated';
import { TRENDS } from '../../constants';
impor... |
/* bubbleChart creation function. Returns a function that will
* instantiate a new bubble chart given a DOM element to display
* it in and a dataset to visualize.
*
* Organization and style inspired by:
* https://bost.ocks.block/mike/chart/
*
*/
let delayCutoff = 3;
function bubbleChart() {
// Constants for... |
const DB = require("./db");
const dotenv = require("dotenv");
const axios = require("axios");
const fs = require('fs');
const path = require('path');
//const { formatsByName, formatsByCoinType } = require("@ensdomains/address-encoder");
const { Harmony } = require('@harmony-js/core');
const { ChainType, ChainID, Units,... |
'use strict'
let browser = require('./browser')
let printTypes = ['pdf', 'html', 'image', 'json']
let defaultParams = {
printable: null,
type: 'pdf',
header: null,
maxWidth: 800,
font: 'TimesNewRoman',
font_size: '12pt',
honorMarginPadding: true,
honorColor: false,
properties: null,
showModal: fa... |
var tabla;
function init(){
mostrarForm_article(false);
mostrarForm_detalle(false);
mostrarFormEdit(false);
showAll(); // listar todos los items
$("#form_create_update").on("submit", function(e){ //se activa al momento de ejecutarse el eveno submit
save_edit(e); //se envia la informacion que esta en variable '... |
var DomProcessor = Hammerhead.get('./dom-processor/dom-processor');
var ScriptProcessor = Hammerhead.get('../processing/script');
var Html = Hammerhead.get('./utils/html');
var IFrameSandbox = Hammerhead.get('./sandboxes/iframe');
var NativeMethods = Hammerhead.get('./sandboxes/native-methods');
var ... |
/**
* Created by fabiopadoin on 25/01/2018.
*/
const nope = () => null
const Web3 = require('web3')
const web3 = new Web3()
const TestRPC = require('ethereumjs-testrpc')
web3.setProvider(TestRPC.provider())
const Promise = require('bluebird')
Promise.promisifyAll(web3.eth, {suffix: "Promise"})
Promise.promisifyAl... |
"use strict";
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var task_1 = require("./task");
var plugin_build_1 = require("./plugin.build");
var cwd_1 = require("../utils/cwd");
var aws_1 = require("../../plugins/aws");
var pluginValidation_1 = require("... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Form, List, Card, Row, Col, Radio, Input, Progress,
Button, Icon, Dropdown, Menu, Avatar, Tooltip,
Select } from 'antd';
import numeral from 'numeral';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import { Pie, W... |
"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... |
function BalanceHistoryViewModel() {
//An address on a wallet
var self = this;
self.selectedAsset = ko.observable('');
self.availableAssets = !USE_TESTNET ? ko.observableArray([KEY_ASSET.XDP, KEY_ASSET.DOGE]) : ko.observableArray([KEY_ASSET.XDP]);
//^ don't load DOGE as an asset on testnet, since we can't sho... |
import React, { Component, Fragment } from "react";
import {
Button,
Card,
CardBody,
CardHeader,
Col,
Row,
FormGroup,
Input,
Label,
CardFooter,
} from "reactstrap";
import { forwardRef } from "react";
import RestoreIcon from "@material-ui/icons/Restore";
import AddBox from "@material-ui/icons/AddBo... |
const BaseComponent = require('@clubajax/base-component');
const dates = require('@clubajax/dates');
const dom = require('@clubajax/dom');
const util = require('./util');
const isValid = require('./isValid');
require('./time-input');
// ref:
// https://axesslab.com/accessible-datepickers/
// http://whatsock.com/tsg/Co... |
var Response = require('../models/response')
var Benchmark = require('../models/benchmark');
var APIStatus = require('../errors/apistatus')
var StatusCode = require('../errors/statuscodes').StatusCode
var Sentence = require('../models/sentence');
var Nmtmodels = require('../models/nmt');
var LOG = require('../logger/lo... |
/**
* autosum class
* Inherits from SESurveyTool
*/
function calendar(questionContainers, json, globalOpts) {
SESurveyTool.prototype.init.call(this, questionContainers, json, globalOpts);
}
calendar.prototype = Object.create(SESurveyTool.prototype);
calendar.prototype.type = function() {
return "calendar";
... |
/**
* DevExtreme (file_management/object_provider.js)
* Version: 20.1.3
* Build date: Fri Apr 24 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
var _array = require("../core/utils... |
// homebridge-lib/lib/Platform.js
//
// Library for Homebridge plugins.
// Copyright © 2017-2020 <NAME>. All rights reserved.
'use strict'
const homebridgeLib = require('../index')
const events = require('events')
const fs = require('fs')
const semver = require('semver')
const util = require('util')
const libPackage... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Hotlist actions, selectors, and reducers organized into
* a single Redux "Duck" that manages updating and retrieving hotlist state
... |
import { Component } from 'react';
import { connect } from 'dva';
import { Link, routerRedux } from 'dva/router';
import { Form, Card, Select, message, Col, Icon, DatePicker, Input, Radio, Button, Modal, Upload, Switch, Breadcrumb } from 'antd';
import config from '../../utils/config';
import styles from './style.less'... |
let TARGET_FRAME_RATE = 5;
let images;
let outData;
let renderOutData;
let canvas = document.querySelector("#outcanvas");
let ctx = canvas.getContext('2d');
let animcanvas = document.querySelector("#animcanvas");
let animctx = animcanvas.getContext('2d');
let slashMode = document.querySelector('#slashesmode');
let... |
var appDb = require('../mongoose').appDb,
Order = appDb.model('Order'),
SalesmanCompany = appDb.model('SalesmanCompany'),
Company = appDb.model('Company'),
dateFormat = 'YYYY/M/D kk:mm:ss',
timezone = 8,
moment = require('moment'),
Promise = require('promise'),
Excel = require('exceljs'),
OrderStatusM... |
import {
Table, Input, InputNumber, Popconfirm, Form, Divider, Modal, Tree, Button, Row, Col, Icon, Select, Alert, Tag, message, Card
} from 'antd';
import { connect } from 'dva';
import styles from './style.less';
import CreateForm from "@/components/CreateForm"
import SearchBox from '@/components/SearchBox'
@conn... |
/*MIT License
Copyright (c) 2017 <NAME> (https://github.com/Meegul)
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... |
/**
* Define a namespace for the application.
*/
window.app = {};
var app = window.app;
var mapExtent=[-125, -55, 0, 15];
const geonamesPath = '';
var resolutions = [0.07936954220105226, 0.06349563376084183, 0.047621725320631365, 0.031747816880420915, 0.015873908440210457, 0.007936954220105229, 0.003174781688042091... |
function orderKeys(obj) {
var keys = Object.keys(obj).sort(function keyOrder(k1, k2) {
if (k1 < k2) return -1;
else if (k1 > k2) return +1;
else return 0;
});
var i, after = {};
for (i = 0; i < keys.length; i++) {
after[keys[i]] = obj[keys[i]];
delete obj[keys[i]];
}
for (i = 0;... |
// 引入包
const immsg = require('./msg_pb');
const Buffer = require('buffer/').Buffer;
const eio = require('engine.io-client');
const order = require('./byte_order');
const Base64 = require('js-base64').Base64;
//定义IM消息用到的标识
const IM_CMD_HEART_PING = 301;
const IM_CMD_HEART_PONG = 302;
//登录
const IM_CMD_LOGIN = 303;
con... |
var EventEmitter = require('events').EventEmitter
, inherits = require('util').inherits
, keymap = require('browser-keymap')
, TreeScanner = require('./scan')
// Triangle icons
, COLLAPSED = "▸"
, EXPANDED = "▾"
module.exports = Tree
function noop() {}
/// A filterable lazy-... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _classnames = _interopRequireDefault(require("classnames"));
var _downshift = _interopRequireDefault(require("downshift"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _inte... |
import Mapd from './mapd';
'use strict'
class Map2d extends Mapd {
/*
* NOTE: using 'map.es6' causes a transpile error
*
* Generic map object, equivalent to a 2-dimensional array, used
* for heightmaps and color maps and other "maplike" data, including
* Image data in arrays.
* ... |
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) { try { step(gene... |
// Copyright 2019 <NAME>
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those t... |
import * as d3 from 'd3';
import BaseDataLayer from './base';
import {merge} from '../../helpers/layouts';
/**
* @memberof module:LocusZoom_DataLayers~genes
* @type {{track_vertical_spacing: number, bounding_box_padding: number, color: string, tooltip_positioning: string, exon_height: number, label_font_size: numbe... |
//作业面板
function generateJobPanel(secondGuidePanel){
//为表格添加一行复选框用于选择行
var sm=new Ext.grid.CheckboxSelectionModel();
//列模型
var cm=new Ext.grid.ColumnModel([
new Ext.grid.RowNumberer(),//行序号生成器,会为每一行生成一个行号
sm,
{header:"id",dataIndex:"jobId",align:"center"},
{header:"目录",wi... |
var debug = false;//Will show the emitters position, canvas center and mouse position
//Mouse interaction
var mouseRadius = 90; //Repelling radius
var friction = Math.random() * 0.05 + 0.90;
//System variables
var emitters = []; //Hold created emitters
var fps = 60; //Framerate
var far = 500; //Camera d... |
var canvas = document.querySelector('canvas');
canvas.width = window.innerWidth;
canvas.height = self.innerHeight;
canvas.offScreenCanvas = document.createElement('canvas');
canvas.offScreenCanvas.width = self.innerWidth;
canvas.offScreenCanvas.height = self.innerHeight;
let root = document.documentElement;
root.sty... |
import * as pickler from '../common/pickler';
import modularSolver from '../arithmetic/solveRational';
import * as spacegroups from '../spacegroups/spacegroups';
import {
rationalLinearAlgebra as ops,
rationalLinearAlgebraModular
} from '../arithmetic/types';
const encode = pickler.serialize;
const decode = pickl... |
const http = require('http')
const https = require('https')
const dns = require('dns')
const net = require('net')
const { assert } = require('console')
const { Request, Response, NextFunction } = require('express/index')
const events = require('events')
/**
* @param {string} target_path
* @returns {string}
*/
funct... |
// ==UserScript==
// @name Reddit Filter
// @namespace https://github.com/Poorchop/userscripts
// @description Allows for filtering/hiding of posts
// @include https://www.reddit.com/*
// @version 0.4.1
// @grant GM_addStyle
// @grant GM_listValues
// @grant GM_setValue
// @grant ... |
import clipboard from 'clipboard-polyfill'
import _ from 'lodash/fp'
import { createRef, Fragment } from 'react'
import { div, form, h, input } from 'react-hyperscript-helpers'
import { AutoSizer } from 'react-virtualized'
import * as breadcrumbs from 'src/components/breadcrumbs'
import { buttonPrimary, Checkbox, Click... |
"use strict";
var Util = require("../util/Util");
var Paths = require("../worksheet/Paths");
var RelationshipManager = require("../worksheet/RelationshipManager");
var SharedStrings = require("../worksheet/SharedStrings");
var StyleSheet = require("../worksheet/StyleSheet");
var Worksheet = require("../worksheet/Worksh... |
var decks = []
var animCard = null
var players = []
var storage = window.sessionStorage
var isFirstCard = true
var phase = 0
var isFirstJudge = true
var tmpPoints = -2
var firstPlayerTurnDone = false
var audioManager = new AudioManager();
var hints;
const pro = 0
const con = 1
const ref = 2
//Game Progression
//1: ... |
"use strict";
var _ = require('lodash');
var CSVParse = require('csv-parse');
var fs = require('fs');
var path = require('path');
var moment = require('moment');
const crypto = require('crypto');
const HASH_STORE_FILENAME = path.resolve(__dirname, "content-hash.json");
const TARGET_DIR = path.resolve(__dirname, '..', ... |
// ==UserScript==
// @name GDUST-正方教务系统课程表转ICS
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 通过对新版正方教务系统的课表页面的解析,实现导出一个适用于大部分ics日历的文件,适配与广东科技学院正方教务系统,理论使用于所有使用新版正方教务系统(可对 ``include`` 进行一定的修改以适用不同的学校的链接)
// @author feldan
// @compatible chrome
// @compatible fire... |
//set up stage
var screenWidth = 800;
var screenHeight = 800;
var app=new PIXI.Application(screenWidth,screenHeight,{antialias: true, backgroundColor:0x000000});
document.body.appendChild(app.view);
//variables used to scale puzzle pieces and their positions
var scale = 0.4;
var square1 = new PIXI.Graphics();
var sqrW... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = _interopDefault(require('react'));
var styled = _interopDefault(require('styled-components'));
function _defineP... |
/*
*
* hwknd.com
*
* (c) 2010 stagas
*
*/
/*
* config
*/
// enter your hostname if you're not using polla (github.com/stagas/node-polla)
var HOST = process.env.POLLA_HOST || 'localhost'
, PORT = process.env.POLLA_PORT || 8888
, DEBUG = 1 // 0 (none), 1 (debug) or 2 (debug with line numbe... |
var assert = require('assert');
var should = require('should');
var marketPricing = require("../index.js");
describe('marketPricing', function(){
'use strict';
describe('walrasianCEPriceRange', function(){
it('should solve a simple symmetric supply/demand problem with step functions', function(){
var qD ... |
/* tilda-catalog-1.1.min.js */
function t_store_get_productCard_onePrice_html(t, e, r, o) {
var startingPrice = getStartingPrice(t); /* new line */
var s = "current" === o ? startingPrice || e.price : e.priceold /* line modified */
, i = "current" === o ? "price" : "priceold";
if ("current" !== o && (... |
// show stats for quick debug
// const stats = new Stats();
// stats.showPanel(0);
// document.body.appendChild(stats.domElement);
// show spector
// var spector = new SPECTOR.Spector();
// spector.displayUI();
// TODO split this file
const canvas = document.getElementById('canvas');
let width = canvas.width;
let of... |
const { session, dialog, app, BrowserWindow, ipcMain, shell, Menu } = require("electron");
const fs = require("fs");
const fsPromises = fs.promises;
const path = require("path");
process.env["user_agent"] = `${app.name}/${app.getVersion()}`;
const { Config } = require("../js/config");
const { Library } = require("../... |
import fuzzysort from "fuzzysort";
import { useRouter } from "next/router";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import styled from "styled-components";
import Copyright from "../../shared/components/copyright";
import Header from "../../shared/components/header";
import { ASCENDI... |
var locked = false;
var OPS = ["F", "L", "B", "R", "U", "D"];
var perspective = 0;
var solverInitialized = false;
var solvers = [];
solvers.push(new Cube());
Cube.asyncInit("lib/cubejs/worker.js", function() {
solverInitialized = true;
});
window.onload = init;
function action(cubes, scene, operation, inverse, ... |
import { toString as dateToString } from "./Date.js";
import { compare as numericCompare, isNumeric, multiply, toExponential, toFixed, toHex, toPrecision } from "./Numeric.js";
import { escape } from "./RegExp.js";
import { FSharpRef, toString } from "./Types.js";
const fsFormatRegExp = /(^|[^%])%([0+\- ]*)(\*|\d+)?(?:... |
import React, { PropTypes } from 'react';
import _ from 'lodash';
import * as toastr from '../../../../utils/toastr';
import Dialog from '../../../elements/Dialog';
import RaisedButton from '../../../elements/RaisedButton';
import CommonTextField from '../../../elements/TextField/CommonTextField.component';
import Com... |
/**
* Created by richard on 10/10/14.
*/
/*************************
* web sockets part
*
*************************/
var rooms = {};
var activeCameras = new Map();
var lastPage = null;
var webSocket = null;
function startWS(){
webSocket = new WebSocket("ws://"+window.location.hostname+":9002");
webSocket.o... |
// Copyright (c) 2021 <NAME>
// SPDX-License-Identifier: MIT
function correctBx(bx, wcf) {
return bx / wcf;
}
// Alcohol content estimation and Plato/SG conversion implemented according to:
// <NAME>. "Alcohol and Its Measurement". In: Brewing Materials and Processes. Elsevier,
// 2016, p. 123-149. DOI: 10.1016/b... |
import React, { useState } from 'react';
import { ImageBackground, StyleSheet, Text, View, Animated, TouchableHighlight, Button } from 'react-native';
import { Card, Icon } from 'react-native-elements';
import { useNavigation } from '@react-navigation/native';
import { CountdownCircleTimer } from 'react-native-countdow... |
"use strict";
const { insertPragma, isPragma } = require("./pragma");
const {
getAncestorCount,
getBlockValueLineContents,
getFlowScalarLineContents,
getLast,
getLastDescendantNode,
hasExplicitDocumentEndMarker,
hasLeadingComments,
hasMiddleComments,
hasTrailingComments,
hasEndComments,
hasPretti... |
"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... |
/**
* Utils
*
* @description :: utilities service
* @docs :: http://sailsjs.org/#!documentation/services
*/
import _ from 'lodash'
import Promise from 'bluebird'
import is from 'is_js'
import changeCase from 'change-case'
import geoJsonValidation from 'geojson-validation'
import util from 'util'
import humps fr... |
import React from 'react'
import Form from 'react-bootstrap/Form'
import InputGroup from 'react-bootstrap/InputGroup'
import Container from 'react-bootstrap/Container'
import Row from 'react-bootstrap/Row'
import Col from 'react-bootstrap/Col'
import Button from 'react-bootstrap/Button'
import Popover from 'react-boots... |
"use strict";
import Avvio from "avvio";
import querystring from "querystring";
let lightMyRequest;
import {
kAvvioBoot,
kChildren,
kBodyLimit,
kRoutePrefix,
kLogLevel,
kLogSerializers,
kHooks,
kSchemaController,
kReplySerializerDefault,
kContentTypeParser,
kReply,
kRequest,
kFourOhFour,
k... |
/**
* This js file includes in view trainee page
*/
function reset_form() {
$('#collected_on').val('');
$('#new_entrance').val('');
$('#COMMNTS').text('');
$('#trainer_feedback_form').find('input:radio').prop('checked', false);
// $('#trainer_feedback_form #COMYTCOM_C').attr('checked', 'checked');... |
const R = require('ramda');
const Bottleneck = require('bottleneck');
const asyncRetry = require('async-retry');
const logger = require('./logger');
const limiter = new Bottleneck({
minTime: 10,
maxConcurrent: 1
});
let identity = v => v;
const asyncForEach = async (array, callback, binding = false) => {
... |
// SPDX-FileCopyrightText: 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// SPDX-License-Identifier: MIT-0 License
import React, { useState, useEffect } from 'react';
import './App.css';
import Grid from '@material-ui/core/Grid'
import MaterialTable from "material-table";
import Refresh from '@mater... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _Utils = require("./Utils");
var _EffectsLibrary = require("./EffectsLibrary");
var _EffectsLibrary2 = _interopRequireDefault(_EffectsLibrary);
var _Particle = require("./Particle");
var _Particle2 = _interopRequireDefault(_Particl... |
#!/usr/bin/env node
global.fs = require('fs');
global.util = require('util');
var async = require('async');
var aws = require('aws-sdk');
var fse = require('fs-extra');
var zip = require('zip-folder');
var readline = require('readline');
var program = require('commander');
var dockerlambda = require('docker-lambda');... |
//Copyright (C) 2016 <NAME>
//
//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, modify, merge, publish, distribute,... |
const { app, BrowserWindow, nativeTheme, electron, ipcMain, Notification, dialog, clipboard } = require("electron");
const fs = require("fs");
const path = require("path");
const i18next = require("i18next");
const i18nextBackend = require("i18next-fs-backend");
const i18nextOptions = require('./configs/i18next.config'... |
/*
* Base: 基础方法
* */
import '../../node_modules/jtool/jTool.min';
import { CONSOLE_STYLE } from '../common/constants';
let $ = window.jTool;
let jTool = window.jTool;
window.jTool === window.$ && delete window.$;
delete window.jTool;
class BaseClass {
/**
* 获取表的GM 唯一标识
* @param $table
* @returns {*|string}
... |
/* ---- Compressing ./public/javascripts/libraries/control.rating.js ----- */
/**
* @author <NAME> <<EMAIL>>
* @copyright 2007 LivePipe LLC
* @package Control.Rating
* @license MIT
* @url http://livepipe.net/projects/control_rating/
* @version 1.0.1
*/
if(typeof(Control) == 'undefined')
Control = {};
Control.R... |
const RecordArray = require('../src/RecordArray');
const testRA = [
{id: 1, tag: 'adam', name: 'Adam', key: 'g'},
{id: 2, tag: 'bob', name: 'Bob', key: 'great'},
{id: 3, tag: 'cat', name: 'Cat', key: 'blue'},
{id: 4, tag: 'dave', name: 'Dave', key: 'green'},
{id: 5, tag: 'eddie', name: 'Eddie', key: 'red'}... |
/* <copyright>
Copyright (c) 2012, Motorola Mobility LLC.
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 list of conditio... |
#!/usr/bin/env node
// Author: <NAME>, https://github.com/DorianLatchague/beanstalk-deploy
// Using a lot of resources from <NAME>'s beanstalk-deploy, https://github.com/einaregilsson/beanstalk-deploy
const awsApiRequest = require('./aws-api-request');
const IS_GITHUB_ACTION = !!process.env.GITHUB_ACTION;
if (IS_GIT... |
import React from "react";
import PropTypes from "prop-types";
// @material-ui/core components
import { makeStyles,useTheme } from "@material-ui/core/styles";
//import Checkbox from "@material-ui/core/Checkbox";
import Table from "@material-ui/core/Table";
import TableHead from "@material-ui/core/TableHead";
import Ta... |
// Copyright 2015-2021, University of Colorado Boulder
/**
* An instance that is synchronously created, for handling accessibility needs.
*
* Consider the following example:
*
* We have a node structure:
* A
* B ( accessible )
* C (accessible )
* D
* E (accessible)
* G (accessible)
... |
var Dot = new function () {
var isMobile = !!navigator.userAgent.toLowerCase()
.match(/ipod|ipad|iphone|android/gi);
var DEFAULT_WIDTH = 1000, DEFAULT_HEIGHT = 650, BORDER_WIDTH = 6, FRAMERATE = 60;
var ORGANISM_ENEMY = 'enemy', ORGANISM_ENERGY = 'energy';
var world = {
width: isMobi... |
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target;... |
import React, {useState, useEffect} from 'react'
import {useSelector,useDispatch} from 'react-redux'
import {getTorneos} from '../actions/TorneoActions'
import {getGrupos} from '../actions/GrupoActions'
import {getEquipos, addEquipo, editEquipo, deleteEquipo} from '../actions/EquipoActions'
import {getJugadores, addJug... |
import React from "react";
import PouchDB from "pouchdb";
import upsert from "pouchdb-upsert";
import firebase from "../.././init-firebase.js";
import VoteModuleResults from "./VoteModuleResults.js";
import { Link } from "react-router-dom";
import { randomString, standardCatch } from "../../widgets/authdb.js";
import {... |
goog.provide('Blockly.Python.xml');
goog.require('Blockly.Python');
goog.require('Blockly.Xml');
function fillIt(tar) {
var args = Array.prototype.slice.call(arguments, 1);
return tar.replace(/{(\d+)}/g, function(match, num) {
return typeof args[num] != 'undefined' ? args[num] : match;
});
};
Blockly.Pyth... |
import React, { Fragment, useState, useContext } from "react";
import useStyles from "./dashboardStyles";
// react plugin for creating charts
import ChartistGraph from "react-chartist";
import Icon from "@material-ui/core/Icon";
import SvgIcon from "@material-ui/core/SvgIcon";
// @material-ui/icons
import Update from "... |
/*
* Account page
*/
function validUser(username) {
if (username.length < 4 || username.length > 30)
return false;
if (!username.match(/^[A-Za-z0-9\-_\.]+$/))
return false;
return true;
}
function password(pass) {
var salt = "<PASSWORD>";
var result = Sha256.hash(salt + pass);
... |
const forEach = require('async-foreach').forEach
const Client = require("discord.js").Client
const client = new Client()
const request = require("request")
const YoutubeDL = require('youtube-dl')
const ytdl = require('ytdl-core')
const options = require('./config.json')
//options for the bot
//-->prefix for the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.