text stringlengths 5.97k 41.2k |
|---|
'use strict';
const { MessageEmbed, MessageActionRow, MessageButton, Permissions } = require('discord.js');
const { SlashCommandBuilder } = require('@discordjs/builders');
const conn = require('./../utils/mongodb');
const settings = conn.models['settings'];
const paginate = require('./../utils/paginate');
async functi... |
$(function() {
$(document).on("keydown", "input[data-type='number']", function(e) {
isNumber(e);
});
$(document).on("keydown", "input[data-type='date']", function(e) {
isNumberWithDash(e);
});
$(document).on("input", "input[data-thousand-separator='true']", function() {
var... |
var PAGE_STATE = {},
FIT_PADDING = 20;
const helper = {
showLoader: function () {
$(".loader_inner").fadeIn(), $(".loader").delay(400).fadeIn("slow");
},
hideLoader: function () {
$(".loader_inner").fadeOut(), $(".loader").delay(400).fadeOut("slow");
},
};
function fitConstraints(e, t, i, n) {
var o... |
/**
*发展用户真实性测试页面
* by:CaoRuining
*/
import React, { PureComponent, Fragment } from 'react';
import {connect} from 'dva';
import { Card, Row, Col, Button, Table, Checkbox,DatePicker,Select } from 'antd';
import moment from 'moment';
import yangshi from './index.less';
import tipsIcon from './tips.png'
import PageHea... |
import { TOKENS, tokenize, getTokenFriendlyHint } from './lexer.js';
import {
DocumentNode,
ContentNode,
BlockNode,
LineNode,
OptionsNode,
OptionNode,
DivertNode,
VariationsNode,
VariableNode,
NumberLiteralNode,
BooleanLiteralNode,
StringLiteralNode,
NullTokenNode,
ConditionalContentNode,
... |
'use strict'
/**
* Module dependencies
*/
var noop = function () {}
var fs = require('fs')
var fsp = require('fs-promise')
var path = require('path')
var async = require('async')
var extend = require('extend')
var uuid = require('uuid')
var zlib = require('zlib')
var glob = require('glob')
var streamifier = require(... |
//Get the userProfile to work out the Unit.
// TODO: Check if they are in multiple units and allow them to select.
async function getProfile(container,lastuser) {
container.innerHTML = "Getting Profile ...";
const response = await fetch("https://members.terrain.scouts.com.au/profiles", {
method: 'GET', mode: 'c... |
var myCodeMirror = null;
var editViewModel = null;
depp.require(['ui', 'fileUpload', 'editViewModel', 'DOMDelayed'], async function () {
// set the pop comp message
addEventListener('POP-CUSTEL', function (evt) {
const msg = evt.detail
//console.log(msg)
var old = window.myCodeMirror... |
import React from 'react';
import { StyleSheet,
View,
Text,
StatusBar,
TouchableWithoutFeedback,
ImageBackground,
ScrollView,
Dimensions,
Platform,
AsyncStorage
} from 'react-native';
import Polyline from '@mapbox/polyline';
import MapView, { PROVIDER_GOOGLE, Marker } from 'react-... |
/* global createCanvas*/
/* global width*/
/* global height*/
/* global background*/
/* global line*/
/* global resizeCanvas*/
/* global ellipse*/
/* global mouseX*/
/* global mouseY*/
/* global strokeWeight*/
/* global rect*/
const k = 9*(Math.pow(10, 9));
const e = 2.718281828;
function update(dt, particles, vecto... |
'use strict';
viewModel.ByProject = new Object();
var bp = viewModel.ByProject;
vm.currentMenu('By Project');
vm.currentTitle('By Project');
vm.isShowDataAvailability(false);
vm.breadcrumb([
{ title: "Monitoring", href: '#' },
{ title: 'By Project', href: viewModel.appName + 'page/monitoringbyproject' }]);... |
function contentIcons() {
// 创建style
var styleNode = document.createElement("style");
styleNode.setAttribute("type", "text/css");
var icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAvElEQVQ4T2NkoBAwIukXALL9gViBgJkPgPIbgfgDSB2yAQVAfj+RDioEqpuAbkADUKAeiB0JGLIfKN8IxCD1KC6AGYDsqgtANf+B... |
// Copyright (c) 2011 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.
// This file is generaged by gen_keyboard_layouts.py
var KEYS_FR_POPUP_E = [
[
new PopupKey(C('\u0117', 'U+0117'), C('\u0116', 'U+0116'),
... |
module.exports = Server
var bencode = require('bencode')
var debug = require('debug')('bittorrent-tracker')
var dgram = require('dgram')
var EventEmitter = require('events').EventEmitter
var http = require('http')
var inherits = require('inherits')
var series = require('run-series')
var string2compact = require('strin... |
/*
Copyright 2018 Insights Network
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ... |
$(function(){
$('#j_mxxy_list_wrap').on('mouseover','li',function(){
var $this=$(this), index=$(this).index();
$this.addClass('opacity').siblings().removeClass("opacity");
$(".mxxy-intro-box .mxxy-intro").eq(index).show().siblings().hide();
});
$('body').on('click','.j_btn_qq',funct... |
import paper from "paper";
import * as THREE from "three";
import * as Colors from "../colors";
import LinkedList from "../../utils/linkedList";
import GeometryGraph from "../../geometry/geometryGraph";
export function renderCustomComponentFeature(feature, color) {
let position = feature.getValue("position");
... |
var cls = require("../lib/class");
var _ = require('underscore');
const World = require("./world").World;
const Territory = require("./world").Territory;
var GameLogic = require("./gameLogic");
var MsgType = require('../message.js').MsgType;
module.exports = Logic;
function Logic(opt) {
return new Conquer(opt.ove... |
const formatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: 'USD',
minimumFractionDigits: 2
})
// show list of products when 'product' clicked
$(document).on('click', '#product', function(){
// bind product events
// pagination controls click event
$(document).off('click',... |
var Network = require('./architecture/network');
var methods = require('./methods/methods');
var config = require('./config');
// Easier variable naming
var selection = methods.selection;
/**
* Runs the NEAT algorithm on group of neural networks.
*
* @constructs Neat
*
* @param {number} input - The input size of the ... |
function ProductImport() {
this.category_id = null;
this.sub_category_id = null;
this.data = [];
this.filename = null;
this.sheetname = null;
this.filepath = null;
this.foldername = null;
this.files = [];
this.DOMErrors = {
table: `<table class="table table-hover nowrap" id="... |
import React, { Component } from "react";
import "./App.css";
import DialControl from "./components/DialControl";
import ConfigForm from "./components/ConfigForm";
class App extends Component {
insertElement(e, data){
// Modify the values of the intervals in data with new element
// Find overlapped elements, jus... |
setTimeout(function () {
window.location.replace('../html/.index.html');
}, 13000);
const MathEx = {
degrees: function (radian) {
return (radian / Math.PI) * 180;
},
radians: function (degree) {
return (degree * Math.PI) / 180;
},
clamp: function (value, min, max) {
return Math.min(Math.max(value, min), ma... |
import { MythicTabPanel, MythicTabLabel } from '../../../components/MythicComponents/MythicTabPanel';
import React, { useEffect, useCallback } from 'react';
import { gql, useLazyQuery, useQuery } from '@apollo/client';
import { snackActions } from '../../utilities/Snackbar';
import { MythicDialog } from '../../MythicCo... |
/*
MythDeck - design.js
Por mitosan/mscore/misto_quente
Help me - please
*/
function animSettings(anim){
if (anim === 1){
$(this).off('keypress');
onSettings = true;
$(configsDiv).css({width: '850px'});
$(app).fadeOut({duration: 300, queue: false});
$(bo).animate({backgroundColor: '#222'}, 600);
$(theSe... |
//let maxNum = 0;
let gID = 0;
let divRedComment;
function resize() {
let divListAccounts = document.getElementById('listAccounts');
let children = divListAccounts.childNodes;
let divRow;
let colName, colAmount, colComment, colPanel;
for(child in children){
divRow = children[child].chil... |
var hotel = [
{"type":"1. % CLIENTELE FEMALE","month":"Jan","count":26},
{"type":"1. % CLIENTELE FEMALE","month":"Feb","count":21},
{"type":"1. % CLIENTELE FEMALE","month":"Mar","count":26},
{"type":"1. % CLIENTELE FEMALE","month":"Apr","count":28},
{"type":"1. % CLIENTELE FEMALE","month":"May","count":20},
... |
// txhash; 346fdcf4c1cd2ee8d0d26d3514652b44609b1f5a5486844006283699fcb8c08a
// n1ibjQU2Z9RbB578tFkRe1ZkUw6Hg3Av9As
// txhash: cec39a6270922c6e9e4d77752ed7de9eb9c7d5d0e251beb352fbfbfcd92b7ef5
// n1ypd7qGoqsmxeNsnj6r736TmpJQUxbLWa6
/**
* 从所有城市列表中获取北京信息
* 结果格式
* {
* keyword: 'beijing',
* name: '北京',
* citycode... |
import { columeHeader_word, columeHeader_word_index, luckysheetdefaultFont } from '../controllers/constant';
import menuButton from '../controllers/menuButton';
import { isdatatype, isdatatypemulti } from '../global/datecontroll';
import { hasChinaword,isRealNum } from '../global/validate';
import Store from '../store'... |
const moduleName = "dnd5e-character-monitor";
// Setting CONSTS
let trashIconSetting;
const TEMPLATE_DIR = `modules/${moduleName}/templates`
const ITEM_EQUIP_TEMPLATE = `${TEMPLATE_DIR}/itemEquip.hbs`;
const ITEM_ATTUNE_TEMPLATE = `${TEMPLATE_DIR}/itemAttune.hbs`;
const SPELL_PREPARE_TEMPLATE = `${TEMPLATE_DIR}/spellPr... |
import React, { useEffect, useRef } from 'react';
import axios from 'axios';
function PatchTable(props) {
const { width, height, patchURLs, patchScatterData, numClusters, features, filteredData, passSelectedFeature, selectedPatchUpdate } = props;
const svgRef = useRef();
const d3 = window.d3;
const colo... |
'use strict';
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]; } } }... |
import { createElement } from 'react';
import dynamic from 'dva/dynamic';
import pathToRegexp from 'path-to-regexp';
let routerDataCache;
const modelNotExisted = (app, model) =>
// eslint-disable-next-line
!app._models.some(({ namespace }) => {
return namespace === model.substring(model.lastIndexOf('... |
/* Gratefully copied from https://github.com/brentvatne/react-native-animated-demo-tinder */
'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
StyleSheet,
Text,
View,
Animated,
PanResponder,
Dimensions,
Image
} from 'react-native';
import clamp from 'c... |
import { log, MODULE_ID, FORCE_VISION_DEBUG } from "./module.js";
/**
* Restrict the visibility of certain canvas assets (like Tokens or DoorControls) based on the visibility polygon
* These assets should only be displayed if they are visible given the current player's field of view
*/
// no args, no return... |
/***
* DONE: Reduce layout processing on data insert
* DONE: Add notify data set changed and notify data insert option in data source
* DONE: Add on end reached callback
* DONE: Make another class for render stack generator
* DONE: Simplify rendering a loading footer
* DONE: Anchor first visible index on any inse... |
var pg = require('pg');
var utf8 = require('utf8');
var dateformat = require('dateformat');
var utils = require(__dirname + '/../utils.js');
var connection = function(name, type, options, book){
this.name = name;
this.type = type;
this.options = options;
this.book ... |
import * as vec3 from "./glmatrix/vec3.js";
import * as vec4 from "./glmatrix/vec3.js";
import * as mat4 from "./glmatrix/mat4.js";
import * as mat3 from "./glmatrix/mat3.js";
import { Utils } from "./utils.js";
import {DefaultRenderLayer} from "./defaultrenderlayer.js"
var WEBGL_TYPE_SIZES = {
'SCALAR': 1,
'... |
import $ from 'jquery';
class Table {
constructor(options) {
this.CONST = {
COLOR: {
green: '#0DB3A6',
grey: '#CCCCCC'
},
MENU: {
0: "A",
1: "B",
2: "C",
3: "D",
... |
var fs = require('fs')
var path = require('path')
var _ = require('lodash')
var chalk = require('chalk')
var ansiHTML = require('ansi-html')
var totalmem = require('os').totalmem()
var pidusage = require('pidusage')
var url = require('url')
var socketIOClient = require('socket.io-client')
var pm = require('./pm')
var s... |
import React, { Component } from 'react';
import '../styles/App.less';
import * as Setting from "../utils/Setting";
import {
CloseCircleTwoTone, DatabaseOutlined,
DownOutlined, FileAddOutlined,
HomeOutlined,
InfoCircleTwoTone,
LogoutOutlined, PlusOutlined,
SettingOutlined,
FileSearchOutlined,
UserAddOut... |
import React, { Component } from "react";
import { View, FlatList, TextInput, Keyboard, NetInfo, Platform, TouchableOpacity, Text, ScrollView, KeyboardAvoidingView } from "react-native";
import FastImage from 'react-native-fast-image';
import Dialog, { ScaleAnimation } from 'react-native-popup-dialog';
import Swiper f... |
import Gantt from '../core/core';
const LOCKED = Number.MAX_VALUE;
const STYLE_ARROW = 1;
const LEFT = 0;
const RIGHT = 1;
const SIDE_COUNT = 2;
const CONNECTOR_COUNT = 4;
const INCOMINGS = new Array(4);
INCOMINGS[Gantt.constraintTypes.START_TO_START] = 0;
INCOMINGS[Gantt.constraintTypes.START_TO_END] = 2;
INCOMINGS... |
"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... |
/*
* @flow
*/
import { Constants } from 'lattice';
const { OPENLATTICE_ID_FQN } = Constants;
export const SEARCH_PREFIX = 'entity';
export const APP_NAME = 'psa';
export const ORG_IDS = {
DEMO_ORG: '1d5aa1f4-4d22-46a5-97cd-dcc6820e7ff8',
LINCOLN_SD: 'ad76f03a-57ad-4aa9-8007-4adad5130ac7',
PCM_DEMO_ORG: 'dd9... |
'use strict';
/*初始化fastclick函数*/
FastClick.attach(document.body);
//游戏对象
var Game = function(){
this.time = 30; //游戏总的时间
this.state = 0; //游戏的状态,0表示可买状态,1表示不可买状态
this.curTime = 0; //游戏当前的时间
}
var mygame = {};//全局的游戏变量
var myname = "";
var myinfo = {};
var socket = io.connect('http://localho... |
/**
* Copyright (c) 2018, Kinvey, Inc. All rights reserved.
*
* This software is licensed to you under the Kinvey terms of service located at
* http://www.kinvey.com/terms-of-use. By downloading, accessing and/or using this
* software, you hereby accept such terms of service (and any agreement referenced
* there... |
//移动端版本兼容
var phoneWidth = parseInt(window.screen.width);
var phoneScale = phoneWidth / 640;
var ua = navigator.userAgent;
var cookieDomain = ".nurunci.com";
if (/Android (\d+\.\d+)/.test(ua)) {
var version = parseFloat(RegExp.$1);
if (version > 2.3) {
document.write('<meta name="viewport" content="wid... |
import React, {useEffect, useRef} from 'react';
import {Button, IconButton} from '@material-ui/core';
import Paper from '@material-ui/core/Paper';
import Typography from '@material-ui/core/Typography';
import { toLocalTime } from '../../utilities/Time';
import { copyStringToClipboard } from '../../utilities/Clipboard';... |
var mongoose = require('mongoose'),
db = require('../lib/database'),
Tx = require('../models/tx'),
Address = require('../models/address'),
AddressTx = require('../models/addresstx'),
Richlist = require('../models/richlist'),
Stats = require('../models/stats'),
settings = require('../lib/sett... |
var semver = Npm.require('semver');
// The mori library is an awesome persistent data library. But it's also giant,
// so we don't load it until we actually want to create a mori data structure.
// Call ensureMoriLoaded before any code which creates a mori data structure.
mori = null;
ensureMoriLoaded = function () {
... |
// create a new div with id "ant-rack-app" and append it to document.body
var antRackApp = document.createElement("div");
antRackApp.id = "ant-rack-app";
antRackApp.style = "z-index:2147483647";
document.body.append(antRackApp);
// check if the page is products page
var isProductsPage = location.pathname.includes("/pr... |
/* eslint "no-console": "off" */
const path = require("path");
const _ = require("lodash");
const moment = require("moment");
const fse = require('fs-extra')
const low = require('lowdb')
const FileSync = require('lowdb/adapters/FileSync')
const twitterEmbed = require('./utils/transformers/tweet')
const instagramEmbed ... |
import harden from '@agoric/harden';
import { QCLASS, makeMarshal } from '@agoric/marshal';
import { makeLiveSlots } from './liveSlots';
import { makeDeviceSlots } from './deviceSlots';
import makePromise from '../makePromise';
import makeVatManager from './vatManager';
import makeDeviceManager from './deviceManager';... |
/**
* 【作废】上传图片列表
*/
import React, { Component } from 'react';
import { connect } from 'dva';
import { Form, Input, Button, Icon, Row, Col, Select, Upload, Modal, notification } from 'antd';
import Storage from '@/utils/storage';
import { checkRole, hasErrors, file2base64 } from '~/utils/utils';
import styles from './... |
/*
Copyright 2016 IBM All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... |
/**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
import { cleanCoords, distance, bearing, polygon as polygon$1, lineString, featureCollection, rewind, buffer, difference, multiPolygon, area, destination, segmentEach, lineIntersect, getCoords, booleanWithin, point, lineOffset, lineToPolygon } from '@turf/turf';
import polygonClipping from 'polygon-clipping';
/*
Vorg... |
import { equal, ok, deepEqual } from '@zoroaster/assert'
import { throws, notEqual } from 'assert'
import Context from '../context'
import { TextDecoder, TextEncoder } from '../../src'
/** @type {Object.<string, (c: Context)>} */
const T = {
context: Context,
'x-user-defined encoding'() {
equal(new TextEncoder... |
$(document).ready(function(){
// color switch for nav
var scroll_start = 0;
var startchange = $('#startchange');
var offset = startchange.offset();
if (startchange.length){
$(document).scroll(function() {
scroll_start = $(this).scrollTop();
if(scroll_start > offset.top) {
... |
const axios = require('axios')
const models = require('../models')
const { saveFileForMultihash } = require('../fileManager')
const { handleResponse, successResponse, errorResponse, errorResponseServerError } = require('../apiHelpers')
const config = require('../config')
const middlewares = require('../middlewares')
c... |
import React, {useState, useEffect} from 'react';
import Fuse from 'fuse.js'
import lunr from 'lunr'
import { withStyles } from '@material-ui/styles';
import { Grid, FormControlLabel, Checkbox, Container, TextField, ButtonGroup, Button, Link, IconButton, Card } from '@material-ui/core';
import KeyboardArrowUpIcon from... |
/*global require */
// GULP MESSENGER
// =============================================================================
// this is required to support .orange color
// eventually want to restore "use strict" waiting on chalk
var VERSION = require('./package.json').version;
var chalk = require('chalk');
... |
// 0x07011DE8 - 0x07011E00
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSPEndDisplayList, gsSP1Triangle, gsDPPipeSync, gsDPSetCombineMode,
gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList,
G_IM_FMT_RGBA, G_IM... |
console.clear();
// Polyfill for IE11
if (window.NodeList && !NodeList.prototype.forEach) {
NodeList.prototype.forEach = Array.prototype.forEach;
}
/**
* This class provides encapsulates the navigation as a whole. It is provided the base
* navigation element which it reads and recreates in the Pixi application
... |
const { expect, assert } = require("chai");
const truffleAssert = require('truffle-assertions');
const bn1e6 = ethers.BigNumber.from((10**6).toString());
const ZERRO = '0x0000000000000000000000000000000000000000';
const DEFAULT_ADMIN_ROLE = '0x0000000000000000000000000000000000000000000000000000000000000000';
const DE... |
/*
* TradingDesk Messages
*
* This contains all the text for the TradingDesk container.
*/
import { defineMessages, FormattedMessage } from 'react-intl';
import React from 'react';
export const scope = 'app.containers.TradingDesk';
export default defineMessages({
header: {
id: `${scope}.header`,
defaultMess... |
import EventEmitter from "events";
import {TASK_TIME_MONITOR} from "./constants";
const TIME_FOR_1MM_DISTANCE_Z = [
438.771,
325.857,
252.771,
211.571,
181.1,
158.257,
138.486,
124.043,
113.371,
104.214,
96.629,
88.986,
83.629,
78.343,
72.271,
68.443,
... |
/*Function bound to marker for button click*/
function markerClick(e){
//bool check to test if we are in a different popup
var added_seats = false;
//document.getElementById("popupTest").style.margin = "0em";
furnMap = getFurnMap();
activityMap = getActivityMap();
wb_activityMap = getWhiteboardActivityMap();
doc... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var react_intl_1 = require("react-intl");
var styled_components_1 = tslib_1.__importDefault(require("styled-components"));
var theme_1 = require("@atlaskit/the... |
/*
* Free FFT and convolution (JavaScript)
*
* Copyright (c) 2014 Project Nayuki
* https://www.nayuki.io/page/free-small-fft-in-multiple-languages
*
* (MIT License)
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Softw... |
/*show elements relevant to particular page from general html
take in an array of parent elements(parents) some of whose
children are to be displayed for specific pages if any of their classes is/are in the array of required classes*/
function showPage(required, parents){
// document.getElementById('name').innerHTM... |
import utils from "./utils";
const Renderer = function(boardElement, { hooks, options }) {
this.INTERSECTION_GAP_SIZE = 28;
this.GUTTER_MARGIN = this.INTERSECTION_GAP_SIZE - 3;
this.BASE_MARGIN = this.INTERSECTION_GAP_SIZE - 10;
this.hasCoordinates = boardElement.hasAttribute("data-include-coordinates");
thi... |
'use strict'
const wrongWords = require('./data/words');
async function validateText(text) {
return new Promise((resolve, reject) => {
try {
if (typeof (text) != 'string') {
let error = {
error: 'Undefined Value',
message: 'Please provide... |
/*
* TERMS OF USE - for http://obxsurfinfo.com/ - Surf info graphic
* Copyright 2014 RPS - ASA All rights reserved.
*/
function updateWidget(station){
currentStation = station
var today = new Date();
//total height
var widget_width = 850
var widget_height = 400
var module_spacing = 0
var ts_wid... |
"use strict";
var __assign = (this && this.__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];
}
return t;
};
var __awaiter = (this && th... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getInitialState = exports.isValidActiveDate = exports.isDateInMinMax = exports.prepareDate = exports.prepareDateProps = exports.prepareMinMax = exports.prepareViewDate = exports.prepareActiveDate = exports.onKeyDown = exports.naviga... |
// $Id: thickbox.js,v 1.8.2.19 2010/03/09 07:10:48 frjo Exp $
/*
* Thickbox 3.1 - One Box To Rule Them All.
* By <NAME> (http://www.codylindley.com)
* Copyright (c) 2007 <NAME>
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
// Initialize Thickbox.
Drupal.behaviors.initThi... |
const childProcess = require('child_process');
const path = require('path');
const fs = require('./source/utils/fs-async');
const npm = require('npm');
const semver = require('semver');
const browserify = require('browserify');
const electronPackager = require('electron-packager');
const Bluebird = require('bluebird');... |
const apisUrl='http://161.189.24.17:3005'
var store_id_sel;
var stores_sel;
var startDateTime='';
var endDateTime='';
var booth2store={};
var store_names={}
var all_data_in_floor={}
var cnt=0
const color_platter= ['#630063','#FF0091','#FF7D91','#FFAB91','#bdbdbd'];
const id2height={
'_801': 720000,
'_800': 60... |
/**
* ALttP Discord Bot
*/
// Import modules
const request = require('request'),
irc = require('irc'),
fs = require('fs'),
path = require('path'),
moment = require('moment'),
Discord = require('discord.js'),
staticCommands = require('./lib/static-commands.js'),
cooldowns = require('./lib/c... |
'use strict';
/**
* Module Dependencies
*/
// Needed for Express 4.x
var csrf = require('csurf'); // https://github.com/expressjs/csurf
var logger = require('morgan'); // https://github.com/expressjs/morgan
var express = require('express'); ... |
class Vec3 extends Float32Array{
constructor(ini){
super(3);
if(ini instanceof Vec3 || (ini && ini.length == 3)){
this[0] = ini[0]; this[1] = ini[1]; this[2] = ini[2];
}else if(arguments.length == 3){
this[0] = arguments[0]; this[1] = arguments[1]; this[2] = arguments[2];
}else{
this[0] = this[1] = ... |
/***************************File*Header**********************************
* File Name: TextStorm_window.js
*
* JS Description: This JS File contains TextStorm Editor Window
* Functions/Logic which are used in editor...
*
* IMPORTANT: This file gets loaded after successful boot of TextStorm
* ... |
'use strict'
var halfFloatTextures = false, floatTextures = false;
var helper;
function checkFloatTextures() {
var ctx = document.createElement( 'canvas' ).getContext( 'experimental-webgl' );
floatTextures = ctx.getExtension( 'OES_texture_float' );
halfFloatTextures = ctx.getExtension( 'OES_texture_half_... |
var util = require('util')
, fs = require('fs')
, Emitter = require('events').EventEmitter
, tips = require('../txt/tips')
, twei = require('../')
, twei_util = require('./util')
, color = twei_util.color
, Table = twei_util.Table
, argParser = twei_util.argParser
, open = twei_util.open
, confPa... |
/*
* This file is part of OsmInEdit, released under ISC license (see LICENSE.md)
*
* Copyright (c) <NAME> 2019
* Copyright (c) Daimler AG 2019
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and th... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.EuiTreeView = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _classnames = _interopRequireDefault(require("classnames"));
var _i18n = require("... |
var https=require('https');
var http = require('http');
var fs = require('fs');
const phantom = require('phantom');
const {baiduocr} = require('../image/baiduocr');
var basetime = 1536309600000; //Sat Sep 06 2018 08:00:00 GMT+0800
var head = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://w... |
Array.prototype.last = function() {
return this[this.length - 1];
};
Direction = Object.freeze({
NO_DIRECTION: 0,
UP: 1,
RIGHT: 2,
DOWN: 3,
LEFT: 4
});
Key = Object.freeze({
UP: 38,
RIGHT: 39,
DOWN: 40,
LEFT: 37,
PAUSE: 80,
RESET: 82
});
GameStatus = Object.freeze({
READY: 0,
PAUSED: 1,
... |
/*
* click:点击推事件
* view:跳转URL
* scancode_push:扫码推事件
* scancode_waitmsg:扫码推事件且弹出“消息接收中”提示框
* pic_sysphoto:弹出系统拍照发图
* pic_photo_or_album:弹出拍照或者相册发图
* pic_weixin:弹出微信相册发图器
* location_select:弹出地理位置选择器
* media_id:下发消息(除文本消息)
* view_limited:跳转图文消息URL
*/
var type_click="click";
var type_view="view";
$(function () {... |
'use strict';
/*eslint no-console: 'off' */
var fs = require('fs'),
path = require('path'),
pluginManager = require('../pluginManager.js'),
N = require('./api/parts/note.js'),
db = pluginManager.dbConnection();
console.log('Installing push plugin');
var dir = path.resolve(__dirname, '');
fs.unlink(d... |
const argv = require('minimist')(process.argv.slice(2));
const inquirer = require('inquirer');
const prompt = inquirer.createPromptModule();
// TODO: Implement an automatic help header with interactive and non-interactive usage, when using help non-interactively
class REPLClient {
/**
* Instantiate the CLI
* ... |
'use strict'
var AbstractTransport = require('./abstract')
var EventEmitter = require('events').EventEmitter
var freeice = require('freeice')
var merge = require('merge')
var myUtils = require('../utils')
var OneTpError = require('../error')
var Q = require('q')
var runtime = require('mm-runtime-info')
var SimplePeer ... |
import { getDataService, postDataService } from '../services/commonService'
import { routerRedux } from 'dva/router'
import { config, createDicNodes, jsUtil } from '../utils'
import { parse } from 'qs'
import { message } from 'antd'
import moment from 'moment'
/**
* 查询评估案件页面.
* 默认显示列表,若点击了某一个案件,则通过链接参数type切换到单案件页面.
... |
import Vue from 'vue'
import { USER_NAME, USER_INFO, ACCESS_NTOKEN } from "@/store/mutation-types"
import { welcome } from "@/utils/util"
import { login, logout } from "@/api/newpage"
const user = {
state: {
token: '',
ntoken: '',
username: '',
realname: '',
welcome: '',
avatar: '',
permis... |
// ==UserScript==
// @name Linksbase
// @description Скрипт установки заметок на страницах, показа посещённых страниц.
// @namespace PSVScripts
// @version 2.0.4
// @grant GM_registerMenuCommand
// @grant GM_xmlhttpRequest
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_deleteValue
// @grant GM_ge... |
const Text ={
es:{
"Continue":
"Continuar",
"Restart":
"Reiniciar",
"New Game":
"Juego Nuevo",
"Options":
"Opciones",
"Easy":
"Fácil",
"Medium":
"Medio",
"Hard":
"Difícil",
"Extreme":
"Ext... |
import { createElement, isNullOrUndefined } from '@syncfusion/ej2-base';
import { calculateSum, VisibleLabels, measureText, isCompleteAngle, getLocationFromAngle } from '../utils/helper';
import { Size, Rect, stringToNumber, getLabelFormat } from '../utils/helper';
import { axisLabelRender, radiusCalculate } from '../m... |
/* eslint-disable no-unused-vars */
import { Icon, Paper, Table, TableFooter, TablePagination, TableRow } from '@material-ui/core';
import moment from 'moment';
import PropTypes from 'prop-types';
import * as React from 'react';
import MTableActions from './m-table-actions';
import MTableBody from './m-table-body';
imp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.