text stringlengths 3.22k 29.5k |
|---|
import Ember from 'ember';
import ValidatableMixin from 'ember-validation/mixins/validatable';
import AttributeMediator from 'ember-validation/mediators/attribute';
import ValidatorMediator from 'ember-validation/mediators/validator';
import ProxyMediator from 'ember-validation/mediators/proxy';
import Errors from 'emb... |
//this file controls everything that happens in the lobby
/*
Things it needs to do
Allow the host to select a scenario from a drop down menu(or file location)
check/modify the lobby to fit the scenario if needed(don't allow host to start if lobby doesnt work with scenario)
track and modify player commander selectio... |
import _ from 'lodash';
const numerics = {
200: 'RPL_TRACELINK',
201: 'RPL_TRACECONNECTING',
202: 'RPL_TRACEHANDSHAKE',
203: 'RPL_TRACEUNKNOWN',
204: 'RPL_TRACEOPERATOR',
205: 'RPL_TRACEUSER',
206: 'RPL_TRACESERVER',
207: 'RPL_TRACESERVICE',
208: 'RPL_TRACENEWTYPE',
209: 'RPL_TRACECLASS',
210: 'R... |
'use strict';
var _ = require('lodash');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var path = require('path');
var allowedTypes = ['number','integer', 'long', 'float', 'double', 'string', 'password', 'boolean', 'date', 'dateTime', 'array'];
var definitions = null;
var swaggerVersion = null;
var... |
/**
* Decentralized Research Publishing Platform
*
* @file modify-page-web3.js file contains the java script based functions for the modify.html page
* it display the form to submit new paper on the existing paper data.
*
* @author <NAME> <<EMAIL>> | <<EMAIL>>
* @date 1-Feb-2020
* @version 1.1.0
* @link http:... |
import {Timeline} from 'sprite-animator';
import {requestAnimationFrame, cancelAnimationFrame, timeline} from '../helpers/fast-animation-frame';
import BaseNode from './basenode';
import BaseSprite from './basesprite';
import Batch from './batch';
import Group from './group';
import groupApi from '../helpers/group';
... |
var ace = require('brace');
var _ = require('underscore');
// Used to load python language settings and 'chrome' ace style
require('brace/mode/python');
require('brace/theme/chrome');
require('brace/ext/language_tools');
var {setupAceEditorCompletions} = require('./AceEditorCompletions');
var dom = require('../lib/dom'... |
import React, { Component } from 'react'
import { Steps, Button, message, Icon, Row, Col, Progress, Layout, notification } from 'antd'
import { connect } from 'react-redux'
const axios = require('axios')
const { Step } = Steps
const { Header, Footer, Sider, Content } = Layout
console.log = function() {}
const steps... |
import React,{Component,PropTypes} from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Checkbox from 'qnui/lib/checkbox';
import DatePicker, { RangePicker } from 'qnui/lib/date-picker';
import Search from 'qnui/lib/search';
import Tab from 'qnui/lib/tab';
import Button f... |
/******** reference modules ***********/
var express = require('express');
var favicon = require('serve-favicon');
var morgan = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var multer = require('multer');
var ip = require('ip');
var app = express();
var metho... |
import {compose} from "ramda";
import Is from "./util/is";
import {getNextId} from "./util/ElementIDCreator";
import {isNori, isNoriComponent, isTypeFunction} from "./Nori";
import {cloneDeep} from "lodash";
import {performPostRenderHookCleanup} from "./LifecycleQueue";
import {removeEvents} from "./NoriDOM";
import {u... |
/**
*###############################################################################
# Copyright (c) 2012-2020 <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 withou... |
// +----------------------------------------------------------------------+
// | Homework 3 - Calendar Date Picker |
// +----------------------------------------------------------------------+
// | Copyright (c) 2005 <NAME> |
// +------------------... |
/**
* Constructs a View that draws the specified model
*
* @class
*
* A View is responsible for drawing a single VisualGraph.
*
* @constructor
* @param {ModelGraph} model
* @param {HostPermutation} hostPermutation
* @param {String} label
*/
function View(model, hostPermutation, label, minDistance, collaps... |
$.datepicker._attachHandlers = function(inst) {
var stepMonths = this._get(inst, "stepMonths"),
id = "#" + inst.id.replace( /\\\\/g, "\\" );
inst.dpDiv.find("[data-handler]").map(function () {
var handler = {
prev: function () {
$.datepicker._adjustDate(id, -stepMonths, "M");
},
next: functio... |
/*global location,window,document,WebSocket,console,sessionStorage,TinyEdit */
var wsocket = null;
var pageHeader = null;
var tinyEdit = null;
var href;
var auth = false;
var tinyBody = false;
var tinyUrl = null;
var loginDiv = null;
function Href(){
var href = location.href, harr = href.split('?');
this.args = {... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const commands_1 = require("../../commands");
const request_1 = require("../../../../request");
const GraphCommand_1 = require("../../../base/GraphCommand");
const Utils_1 = require("../../../../Utils");
const vorpal = require('../../../../vor... |
const _ = require('lodash');
const moment = require('moment');
const Stocks = require('../../../stocks.js');
const Securities = require('../../securities/identification/index.js');
const QUOTE_VIEWS = {
rate: ['date', 'rate'],
portfolio: ['date', 'commitment', 'netValue', 'rate'],
};
const getValuation = (view) ... |
function loaded() {
setTimeout(function() {
$(".cover").addClass("cover-animated");
$(".site_header-fixed").addClass("site_header-fixed-ready");
}, 1000);
}
function wo_init() {
$("#home").css({"height": $(window).height() + "px"});
$("#body").removeClass("one_scroll");
$(".si... |
//object size (for pizza sizes)
function size(name) {
this.sizeName = name;
}
//prototype for price of pizza sizes
size.prototype.sizePrice = function () {
if (this.sizeName === "large") {
return 900;
}
else if (this.sizeName === "medium") {
return 650;
}
else if (this.sizeName === "small") {
re... |
/** ******************************************************************************************************************
* @file Create vars and attach doc tags, if any.
*
* Strict mode
* -----------
*
* 1. No global variable creation. Any assignment to a variable that hasn't been declared and source type is `"scri... |
const { lowerTheFirstCharacter } = require('./util');
function makeTypeList(queryRoot, isFragment, typeMap) {
let types = {};
let rootType = isFragment
? queryRoot.typeCondition.name.value
: operationToTypeName(queryRoot.operation);
extractType(types, queryRoot, [], typeMap, rootType);
let typeList =... |
"use strict";
var _react = _interopRequireWildcard(require("react"));
var _react2 = require("@storybook/react");
var _grommetIcons = require("grommet-icons");
var _grommet = require("grommet");
var _theme = require("./theme");
var _SearchInputContext = require("./components/SearchInputContext");
function _intero... |
import React, {useEffect} from 'react';
import {useLazyQuery, gql } from '@apollo/client';
import { MythicDialog, MythicViewObjectPropertiesAsTableDialog } from '../../MythicComponents/MythicDialog';
import Paper from '@material-ui/core/Paper';
import {useTheme} from '@material-ui/core/styles';
import {Button} from '@m... |
// Copyright (C) 2013 Google Inc, under Apache License 2.0
// Copyright (C) 2018 Agoric, under Apache License 2.0
import harden from '@agoric/harden';
import { assert } from '@agoric/assert';
import { makeCollect } from '@agoric/spawner';
import { escrowExchangeSrcs } from '@agoric/spawner/src/escrow';
// only used ... |
"use strict";
let IRegistry = artifacts.require("IRegistry");
let Registry = artifacts.require("Registry");
let { STRINGS, AGENT_STATE, JOB_STATE, TX_STATUS, HELPERS } = require("./util/Util.js");
let { signAddress, bytesToString, addressToString, intRange, assertArraysEqual, generateSelectorArray, generateInterfaceI... |
var fn = {
//url: function (s) { return baseUrl + s; },
resetForm: function () {
$('.validar').each(function () {
$(this).validate().resetForm();
});
},
mensaje: function (p) { Materialize.toast(p, 4000); },
notificar: function (o) {
switch (o) {
case ... |
import { componentStoreFactory, isPseudoTag } from '../../render/componentFactory.js';
import { defaultTemplateProcessor, html, TemplateResult } from 'lit-html';
import { observableTypes, stateFactory } from '../../state/HypermediaState.js';
import { fetch } from '../../state/fetch.js';
import { until } from 'lit-html/... |
import React from "react";
import SaveIcon from '@mui/icons-material/Save';
import Container from '@mui/material/Container';
import { DataGrid } from '@mui/x-data-grid';
import EditIcon from '@mui/icons-material/Edit';
import DeleteIcon from '@mui/icons-material/Delete';
import AdminPanelSettingsIcon from '@mui/icons-m... |
const { Readable } = require('stream')
const fs = require('fs-extra')
const { TEMP_TEST_FOLDER } = require('../constants')
const { addCustomExecaMock, addCustomSpawnMock } = require('./modules')
/**
* This variable is private only to this file and can only be either accessed or
* reset from outside of this file.
... |
// TODO: place MetaStep in other file, disable rule
/* eslint-disable max-classes-per-file */
const store = require('./store');
const Secret = require('./secret');
const event = require('./event');
const STACK_LINE = 4;
/**
* Each command in test executed through `I.` object is wrapped in Step.
* Step allows loggin... |
var hostname = document.location.hostname;
/** 一览数据对象 */
var listdata = {};
var nowPage = "pcs";
/** 服务器处理路径 */
var servicePath = "system_image_manage.do";
var findit = function(data) {
if(!data){
searchdata= {
"classify" : nowPage
};
}else{
searchdata = data;
}
// Ajax提交
$.ajax({
beforeSend : aja... |
let first_time_run_expo = true;
let first_time_run_bin = true;
let expo_i;
let expo_size;
let mid;
let left;
let right;
let found_number;
function exponentialSearch(searching_array, asked_number) {
if (first_time_run_expo) {
expo_i = 1;
mid = 0;
left = 0;
right = 0;
documen... |
"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.enumerable = descriptor.enu... |
import React, { Component } from 'react';
import { v4 as uuidv4 } from 'uuid';
import SweetAlert from 'sweetalert-react';
import Search from './components/Search';
import Sort from './components/Sort';
import Form from './components/Form';
import Mockdata from './mockdata/Mockdata';
import Item from './components/Item'... |
var _path = "",
_cropper,
_bitmapPath = "_doc/headimg/",
_bitmapSuffix = "jpeg",
_headimgname = "",
dirpath = "";
var accessid = '<KEY>';
var accesskey = '<KEY>';
var osshost = 'http://kid-test.oss-cn-shanghai.aliyuncs.com/';
//oss配置
var policyText = {
"expiration": "2020-01-01T12:00:00.000Z", //设置该Policy的失效时间,超过... |
$(function() {
setup();
showMenu();
$('.modal-trigger').leanModal();
});
WEBSOCKET_URI = "ws://localhost:8080";
//WEBSOCKET_URI = "ws://ec2-52-10-25-58.us-west-2.compute.amazonaws.com:80";
rivets.configure({
// Attribute prefix in templates
prefix: 'rv',
// Preload templates with initial data on ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Viewport = void 0;
const charttype_1 = require("./charttype");
/** A viewport class that contains all the chart elements and drawings */
class Viewport {
/** Create a viewport instance */
constructor(element, data, options, sty... |
'use strict'
const ContentTypeInfo = require('../format/ContentTypeInfo')
/**
* Reads header values as defined in RFCs 7231, 7230, 7240, and 5234.
* Currently only the headers prefer (only 'odata.continue-on-error', 'odata.maxpagesize', 'return'
* and everything allowed by http://tools.ietf.org/html/draft-snell-ht... |
import math from 'mathjs';
import numbro from 'numbro';
import store from 'store';
import STRINGS from '../config/localizedStrings';
import { BASE_CURRENCY, DEFAULT_COIN_DATA } from '../config/constants';
import { findPath, convertPathToPairNames } from './data';
export const BTC_FORMAT = '0,0.[0000]';
export const ET... |
// Copyright 2016-2020, University of Colorado Boulder
/**
* a Scenery Node that depicts a tea kettle on a burner
*
* @author <NAME>
*/
import NumberProperty from '../../../../axon/js/NumberProperty.js';
import Bounds2 from '../../../../dot/js/Bounds2.js';
import Range from '../../../../dot/js/Range.js';
import V... |
/*
Copyright 2017 <NAME>. All rights reserved.
This file may distributed and/or modified under the
terms of the Insight Maker Public License (https://InsightMaker.com/impl).
*/
/*
* IMC stands for Insight Maker connect
*/
var returnhandler = function() {
alert("Error: default handler was triggered, but there is n... |
var search_table;
$(function() {
try {
// set csrf_token
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
// for datepicker
$('#date').datetimepicker({
format : 'yyyy-mm-dd',
... |
function noop() {}
function isString(obj) {
"use strict";
return Object.prototype.toString.call(obj) === '[object String]';
}
function isFunction(obj) {
"use strict";
return !!(obj && obj.constructor && obj.call && obj.apply);
//return Object.prototype.toString.call(obj) == '[object Function]'
}... |
'use strict';
var _asyncToGenerator = _interopRequireDefault(require('async-to-generator'));
var _createPackage;
function _load_createPackage() {
return _createPackage = _interopRequireDefault(require('nuclide-commons-atom/createPackage'));
}
var _rxjsBundlesRxMinJs = require('rxjs/bundles/Rx.min.js');
var _util... |
/**
* @license
* ©2018-2019 EdgeVerve Systems Limited (a fully owned Infosys subsidiary),
* Bangalore, India. All Rights Reserved.
*/
// https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Math/round#Decimal_rounding
(function () {
/**
* Decimal adjustment of a number.
*
... |
var path = require('path');
var async = require('async');
var dicom = require('dicomjs');
var diff = require('deep-diff');
var mat3 = require('gl-mat3');
var vec3 = require('gl-vec3');
var ndarray = require('ndarray');
var surfaceNets = require('surface-nets');
var stl = require('stl')
var files = [];
var fs = require(... |
const fs = require("fs");
const storage = require('electron-json-storage');
const { dialog } = require("electron").remote;
// DOM elements
const viewerElement = document.getElementById('viewer');
const openFileBtn = document.getElementById('open-file');
const openFolderBtn = document.getElementById('open-folder');
co... |
// *********************************************************************
//
// API Hub, D&B D+ Filings & Events data block component
// JavaScript code file: DplFilingsEvents.js
//
// Copyright 2021 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compl... |
import React, { useState } from "react";
import { ResponsiveBar } from "@nivo/bar";
import "./styles.scss"
const AspectsComparison = (props) => {
const [mount, setMount] = useState(false)
const aspects = props.aspects
const aspects2 = props.aspects2
const name1 = props.name1
const name2 = props.name2
con... |
// Copyright 2014-2020, University of Colorado Boulder
/**
* Node that represents a "beaker container" in the view. A beaker container is a beaker that contains fluid, and in
* which other objects can be placed, which generally displaces the fluid.
*
* See the header comments in the parent class for some importan... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var script$1 = {
name: 'Cell',
props: {
item: {
type: Object,
required: true,
},
field: {
type: Object,
required: true,
},
getContext:... |
const VARIABLE_CHARACTER = '\'';
let processor = null;
const ctx = new (window.AudioContext || window.webkitAudioContext)();
async function amain() {
await ctx.audioWorklet.addModule('evaluation.js');
processor = new AudioWorkletNode(ctx, 'processor');
processor.connect(ctx.destination);
}
amain();
let... |
// Require
const gulp = require('gulp');
const plumber = require('gulp-plumber');
const beautify = require('gulp-beautify');
const del = require('del');
const fs = require('fs');
const path = require('path');
const extra = require('./_config');
module.exports =... |
import React, { Component } from 'react';
import { Drawer, Form, Button, Col, Row, Input, Select, Cascader, Icon } from 'antd';
import { connect } from 'dva';
import styles from './UserDetailForm.less';
const FormItem = Form.Item;
const { Option } = Select;
@connect(({ user, organization, loading }) => ({
parent:... |
"use strict";
const assert = require("assert");
const error = require("./../lib/error");
const core = require("./core");
const Scope = require("./../lib/scope");
function getline(node) {
return node.loc.start.line;
}
let transformLoop_fragmentOption_functionHeadAndTail = {
applyChanges: true
, extend: true
, ... |
const fs = require("fs");
const {
createCanvas,
loadImage,
registerFont,
} = require("canvas");
const axios = require("axios");
const moment = require("moment");
const date = moment().format("dddd, MMMM Do YYYY");
require("colors");
module.exports = {
/**
* Generates the shop image in a design similar to the in-... |
'use strict';
import {download_file, update_theme, update_css_class_property} from './util.js'
import {UUID} from './util.js';
import {serialize, deserialize} from './buffer.js';
import {Notebook} from './cell.js';
export class Comm {
constructor(manager, target_name, callback=null, comm_id=null) {
this.mana... |
// native
const { EventEmitter } = require('events');
const { join, resolve } = require('path');
// packages
const chokidar = require('chokidar');
const { green, yellow } = require('colorette');
const debounce = require('lodash.debounce');
const dotenv = require('dotenv');
const dotenvExpand = require('dotenv-expand')... |
/***
* Copyright 2016 IBM Corp. 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 applic... |
class MCTSNode {
constructor(state, parentNode) {
this.visited = false;
this.state = state;
this.parentNode = parentNode;
// evaluation
this.wins = 0;
this.playouts = 0;
}
possibleMoves() {
const field = this.state.field;
const color = this.state.color;
return field.flatM... |
load('api_config.js');
load('api_gpio.js');
load('api_sys.js');
load('api_timer.js');
load('api_pwm.js');
load('api_rpc.js');
load('api_events.js');
load('api_net.js');
let red=4;
let green=15;
let blue=5;
let white=19;
let freq=1000;
let CUR_CH=0;
let THR=9;
let RGB_DUTY_RGBW=1;
let W_DUTY_RGBW=1;
let RGB_... |
const express = require("express");
const http = require("http");
const app = express();
// const cors = require("cors");
app.use((req, res, next) => {
res.setHeader("Access-Control-Allow-Origin", "*");
res.setHeader(
"Access-Control-Allow-Methods",
"OPTIONS, GET, POST, PUT, PATCH, DELETE"
... |
//
// █████╗ ██╗ ██╗██╗██╗ ███████╗███████╗███████╗
// ██╔══██╗██║ ██╔╝██║██║ ██╔════╝██╔════╝╚══███╔╝
// ███████║█████╔╝ ██║██║ █████╗ █████╗ ███╔╝
// ██╔══██║██╔═██╗ ██║██║ ██╔══╝ ██╔══╝ ███╔╝
// ██║ ██║██║ ██╗██║███████╗███████╗███████╗███████╗
// ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝╚══... |
var _ = require('underscore');
var log = require('../../log')(module);
// --- GlobalSat GPS ------------------------------------------------------------
var parser = {};
module.exports = parser;
labels = {
NO_VALUE: '<no value>',
NO_PARAM: 'unknown'
};
/**
* Are passed data in supported format and can be pa... |
'use strict';
var globalFunction=require('./public/scripts/myPrototype.js')
var co=require('co')
var fs = require('fs');
var path = require('path');
const request=require('request')
var mongoose=require('mongoose');
var db = mongoose.connect('mongodb://localhost/gmall-stuff',{useMongoClient:true});
// Bootstrap models
... |
function roundRect(ctx, x, y, w, h, r) {
ctx.beginPath();
ctx.moveTo(x + r, y);
ctx.lineTo(x + w - r, y);
ctx.quadraticCurveTo(x + w, y, x + w, y + r);
ctx.lineTo(x + w, y + h - r);
ctx.quadraticCurveTo(x + w, y + h, x + w - r, y + h);
ctx.lineTo(x + r, y + h);
ctx.quadraticCurveTo(x, y ... |
import { LitElement, html, css } from 'lit-element';
import { remote } from 'electron';
import { SharedStyles } from '../components/shared-styles';
const remoteWindow = remote.getCurrentWindow();
window.remote = remoteWindow;
class WindowFrame extends LitElement {
static get styles () {
return [
SharedS... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val... |
const request = require('request');
const cheerio = require('cheerio');
const sessioninfo = require('./sessioninfo.js');
const entities = require('html-entities');
const querystring = require('querystring');
const login = require('./login.js');
const unique = require('./unique.js');
let fields = [];
let cores = [];
le... |
const express = require("express");
const router = express.Router();
require("dotenv").config();
const stripe = require("stripe")(process.env.STRIPE_SECRET_KEY);
const calculateOrderTotal = require('../../client/src/utils/calculateOrderTotal');
const generateResponse = require('../../client/src/utils/generateResponse')... |
var geodata = null;
var renderTimes = 0;
var currentNode = null;
var cartesian_func = function (data, chartlayout) {
let dataModel = new android.test.cartesian.DataModel(data);
if (chartlayout == null) {
var context = new android.app.Context();
var comparedAnimationCache = new android.ComparedA... |
require("colors");
const _ = require("lodash");
const { google } = require("googleapis");
const moment = require("moment");
const Promise = require("bluebird");
const { RECIPIENT_REGEXES, USPS_INFORMED_DELIVERY_SENDER_EMAIL, USPS_INFORMED_DELIVERY_SUBJECT } = require("../config");
const getOAuth2Client = require("../li... |
//
// Regular Expression for URL validation
//
// Author: <NAME>
// Updated: 2010/12/05
// License: MIT
//
// Copyright (c) 2010-2013 <NAME> (http://www.iport.it)
// https://gist.github.com/dperini/729294
var re_weburl = new RegExp(
"^" +
// protocol identifier
"(?:(?:https?|ftp)://)" +
// user:pass authenticat... |
import React, { useEffect, useState } from 'react'
import PropTypes from "prop-types"
import lunr from 'lunr'
//Components
import { Link } from 'gatsby'
import BackgroundImage from 'gatsby-background-image'
//Internal componentes
import Header from './Header'
import Footer from './Footer'
//Styles
import './SearchRes... |
// import fetch from 'dva/fetch';
import axios from 'axios'
import {message, notification} from 'antd'
import {routerRedux} from 'dva/router'
import fileSaver from 'file-saver'
import store from '../index'
import Constanst from './config'
import envConfig from '../envConfig'
let hideUpdating
const codeMessage = {
2... |
/**
*
* WidgetMusicPlayer
*
*/
import React, { PropTypes } from 'react';
import Icon from 'components/Icon';
import IconButton from 'material-ui/IconButton';
import { List, ListItem } from 'material-ui/List';
import Avatar from 'material-ui/Avatar';
const wrapperStyle = {
display: 'flex',
minHeight: '160px',
m... |
const Table = require('cli-table2');
const chalk = require('chalk');
const manifest = require('./api/luis');
const {getServiceManifest, getCategoryManifest, getNamedArgsMap} = require('./utils/argsUtil');
/**
* Displays help content from the arguments.
*
* @param args The arguments input by the user
* @returns {P... |
var util = require('util');
var events = require('events');
var Matcher = function() {
var self = this;
var tradeId = 0
var ordersMap = new Map();
this.book = new Map();
var bucket;
var neg_bucket;
var opposite;
var opposite_volume = 0;
var bookIndex = 0
var trades
var transactions
var orderRemindVolume
v... |
var convert = {
"web exploitation": "web",
"reverse engineering": "reverse",
"binary exploitation": "binary",
"forensics": "forensics",
"cryptography": "crypto",
"algorithm": "algo",
"asymptotic": "asymptotic",
"miscellaneous": "misc"
};
var icon = {
"web": "",
"reverse": "",
"bina... |
import React from "react"
import PropTypes from "prop-types"
import axios from 'axios';
// import { connect } from "react-redux"
import { compose } from "redux"
// import { push } from "connected-react-router"
import { withStyles } from "@material-ui/core/styles"
import Typography from "@material-ui/core/Typography"... |
import faker from '@faker-js/faker';
import Image from 'next/image';
import React from 'react';
import moment from 'moment';
import { FiArrowRight, FiBookmark, FiMapPin } from 'react-icons/fi';
import { MdOutlineLocalFireDepartment } from 'react-icons/md';
import Link from 'next/link';
import { fetchJSON } from '../../... |
//API for GregTech ore generation
let StoneDictionary = {
types: [],
stones: {},
registerType: function(type) {
this.types.push(type);
},
registerStone: function(id, variants) {
Logger.Log("Puri", id);
this.stones[id] = variants;
let inverted = null;
let inverted2 = null;
in... |
import { Mongo } from 'meteor/mongo';
import { Meteor } from 'meteor/meteor';
import {getDateTime} from '../functions.js';
export const Seals = new Mongo.Collection('seals')
// Meteor methods:
Meteor.methods({
addSeal(data) {
let dateTime = getDateTime(data.dateObjectObserved);
Seals.insert({
DateO... |
// Copyright (c) 2011, <NAME>, <NAME>
// Polygon class - depends on Vector, Plane, Polygon.Vertex and LinkedList.
var Sylvester = require('./sylvester');
function Polygon() {}
Polygon.prototype = {
// Returns the vertex at the given position on the vertex list, numbered from 1.
v: function(i) {
return this.v... |
"use strict";
//////////////////
///
/// Case study
///
//////////////////
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.... |
import React, {PureComponent} from 'react';
import { message, Pagination, Button, Icon, Col, Row, Input, Spin, Alert, DatePicker, Select, Card, Table, Tooltip } from 'antd';
import parseValues from '../../utils/utils';
import {connect} from 'dva';
import moment from 'moment';
import PageHeaderLayout from '../../layout... |
'use strict';
var constants = require('../constants.js');
var analyze = require('./analyze.js');
var symToTstring = require('./tostring.js');
var solve = require('./solve.js');
var walk = require('./walk.js');
// TODO: de-dupe
var opPrec = [
'+',
'-',
'*',
'/',
'%'
];
function compileInit(spec) {... |
import View from '@girder/core/views/View';
import { restRequest, getApiRoot } from '@girder/core/rest';
import router from '@girder/core/router';
import { getCurrentUser } from '@girder/core/auth';
import FolderModel from '@girder/core/models/FolderModel';
import FileModel from '@girder/core/models/FileModel';
import ... |
import React, { useState, useRef, useEffect } from "react";
import styled from "styled-components";
// import PinSvg from "../../assets/icons/mapCheck.svg";
import CloseModal from "../../assets/icons/closeModal.svg";
import Loupe from "../../assets/icons/loupe.svg";
import { Row, RowColumn } from "../styled-components-... |
import {walk} from 'estree-walker'
import {create} from '../util/estree-util-create.js'
import {name as isValidIdentifier} from 'estree-util-is-identifier-name'
/**
* @typedef {import('estree-jsx').Node} Node
* @typedef {import('estree-jsx').Expression} Expression
* @typedef {import('estree-jsx').Pattern} Pattern
... |
import 'bootstrap/dist/css/bootstrap.min.css'
import './main.css'
import { PDFDocument, StandardFonts } from 'pdf-lib'
import QRCode from 'qrcode'
import './check-updates'
import './icons'
import { $, $$ } from './dom-utils'
import pdfBase from './certificate.pdf'
const generateQR = async (text) => {
try {
co... |
import * as THREE from 'three';
import utils from '../../utils';
import ChunkedObjectsGeometry from './ChunkedObjectsGeometry';
const VEC_SIZE = 3;
const TRI_SIZE = 3;
const tmpPrev = new THREE.Vector3();
const tmpNext = new THREE.Vector3();
const tmpRes = new THREE.Vector3();
const simpleNormal = new THREE.Vector3(1.... |
/* BVH (Bounding Volume Hierarchy) Iterative Fast Builder */
/*
Inspired by: <NAME> (ttsiodras on GitHub)
https://github.com/ttsiodras/renderer-cuda/blob/master/src/BVH.cpp
Edited and Ported from C++ to Javascript by: <NAME> (erichlof on GitHub)
https://github.com/erichlof/THREE.js-PathTracing-Renderer
*/
let stackpt... |
var options = { nick: 'peachbot', server: 'irc.freenode.net', port: 7000, channel: '#clowns', me: 'dabailey' } //set some options
var tls = require('tls'); //required for network/tls things
var http = require('http'); //required for http things
var fortunes = require('./fortune.js'); //required for fortune
var woot = n... |
import React, { useState, useEffect } from "react";
import { withRouter } from "react-router-dom";
import { toArray } from "react-emoji-render";
import axios from "axios";
//import * as firebase from "firebase";
//Static files
import "../../../../public/css/Direct/ChatInput/chatInput.css";
import { storage } from "..... |
import React from 'react';
import SimpleBar from 'simplebar-react'
import Clipboard from 'react-clipboard.js';
import Tippy from '@tippyjs/react';
import { OverlayScrollbarsComponent } from 'overlayscrollbars-react';
import logo from '../images/logo.png';
import {InputGroup} from './InputGroup/';
import {NumberInput, ... |
import dataJsx from './I.fn.jsx.js';
import dataAction from './I.fn.submit';
import Opt from './I.option';
import Ux from 'ux';
const dataPassword = (normalized = {}, params = {}) => {
// 密码框才有的属性
dataJsx(normalized, params, 'visibilityToggle');
}
const dataInputNumber = (normalized = {}, params = {}) => {
... |
const rc = require('@fabcotech/rchain-toolkit');
require('dotenv').config();
const checkLastOperations = require('./checkLastOperations').main
const transferRev = require('./transferRev').main
const getRevAddress = require('./getRevAddress').main
const checkMultisigBalance = require('./checkMultisigBalance').main
con... |
import { ATTR_KEY } from '../core/constants';
import { isSameNodeType, isNamedNode } from './index';
import { buildComponentFromVNode, unmountComponent } from './component';
import { createNode, removeNode, setAccessor } from '../dom/index';
/**
* 已挂载且正在等待componentDidMount的组件的队列
* @type {Array<Component>}
*/
expor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.