text stringlengths 5.97k 41.2k |
|---|
/**
* Entypo icon set component.
* Usage: <Entypo name="icon-name" size={20} color="#4F8EF7" />
*/
import createIconSet from './lib/create-icon-set';
const glyphMap = {
"500px": 61696,
"500px-with-circle": 61697,
"add-to-list": 61698,
"add-user": 61699,
"address": 61700,
"adjust": 61701,
"air": 61702,... |
/* global translations, config */
/* exported buildAsuRequest, init */
let current_device = {};
let current_language = "en";
let url_params = undefined;
const $ = document.querySelector.bind(document);
const $$ = document.querySelectorAll.bind(document);
function show(query) {
(typeof query === "string" ? $(query)... |
import {globals as G} from './settings.js';
import * as abilities from './abilities.js';
import * as utils from './utils.js';
// What to query on to find a spell focus value by ID
const FOCUS_AA_KEYS = {
enc: {
'CR': '.aa-chromarift .dropdown-toggle',
'CS': '.aa-chromablink .dropdown-toggle',
'GT': '.aa-... |
import React, { Component, useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { toastr } from 'react-redux-toastr';
import classNames from 'classnames';
import _ from 'lodash';
import * as Services from '../../../services';
import { TeamBackOffice... |
var Botkit = require('./lib/Botkit.js');
var RECEIVEMESSAGEITERATIONS = '4';
var STARTEDTYPINGITERATIONS = '5';
var EMOTIONTHREASHOLD = 0.5;
var LASTMESSAGESENTTIMESTAMP = 0;
var LOGFILENAME = 'studylog.txt'
var request = require('./vars.js');
var SELFUSERID = request.SELFUSERID;
var emotionResults = [];
var startedTy... |
function CInterface(iMoney){
var _iFicheIndex;
var _aFiches;
var _pStartPosAudio;
var _pStartPosExit;
var _pStartPosFullscreen;
var _oButExit;
var _oClearBetBut;
var _oRebetBut;
var _oBetPlus;
var _oBetAnte;
var _oDealBut;
var _oPlayBut;
var _oFoldBut;
var _o... |
import Player from 'xgplayer'
import MP4 from './mp4'
import MSE from './media/mse'
import Task from './media/task'
import { isSupported, isSupportedWithXgmse, isMediaSourceSupported } from './util/isSupport';
import ProxyPromise from './util/proxyPromise'
import Timer from './util/timer'
import { CUSTOM_EVENTS } from ... |
// @ghasemkiani/binance-chain/dex
import fetch from "isomorphic-fetch";
import {BncClient, rpc as RpcClient, crypto} from "@binance-chain/javascript-sdk";
import {Obj} from "@ghasemkiani/base";
import {Inputter} from "@ghasemkiani/io";
import {quantity as quant} from "@ghasemkiani/base-utils";
import {cutil} from "@... |
'use strict'
var util = require('util')
var properties = require('../util/properties')
var shimmer = require('../shimmer')
/**
* @namespace Library.Spec
*
* @property {string} name
* The name of this promise library.
*
* @property {?string} constructor
* Optional. The name of the property that is the Promis... |
// Copyright (c) 2018-present Riff Learning, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint
header/header: "off",
"brace-style": ["error", "stroustrup", { "allowSingleLine": false }],
dot-location: ["error", "property"],
indent: ["error", 4, { "CallExpression": { "argum... |
function advanced_filter() {
$('#advance_search').slideToggle('slow');
}
$(document).ready(function(){
$(".js_view_payment").click(function(){
var exp_id = $(this).prop("rel");
if(exp_id){
$.ajax({
url: site_base_url+'invoice/show_payment_history/',
data: { expect_id: exp_id,csrf_token_name : csrf_h... |
var targetHost = $(location).attr('host');
var address = "";
var corespond_array ="";
var state_array = "";
var id_data = new Array();
var state_no = 0;
var flag = false;
$('input, select, textarea').each(
function(index){
if($(this).attr("type") == "hidden" || $(this).attr("type") == "button")
... |
/*
Copyright 2016 Viewpoint, 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 in writing, softw... |
/**
* Copyright (c) 2016, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* view/perspective/app.js
*
* When this page is loaded, we call "getPerspecti... |
// Argonaut - Simulation portion
// by <NAME>
'use strict'
/* globals Sphere, vec3, Plane, vec2, EPSILON, generateParticles,
plTestAndDeactivate, plComputeAccelerations, numParticles,
particles, simpleGLVec3MixFn, plIntegrate computeRectangularPrisimInertia,
rbdState, ComputeRigidDerivative, scaleStateVector, addStat... |
// imports
const md = require("markdown-it")();
const container = require("markdown-it-container");
const fs = require("fs");
const axios = require("axios");
// insert escape characters
const insertEscapes = (text) => {
text = text.replaceAll("<", "<");
text = text.replaceAll(">", ">");
return text;
};
/... |
import React from 'react'
import {Component} from 'react'
import Modal from 'react-bootstrap/Modal'
import Toast from 'react-bootstrap/Toast'
class Proveedores extends Component{
constructor(){
super();
this.state ={
//editar proveedor
proveedores_tb:[],
editarR... |
'use strict';
/* global module */
var makeValidator = require('domain-validator'),
parseWikidataValue = require('wd-type-parser');
module.exports = VegaWrapper;
module.exports.removeColon = removeColon;
/**
* Utility function to remove trailing colon from a protocol
* @param {string} protocol
* @return {strin... |
/**
* Class: InlineEditor
*
* Version 0.1 (pending)
*
* License: Public Domain
*
*
* User-overridable functions:
* More documentation further down in code.
*
* InlineEditor.customEditor = function( theElement ) { ...
* InlineEditor.editorValue = fuction( theEditor ) { ...
* InlineEditor.el... |
/**
* Copyright 2020 Phenix Real Time Solutions, Inc. 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
*
* Unle... |
import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import L from 'leaflet'
import { Map as LeafletMap, Marker, Popup, TileLayer } from 'react-leaflet'
import { PruneCluster, PruneClusterForLeaflet } from 'exports-loader?PruneCluster,PruneClusterForLeaflet!prunecluster/dist/PruneCluster.js'
impor... |
function reconstructDrawingObject(draw, elementType, elementId, positionTop, positionLeft) {
createElement(draw, elementType, elementId, positionTop, positionLeft);
if (elementType === 'bathElement') {
drawBath(elementType, elementId);
}
if (elementType === 'lavatoryElement') {
draw... |
import { readColor } from "../color/color_reader.js";
import { C } from "../main.js";
import { loop, noLoop } from "../settings.js";
import { applyDefault, approximateIndexInArray, doFillAndStroke } from "../utils.js";
import { getBezierControlPoints, line, smoothCurveThroughPoints } from "./geometry.js";
const animat... |
/*
* == BSD2 LICENSE ==
* Copyright (c) 2020, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... |
// -------------------------------------------------------------------
// CS 560 Algorithms
// <NAME> & <NAME>
// -------------------------------------------------------------------
var board , pGrid = [] , startGrid = [] , numCols = 5 , numRows = 4 , state = new Uint32Array(1) , qIndx= 0 , mIndx = 0;
var moveQueue = [... |
class Functions {
constructor() {
this.oldWqi = globalThis.wqi
this.seenHexes = []
this.craftPoints = {}
}
//this only needs to be called in the UI, not required for testing
async init(mainScriptUrl) {
const scriptUrl = new URL(mainScriptUrl)
const scriptDir = scriptUrl.origin + scriptUrl.pathname.split(... |
"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... |
// contains some intersting/pretty settings for the tool
_presets = {
Zeus: {
feed: 0.021,
kill: 0.055,
colorA: "#adde83",
colorB: "#171a4a"
},
Poseidon: {
feed: 0.046,
kill: 0.059,
colorA: "#83dede",
colorB: "#2929c5"
},
Ares: {
feed: 0.030,
kill: 0.056,
colorA: "#5c2424",
colorB: "#13a065... |
var debug = require( './debug' );
var triangulate = function ( verticeNodes ) {
var vertices = [ ];
for ( var t = 2, T = verticeNodes.count( ); t < T; ++ t )
vertices.push( [ verticeNodes.at( 0 ), verticeNodes.at( t - 1 ), verticeNodes.at( t ) ] );
return vertices;
};
var copyArray = function ... |
import axios from "axios";
import Splide from "@splidejs/splide";
import "@splidejs/splide/dist/css/splide.min.css";
import bootstrap from "bootstrap/dist/js/bootstrap.bundle";
import loading from "../assets/loading.svg";
const title = import("../assets/title.gif");
const background = import("../assets/background.png"... |
// Define some constants
var monStr = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
// Define margins
var margin = { top: 80, right: 50, bottom: 30, left: 100 },
width = parseInt(d3.select("#chart").style("width")) - margin.left - margin.right,
height = parseInt(d3.selec... |
const database = require("../../config/database");
const RestrictedActivity = require("../models/RestrictedActivity");
const dbService = (environment, migrate) => {
const authenticateDB = () => database.authenticate();
const dropDB = () => database.drop();
const syncDB = () => database.sync();
const success... |
/*!
* cashaddr.js - cashaddr for bcash
* Copyright (c) 2017, <NAME> (MIT License).
* https://github.com/bcoin-org/bcoin
*
* Implementation of CashAddr
* https://github.com/bitcoincashorg/spec/blob/master/cashaddr.md
*
* Parts of this software are based on "bitcoin-abc".
* https://github.com/Bitcoin-ABC/bitcoin... |
/*
* Copyright 2018 NEM
*
* 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 in writi... |
var HTML;
var titleWithLanguageDic = {
ca: 'Benvingut!',
es: 'Bienvenido!',
en: 'Welcome!',
pt: 'Bem vinda!',
it: 'Benvenuto!',
fr: 'Bienvenue!',
de: 'Willkommen',
ru: 'Добро пожаловать!',
ja: 'ようこそ!',
zh: '歡迎!',
def: 'Bie... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _xeUtils = _interopRequireDefault(require("xe-utils/methods/xe-utils"));
var _conf = _interopRequireDefault(require("../../conf"));
var _tools = require("../../tools");
var _vXETable = require("../../v-x-e-... |
import React from 'react';
import wellio from 'wellio';
import wellioviz from 'wellioviz';
import curveBoxTemplateExamples from './component/define_curveBoxTemplateExamples';
import { SketchPicker } from 'react-color'
import reactCSS from 'reactcss'
var holders = [];
export default class Plot extends React.Co... |
const colorGrades = {
"a": 5,
"b": 4,
"c": 3,
"d": 2,
"f": 1
};
const grades = ["a", "b", "c", "d", "f"];
var hasChosen = false;
var tierColor = "a";
var data;
var userGrades = [];
var userNumber;
var isEmpty;
const randomButton = document.getElementById("random-button");
const rightSide = docume... |
/**
* Copyright 2019 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... |
//특수문자 정규식( 특수기호 !?,.만 가능)
var check = /[@#$%^&*(){}+=|<>;/]/;
//숫자 정규식
// var check_num= /[0-9]/;
//input 값 수정시 조건에 부합하지 않으면 처음 입력값으로 변경
var input_onfocus_value="";
//메뉴에서 선택시 id값 저장
var Menu ="";
//메뉴 삭제
var Menu_delete="";
//생성되는 메뉴를 구분하기 위한 변수
var meun_divide = 0;
//생성되는 data... |
/*
*
* Copyright (c) 1999-2021 Luciad All Rights Reserved.
*
* Luciad grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii)... |
import RawCharacter from "./rawcharacter";
import BalloonDialog from "./balloondialog";
class Character extends RawCharacter {
constructor (scene, data) {
super(
scene,
scene.positionToRealWorld(data.position.x),
scene.positionToRealWorld(data.position.y),
... |
// src/components/Snippy/index.js
import React, { Component } from 'react';
import { Link, Redirect } from "react-router-dom";
import { Navbar, NavItem } from "../navbar";
import {SnippyNavbar} from "../SnippyNavbar";
import { Footer} from "../footer";
import {FacebookComponent} from "../FacebookComponent";
import { ... |
function begin3(){
isButton1=false;
isButton2=false;
Wall = [];
cv = document.querySelector("canvas");
cx = cv.getContext("2d");
CELL_SIZE = 25;
T_CELL_SIZE = 8;
Hero = {};
Hero.x =27;
Hero.y = 0;
INZWall3();
draw3();
}
function INZWall3() {
Wall[0]= ne... |
import axios from 'axios';
import ReactDOM from 'react-dom';
import cookie from 'react-cookies';
import { connect } from 'react-redux';
import styled from 'styled-components';
import React, { Component } from 'react';
import { Drawer, MenuItem } from 'material-ui/';
import { ListHeader } from '../containers';
import {... |
var gpharray7 = [];
var gphgridofs7 = 8;
var ClearGraph = function (dst) {
var canvas = document.getElementById(dst);
canvas.getContext("2d").clearRect(0, 0, canvas.width, canvas.height);
};
var DrawGraph = function (dst, grapharray, gridoffset, gtype, step, thick, griddensity, minval, maxval, autoscale, bo_1... |
const assert = require('assert')
const tokenize = require('../src/tokenizer/tokenize.js')
function run() {
let tokenMatchers = tokenize.defaultTokenMatchers()
let tokens
tokens = tokenize(' Sample WORDS ', tokenMatchers)
assert.equal(tokens.length, 2, 'Parse two words correctly')
assert.equal(tokens[0].typ... |
import { graphql, Link, navigate } from 'gatsby';
import { MDXRenderer } from 'gatsby-plugin-mdx';
import React, { useState, useMemo, useEffect, useCallback } from 'react';
import Layout from '../../src/components/Layout';
import ContactBlock from '../../src/components/ContactBlock';
import Dropdown from '../../src/c... |
"use strict";
require("@babel/register");
require("@babel/polyfill");
var _readline = _interopRequireDefault(require("readline"));
var _fs = require("fs");
var _crypto = require("crypto");
var _formData = _interopRequireDefault(require("form-data"));
var _cheerio = _interopRequireDefault(require("cheerio"));
va... |
const AtemController = require('./models/atemController');
const PiController = require('./models/piController');
const Telemetry = require('./models/telemetryClient.js');
const Store = require('electron-store');
const os = require('os');
const ifaces = os.networkInterfaces();
const config = require('./config');
const ... |
#!/usr/bin/env/ node
/******************************************************************************
Copyright (c) 2020 Cisco and/or its affiliates.
This software is licensed to you under the terms of the Cisco Sample
Code License, Version 1.0 (the "License"). You may obtain a copy of the
License at
... |
// hyperparameters
let numOfClasses = 3;
let numOfEpochs = 15;
let learningRate = 0.001;
let batchSize = 3; //ceil [2,5,10,20,25,33,50,100]%
let numOfUnits = 50;
// optimiser
let adamOp;
// confidence threshold
let cThreshold = 0.8;
// default zoom rate is 100% (1.0 = 100%)
let zoomValue = 1.0;
// stores CNN model,... |
import React from 'react';
import ReactDOM from 'react-dom';
import 'jquery-ui/ui/widgets/dialog';
import _Blockly, { load } from './blockly';
import Limits from './Dialogs/Limits';
import logHandler from './logger';
import NetworkMonitor from './NetworkMonitor';
import { symbolPromise } from './shared';
import TradeIn... |
// Hash functions
function x64Add(m, n) {
m = [m[0] >>> 16, m[0] & 0xffff, m[1] >>> 16, m[1] & 0xffff];
n = [n[0] >>> 16, n[0] & 0xffff, n[1] >>> 16, n[1] & 0xffff];
var o = [0, 0, 0, 0];
o[3] += m[3] + n[3];
o[2] += o[3] >>> 16;
o[3] &= 0xffff;
o[2] += m[2] + n[2];
o[1] += o[2] >>> 16... |
/*
---------------------------------------------
GRAPHS
---------------------------------------------
*/
function DoGraph1(selectedFile, firstLevel)
{
// GET JSON FILE
var graph1Data;
var graph1DataID = GetDataName(graph1Object, selectedFile);
if (graph1DataID != "") graph1Data = HUBRIS.Data.LoadData(atlasSett... |
var _ = require('lodash');
var util = require('util');
var request = require('request');
var parseString = require('xml2js').parseString;
var dateFormat = require('dateformat');
module.exports = commandStanfordEvents;
function commandStanfordEvents (tokenSlack, tokenSlackDWS, options) {
this.t... |
/*
* Author:wistn
* since:2019-09-13
* LastEditors:Do not edit
* LastEditTime:2021-03-01
* Description:
*/
var nativeCheerio = require('cheerio'); // 引入原生cheerio库,详见调用处
var iconv = require('iconv-lite');
var axios = require('axios'); // 若maxRedirects: 0时301/302状态当成failure,不删除catch的话要 validateStatus: (status) => s... |
import React, { useEffect, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { setError } from "../../../../redux/actions/errorActions";
import dateFormat from "dateformat";
import _ from "lodash";
import useMyStyles from "../../../Shared/MaterialUiStyles/useMyStyles";
import Pa... |
// formatter for cells
const render = (cell, formatterParams, onRendered) => {
let data = ""
if (Array.isArray(cell)) {
cell.forEach(d => {
data += '<span class="badge rounded-pill bg-success">' + d + '</span> '
})
} else if (typeof cell === "string") {
data = cell
} ... |
"use strict";
var y = require('./build/Release/yencode.node');
var toBuffer = Buffer.alloc ? Buffer.from : Buffer;
var nl = toBuffer([13, 10]);
var RE_BADCHAR = /\r\n\0/g;
var RE_YPROP = /([a-z_][a-z_0-9]*)=/;
var RE_NUMBER = /^\d+$/;
var decodePrev = ['\r\n', '=', '\r', '', '\r\n.', '\r\n.\r', '\r\n='];
var Decode... |
/*
* global.js - helper methods
*/
if (!String.prototype.trim) {
String.prototype.trim = function () {
return this.replace(/^\s+|\s+$/g, '');
};
}
// Fix for browsers that do not have a console object or are missing common console methods.
(function () {
var method;
var noop = function () {... |
// client.js
// by joates (Oct-2013)
// Hardcoded dependency on THREE (https://github.com/mrdoob/three.js)
try {
if (! THREE || parseInt(THREE.REVISION) < 60) throw new Error()
} catch(err) {
if ('undefined' == typeof(global)) { // running in browser?
console.log(err.stack)
err.descript... |
/*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
'use strict';
var Widget = require( '../../js/Widget' );
var $ = require( 'jquery' );
var pluginName = 'drawWidget';
var support = require( '../../js/support' );
var fileManager = require( 'enketo/file-manager' );
var SignaturePad = require( 'signature_pad' );
var t = require( 'enketo/translator' ).t;
var dialog = req... |
import React, { Component, Fragment, useState } from 'react';
import {Link, withRouter} from 'react-router-dom';
import './style.css'
import {Button, Modal, Input, message, Avatar, Form, Checkbox, Menu, Dropdown, Tooltip, Row, Col, Space, Card, Drawer } from 'antd';
import { MenuFoldOutlined, AudioOutlined, Video... |
//como criar objeto?
//literal
var objPessoa01 = {nome: 'Marcos'};
console.log(objPessoa01.nome);
//por construtor
var objPessoa02 = new Object();
objPessoa02.nome = 'Maria';
console.log(objPessoa02.nome);
//Object.create que irá criar um objeto com protótipo
var objPessoa03 = Object.create(Object.prototype);
objPess... |
import Handler from "../handler";
import { isContainer, isElement } from "../../utils/dom";
import Layout from "../../chunker/layout";
import csstree from "css-tree";
class Footnotes extends Handler {
constructor(chunker, polisher, caller) {
super(chunker, polisher, caller);
this.footnotes = {};
this.needsLayo... |
/**
* 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.
*/
require('./bootstrap');
/**
* add .sticky class if user scroll down.
*/
function stick() {
... |
/**
* crypto.cpp & crypto-ops.c
*
* https://github.com/monero-project/monero/blob/v0.17.1.9/src/crypto/crypto.cpp
* https://github.com/monero-project/monero/blob/v0.17.1.9/src/crypto/crypto-ops.c
*/
import crypto from 'crypto';
import BN from 'bn.js';
import keccak from 'keccak';
import varint from 'varint';
impor... |
import C from '../C.js';
import _ from 'lodash';
import {getId, getType} from '../data/DataClass';
import {assert,assMatch} from 'sjtest';
import {yessy, getUrlVars, parseHash, modifyHash, toTitleCase} from 'wwutils';
import PV from 'promise-value';
/**
* Hold data in a simple json tree, and provide some utility met... |
import 'jquery-validation';
import axis from 'common/axis';
$.validator.setDefaults({
errorClass: 'form-error-message jq-validate-error',
errorElement: 'p',
onkeyup: false,
ignore: '',
ajax: false,
currentDom: null,
highlight: function (element, errorClass, validClass) {
let $row = $(element).addClass('form-c... |
/* global m, md5 */
import "../../vendor/mithril.js"
import { Twirlip15ServerAPI } from "../../common/twirlip15-api.js"
import { menuTopBar, menuHoverColor, menuButton, menuCheckbox } from "../../common/menu.js"
import { Twirlip15Preferences } from "../../common/Twirlip15Preferences.js"
import Dexie from "../../vendor/... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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 ("va... |
queue()
.defer(d3.json, "us.json")
.defer(d3.json, "coast.json")
.await(ready);
//// variables
// map elements
var mapMargin=[10,20,10,20]; // top, right, bottom, left
var mapOuterSize=[960,475]; // width, height
var mapMaxZoom=4;
var mapScale=1050; // don't know the units
// slider elements
var sliderHeight=20;
v... |
import {
Chip,
Grid,
makeStyles,
Paper,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
Tooltip,
Typography,
useMediaQuery,
useTheme,
} from '@material-ui/core';
import React, { useEffect, useMemo, useState } from 'react';
import { useHistory, useParams } from 'react-router... |
import React, { Component } from 'react';
import FileCloud from 'material-ui/svg-icons/file/cloud';
import MapsPlace from 'material-ui/svg-icons/maps/place';
import InputRange from 'react-input-range';
import Loader from "../Components/Loader";
import TaskCard from '../Components/TaskCard';
import TaskListItem from '..... |
var buttonV = "Company";
//var searchV = "Company";
var deleteV = "Company";
var tableV = "Company";
var getAll = "Company";
var datatable=null;
var formValidated = true;
var form=null;
var formFields = 0;
function resetGlobalError(){
$(".alert").html("").hide();
$(".error-list").html("");
}
function resetFo... |
/**
* Created by james on 13-12-5.
* spider middleware
*/
var crypto = require('crypto');
var url = require("url");
var util = require('util');
var async = require('async');
var myredis = require('../lib/myredis.js');
var spider = function(spiderCore){
this.spiderCore = spiderCore;
this.queue... |
var d3 = require("d3");
var d3ScaleChromatic = require("d3-scale-chromatic");
var ribbonArrow = require("./ribbonArrow/ribbonArrow");
var ribbonArrowOverlay = require("./ribbonArrow/ribbonArrowOverlay");
var ribbonCenterLine = require("./ribbonArrow/ribbonCenterLine");
module.exports = function() {
// Siz... |
var _class, _temp;
function _extends() { _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; }; return _extends.apply(th... |
/*
Copyright Netfoundry, 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
distri... |
/*global document, console, window, elementinfo*/
/*jslint browser:true, vars:true, plusplus: true*/
// Defines a 3D coordinate
var Point = function (x, y, z) {
"use strict";
this.x = x;
this.y = y;
this.z = z;
};
// Table Element (Data, State)
var TableElement = function (info) {
"use strict";
... |
/**
Copyright 2018 Google LLC
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
di... |
var dateFormat =
{
short: 'dd.mm.yyyy',
lng: 'dd/mm/yyy hh:mm'
};
/*
Define all extention for js object in this file
*/
Object.toJson = function (obj) {
var value = "";
for (var property in obj) {
value = String.format("{0},{1}:{2}", value, property, obj[property]);
}
ret... |
// ----------------------------------------------------------------------------
//
//
// OpenSteer -- Steering Behaviors for Autonomous Characters
//
// Copyright (c) 2002-2005, Sony Computer Entertainment America
// Original author: <NAME> <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obt... |
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Row, Col, Button, Card, Divider, Select, Spin, Icon, DatePicker, Checkbox } from 'antd'
import { Page, UserSort, UserSortLayer, SortSelect } from 'components'
import DateTable from './DateTable'
import styles from '../common.less'
import { getFor... |
"use strict";
var mousedown;
function SpriteEditor() {
var data = [];
var isRLE = false;
var is1bit = false;
var reservePalette = [
"#000000", "#EDE3C7", "#BE3746", "#7FB8B5",
"#4A3E4F", "#6EA76C", "#273F68", "#DEBB59",
"#B48D6C", "#42595A", "#C0624D", "#333333",
"#777777", "#8FAB62", "#3ABFD1", "#bbbbbb"... |
import { NOTES }from "./notes";
import { DIATONIC }from "./interval";
import { WORDING } from "./wordings";
/**
* @const {Object} | Formulas, names and suffix for each chord quality
* Formulas will help us identify the quality of a chord and build any chord from scratch.
* To keep our formulas in a numeric format, we'... |
/* eslint-disable no-sequences */
import React, { useContext, useEffect, useState } from 'react';
// import { useHistory } from 'react-router-dom';
import axios from 'axios';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/Table... |
class store{
constructor(name){
this.name = name
this.list = new Array
this.tel = ""
this.time = ""
// this.location = ""
// this.delevery_cost_TF = true;
// this.delevery_cost = 0;
// this.tossTF = true;
}
set_category(list){
this.list... |
"use strict";
var events = require('events');
var util = require('util');
var Transport = require('./transport.js');
/**
* Provides an AMQP transport for the micro-services module.
*
* @module symphonycare-util-microservices/AmqpTransport
*/
util.inherits(AmqpTransport, Transport);
/**
* A trans... |
//======================================================================
// TTK - Message Plus (v1.3.5)
// By Fogomax
//======================================================================
/*:
* @author Fogomax
* @plugindesc This plugin improves the default message system, adding new features to it
* <TTK Message... |
var graphics = {
fg: "white",
bg: "black",
scale: 8
};
var canvas = document.getElementById("emulatorwindow");
canvas.width = 64 * graphics.scale;
canvas.height = 32 * graphics.scale;
canvas.style.width = canvas.width.toString() + "px";
canvas.style.height = canvas.height.toString() + "px";
var ctx = canvas.getC... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _jakekaraMetadash = _interopRequireDefault(require("@bit/jakekara.metadash.d3-component"));
require("./style/main.scss");
var d3 = _interopRequireWildc... |
import * as PIXI from "pixi.js";
import Ship from "./sprite";
import {Dropoff, Factory} from "./factory";
import {Map} from "./map";
import Camera from "./camera";
import * as statistics from "./statistics";
import * as keyboard from "./keyboardControls";
import * as assets from "./assets";
import colorTheme from "./c... |
//从script传递的内容
let scripts = document.getElementsByTagName("script");
let scriptArgs = scripts[scripts.length - 1].src.split("?")[1].split("&");
let args = {};
for (let index in scriptArgs) {
let tmp = scriptArgs[index].split("=");
args[tmp[0]] = tmp[1];
}
window.isDebug = args['debug'] === "1";
let paths = ... |
/****************************************************************************
** @license
** This demo file is part of yFiles for HTML 2.2.
** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28,
** 72070 Tuebingen, Germany. All rights reserved.
**
** yFiles demo files exhibit yFiles for HTML functionali... |
// The MIT License (MIT)
//
// Copyright (c) 2015 <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,... |
// HELLO WE ARE GLOBAL VARIABLES
let id = 0; // create a unique id for each survey response object
// create Leaflet feature group layers
let totalResponseLayer = L.featureGroup();
let harassmentLayer = L.featureGroup();
let insecureLayer = L.featureGroup();
let resourcesLayer = L.featureGroup();
// path to csv data ... |
function transpose(a){
var w = a.length || 0;
var h = a[0] instanceof Array ? a[0].length : 0;
if(h === 0 || w === 0)
return [];
var i, j, t = [];
for(i=0; i<h; i++) {
t[i] = [];
for(j=0; j<w; j++) {
t[i][j] = a[j][i];
}
}
return t;
}
function arrayRotate(arr, reverse) {
if ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.