text stringlengths 5.97k 41.2k |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.FileUpload = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _Button = require("../button/Button");
var _Messages = require("../messages/Message... |
function populateCards(projects) {
// Sort the cards first.
projects.sort(function(a, b) {
if (a.pushed_at) {
a.updated_at = a.pushed_at;
}
if (b.pushed_at) {
b.updated_at = b.pushed_at;
}
return new Date(b.updated_at) - new Date(a.updated_at);
... |
var M = require('../m');
// 蒙层元素
var maskEle = M.document.createElement('div');
// 动画结束事件名
var aniEndName = (function() {
var eleStyle = maskEle.style;
var verdors = ['a', 'webkitA', 'MozA', 'OA', 'msA'];
var endEvents = ['animationend', 'webkitAnimationEnd', 'animationend', 'oAnimationEnd', 'MSAnimationEnd'];
va... |
const ubahnLocations = {
'Aidenbachstraße': ['AIDENBACHSTRASSE'],
'Alte Heide': ['ALTE HEIDE'],
'Am Hart': ['AM HART'],
'Am Knie': ['AM KNIE'],
'Arabellapark': ['ARABELLAPARK'],
'Basler Straße': ['BASLER STRASSE'],
'Bonner Platz': ['BONNER PLATZ'],
'Bohmerwaldplatz!Böhmerwaldplatz': ['BO... |
onLoad();
function onLoad() {
var el = document.body
if (el != null && typeof(el) != "undefined")
colorPicker();
else
setTimeout(function () {
onLoad();
}, 0);
}
function colorPicker(){
var srf, cpButton;
var colorPickerArrButton = document.getElementsByClassName('colorPicker');
for( var i=0; i<colorP... |
const days = [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ];
function isoDate ( date ) {
return date.toISOString( ).slice( 0, 10 );
}
function getToday ( ) {
return isoDate( new Date( ) );
}
function getMonday ( currentDate ) {
const now = currentDate ? new Date( currentDate ) : new Dat... |
google.charts.load('current', {'packages':['corechart', 'scatter']});
google.charts.setOnLoadCallback(drawChart);
const json = [
{
"repo_name": "grimoirelab-sortinghat",
"repo_git": "https://github.com/chaoss/grimoirelab-sortinghat",
"repo_id": 25430,
"cluster_content": 0,
"message_count": 1600,
... |
/* eslint-disable
max-len,
*/
// TODO: This file was created by bulk-decaffeinate.
// Fix any style issues and re-enable lint.
const _ = require('underscore')
const settings = require('settings-sharelatex')
module.exports = _.template(`\
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3... |
/*eslint-disable */
/**
* Created by phanmduong on 10/23/17.
*/
import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import FormInputText from '../../../components/common/FormInputText';
import ListGood from './ListGood';
import TooltipButton from '../../../compone... |
// Begin MIDI loader widger
MIDI.loader = new widgets.Loader({
message: "Loading: Soundfont..."
});
function smoothstep(a, b, x) {
if(x < a) return 0.0;
if(x > b) return 1.0;
var y = (x - a) / (b - a);
return y * y * (3.0 - 2.0 * y);
}
function mix(a,b,x) {
return a + (b - a) * Math.min(Math.m... |
import React, {useState, useEffect} from 'react';
import Head from 'next/head.js';
import io from 'socket.io-client';
import {initGA, logPageView, logEvent} from '../util/analytics.js';
const socket = io('/');
function uuidv4() {
return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, c =>
(c ^ crypto.get... |
// Please review LICENSE.md for usage limitations
// to do
// make masking lines all different sizes based on count
// add random lines as an option instead of the squiggles
// add random shapes instead of lines
// add small marker sketch squiggles
// add dot grids
// make random walker a function to be called multip... |
import L from "leaflet";
import { Popup } from "../public/popup.js";
import { hasIndoorMap, matchesIndoorMap } from "../private/indoor_map_layer_options.js";
var undefinedPoint = L.point(-100, -100);
var undefinedLatLng = L.latLng(0, 0);
const getCenterOfLayer = (layer) => {
if ("getLatLng" in layer) {
r... |
/**
* @module jqtree
* @author <NAME>
* interface with the jqTree library
*/
/* global $ */
var filetree = {};
filetree.typeChooseFile = null; // stores the type of file to be asked for in the interface
filetree.destChooseFile = null; // stores the type of file to be send as result
filetree.selection = null; /... |
import { select } from "d3-selection";
import { TemplatePath } from "./template-path";
// ---- Constants ----
var ELEMENT_BOUNDARY_ATTRIBUTE = "data-d3t7b";
var BOOLEAN_ATTRIBUTE_VALUE = "1"; // Smallest (somewhat meaningful) thruthy string value
var ALL_DIRECT_CHILDREN = function() { return this.children; };
// ----... |
"use strict";
const moment = require('moment');
const $ = require("jquery");
moment().format();
//timer variables
var INITIAL_STATE = {
totalRounds: 0,
roundMinutes: 0,
roundSeconds: 0,
restSeconds: 0,
restMinutes: 0,
//start 10 second prep timer
p: 10,
doPrepare: true,
progressWri... |
"use strict";
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
const SourceMetadataMapConsumer = require("./SourceMetadataMapConsumer");
const fs = require("fs")... |
let $$ = {}
window.wallet = require('./wallet').default
window.etherUnits = require('@/assets/js/etherUnits').default
window.hd = {
HDKey: require('hdkey'),
bip39: require('bip39')
}
window.hdk = new window.hd.HDKey()
// $$.baseUrl = 'http://172.16.31.10:40415'
// $$.baseUrl = 'http://192.168.127.12:40415'
// $$.b... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildQueryPlanningContext = exports.buildOperationContext = exports.collectSubfields = exports.b... |
function resetBlock() {
block_dmg = 0, block_dbk = 0, block_acu = 0, block_fil = 0
changeBlock(1, 0); changeBlock(2, 0); changeBlock(3, 0); changeBlock(4, 0)
refreshPreview()
manageButton()
}
function resetPage() {
mul_property = 1
color = 1, block_class = 56, block_shape = 9
changeBigImg('addblo')
chan... |
var _ = require('underscore');
var widgets = require('@jupyter-widgets/base');
var Promise = require('bluebird');
var ndarray = require('ndarray');
var dataserializers = require('jupyter-dataserializers');
var THREE = require('three');
var Enums = require('./enums');
var utils = require('./utils');
var EXTENSION_SP... |
import THREEx from 'Threex.keyboardstate';
var scene,
camera,
controls,
fieldOfView,
aspectRatio,
nearPlane,
farPlane,
directionalLight,
hemisphereLight,
renderer,
container,
HEIGHT,
WIDTH,
windowHalfX,
windowHalfY,
keyboard;
//Material
var whiteMat = new THREE.Mes... |
import {Pokemon} from './pokemon.js';
import {Pokedex} from './pokedex.js';
import {Actions} from './actions.js';
function name(s) {
return s.split('-').map(function(str) {
return str.charAt(0).toUpperCase()+str.slice(1);
}).join(' ');
}
function scoreToHearts(rank, score) {
switch (rank) {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var core_1 = require("@angular/core");
var warehouse_orders_router_service_1 = require("@modules/client.common.angular2/routers/warehouse-orders-router.service");
var user_products_router_service_1 = require("@m... |
"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];
... |
/*
* Car Object
*/
function Car (x, y, alfa, color, maxVelocity, radius) {
this.x = x; // X coordinate
this.y = y; // Y coordinate
this.alfa = alfa == null ? Math.PI / 2 : alfa; // Angle
this.v = 0; // Velocity
this.v0 = 0.5; //
this.a = 1.025; // Acceleration pixels/frame^2
this.maxVelocity... |
// code that is executed on every user profile
$(document).ready(function() {
var wl = window.location;
var newPathName = wl.pathname;
// userID is defined in profile.html
if (newPathName.split("/")[3] != userID) {
newPathName = "/rx/u/" + userID;
}
// if there's no mode parameter in the querystring, add it
if... |
/* global transform, Trig, Moon, deg2rad, dateParse, has, halfπ, τ */
var gmdat = {
"sol": 0.0002959122082855911025, // AU^3/d^2
"mer": 164468599544771, //km^3/d^2
"ven": 2425056445892137,
"ter": 2975536307796296,
"lun": 36599199229256,
"mar": 319711652803400,
"cer": 467549107200,
"ves": 129071530155,... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { formatMessage, FormattedMessage } from 'umi/locale';
import router from 'umi/router';
import {
Form,
Input,
DatePicker,
Select,
Button,
Card,
InputNumber,
Radio,
Icon,
Tooltip,
message,
Upload,
Switch,
noti... |
/*
SPH Fluid Simulation - Demonstration App
Source repository:
https://github.com/tommccracken/sph-fluid-simulation
Copyright 2020 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the Licen... |
/**
* DevExtreme (cjs/viz/gauges/base_indicators.js)
* Version: 21.2.5
* Build date: Mon Jan 17 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
exports.BaseTextCloudMarker = export... |
function EQ_GET_DATA(){
var ret = {
"name": " lucene-solr working set: {lucene-solr.solr.contrib.langid.main}", "value":600393,
"prmetrics":{"5":1,"6":1,"7":1,"8":1,"9":3,"10":1,"11":1},
"prmetricvalues":{"5":0,"6":10,"7":3,"8":583,"9":22,"10":1,"11":56},
"children": [ {
"name": "org.apache.solr.update.processor",... |
/*!
* Mvc.Lookup 2.3.1
* https://github.com/NonFactors/MVC6.Lookup
*
* Copyright © NonFactors
*
* Licensed under the terms of the MIT License
* http://www.opensource.org/licenses/mit-license.php
*/
var MvcLookupFilter = (function () {
function MvcLookupFilter(group) {
this.page = group.attr('data-p... |
var sidenavMain = $(".sidenav-main"),
contentOverlay = $(".content-overlay"),
navCollapsible = $(".navbar .nav-collapsible"),
breadcrumbsWrapper = $("#breadcrumbs-wrapper");
function defaultMenuCollapse() {
$("body").hasClass("menu-collapse") && 993 < $(window).width() && (
sidenavMain.removeCl... |
//; -*- mode: rjsx;-*-
/** @jsx jsx */
import { jsx } from 'theme-ui';
import React, { useEffect, useState } from 'react';
import deepmerge from 'deepmerge';
import { decodeHexString } from './util';
const LOCAL_STORAGE_KEY = 'ocStudioSettings';
const CONTEXT_SETTINGS_FILE = 'settings.json';
// Responsible for obtai... |
/**
* @license
* rikaaa-IntersectionWatcher.js
*
* Generated : 2019-07-19
* Version : 0.5.0
* Author : <EMAIL> | <NAME>
* Url : http://rikaaa.org
*
*
* The MIT License (MIT)
*
* Copyright 2019 rikaaa.org | <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this soft... |
'use strict';
// todo: keepAlive and keepAliveMsecs not used everywhere
let native = require('native');
let httpInternal = require('internal/http');
let net = require('net');
let url = require('url');
let stream = require('stream');
const {
ERR_INVALID_ARG_TYPE,
ERR_UNESCAPED_CHARACTERS
} = require('interna... |
//////////////////////////////
// Imported Modules
//////////////////////////////
// #region
import axios from 'axios';
// Lodash modules
import cloneDeep from 'lodash/cloneDeep';
import concat from 'lodash/concat';
import forEach from 'lodash/forEach';
import get from 'lodash/get';
import minBy from 'lodash/minBy';... |
// 0x0700D370 - 0x0700D388
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode,
gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometry... |
import React, { useEffect, createRef, useState } from 'react'
import PropTypes from 'prop-types'
import axios from 'axios'
import {
Accordion,
AccordionItem,
AccordionItemHeading,
AccordionItemButton,
AccordionItemPanel,
} from '../Accordion';
import { Badge } from '../Badge'
import ListToggleButton... |
/**
* @omiu/dialog v0.0.2 http://omijs.org
* Front End Cross-Frameworks Framework.
* By dntzhang https://github.com/dntzhang
* Github: https://github.com/Tencent/omi
* MIT Licensed.
*/
import { tag, WeElement, h } from 'omi';
/*! *****************************************************************************
Copy... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.makeChange = makeChange;
exports.makeChangeFromHistory = makeChangeFromHistory;
exports.replaceRange = replaceRange;
exports.changeLine = changeLine;
var _highlight = require("../line/highlight.js");
var _highlight_worker = requir... |
/*
Central Automation v1.4b
Updated: 1.8.2
<NAME> (WiFi Downunder) 2022
*/
var switchVLANs = [];
var currentSwitch = '';
var currentVLANRow = 0;
var switchVariables = {};
var updateCounter = 0;
var errorCounter = 0;
var variableCounter = 0;
var currentGroup = '';
var currentTemplate = '';
var currentTemplateModel = ... |
"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[k];
})... |
import React from "react";
import Typography from "./modules/components/Typography";
import PagesNavbar from "./PagesNavbar";
function Privacy() {
return (
<PagesNavbar thisPage="Privacy Policy">
<Typography variant="h3" gutterBottom marked="center" align="center">
1Cademy Privacy Policy
</T... |
// ici la description de la piste
// image, géométrie du circuit, positions de départ, longueur, niveau de zoom etc
// en particulier le calcul de la sortie de route
export const TRACK = 0, LAWN = 1, WALL = 2
let sprites
export const tracks = [
{
id: 'star5',
image: 'SuperMarioKartMapStarCup5.png',... |
//API routes for the Company (Company Admins info will be embedded in company document)
const express = require('express');
const moment = require('moment');
const router = express.Router();
const aws = require('aws-sdk');
var multer = require('multer');
var multerS3 = require('multer-s3');
const ListCandidate = requir... |
module.exports = MeanLite
// SERVER
var debug = require('debug')('meanstackjs:server')
var mongoose = require('mongoose')
var error = require('./server/error.js')
var forceSSL = require('express-force-ssl')
var fs = require('fs')
var https = require('https')
var _ = require('lodash')
// CONFIG
var auth = require('./ser... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import React , { useState , useEffect } from 'react';
import { Container , Row , Col , Button , Card, Table, Pagination, Modal, Form , FormGroup , InputGroup , FormControl , DropdownButton , Dropdown} from 'react-bootstrap';
import Header from '../components/Header';
import Sidebar from '../components/Sidebar';
import ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var react_redux_1 = require("react-redux");
var ActivityView_1 = require("./ActivityView");
var Chat_1 = require("./Chat");
var konsole = require("./Konsole");
var Store_1 = require... |
// =====================================================================
// This file is part of the Microsoft Dynamics CRM SDK code samples.
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
// This source code is intended only as a supplement to Microsoft
// Development Tools and/or on-line doc... |
/**
* Created by Administrator on 2019/1/7.
*/
// ------------------------------------------table列表------------------------------------------
function table1(){
var xhr = new XMLHttpRequest();
// 设备台账
xhr.open('GET','../json/equipment.json',false);
xhr.onload = function(){
var urs = JSON.parse... |
//require(path.resolve('assets/jsqrdemo'));
//require(path.resolve('assets/qr-generator'));
var QRCode = require(path.resolve(__dirname, "../../models/QRCode"));
//var QRCode = require(path.resolve("models/QRCode"));
var database = require(path.resolve(__dirname, "../../database"));
var iconv = require('iconv-lite');
... |
// material_skin.js
// @author alteredq / http://alteredqualia.com/
// Convolution shader
// ported from o3d sample to WebGL / GLSL
// http://o3d.googlecode.com/svn/trunk/samples/convolution.html
var convolution_vertex = `$input a_position, a_texcoord0
$output v_uv0
#include <filter.sh>
uniform vec4 u_b... |
/**
* Created by gleicher on 10/9/15.
*/
/*
a second example object for graphics town
check out "simplest" first
the farm is more complicated since it is designed to allow making many farms
we make a constructor function that will make instances of farms - each one gets
added to the grobjects list
... |
let app = fin.desktop.Application.getCurrent();
let win = app.getWindow();
window.rateLimiter = false;
window.once = false;
window.popoutChanges = [];
window.mustClose = false;
// Things to do ONLY once and ONLY in the main window:
window.addEventListener('load', () => {
let currentWindow = fin.desktop.Window.getC... |
// Definitions.
import { NavigationType } from '../frame';
// Types.
import { View, IOSHelper } from '../core/view';
import { PageBase, actionBarHiddenProperty, statusBarStyleProperty } from './page-common';
import { profile } from '../../profiling';
import { iOSNativeHelper, layout } from '../../utils';
export * from ... |
var codeLines = {};
var codeVersionsTable = {};
var linePhaseTable= {};
var phaseLineTable = {};
// this is duplicated which is not ideal, but for now:
var intervalBounds = [197, 381, 595, 975, 1149, 1404, 1634, 2006, 2308, 2506];
function getLineAtTime(codeLine, time) {
// console.log("line@time: " + JSON.stri... |
/**
* RocketChat specific methods/functionality
*/
// import { ModuleConfig } from '../constants/';
// import Application from '../constants/config';
import AppUtil from '../lib/util';
import Application from '../constants/config';
// Enable debug output when in Debug mode
// const DEBUG_MODE = ModuleConfig.DEV;
//... |
#!/usr/bin/env nodejs
/*
MIT License
Copyright (c) 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, ... |
var premix = function() {
function chunkSubstr(str, size) {
const numChunks = Math.ceil(str.length / size)
const chunks = new Array(numChunks)
for (let i = 0, o = 0; i < numChunks; ++i, o += size) {
chunks[i] = str.substr(o, size)
}
return chunks
}
function split32(text) {
if(text... |
/*
Authors: <NAME>, <NAME>, <NAME>
Date: 6/24/15
*/
var gulp = require('gulp-help')(require('gulp'));
/* bytediff tells us the before&after size of minified files */
var bytediff = require('gulp-bytediff');
var browserSync = require('browser-sync');
var cdnizer = require("gulp-cdnizer");
var changed = require('gulp-ch... |
/*
* @author: Mike
* Copyright 2019 Mike. All rights reserved.
* This file is licensed under the MIT License.
*/
/* Cookies */
initCookies("ClickDIS1 Delete_P1 Modify_P1 Patterns1 newBtnDisable1");
function isKeyExist(INPUT) {
var cook = Base64.decode(getCookie("Patterns1")), cookI;
cook = cook.split("SM;CL");
... |
/**
* Created by same on 2016/6/24.
* File description:类别筛选
*/
'use strict';
import React,{Component,PropTypes} from 'react';
import {CourseCategory} from 'components';
import {connect} from 'react-redux';
const styles = require('./CourseScreen.scss');
import { push } from 'react-router-redux';
@connect(
state =>... |
import './polyfill.js'
// TODO: cleanup of old code (unused variables) once experimentation is over
export class ImageDescriptor {
constructor(node) {
this.node = node
this.clipTop = 0
this.clipRight = 0
this.clipBottom = 0
this.clipLeft = 0
this.offsetTop = 0
this.offsetRight = 0
this.... |
const ERC20 = artifacts.require("USDT");
const StdERC20 = artifacts.require("StdERC20")
const ERC20TokenBankFactory = artifacts.require("ERC20TokenBankFactory")
const ERC20TokenBank = artifacts.require("ERC20TokenBank")
//const ERC20DepositPool = artifacts.require("ERC20DepositPool")
//const ERC20DepositPoolFactory = ... |
/*==[ PostPreviews.js ]=======================================================================================
POST PREVIEWS
============================================================================================================*/
class Pview extends AbstractPost {
... |
// require('util.min_cut').test('W5N9');
/**
* Code for calculating the minCut in a room, written by Saruss
* adapted (for Typescript by Chobobobo , is it somewhere?)
* some readability added by Chobobobo @typescript was included here
*/
const UNWALKABLE = -1;
const NORMAL = 0;
const PROTECTED = 1;
const TO_EXIT = ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.buildScripts = buildScripts;
exports.generateActions = generateActions;
exports.generateStores = generateStores;
exports.default = build;
var _platforms2 = require("../platforms");
var PLATFORMS = _interopRequireWildcard(_platfo... |
// Going through this? The code is kind of messy and I apologise in advance.
// It's the absolute result of not having a plan before you begin.
// That said, it should be mostly straightforward.
var defaulturl = 'http://www.responsivetester.net/go.html';
Storage.prototype.setObject = function(key, value) {
this... |
moment.locale("en");
const DATE_FORMATS = {
visavail: "YYYY-MM-DD HH:mm:ss",
metadata: "YYYY-MM-DD",
picker: "DD/MM/YYYY",
}
const DEFAULT_CONFIG = {
TimelineRefreshSecs: 60,
MessageOfTheDay: "Message of the day: [PENDING]",
filterSerials: "all"
};
const SERVER_ERROR_MESSAGE = "Error connecting to server"... |
var vscode = require('vscode');
var path = require('path');
//load required scripts for visualizer to display in webview
const utilOnDisk = vscode.Uri.file(path.join(__dirname.replace('src', ''), 'node_modules/@hpcc-js/util/dist', 'index.min.js'));
const utilURI = utilOnDisk.with({ scheme: 'vscode-resource' });
const... |
// ** Declarations
const _GAME_STARTTIME_SECONDS = 60;
// const _GAME_STARTTIME_SECONDS = 10;
const _GAME_TIMEX_FLASH = 0.5;
const _GAME_TIMEX_SHORT = 1.0;
const _GAME_TIMEX_EXTENDED = 2.0;
const _BASE_QUESTIONSCORE = 1000;
const _TIME_SCOREPENALTY = 100;
const _MIN_SCOREPENALTY = -250;
const _CORRECT_TIMEBONUS = 1... |
let canvas;
let context;
let imageBuffer;
let DEBUG = false; //whether to show debug messages
let EPSILON = 0.00001; //error margins
let mincoloumn;
let maxcoloumn;
let minrow;
let maxrow;
let cropped = false;
let animate = false;
let AntialiasDepth = 1;
let myanimate=0;
let scene;
let camera;
let surfaces = [];
let li... |
angular.module('orderCloud')
.config(QuotesConfig)
.controller('QuotesCtrl', QuotesController)
.controller('SavedQuotesCtrl', SavedQuotesController)
.controller('InReviewQuotesCtrl', InReviewQuotesController)
.controller('RouteToQuoteCtrl', RouteToQuoteController)
;
function QuotesConfig($stateProvider) {
$state... |
'use strict';
/* Controllers */
var modes = {
"C++" : "ace/mode/c_cpp",
"Java" : "ace/mode/java",
"Ruby" : "ace/mode/ruby",
"Python" : "ace/mode/python",
"Lua" : "ace/mode/lua",
"Scala" : "ace/mode/scala"
};
var codes = {
"C++" : "code_cpp",
"Java" : "code_java",
"Ruby" : "code_ru... |
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof... |
// Copyright 2017 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.
import * as Common from '../../core/common/common.js';
import * as i18n from '../../core/i18n/i18n.js';
import * as Platform from '../../core/platform/plat... |
const Particles = require('./components/particles');
const FFT_SIZES = [ 64, 256, 1024, 2048, 4096, 8192 ];
const FFT_DIVIDE = [ 1e5, 1e6, 1e7, 1e7, 8e7, 2e8 ];
async function setupClassicVisualizer (id, device = false, attemptWithVideo) {
console.log('%c[ Visualizer ]', 'color: #64b5f6', `Creating new classic visu... |
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import styled from '@emotion/styled';
import { useForm, Controller } from 'react-hook-form';
import { Link } from 'react-router-dom';
import isFunction from 'lodash/isFunction';
import omit from 'lodash/omit';
import pick from 'loda... |
/*
* Console/AstroConsole.js
*
* Class to drive console.
*
* Dependencies: AstroMap.js
*/
//over-ridable callbacks
// TODO
function astroConsoleHistoryPrev() {};
function astroConsoleHistoryNext() {};
/*
* Constructor creates the console elements and puts them on the page.
*
* Parameters: astroMap - r... |
// 根据上传的测试数据,进行分析,更新当前数据的细节。
const sqlite = require('./sqlite')
const fs = require('fs')
const path = require('path')
const dateformat = require('dateformat')
const {exec} = require('child_process')
const {parseAllocationData, parseTimeProfilerData, parseJsonToLocalJS} = require('./parseSpeedScope')
const {AXEDataItemT... |
// Import React
import React, { Component } from 'react';
import PropTypes from 'prop-types';
// Material UI
import AppBar from '@material-ui/core/AppBar';
import CircularProgress from '@material-ui/core/CircularProgress';
import CssBaseline from '@material-ui/core/CssBaseline';
import Drawer from '@material-ui/core/D... |
import { MODULE } from "../module.js";
import { logger } from "../logger.js";
const NAME = "DnDWildMagic";
/**
* Acts as the primary API class for the wild magic system and interacting with it.
* Exposes system functions from the DnDWildMagic class.
* @class
*/
class WildMagicAPI {
initialize() {
/* cle... |
function getParam() {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const basesParam = urlParams.get('bases');
const toggles = { ...toggleKeys };
const toggleParam = urlParams.get('toggles');
if ( toggleParam ) {
Object
.... |
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import Timeline from '../../../components/Timeline'
import * as R from 'ramda'
import {timeDiff} from '../../../utils/Time'
import {i18nRegister} from '../../../utils/Messages'
import * as Constants from '../..... |
import moment from 'moment';
import multer from 'multer';
import Client from "../models/client";
import Car from "../models/car";
import JSZip from 'jszip';
import Docxtemplater from 'docxtemplater';
import excelbuilder from 'msexcel-builder';
import fs from 'fs';
import path from 'path';
var XLSX = require('xlsx')
... |
// Copyright 2016 Zipscene, LLC
// Licensed under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
const createQuery = require('common-query').createQuery;
const objtools = require('objtools');
const Grant = require('./grant');
const XError = require('xerror');
/**
* Encapsulate a plain... |
var pn = 1;
var pageNum = 5 ;
var flag = true;
$(function () {
//$("#blog-nav-fix").hide('slow');
changeMargin();
//监听浏览器宽度的改变
window.onresize = function(){
changeMargin();
};
function changeMargin(){
//获取元素距离屏幕左边的距离
var divLeft = $('#toTop').offset().left;
... |
// Movement functions
// @ts-check
import * as Adventure from '/adventure.js';
import * as Color from '/color.js';
import * as Draw from '/draw.js';
import * as Entity from '/entity.js';
import * as Game from '/game.js';
import * as Logging from '/logging.js';
import * as Pathfind from '/pathfind.js';
import * as Task ... |
/**
* Created by wanglijun on 2016/12/29.
*/
var data ={
"model.IsInternalCarSource":false,
"model.ModelLevel":0,
"model.MakeID":0,
"model.ModelID":0,
"model.StyleID":0,
"model.ProvID":0,
"model.CityID":0,
"model.CityName":"",
"model.PageIndex":1,
"model.PageSize":10,
"mode... |
const Discord = require('discord.js');
const Guild = require('../models/Guild');
const ms = require('ms');
let _cooldowns = {};
let _users = new Map();
module.exports = async (client, message) => {
if(message.channel.type === "dm" || message.author.bot) return;
if(!message.member) await message.guild... |
var numberOfDiseases;
var arrayDiseases;
typeof window;
var arrayMedForIllness;
var func;
var doc_id;
var firebaseConfig = {
apiKey: "[API_KEY]",
authDomain: "anti-sexual-harassment.firebaseapp.com",
databaseURL: "https://anti-sexual-harassment.firebaseio.com",
projectId: "anti-sexual-harassment",
storageBuc... |
// https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err
const codes = {};
const error_code = (name, code) => {
codes[name] = code;
}
error_code("OK", 0)
error_code("InternalError", 1)
error_code("BadValue", 2)
error_code("OBSOLETE_DuplicateKey", 3)
error_code("NoSuchKey", 4)
error_code("Graph... |
//vars
var canvas = document.getElementById("mahcanvas");
var ctx = canvas.getContext("2d");
var playerX = 250;
var playerY = 250;
var rooms = {};
var roomCount;
var bulletCount = 0;
var currentRoom = 1;
var roomChoices;
var roomChoice;
var difficulty = 0;
var coins = 0;
var attackSpeed = 20;
var bulletDamage = 1;
var ... |
import React, {PureComponent, Component, Fragment} from 'react';
import {Form, Button, Row, Col, Icon, Radio, Popconfirm, Popover, message} from 'antd';
import {FormattedMessage as FM, defineMessages} from 'react-intl';
// import AsyncValidator from 'async-validator'
import {map, filter, omit, forEach, size} from 'loda... |
//Initialize variables regular difficulty
var memoryArrayEasy = ['fa fa-motorcycle','fa fa-motorcycle','fa fa-bath','fa fa-bath','fa fa-car','fa fa-car','fa fa-bell-o','fa fa-bell-o','fa fa-bug','fa fa-bug','fa fa-bomb','fa fa-bomb','fa fa-university','fa fa-university','fa fa-key','fa fa-key'];
//Initialize variables ... |
/**
* Mapa COVID
*/
var map, zonas, dataTotal, idprovincias, seleccion = "1";
var queryString = window.location.search, urlParams = new URLSearchParams(queryString);
TOSHOW = "" != urlParams ? "departamentos" : "provincias";
GEOJSONTOSHOW = "departamentos" != TOSHOW ? "departamento.geojson" : "provincia.geojson";
DAT... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _gatsbyTelemetry = require("gatsby-telemetry");
const fs = require(`fs`);
const lodash = require(`lodash`);
const Boxen = requi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.