text stringlengths 5.97k 41.2k |
|---|
// Copyright 2018 Intel Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
/* eslint-disable react/sort-comp */
import axios from 'axios'
import PropTypes from 'prop-types'
import React, {PureComponent as Component} from 'react'
import {
Alert,
Button,
Card,
Col,
Form,
Icon,
Input,
message,
Modal,
Popover,
Radio,
Row,
Select,
Switch,
Tabs,
Tooltip,
Upload,
} ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/**
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"... |
import DataSource from '../../utils/DataSource';
import MEmitter from '../m-emitter.vue';
import debounce from 'lodash/debounce';
import isNumber from 'lodash/isNumber';
import i18n from './i18n';
export const UTableView = {
name: 'u-table-view',
mixins: [MEmitter],
i18n,
props: {
data: Array,
... |
var page_map = new Map([["Main", {key: "", index: "", href: "Main", target: "", "name": "Main"}]]);
var d_mains = document.querySelectorAll("div.iwp-help-main");
var main_names = get_page_main_names(d_mains);
var main_map = {};
main_names.forEach((name, i) => main_map[name] = d_mains[i]);
var main_name = page;
var d... |
/**
*
* Plugin definition
* @module multer-gridfs-storage/gridfs
*
*/
const crypto = require('crypto');
const {EventEmitter} = require('events');
const mongodb = require('mongodb');
const isPromise = require('is-promise');
const isGenerator = require('is-generator');
const isGeneratorFn = isGenerator.... |
import React, {useEffect, useRef} from 'react';
import {makeStyles, withStyles, MuiThemeProvider, createMuiTheme, fade} from '@material-ui/core/styles';
import './App.css';
import Backdrop from "@material-ui/core/Backdrop";
import CircularProgress from "@material-ui/core/CircularProgress";
import ManageUser from "./com... |
var oAuth = {
google: {
signInAndUp: function () {
myAjax.submit('GET', 'https://myblog.xasquatch.net/oauth/google/information', function (data) {
window.location.href = 'https://accounts.google.com/o/oauth2/v2/auth?' + data;
});
},
verifyToken: func... |
"use strict";
/**
* Web Server, 29.11.2013 Spaceify Oy
*
* @class WebServer
*/
var fs = require("fs");
var url = require("url");
var http = require("http");
var https = require("https");
var crypto = require("crypto");
var qs = require("querystring");
var fibrous = require("fibrous");
var Logger = require("./log... |
import React, { Component, Suspense, lazy } from 'react';
import Dropzone from 'react-dropzone';
import './App.css';
import MyNavbar from './MyNavbar';
import { Tooltip } from '@mui/material';
import Helps from './help/helps';
import Score from './lib/Score'
import Button from '@mui/material/Button';
import { styled } ... |
import React, { useState, useEffect, useMemo, useRef } from 'react'
import styled from 'styled-components'
import Row, { RowFixed } from '../Row'
import TokenLogo from '../TokenLogo'
import { Search as SearchIcon, X } from 'react-feather'
import { BasicLink } from '../Link'
import { useAllTokenData, useTokenData } fr... |
/**
*
* This software is released under MIT licence :
*
* Copyright (c) 2018 <NAME> ( <EMAIL> )
*
* 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 limit... |
import React, { useState, useEffect } from 'react';
import { ThemeProvider, Link, Toggle, TooltipHost, Pivot, PivotItem, Icon, Separator, Stack, Text } from '@fluentui/react';
import Presents from './presets'
import NetworkTab from './networkTab'
import AddonsTab from './addonsTab'
import ClusterTab, { VMs } from './... |
/*
* Copyright (c) Microsoft Open Technologies, 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
*
* Unless r... |
/* eslint-disable import/no-dynamic-require, global-require */
import path from 'path';
import { fsExistsSync, readObjectSync, writeFileSync } from '../systemManager/fileutils';
import { checkAndCreateProjectPackage, installPackageDependencies } from '../systemManager/npmUtils';
import { IS_LINKED, RNV_HOME_DIR, TVOS, ... |
import React from 'react'
import { StyleSheet,ToastAndroid,AsyncStorage,RefreshControl, Text, View,Button,TouchableOpacity, ImageBackground,FlatList,ActivityIndicator,Image } from 'react-native';
import { ScrollView } from 'react-native-gesture-handler';
import Slider from '../slider/Slider';
import LogoTitle from '../... |
//This branch allows javascript population at any time.
function jsGrid(id){
var thisGrid = this;
this.tableId = id;
if (document.getElementById(id) != null) this.useInnerHtml = true;
//
this.columnCount = 1;
//tracks currently selected row DOM elements. Makes for faster deselecti... |
// Generated by psc version 0.9.1
"use strict";
var Prelude = require("../Prelude");
var Data_Array = require("../Data.Array");
var Data_Foldable = require("../Data.Foldable");
var Data_Maybe = require("../Data.Maybe");
var Data_Tuple = require("../Data.Tuple");
var Unsafe_Coerce = require("../Unsafe.Coerce");
var DOM_... |
import heroData from 'dotaconstants/build/heroes.json';
import patchData from 'dotaconstants/build/patch.json';
import itemData from 'dotaconstants/build/items.json';
import regionData from 'dotaconstants/build/region.json';
import clusterData from 'dotaconstants/build/cluster.json';
import store from '../../store';
im... |
import React, { Component } from "react";
import axios from "axios";
import alertify from "alertifyjs/build/alertify";
import "alertifyjs/build/css/alertify.min.css";
import "alertifyjs/build/css/alertify.css";
import "alertifyjs/build/css/themes/default.min.css";
import {
Button,
Modal,
ModalBody,
ModalFooter,... |
'use strict';
var fs = require('fs');
var template = fs.readFileSync(__dirname + '/process-instance.html', 'utf8');
var angular = require('camunda-commons-ui/vendor/angular');
var commonModule = require('../../../../common/scripts/module');
var routeUtil = require('../../../../common/scripts/util/routeUtil');
var c... |
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... |
// JavaScript Document
//Here is the text that goes on the first page of the application, the one presented by running the HTM.
//if (opener) {var t=opener.t}
var Title="Proportion<br>Confidence Limits for a Single Proportion";
var Authors="<b>Statistics</b><br><NAME>, Emory University<br>";
Authors+= "based o... |
require('dotenv').config();
const Web3 = require('web3');
const schedule = require('node-schedule');
const cron = require('cron-validator');
const path = require('path');
const fs = require('fs');
const {
ensureNetwork,
ensureDeploymentPath,
getDeploymentPathForNetwork,
loadConnections,
performTransactionalStep... |
//TODO: Do this with queue.js (once it stabilizes)
var async_resources = ["sweden", "world", "population_years"];
var loaded_resources = {}
// get a bounding box for an element,
// apply transform to get a real bounding box
function transformedBBox(element){
var bbox = element.node().getBBox();
v... |
/**
* 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"); you may ... |
import { NUM, STR, FUN } from '@typen/enum-data-types';
import { CSI } from '@pres/enum-control-chars';
import { SGR } from '@pres/enum-csi-codes';
import { last } from '@vect/vector';
// colorNames in blessed
const COLOR_NAMES = {
// special
default: -1,
normal: -1,
bg: -1,
fg: -1,
// normal
black: 0,
... |
const Discord = require("discord.js");
const client = new Discord.Client();
const { Client, Util } = require("discord.js");
const fs = require("fs");
require("./util/eventLoader")(client);
client.ayarlar = {
"prefix": "u.",
"sahip": "519573066268016641",
}
client.commands = new Discord.Collection();
client.aliases =... |
// runlatex.js for TeXLive.net and Overleaf
// Copyright 2020 2021 <NAME>
// MIT Licence
// set here but local versions can be redefined after
// loading this file
// runlatex configuration object
var runlatex={}
runlatex.texts ={
"Open in Overleaf": "Open in Overleaf",
"TeXLive.net": "run at TeXLive.ne... |
import Ember from 'ember';
import Util from 'ui/utils/util';
import Resource from 'ember-api-store/models/resource';
import { normalizeType } from 'ember-api-store/utils/normalize';
import C from 'ui/utils/constants';
const defaultStateMap = {
'activating': {icon: 'icon icon-tag', color: 'tex... |
var canvas, ctx;
// A 2D vector utility
var Vec = function(x, y) {
this.x = x;
this.y = y;
}
Vec.prototype = {
// utilities
dist_from: function(v) { return Math.sqrt(Math.pow(this.x-v.x,2) + Math.pow(this.y-v.y,2)); },
length: function() { return Math.sqrt(Mat... |
// Timeout to wait before the actual resize logic is executed
var utils_1 = require('./../../core/utils');
var RESIZE_THROTTLE = 200;
/**
* @class Tabs
* Creates an interactive tabs component
*
* Example:
* <code>
* <ul class="tab" role="tablist">
* <li id="tab1" role="tab" aria-controls="panel1" cla... |
/**
* Created by HOME on 27.07.2017.
*/
/*
Функция предназначена для выборки элемента по классу или идентификатору
Аналоговая из jQuery - $(element);
*/
function QS(element) {
return document.querySelectorAll(element);
}
function State(status) {
var loading_elem = QS(".loading")[0];
if (loading_elem)... |
import * as React from "react";
import * as ReactDOM from "react-dom";
import AlertView from "./alert-view";
import SourceView from "./src-view";
import GraffView from "./graff-view";
import ObjectView from "./obj-view";
import ArchiveView from "./archive-view";
import Dispatcher from "./Dispatcher";
// This is the one... |
var pug = require('pug')
const { fetchSBOLObjectRecursive } = require('../fetch/fetch-sbol-object-recursive')
var summarizeComponentDefinition = require('../summarize/summarizeComponentDefinition')
const benchling = require('../benchling')
var config = require('../config')
var getUrisFromReq = require('../getUrisF... |
import "./chunk-5SV57J7K.js";
import "./chunk-TGKJKD5H.js";
import {
init,
throttle
} from "./chunk-C2QZHW5Q.js";
import "./chunk-HBWDC7AH.js";
import {
computed,
defineComponent,
h,
inject,
nextTick,
onMounted,
onUnmounted,
shallowRef,
toRefs,
unref,
watch,
watchEffect
} from "./chunk-IKEME... |
/**
* keyboard_event_handler.js for LabJack Switchboard. Provides Kipling
* and all modules with a unified & error-safe way to respond to user keyboard
* events.
*
* @author <NAME> (LabJack, 2014)
**/
// Require npm libraries
var dict = require('dict');
var q = require('q');
var async = require('async');
// R... |
'use strict';
const
js0 = require('js0'),
fields = require('./fields'),
helper = require('./helper'),
TableRequestDef = require('./scheme/TableRequestDef')
;
class Table
{
get alias() {
return this._alias;
}
get columns() {
return this._columns;
}
get name(... |
const board = new Array(10).fill(0).map(() => new Array(10).fill(0));
const lengths = [2, 3, 3, 4, 5];
const names = ['ptboat', 'cruiser', 'submarine', 'battleship', 'carrier'];
const leftOffset = 128;
const topOffset = 2;
const blockW = 32;
var placedShips = 0;
var dragLeft, dragTop;
var setup, game, uuid;
var shipsDe... |
import Phaser from 'phaser';
// TODO: Sprite loading needs to be dynamic:
// 1. Every player should be able to pick their own sprite to represent themselves.
// 2. We should be able to load arbitrary sprites from objects in the map or server objects.
import partyWizardSpriteSheet from '../assets/party-wiza... |
$(function(){
var data = {'id':getPeriodId()};
$.getContent(apiBaseUrl+'/period/info',data,'productinfo');
})
//商品详情
function success_productinfo(json){
var neednum = json.periodInfo.price.split('.')[0];
$(".present").append(json.periodInfo.goods_catNav);
$(".phase_centre_title").append('<h2>'+json.periodInf... |
var emt
var flv
//append an svg in container as a canvas or sth
var svg = d3.select(".container").append("svg")
.attr("preserveAspectRatio", "xMinYMin meet")
.attr("z-index","300")
.attr("viewBox", "0 0 1200 800")
//get the recommended cocktail name
var svg1 = d3.select(".c... |
jQuery('#modal-provincia').on('show.bs.modal', function (event) {
var launcher = jQuery(event.relatedTarget) // Button that triggered the modal
//var recipient = button.data('whatever') // Extract info from data-* attributes
var idProv = launcher[0].id.replace("lnk-", "" ).replace(/-/g ... |
/*jslint node: true */
"use strict";
var Mnemonic = require('bitcore-mnemonic');
var constants = require('trustnote-pow-common/config/constants.js');
var conf = require('trustnote-pow-common/config/conf.js');
var desktopApp = require('trustnote-pow-common/base/desktop_app.js');
var db = require('trustnote-pow-common/d... |
d3.select('#lightTheme').on('click',function(){
d3.select('body').classed('dark', false);
});
d3.select('#darkTheme').on('click',function(){
d3.select('body').classed('dark', true);
});
function createRandomIndicatorData(n,range,rand, startDate, timespan, idName) {
var data = {AvgData: {DataPoint... |
/*!
* jigsaw.js v1.0.0
* (c) 2019-2019 ZA-FE
* Released under the MIT License.
*/
import _regeneratorRuntime from "@babel/runtime/regenerator";
import _defineProperty from "@babel/runtime/helpers/defineProperty";
import _typeof from "@babel/runtime/helpers/typeof";
import _classCallCheck from "@babel/runtime/helper... |
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2019 New Vector Ltd
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 la... |
/**
* Created by capricorncd 9/7/2018
* https://github.com/capricorncd
*/
import dom from '../dom-core'
import util from '../util'
import broadcast from '../broadcast'
import { browser, touchEvents } from './touch-event'
import { handleTouches, getTouches } from './touch-zoom'
import { window, document } from 'ssr-w... |
//To build prod version, run 'uglifyjs -c --mangle --toplevel --keep-fnames -- main.js > main.prod.js'
const MCVER = "1.1.1";
const MESSG = document.getElementById("event-container");
const BOARD = document.getElementsByTagName("board-container")[0]; //The base element for the board
const GRIDS = document.getElementsB... |
import ShaderUtils from 'webgl/ShaderUtils.js';
import QuadDrawingUtils from 'webgl/QuadDrawingUtils.js';
import {Rect, Array2D, Utils} from 'utils/Utils.js';
import WebGLStateManager from 'webgl/WebGLStateManager.js';
class GPUArray{
constructor(dims, tex){
this.dims = dims;
this.tex = tex;
}
... |
/**
* Returns true, if point lies inside the circle, otherwise false.
* Circle is an object of
* {
* center: {
* x: 5,
* y: 5
* },
* radius: 20
* }
*
* Point is object of
* {
* x: 5,
* y: 5
* }
*
* @param {object} circle
* @param {object} point
*... |
let cm = {
timers: {},
needsLava: ["Emerald", "Amethyst", "Ruby", "Sapphire", "Steam", "Volcano", "Gem Cutter"],
currentResources: {},
thresholds: {"Lava-Auto-Threshold": 100, "Volcano-Auto-Threshold": 5, "Generator-Auto-Threshold": 5},
other: {hideButtons: true},
createButton: (text, id, classes = "") => {
let... |
function loadStarData( dataFile, callback ){
var xhr = new XMLHttpRequest();
setLoadMessage("Fetching stellar data");
xhr.addEventListener( 'load', function ( event ) {
var parsed = JSON.parse( xhr.responseText );
// console.log(parsed);
if( callback ){
setLoadMessage("Parsing stellar data");
callbac... |
import React, {Component} from 'react';
import Avatar from '@material-ui/core/Avatar';
import Button from '@material-ui/core/Button';
import CssBaseline from '@material-ui/core/CssBaseline';
import TextField from '@material-ui/core/TextField';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import Fo... |
var util = require('./util');
var Attribute = require('./attribute');
var Packet = module.exports = function Packet ( auth ) {
this.raw = new Buffer(20);
this.doc = {
type: { obj: 0, raw: this.raw.slice(0, 2) },
length: { obj: 0, raw: this.raw.slice(2, 4) },
cookie: { obj: '',... |
//var ReactGridLayout = require('react-grid-layout');
import React, {Component, PropTypes} from 'react';
import PureRenderMixin from 'react/lib/ReactComponentWithPureRenderMixin';
import ReactGridLayout from 'react-grid-layout';
import { Responsive, WidthProvider } from 'react-grid-layout';
import {connect} from 'react... |
'use strict';
/**
* 弹出层组件.
*
* @author Kafuu_Chino <<EMAIL>>
* @version 1.1.2
*/
/**
* 弹出层对象
* @class
* @since 1.0
*/
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { t... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
"use strict";
// Copyright (C) 2016 <NAME>
// MIT License. See LICENSE file for details.
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Package poly1305 implements Poly1305 one-time message authentication algorithm.
*/
var constant_time_1 = require("@stablelib/constant-time");
var wipe_1 = requi... |
'use strict';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerabl... |
"use strict";
/**
* @license
* Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of c... |
goog.module('os.layer.preset.PresetMenuButton');
goog.module.declareLegacyNamespace();
const LayerPresetManager = goog.require('os.layer.preset.LayerPresetManager');
const {getImportActionManager} = goog.require('os.im.action');
const MenuButtonCtrl = goog.require('os.ui.menu.MenuButtonCtrl');
const Menu = goog.requir... |
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise... |
// Constants
const DEBUG = false;
const WEBSOCKETS_URL = 'ws://127.0.0.1:8080/';
const TICK_MANUAL = 0;
const TICK_AUTO = 1;
const TILE_UNKOWN = 0;
const TILE_FLOOR = 1;
const TILE_CHEST = 2;
// App
let websocket, mapMeshesGroup, floorGeometry, cubeGeometry,
unkownMaterial, floorMaterial, chestMaterial;
const l... |
import React, { Component } from "react";
import { ApiPromise } from "@polkadot/api";
import { Redirect } from "react-router-dom";
import axios from "axios";
import Button from "react-bootstrap/Button";
import Modal from "react-modal";
import Loader from "react-loader-spinner";
import Identicon from "@polkadot/react-id... |
var express = require('express');
var app = express();
var path = require('path');
var http = require('http').Server(app);
var io = require('socket.io')(http);
var cookie = require('cookie');
var moment = require('moment');
var quadtree = require('./libs/quadtree');
var sat = require('sat');
var validator = require('va... |
const illionLabels = [
null, null, null, 'Billion',
'Trillion', 'Quadrillion', 'Quintillion', 'Sextillion',
'Septillion', 'Octillion', 'Nonillion', 'Decillion',
'Undecillion', 'Duodecillion', 'Tredecillion', 'Quattordecillion',
'Quindecillion', 'Sexdecillion', 'Septendecillion', 'Octodecillion',
'Novemdecillion',... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
// var THIS_DOMAIN="http://bettingisbelieving.com"
var View = Object.create(Widget);
function makeView(graphWidth, graphHeight, bayesVar)
{
var borderWidth = 1;
var view = Object.create(View);
view.width = graphWidth;
view.height = graphHeight;
view.setShape(new createjs.Container());
view.back... |
const fs = require("fs");
const path = require("path");
const express = require("express");
const session = require("express-session");
const bodyparser = require("body-parser");
const hbs = require("hbs");
const cookieparser = require("cookie-parser");
const mongoose = require("mongoose");
const busboy = require("conn... |
'use strict';
const DEFAULT_SOURCE_PREFIX = "..";
const DEFAULT_REG = /^(?!\.).*/;
const DEFAULT_BREADCRUMB_CHAR = " > ";
const DEFAULT_INDEX_FILE = "README.md";
const DEFAULT_INDEX_LENGTH = 3;
const tags = {
author: ["Name"],
version: ["Current Version"],
param: ["Parameter Name", "Description"],
"return": ["Ret... |
"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... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined;
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _defineProperty3 = _interopRequireDefault(_defineProperty2)... |
// Use this variable to set up the common and page specific functions.
var openWARP = {
// All pages
common: {
init: function () {
// JavaScript to be fired on all pages
}
},
landing: {
init: function () {
// JavaScript to be fired on landing pag... |
// 获取cookie、
export function getCookie(name) {
const value = '; ' + document.cookie;
const parts = value.split('; ' + name + '=');
if (parts.length === 2) {
return decodeURIComponent(parts.pop()
.split(';')
.shift());
}
}
// 设置cookie,增加到vue实例方便全局调用
export function setCookie(c_name, value, expir... |
/*jshint esnext:true, eqnull:true, undef:true */
/*globals require, window */
var d3 = require('d3');
var moment = require('moment');
import {d3textWrap, range, ColorTool, uuid4} from './utils';
import {BaseRenderingPlugin} from './plugin';
var LEGEND_CLASS = 'upiq-legend';
var SEL_LEGEND = 'g.' + LEGEND_CLASS;
ex... |
var mCanvas = document.getElementById('mCanvas'),
overlay = document.getElementById('overlay'),
mctx = mCanvas.getContext('2d'),
msize = {w: mCanvas.width, h: mCanvas.height},
mfocus = false,
renq = [],
highRenq = [],
above_high_renq = [],
images = {},
cursor = {img: 'pointer', grab: {} },
background = {value... |
'use babel';
'use strict';
import Discord from 'discord.js';
import { LocalStorage } from 'node-localstorage';
import winston from 'winston';
import request from 'request-promise-native';
import semver from 'semver';
import Config from './config';
import Permissions from './permissions';
import Util from './util';
imp... |
var modoEdicion = false;
var id = 0;
var usuarioValido = false;
var contrasenaValido = false;
var repContrasenaValido = false;
var nombreValido = false;
var apellidoPaternoValido = false;
var apellidoMaternoValido = false;
var correoValido = false;
var telefonoValido = false;
var contrasenaIguales = false;
function ge... |
var http = require('http'),
https = require('https'),
zlib = require('zlib'),
url = require('url'),
extend = require('extend'),
agentFactory = require('./advanced_agent'),
AskerError = require('./error');
/**
* Shorthand to call Object#hasOwnProperty in context of the obj with propName argumen... |
// Copyright 2020 <NAME>
//
// 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 ... |
import format from '/utils/common/js/format'
import { chooseImage, getCurrentLocation } from '/utils/API'
import { signDetail,signOutPatrol,checkDistance } from '/api/sign/index'
import Global from '/Global'
let app = new Global()
Page({
data: {
shopType: '', // 当前客户类型
shopIndex: '', // 客户类型索引
shopTypes... |
const request = require("request");
const path = require("path");
const twit = require("twit");
const log = require("../logger")("Twitter Monitor V1");
const hookcord = require('hookcord');
const Tesseract = require("tesseract.js");
var QrCode = require('qrcode-reader');
var qr = new QrCode();
const fetch = require('no... |
/* eslint-disable no-unused-vars */
/* eslint no-unused-expressions: 0 */
/* eslint no-sequences: 0 */
import Prism from 'prismjs';
import React, { useCallback, useMemo, useState } from 'react';
import { useParams } from 'react-router-dom';
import { atom, useRecoilState, useRecoilValue } from 'recoil';
import { connect... |
var baseurl;
baseurl = $("#baseURL")[0].value;
//Funcion para inicializar los cronometros y timeouts de cada usuario en 0
function crearCronometros() {
let datos = $("#table tr.datos");
datos.each(function (e, value) {
cronometros[value.childNodes[0].innerText] = 0;
timeouts[value.childNodes[0].innerText] = 0;
... |
import fs from 'fs';
import path from 'path';
import http from "http";
import _ from 'lodash';
import SocketIoServer from 'socket.io';
import Koa from 'koa';
import koaBody from 'koa-body';
import Router from 'koa-router';
import serve from 'koa-static';
import isElectron from 'is-electron';
import {getImageSize, getUn... |
//0.1.5
//import js method
load("script/ScriptData.js");
/** ScriptData.jsで使用 */
data_prefix = "AirDefenseLog_";
AirBattleDto = Java.type("logbook.dto.AirBattleDto");
DataType = Java.type("logbook.data.DataType");
BattleExDto = Java.type("logbook.dto.BattleExDto");
Item = Java.type("logbook.internal.Item");
Ship = J... |
const LIB = require("bash.origin.lib").forPackage(__dirname).js;
const PATH = LIB.path;
const FS = LIB.FS_EXTRA;
const CODEBLOCK = LIB.CODEBLOCK;
const BO = LIB.BASH_ORIGIN;
exports.forConfig = function (CONFIG) {
// TODO: Better contextualized default '.rt' path.
const baseDistPath = CONFIG.dist ? CONFIG.... |
import {observable, action, flow, computed, toJS} from "mobx";
import UrlJoin from "url-join";
import {retryRequest} from "Utils/retryRequest";
import {v4 as UUID, parse as UUIDParse} from "uuid";
import CountryCodesList from "country-codes-list";
// 10% service fee
const SERVICE_FEE_RATE = 5;
const PUBLIC_KEYS = {
... |
/*
* Copyright 2019-2021 <NAME> <<EMAIL>>
*
* 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 ag... |
const WxworkHelperFn = require('../common/wxworkHelper.js');
// department
const __departmentFieldMap = [
[ 'departmentId', 'departmentParentId', 'departmentName', 'departmentNameEn', 'departmentOrder' ],
[ 'id', 'parentid', 'name', 'name_en', 'order' ],
[ 'number', 'number', 'string', 'string', 'number' ],
];
... |
/*!
* Start Bootstrap - Freelancer v6.0.4 (https://startbootstrap.com/themes/freelancer)
* Copyright 2013-2020 Start Bootstrap
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-freelancer/blob/master/LICENSE)
*/
// TODO: separate the visualization for JPS/ wolfram + google ...
// =... |
'use strict'
const nem = require('nem-sdk').default;
const proxy = "https://cors-anywhere.herokuapp.com/";
const cryptoPaymentTemplateData = {"api": {}, "deposit": {}}
const cryptoPaymentTemplatePaymentData = {
"time": "",
"txHash": "",
"invoiceJpy": 0,
"lastRate": 0.0000,
"invoiceAmount": 0.0,
"receivedJPY... |
import React from "react";
import { ethers } from "ethers";
import SupplyChainArtifact from "../contracts/SupplyChain.json";
import contractAddress from "../contracts/contract-address.json";
import { Loading } from "../components/Loading";
import { TransactionErrorMessage } from "../components/TransactionE... |
import React, { useState, useEffect } from "react";
import * as L from "leaflet";
import axios from "axios";
import Layout from "components/Layout";
import Map from "components/Map";
import Col from "react-bootstrap/Col";
import Row from "react-bootstrap/Row";
import Container from "react-bootstrap/Container";
import ... |
"use strict";
function pruebas1() {
console.log("string de salida por consola");
}
function pruebas2() {
var sentido = prompt("El sentido de la vida es: ");
if (sentido === "42") {
alert("Ten viajero, toma tu toalla");
} else {
alert("No sabes nada Juan de las nieves");
}
}
function variables2() {
... |
/**
* @version 0.43
*/
import React, { PureComponent } from 'react'
import { ThemeContext } from '../theme/ThemeProvider'
import { ScrollView, StyleSheet, TouchableOpacity, View } from 'react-native'
import ListItem from '@app/components/elements/new/list/ListItem/Setting'
import NavStore from '@app/componen... |
/// <reference path="../typings/phaser.d.ts" />
const gameOptions = {
width: 1920,
height: 1500,
}
const playerOptions = {
playStartY: gameOptions.height * .3,
playWidth: gameOptions.width * .1,
chestStartY: gameOptions.height * .775,
chestWidth: gameOptions.width * .15,
}
let ... |
//
// This content script must be run prior to domReady so that we perform some operations very early.
//
root = typeof exports !== 'undefined' && exports !== null ? exports : (window.root != null ? window.root : (window.root = {}));
// On Firefox, sometimes the variables assigned to window are lost (bug 1408996), so ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.