text stringlengths 3.22k 29.5k |
|---|
'use strict';
var bcoin = require('bcoin');
var constants = bcoin.constants;
var utils = require('bcoin/lib/utils/util');
var crypto = bcoin.crypto;
var assert = require('assert');
var BufferWriter = require('bcoin/lib/utils/writer');
var BufferReader = require('bcoin/lib/utils/reader');
var opcodes = constants.opcode... |
import "../css/style.css";
import "../css/timeline.css";
import * as THREE from "three";
import zipperImg from "../assets/images/textures/zipper.png";
import rightImg from "../assets/images/textures/right.png";
import leftImg from "../assets/images/textures/left.png";
import frontImg from "../assets/images/textures/fro... |
import Widget from "common-micro-libs/src/jsutils/Widget"
import EventEmitter from "common-micro-libs/src/jsutils/EventEmitter"
import dataStore from "common-micro-libs/src/jsutils/dataStore"
import objectExtend from "common-micro-libs/src/jsutils/objectExtend"
import fillTempla... |
//I really hate writing javascript
//babby function to handle the occasional wait
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
//this initializes a webtorrent client
var client = new WebTorrent();
client.on('error', function (err) { console.log(err);})
//make request to server get... |
import { doBinaryRequest, _dubEncURIComp } from "./fetchHelpers";
import { matrixFBSToDataframe } from "../util/stateManager/matrix";
import { _getColumnSchema, _normalizeCategoricalSchema } from "./schema";
import {
addObsAnnoColumn,
removeObsAnnoColumn,
addObsAnnoCategory,
removeObsAnnoCategory,
addObsLayou... |
import { ComplexNumber } from "../math";
// this implementation is designed to work for real signal only, size = power of 2
// a public object to store public methods. this anonymous function will return this public object
// only fft(), ifft() and get() are exposed to public
/* Set up nth Root of Unity for use with FF... |
'use strict';
const _ = require('lodash');
const ScrollableList = require('nodeca.core/lib/app/scrollable_list');
// Page state
//
// - current_offset: offset of the current dialog (first in the viewport)
// - dialog_count: total count of dialogs
// - last_dialog_id: id of the last dialog
// - first_m... |
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
TakeoutModel = mongoose.model('TakeoutModel'),
_ = require('underscore');
var tcPath = '../../';
var ForestController = require(tcPath + 'controllers/bellwoods/forest/ForestController');
var TreesController = require(tcPath + 'controllers/be... |
var delegateApp = angular.module('delegateApp', []);
var allDelegates = {}, delegatesToWin = {};
var drawCount = 0;
allDelegates.democrats = 4765;
delegatesToWin.democrats = 2383;
var originalData = {};
delegateApp.controller('DataCtrl', function($scope, $http) {
$http.get('primarydata.json').then(function(res){
... |
kaboom({
global: true,
fullscreen: true,
scale: 2,
clearColor: [0, 0, 0, 1],
});
const isDebugging = false;
debug.inspect = isDebugging;
// Constants
const TILE_WIDTH = 64;
const PLAYER_SPEED = isDebugging ? 1000 : 200;
const OTHER_PLAYER_SPEED = 190;
const GHOST_SPEED = 50;
const BOUNCY_GHOST_SPEED = 90;
/... |
var bici;
var map;
var pins = [];
var trafficLayer;
var metroLayer;
var lineasEMTLista;
var todasParadasPorLinea;
function initMap() {
var peticionDir = 'JSON/bici.txt';
// Obtenemos los datos del JSON para hacer uso de ellos
var peticion3 = new XMLHttpRequest();
peticion3.open('GET', peticionDir,... |
'use strict';
var isDefined = angular.isDefined,
encodeURIComponent = window.encodeURIComponent,
isDate = angular.isDate,
toJson = angular.toJson,
isUndefined = angular.isUndefined,
isNull = function (arg) {
return arg === null;
},
isNumber = angular.isNumber,
isFunction = angula... |
$(document).ready(function() {
$("#selectFirst").trigger( "click" );
$("#paymentBox2").click(function(e){
swal({
title:"¿Está seguro de continuar con la compra?",
text:"",
icon:"warning",
buttons:['No','Si'],
dangerMode:true,
}).then((willDelete)=>{
if (willDelete){
... |
sheetProj.view.sheetLogic = {
setupUserInterface: function () {
projectBar.setBarThumbnails();
searchBar.setFilterButtons();
}
};
let projectBar={
//Set the grid of preview thumbnails (likely have a pointer to part of the array then continue to the right until 3 are created.).
setBarThumbn... |
import React, { useEffect, useState } from 'react'
import Rails from '@rails/ujs'
import Points from './Points.js'
// 彈跳視窗功能
const Alert = (props) => {
const { setAlertToggle, setPrivateToggle, data, privateToggle ,cssList ,jsList } = props;
const { title,user_name, random_url, heart_count, comments_count, view_co... |
import React, { Component } from "react";
import Button from "@material-ui/core/Button";
import Dialog from "@material-ui/core/Dialog";
import DialogActions from "@material-ui/core/DialogActions";
import DialogContent from "@material-ui/core/DialogContent";
import DialogContentText from "@material-ui/core/DialogContent... |
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)... |
// Main Objects to work with
const body = document.querySelector('body');
const container = document.querySelector('.container');
const deck = document.querySelector('.deck');
const header = document.querySelector('.header');
const desc = document.querySelector('.description');
/*
Clock Objects & Score Panel Outpu... |
/**
* Module Imports
*/
const { Client, Collection } = require("discord.js");
const { readdirSync } = require("fs");
const { join } = require("path");
const Discord = require('discord.js');
const client = new Client({ disableMentions: "everyone" });
const moment = require("moment");
client.login('');
client... |
class Collection {
constructor(content) {
this.folders = new Array();
this.parseItems = function(content){
for (const item of content.item){
this.folders.push(item.name);
if (item.item){
this.parseItems(item)
}
}
return [...new Set(this.folders)];
}
this.content = content;
this.nam... |
var keycodes = {
BACKSPACE: 8,
TAB: 9,
ENTER: 13,
ESCAPE: 27,
PAGE_UP: 33,
PAGE_DOWN: 34,
END: 35,
HOME: 36,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
DELETE: 46,
NUMPAD_ENTER: 108
};
var SuggestionDropdown = function(adapter, options) {
this.options = $.extend... |
import classNames from "classnames";
import createReactClass from "create-react-class";
import { runInAction } from "mobx";
import { observer } from "mobx-react";
import PropTypes from "prop-types";
import React from "react";
import { withTranslation } from "react-i18next";
import { Swipeable } from "react-swipeable";
... |
let score = 0;
let multiplier = 1;
let autoClicker = false;
let autoClickerSpeed = 0;
let sausage;
let buffer;
let multiplierCost = 20;
let newMillisGoal = 0;
let autoClickerCost = 100;
let clickCounter = 0;
let bg;
let clickSound;
let hatState = false;
let menuState = "game";
let someHat = [];
let hatSelected;
//Sets... |
/* eslint-disable no-console */
var express = require('express');
var app = express();
var MBTiles = require('mbtiles');
var q = require('d3-queue').queue();
var utils = require('./utils');
var objectAssign = require('object-assign');
var zlib = require('./node-zlib');
var pbf = require('pbf');
var fs = require('fs')... |
// `cp _env .env` then modify it
// See https://github.com/motdotla/dotenv
const config = require("dotenv").config().parsed;
// Overwrite env variables anyways
for (const k in config) {
process.env[k] = config[k];
}
// echo-sd
const execSync = require("child_process").execSync;
const mongoose = require("mongoose");... |
/*
Licensed to Jasig under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Jasig licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file
except in compliance with... |
const app = require('../../index.js');
const server = require('http').createServer(app);
const socketio = require('socket.io');
const db = require('../db/db');
const Push = require('./push');
const radius = 3000;
const dynamicResponder = require('../db/models/dynamicResponders');
const beacon = require('../db/models/be... |
// An attribute in which the DOM/SVG standard name is the same as the React prop name (e.g., 'accept').
var SAME = 0;
exports.SAME = SAME;
// An attribute in which the React prop name is the camelcased version of the DOM/SVG standard name (e.g., 'acceptCharset').
var CAMELCASE = 1;
exports.CAMELCASE = CAMELCASE;
expo... |
'use strict';
const express = require('express');
const path = require('path');
const morgan = require('morgan');
const mongoose = require('mongoose');
const config = require('../config/');
// const logger = require('./../../systemAppLogger');
const passport = require('./../authentication/passport.js');
const connectfl... |
/**
* CubicBezier2D.js
*
* @copyright 2011-2019 <NAME>
* @module CubicBezier2D
*/
import {Polynomial, SqrtPolynomial} from "kld-polynomial";
import {Matrix2D, Point2D, Vector2D} from "kld-affine";
import BoundingBox2D from "./BoundingBox2D.js";
import Polygon2D from "./Polygon2D.js";
/**
* CubicBezier2D
*/
... |
const { join, relative, sep } = require('path');
const webpack = require('webpack');
const compose = require('koa-compose');
const { IS_BUNDLED_PAGE } = require('avet-utils');
const {
WebpackDevMiddleware,
WebpackHotMiddleware,
createCompiler,
} = require('../../');
const clean = require('../clean');
const onDe... |
// @flow
/**
* Populate DB with sample data on server start
* to disable, edit config/environment/index.js, and set `seedDB: false`
*/
import User from "../api/user/user.model";
import Question from "../api/question/question.model";
import Lesson from "../api/lesson/lesson.model";
import Logger from "../api/logger... |
var jw;
var jw1;
var address;
$(function () {
//隐藏裁切头像1:2
$(".bigLabel ").css("display","none");
// 头像hover事件
$(".deHead").hover(function () {
$(".deHead img").css('opacity', '0.5');
$(".deHead span").css('display', 'block');
}, function () {
$(".deHead img").css('opac... |
var vec = require('./vector')
// 0 1 2 3 0 1 2 3
// 4 5 6 7 4 5 6 7
// 8 9 10 11 8 9 10 11
// 12 13 14 15 12 13 14 15
function matrixMultiply(mat2, mat1)
{
return [
mat1[0]*mat2[0]+mat1[1]*mat2[4]+mat1[2]*mat2[8]+mat1[3]*mat2[12],
mat1[0]*mat2[1]+mat1[1]*mat2[5]+mat1[2]*mat2[9]+mat1[3]*... |
const EmailAutofill = require('./UI/EmailAutofill')
const DataAutofill = require('./UI/DataAutofill')
const {
isApp,
notifyWebApp,
isDDGApp,
isAndroid,
isDDGDomain,
sendAndWaitForAnswer,
setValue,
formatAddress, isMobileApp
} = require('./autofill-utils')
const {
wkSend,
wkSendAn... |
"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 (Object.protot... |
//*****************************************************************************
//******************************* P L A Y E R *********************************
//*****************************************************************************
const STARTING_MONEY = 1337;
const SALARY_NONEU = [[600, 700, 800, 900... |
var stage, w, h, loader, startX, startY, wiggleDelta;
var background, chris, ground, pipe, pipes, rotationDelta, score, scoreOutline;
var started = false;
var startJump = false;
var jumpAmount = 110;
var jumpTime = 263;
var dead = false;
var KEYCODE_SPACE = 32;
var gap = 335;
var masterPipeDelay = 75;
var pipeDela... |
/**
* Remove an element from an array
*/
Array.prototype.remove = function (value) {
if (this.indexOf(value) !== -1) {
this.splice(this.indexOf(value), 1);
return true;
} else {
return false;
}
}
/**
* Change the value of a url parameter, without reloading the page.
*/
function ... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2018 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
var requestify = require('requestify');
var fs = require('fs');
var log4js = require('@log4js-node/log4js-api');
var util = require('util');
const path = require('path');
var keytar = require('keytar');
//create logger for this library
var log = log4js.getLogger('crownpeak-accessapi');
var opts = {
"apikey": "",
... |
// Transform the bubble data from the server into the chart format.
import { get as rxGet, set as rxSet } from 'state/rx'
import {getCatColormap } from 'color/colorCat'
import { sizeToRadius } from 'bubble/util'
import { tsvToArrays } from 'app/util'
import dataStore from 'cellTypeWork/dataStore'
const NAN_COLOR = '... |
import Lib from "thing-editor/js/engine/lib.js";
import group from "./group.js";
import Window from "./window.js";
import SelectEditor from "./props-editor/select-editor.js";
import game from "thing-editor/js/engine/game.js";
import {upload} from "./props-editor/uploadFile.js";
/*loading bits
1 - on demand
2 - earl... |
/* eslint-disable no-unused-vars */
/* eslint-disable no-console */
/* eslint-disable no-underscore-dangle */
/* eslint-disable no-undef */
// const mongoose = require('mongoose');
// const { MongoMemoryServer } = require('mongodb-memory-server');
const supertest = require('supertest');
const app = require('../src/app... |
// Global Datatables Locale Language
$(document).ready(function(){
$.extend( true, $.fn.dataTable.defaults, {
language: {
"sEmptyTable": "Tidak ada data yang tersedia pada tabel ini",
"sProcessing": "Sedang memproses...",
"sLengthMenu": "Tampilkan _MENU_ entri",
"... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var react = require('react');
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) {
symbo... |
addEventListener('fetch', (event) => {
event.respondWith(handleRequest(event.request))
})
const whitelist = require('./data/whitelist.json')
const { bayes, getFullName, getMessageSourceTitle } = require('./lib')
const data_compoundSurnames = require('./data/compound_surnames.json')
const data_lastnames = require('./... |
const { InlineModel } = require("./model");
const { isPrimitive, NextQLError } = require("./util");
//const set = require("lodash.set");
function set(obj, path, value) {
const len = path.length - 1;
let node = obj;
for (let i = 0; i < len; i++) {
if (node[path[i]] == undefined) {
if (Number.isInteger(path[i + ... |
import Events from './events';
import { getBaseUrl } from './base-url';
import Speaker from './speaker';
import log from './log';
import { version as FEED_VERSION } from '../package.json';
const METADATA_TIMEOUT = 10000;
const ADVANCE_TIMEOUT = 8000;
/**
* This class connects to a specific simulcast stream and
* s... |
var CILJS = require("../CilJs.Runtime/Runtime");
var asm1 = {};
var asm = asm1;
var asm0 = CILJS.findAssembly("mscorlib");
asm.FullName = "VirtualMethodBench.cs.ciljs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null";/* System.Void A.X()*/
asm.x6000001 = function X(arg0)
{
/* IL_00: nop */
/* IL_01: re... |
//VENTANA DE NUEVO ALQUILER!
const btnAlquiler = document.getElementById("idAlquiler");
btnAlquiler.addEventListener("click", ventanaAlquiler, true);
function ventanaAlquiler(e) {
//MOSTRAR VENTANA
let xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", estadoIdeal);
xhr.open(
"GET",
... |
var _ = require('lodash');
var path = require('path');
var async = require('async');
var moment = require('moment');
var request = require('superagent');
var Nightwatch = require('nightwatch/lib/index.js');
var child_process = require('child_process');
var selenium = require('selenium-server-standalone-jar');
var selen... |
// Author: Yum (Razz#3533)
const ChatCommandProcessor = new NativeClass('Terraria.Chat', 'ChatCommandProcessor');
const ChatManager = new NativeClass('Terraria.UI.Chat', 'ChatManager');
const Main = new NativeClass('Terraria', 'Main');
const GameCulture = new NativeClass('Terraria.Localization', 'GameCulture');
const ... |
alert("Ohh, Hello User");
var key1 = prompt("Please Enter your secret key..");
if (key1 == "aman10"){
var name1 = "<NAME>";
var date1 = "12.10.2001";
var img_addr1 = "img/aman1.jpg";
var img_addr2 = "img/aman2.jpg";
var img_addr3 = "img/aman3.jpg";
}
else if (key1 == "anu"){
va... |
import React from 'react';
import tt from 'counterpart';
import golos from 'golos-lib-js';
import Head from 'next/head';
import Header from '@/modules/Header';
import LoginForm from '@/modules/LoginForm';
import PendingTx from '@/modules/PendingTx';
import PermissionsList from '@/modules/PermissionsList';
import { call... |
'use strict';
import { domain } from './domain.js';
import { store } from './yetAnotherLocalStorageWrapper.js';
import { countryAliases, code2name } from './population.js';
import { factory } from './factory.js'
import { Countries } from './countries.js';
import { Measure } from './measure.js';
import { readToggles, g... |
// Modifications copyright 2020 Caf.js Labs and contributors
/*!
Copyright 2013 Hewlett-Packard Development Company, L.P.
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.or... |
import {parseSsFloat, parseSsInt} from './other'
import {getFirstRegexpMatch} from '../utils/js'
import {getDiffAndTypeFromOnlyDiffName} from '../song'
import {dateFromString} from '../utils/date'
import {trans} from '../Svelte/stores/i18n'
import {substituteVars} from '../utils/format'
import {SCORES_PER_PAGE, SONG_LE... |
const socket = io();
const messages = document.querySelector(".chat main > ul");
let deleteButtons = [];
const zoekRoomForm = document.querySelector(".filter section > input");
const messageForm = document.querySelector(".chat main form");
const messageInput = document.querySelector(".chat main form input[ty... |
// MY STEPS
// 1.Change values to numbers
// 2. get country and indicator codes for zambia only
// 3.create the svg
// 4.create groups for rural, urban, and total
// 5. append text and dates to each group of rural, urban and total
// 6. create the horizontal line for each group
// 7. create group which contains th... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
import React, {Component} from 'react';
import {Meteor} from 'meteor/meteor';
import Roulette from "../roulette/Roulette.js";
import OwnerDialog from '../adding/OwnerDialog.js';
import AddButton from "../adding/AddButton";
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
impor... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.toExcecutableMergedSchema = exports.getMergedResolvers = exports.toMergedSchemasString = exports.Enum = exports.union = exports.Interface = exports.input = exports.type = exports.subscription = exports.query = exports.mutation = exp... |
var file
var configSet = {
method: "",
csv_url: "",
col_name: "",
filters: [],
confidence_thresholds: []
}
const URL = {
host: window.location.href,
// host: 'http://192.168.127.12:7777/',
api_get: 'Filter/API/filterImageURL',
api_psot: 'Filter/API/filterImage'
}
const threshold = {
... |
var w,h;
var c,ctx;
const grav=10;
const numframes=60;
var numprings;
var numparts;
var springs=[];
var parts=[];
var der=[];
var psize;
var t;
var t1;
var dt;
function vect(x,y)
{
this.x=x;
this.y=y;
}
function particle(pos,vel,mass,force,size,fixed)
{
this.pos=pos;
thi... |
import React, { Component } from 'react';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import FilterData from './components/FilterData';
import { Icon,Input,InputNumber,Button,Card,Table,Divider,Popconfirm,message,Row,Col,Cascader,DatePicker } from 'antd';
import axios from 'axios';
import { GetList ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Do = exports.equals = exports.alt = exports.chain = exports.of = exports.map = exports.pempty = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var des... |
"use strict";
var _get = function get(_x2, _x3, _x4) { var _again = true; _function: while (_again) { var object = _x2, property = _x3, receiver = _x4; desc = parent = getter = undefined; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if ... |
import React, { useState, useEffect } from "react";
import { makeStyles, useTheme } from "@material-ui/core/styles";
import { TextField, Checkbox, CircularProgress } from "@material-ui/core";
import {
AddBox,
ArrowDownward,
Check,
Clear,
DeleteOutline,
ChevronLeft,
ChevronRight,
Edit,
SaveAlt,
Filte... |
import React, { Component } from 'react';
import withLanguageProps from 'HOC/withLanguageProps';
import { convertNumberToText, fromHexToDec } from 'utils'
import { setIcxWalletServer, icx_getStepPrice, icx_fetchCoinBalanceApi } from 'redux/api/walletIcxApi'
import { routeConstants as ROUTE } from 'constants/index.js';
... |
import React from 'react';
import { connect } from 'dva';
import { Button, Card, Form, Input, message, Modal, notification, Select, Spin, Icon } from 'antd';
import styles from './index.less';
import FieldPane from './FieldPane';
import RulePane from './RulePane';
import SqlPane from './SqlPane';
import PreviewDataModa... |
import React, { Component } from 'react';
import {
CGeneral,
CStrengths,
CTeamBuffs,
CDebuffs,
CWeaknesses,
CIndividualAAScores, CAAFinalScore,
CIndividualOugiScores, COugiFinalScore,
CChargeCalculations, CFinalScore } from './character';
import {mcPresets, generateMcFromTemplate} from ... |
import React, { Component } from 'react';
import { View, Text, FlatList, StyleSheet } from 'react-native';
// import fetch from 'sx-fetch/src';
import PropTypes from 'prop-types';
import { FlexView, Text as _Text } from '../../components';
import { px } from '../../utils/ScreenUtil';
const FlexItem = FlexView.Item;
i... |
import boot from '../boot';
import Utils from '../utils';
import Stream from '../stream';
function Section(opts) {
this.opts = opts;
this.streamer = Stream;
this.initialize = this.initialize.bind(this);
this.handleEnterKey = this.handleEnterKey.bind(this);
this.handleBackspaceKey = this.handleBackspaceKey.... |
// tree drawing algorithm adapted from:
// https://rachel53461.wordpress.com/2014/04/20/algorithm-for-drawing-trees/
import { firstElt } from "./util";
class TreeFormatter {
constructor(model) {
this.boxes = model.boxes;
this.defaultYPadding = 70;
this.xPadding = 50;
this.yPadding ... |
exports.install = function() {
F.file('/@pubsub/client.js', client_js);
F.websocket('/@pubsub', websocket, ['authorize', 'json']);
};
function client_js(req, res) {
res.content(200, script, 'application/javascript');
}
var TOPICS = {};
var TOPICS_SERVER = [];
global.PUBSUB = {
subscribe: function(topic){
if... |
let client = null;
const tbb1 = document.getElementById('tbb1');
const tbb2 = document.getElementById('tbb2');
const tbb3 = document.getElementById('tbb3');
const cmdMap = {};
const varMap = {};
function cmd() {
if (cmdMap[ch] == undefined) {
cmdMap[ch] = new Store({ configName: 'ch' + ch });
resetTable();
... |
import { Book } from '../book.js';
import { BookMetadata, createComicBookXmlFromMetadata } from './book-metadata.js';
import { Key, assert, getElem } from '../common/helpers.js';
import { Zipper } from '../bitjs/archive/compress.js';
import { config } from '../config.js';
// TODO: Always show all buttons on the metada... |
var loadedScripts=new Array();
var gcAttachid =new Array();
var xlink="";
var reflink="";
var oTable;
var validator_lang="";
var gcExist=false;
function roundToTwo(num) {
return +(Math.round(num + "e+2") + "e-2");
}
//------------------------------------------------------------------------------
function conva... |
/**
* @file Record all commands in buffer
*/
import DataPacker from './DataPacker';
import {getNativeObjectTypeInfo, getNativeObjectTypeInfoOfName} from './nativeObjectTypeInfo';
import FastDataView from 'fast-dataview';
// import {MASK_BITS} from './spec/mask';
const COMMAND_BUFFER_SIZE = 1e5;
const packTypeToJST... |
function update_square_img(type) {
type = current_location;
var imgList;
if (type == 0) { // home
imgList = [
"./img/home/colorIcon.png",
"./img/home/roomIcon.png",
"./img/home/shoesIcon.png",
"./img/home/clothIcon.png",
"./img/home/decora... |
const EventEmitter = require("eventemitter3");
const isPromise = require("is-promise");
const ChannelQueue = require("@buttercup/channel-queue");
const MemoryStorageInterface = require("../storage/MemoryStorageInterface.js");
const VaultSource = require("./VaultSource.js");
const DEFAULT_AUTO_UPDATE_DELAY = 1000 * 60 ... |
'use strict';
var Cesium = require('cesium');
var jp = require('jsonpath');
var NodeHelpers = require('./NodeHelpers');
var PrimitiveHelpers = require('./PrimitiveHelpers');
var RemoveUnusedProperties = require('./RemoveUnusedProperties');
var getUniqueId = require('./getUniqueId');
var Matrix4 = Cesium.Matrix4;
var d... |
"use strict";
const globals = require("globals");
function baseRules({
builtin = true,
flow = false,
import: import_ = false,
jest = false,
react = false,
} = {}) {
return Object.assign(
builtin
? {
"array-callback-return": "error",
"consistent-return": "error",
"co... |
const Git = require("nodegit");
const PATH = require("path");
const FS = require('fs-extra')
const Models = require('../../../../conf/sequelize');
const { readFile, removeDir } = require('../../../utils/fsExtra');
const { getFiles, repoFilesSort, getEntrysInfo, getFilesCommitInfo, getFileCommit } = require('./util');
... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import ButtonBase from '@material-ui/core/ButtonBase';
import TextField from '@material-ui/core/TextField';
import Dialog from '@material-ui/core/Dialog';
... |
import React from "react";
import AirBnbCard from "./AirBnbCard";
import "./SearchAirBnb.css";
import RegisterLogin from "../Dashboard/RegisterLogin";
import {
GoogleMap,
LoadScript,
InfoWindow,
Marker,
OverlayView,
} from "@react-google-maps/api";
import { Rating } from "@material-ui/lab";
import ReactPagina... |
/* =====================================
ROUTES MAP
===================================== */
var map_routes = new mapboxgl.Map({
container: "map_routes",
style: "mapbox://styles/mapbox/light-v9",
center: centerCoordinates,
zoom: 11
});
map_routes.addControl(new mapboxgl.NavigationControl());
var routeMapIsF... |
"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... |
// 云函数入口文件
const cloud = require('wx-server-sdk')
const Excel = require('exceljs');
const fs = require('fs')
cloud.init()
var date = new Date()
const title = date.getFullYear() + "年" + (date.getMonth() + 1) + "月" + date.getDate() + "日体温登记表"
/**
* 生成学生体温数据的Excel表格
* 参数:
* classes: 字符串数组,表示获取哪些班级的数据。如:["信1605-1", "... |
'use strict';
const EventEmitter = require('events');
const _ = require('lodash');
const glob = require('glob');
const path = require('path');
const debug = require('debug')('velkro:application');
const Koa = require('koa');
const Router = require('koa-router');
const cors = require('@koa/cors');
const bodyParser = r... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[... |
/**
* Created by DrTone on 21/02/2017.
*/
const ZOOM_SPEED = 0.1;
const RIGHT = 0;
const LEFT = 1;
const MOBILE_WIDTH = 768;
//Extend app from base
class AnimationApp extends BaseApp {
constructor() {
super();
this.cameraRotate = false;
this.rotSpeed = Math.PI/20;
this.rotDirect... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
const pathModule = require('path')
const xs = require('xstream').default
const pairwise = require('xstream/extra/pairwise').default
const sampleCombine = require('xstream/extra/sampleCombine').default
const pattern = require('./pattern')
const rootCaptureStep = {pattern: '<*>'} // There's only 1 everything
function ... |
/**
* Script generates OpenSSL PKI based on the configuration in config.yml
*/
var log = require('fancy-log');
var fs = require('fs-extra');
var yaml = require('js-yaml');
var exec = require('child_process').exec;
// Absolute pki base dir
const pkidir = __dirname + '/data/' + 'mypki/'... |
import Web3TraceProvider from '../src/web3-trace-provider'
import MockProvider from './mock-provider'
const assert = require('assert')
const throwInPromise = (error) => {
setTimeout(() => {
throw error
}, 0)
}
describe('Web3TraceProvider', () => {
const revertResponseForCall = {
id: 43,
jsonrpc: '2.0... |
import React, {Component, useContext, useEffect, useRef, useState} from 'react'
import axios from "axios";
import Button from "react-bootstrap/Button";
import ButtonGroup from "react-bootstrap/ButtonGroup";
import 'bootstrap/dist/css/bootstrap.min.css';
import {Container,Row,Col} from "react-bootstrap";
import './butto... |
var dcmlib = require('dcm')
var TP = require('modules/touch.js')
var hw = require("modules/hardware.js");
var TimestampToNormalTime = require("modules/digit_clock.js");
var Clock_Timer = 0;
var update_dtime = function(Timestamp) {
var hourStr;
var minStr;
var secStr;
var time_obj = TimestampToNormalTim... |
import React, { Component } from "react";
import CypherpunkCoin from "./contracts/CypherpunkCoin.json";
import Auction from "./contracts/Auction.json";
import getWeb3 from "./getWeb3";
import 'fontsource-roboto';
import "./App.css";
import AppBar from '@material-ui/core/AppBar';
import { withStyles } from "@material-ui... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.