text stringlengths 8.5k 48.7k |
|---|
import React, {Component} from 'react';
import withStyles from '@material-ui/styles/withStyles';
import CssBaseline from '@material-ui/core/CssBaseline';
import Grid from '@material-ui/core/Grid';
import SimulatorContainer from './simulator/SimulatorContainer';
import TopButtonBar from './simulator/TopButtonBar';
impor... |
import React, { useEffect } from "react";
import { BrowserRouter, Route, Switch } from "react-router-dom";
import "./scss/style.scss";
const loading = (
<div className="pt-3 text-center">
<div className="sk-spinner sk-spinner-pulse"></div>
</div>
);
// Containers
const ERPMainLayout = React.lazy(()... |
import './selectAllGroup.less';
import 'nanoScroller';
import 'mdBusinessCard';
import { upgradeVersionDialog, htmlEncodeReg } from 'src/util';
var qs = require('querystring');
var groupController = require('src/api/group');
var doT = require('dot');
var selectGroupTpl = require('./selectAllGroup.html');
var tpl = doT... |
const compose = (first, ...fns) => (...args) => fns.reduce((previous, current) => current(previous), first(...args));
const curry = (fn, arityLeft) => {
const arity = arityLeft || fn.length;
return (...args) => {
const argLength = args.length || 1;
if (arity === argLength) {
return f... |
var ADD_MARKER_OFFER = "הוסף הצעה";
var ADD_MARKER_PETITION = "הוסף עצומה";
var SEVERITY_FATAL = 1;
var SEVERITY_SEVERE = 2;
var SEVERITY_LIGHT = 3;
var SEVERITY_VARIOUS = 4;
var SEVERITY_ATTRIBUTES = {};
SEVERITY_ATTRIBUTES[SEVERITY_FATAL] = "showFatal";
SEVERITY_ATTRIBUTES[SEVERITY_SEVERE] = "showSevere";
SEVERITY... |
/*
Copyright 2013-2014 ASIAL CORPORATION
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... |
//These functions were written by <NAME> MD PhD Emory University
// Code is to help load and process data and load and manipulate SVG elements corresponding to user markups
function random(range) {
return Math.floor(Math.random() * range);
}
//sample images uda2pilot isic_0001135
//54e771eabae47850e86ce39d thi... |
var shouldUpdate = 0;
function fetchResource(input, init) {
return new Promise((resolve, reject) => {
chrome.runtime.sendMessage({message:"fetch", input:input, init:init}, messageResponse => {
const [response, error] = messageResponse;
if (response === null) {
reject(error);
} else {
... |
import React, { Fragment, render, Component } from 'preact';
import { useContext } from 'preact/compat';
import {h } from 'preact';
// import axios from 'axios';
import NearestStops from '../NearestStops';
import StopTime from './StopTime';
import Config from '../../util/Config';
import StaticFunctions from '../../util... |
/*
Copyright 2018-2020 <NAME>, Aigents®
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, merge, publish, distribut... |
var MongoClient = require('mongodb').MongoClient;
var mongourl = 'mongodb://192.168.17.52:27050/db_bot';
var Axios = require('axios');
var fs = require('fs');
var http = require('http');
var monthOfDay=[31,28,31,30,31,30,31,31,30,31,30,31];
var u = {};
var c = {};
var memory = {};
var usermap = {};
const wait = time =... |
import BigNumber from "bignumber.js";
import cx from "classnames";
import React from "react";
import { connect } from "react-redux";
import { cointypes, network_config } from "../../../../config";
import address_book from "../../../assets/images/address_book.png";
import loadingCommon from "../../../assets/images/loadi... |
/* eslint-disable camelcase,no-tabs */
import {
parseToUniError,
ThrowableUniError,
} from '../../../../../common/models/uni-error';
import { createUserFromData } from '../../../../../common/models/model-user';
import logger from '../../../../../server/helpers/server-logger';
import {
AUTH_TYPES,
getHeadersByA... |
// BIG Thanks to tutsplus.com
// http://code.tutsplus.com/tutorials/webgl-with-threejs-basics--net-35688
// for helping me getting started
//Stuff for rendering
var DEG2RAD = Math.PI / 180;
var width, height, renderer, scene, camera;
var clock = new THREE.Clock;
var rotY = 0, rotX = 0;
var matWood = new THREE.MeshLamb... |
'use strict'
/*
We dislike prerequisites and avoid them where possible.
We especially dislike prereqs that have a 'framework' style; simple libraries are more palatable.
Please do not add any framework to the preqs. We do not want express or anything like it. We do not want any sort of "ORM" or similar.
Adding simple... |
export * from './Ad';
export * from './AddressBook';
export * from './AddressCard';
export * from './Adjust';
export * from './AirFreshener';
export * from './AlignCenter';
export * from './AlignJustify';
export * from './AlignLeft';
export * from './AlignRight';
export * from './Allergies';
export * from './Ambulance'... |
//// [arithmeticOperatorWithInvalidOperands.js]
// these operators require their operands to be of type Any, the Number primitive type, or
// an enum type
var E;
(function (E) {
E[E["a"] = 0] = "a";
E[E["b"] = 1] = "b";
E[E["c"] = 2] = "c";
})(E || (E = {}));
var a;
var b;
var c;
var d;
var e... |
$.fn.extend({
isOnScreenVisible: function() {
if (!$('body').hasClass('post-template')) {
return false;
}
var win = $(window);
var viewport = {
top: win.scrollTop(),
left: win.scrollLeft()
};
viewport.right = viewport.left + win.wi... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
//////////////////// Set up and initiate svg containers ///////////////////
var margin = {
top: -140,
right: 90,
bottom: 60,
left: 120
}
var totalWidth = 1250
var totalHeight = 1600
var width = totalWidth - margin.left - margin.right
var height = totalHeight - margin.top - margin.bottom
//Canvas
var canvasLink... |
/* Author: <NAME> */
/* Javascript version: <NAME> */
const DECIMATE_FACTOR = 8;
const FIR_SIZE = 192;
const DC_FILTER_SIZE = 1024;
const AY_DAC_TABLE = [
0.0, 0.0,
0.00999465934234, 0.00999465934234,
0.0144502937362, 0.0144502937362,
0.0210574502174, 0.0210574502174,
0.0307011520562, 0.0307011520562,
0.0... |
var leaveRevokeStr = langStr["str_157"]; //銷假申請
var leaveQueryStr = langStr["str_078"]; //假單查詢
var viewLeaveQueryInit = false;
var formSigning = langStr["str_147"]; //"表單簽核中";
var formRefused = langStr["str_150"]; //"表單已拒絕";
var formWithdrawed = langStr["str_148"]; //"表單已撤回";
var formEffected = langStr["str_149"]; //"表... |
window.onload = function() {
var numReturnPressed = 0;
var turnx = true;
var intelligence = 0.5;
let numOfUserActions = 0
$('input[type=range]').change(function() {
intelligence = $(this).val();
$('output[name=intelligenceOutput]').val(intelligence+'%');
intelligence = intell... |
import { LightningElement, api, track, wire } from 'lwc';
import CURRENCY from '@salesforce/i18n/currency';
import { registerListener } from 'c/pubsubNoPageRef';
import { isNull, showToast, constructErrorMessage, format } from 'c/utilCommon';
import { HTTP_CODES } from 'c/geConstants';
import { getObjectInfo } from 'l... |
let volumen, canvas, textCanvas, backPlot, sel, fileInput, celljunior, ditto, svgSearches;
let lineaLoca, arteAlbum;
let puntos=[], curr, past, present, ushade;
let flag=false;
/*sound dummy para que no me de errores por no cargar el archivo default*/
/*Ya me canse de los primeros 10s de Megalovania*/
let sound = {
... |
window.AudioContext = window.AudioContext || window.webkitAudioContext;
var audioContext = new AudioContext();
var audioInput = null,
realAudioInput = null,
effectInput = null,
wetGain = null,
dryGain = null,
outputMix = null,
currentEffectNode = null,
reverbBuffer = null,
dtime = null,
... |
const getBoardID = () => { return window.location.href.split('/')[4]; }
const toTitleCase = (str) => {
return str.replace(/\w\S*/g, (txt) => {
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
});
};
const stylesheet = {
"add": (type, id, href) => {
if (!document.getElementById(id)) {
let she... |
import { AnimationMixer, Clock, LinearEncoding, Object3D, EventDispatcher, Vector3, PerspectiveCamera, Euler, MeshLambertMaterial } from 'three'
import { loadGLTF } from "../../Core/loadGLTF"
import { getID } from '../../Core/O3DNode'
import { loadFBX } from '../../Core/loadFBX.js'
import { KeyState } from './KeyState'... |
var user_data = {};
$().ready(function() {
if(localStorage.getItem("userdata") && localStorage.getItem("userdata") != "None"){
user_data = JSON.parse(localStorage.getItem("userdata"));
}
console.log(user_data);
// Toggle plus minus icon on show hide of collapse element
$(".collapse.show").each(function(){
... |
/*
Type Checker for Typed Source
This is a type checker for a language that lets you
declare functions and constants, apply functions,
and carry out simple arithmetic calculations,
conditionals and boolean operations.
The language requires all declared names to be typed.
Examples are at the end of this program.
... |
/**
*
*/
"use strict";
var Blink1 = require('node-blink1');
var tinycolor = require('tinycolor2');
var config = require('../configuration');
var log = require('../logger');
var utils = require('../utils');
var Eventer = require('../eventer');
// some globals because we are a singleton
/**
* Maximum support ... |
/*
_____ _ _ ___ __ __
/ ____| | || | / _ \ / //_ |
| | __ ___ _ __ __ _ ___| || || (_) |/ /_ | |
| | |_ |/ _ \ '__/ _` |/ _ \__ _\__, | '_ \| |
| |__| | __/ | | (_| | (_) | | | / /| (_) | |
\_____|\___|_| \__, |\___/ |_| /_/ \___/|_|
... |
import {Fragment, Slice} from "prosemirror-model"
import {ReplaceStep, ReplaceAroundStep} from "./replace_step"
import {Transform} from "./transform"
import {insertPoint} from "./structure"
// :: (Node, number, ?number, ?Slice) → ?Step
// ‘Fit’ a slice into a given position in the document, producing a
// [step](#tra... |
/* Copyright 2015 <NAME>.
This file is part of Dash and the Jetpack Space Pirates. The Dash
and the Jetpack Space Pirates source code is distributed under the
terms of the MIT license. See LICENSE.txt for details. */
'use strict';
var glm = require('gl-matrix');
var vec4 = glm.vec4;
var color = require('.... |
/* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- */
/* Mega Menu
/* ---------------------------------------------------------------------- */
jQuery(document).ready(function(){
var ul = jQuery('li.mega').find(... |
/* eslint-disable no-console */
const getVectorLength = (v1, v2) => {
const [x1, y1] = v1;
const [x2, y2] = v2;
return (x1 * x2 + y1 * y2) / Math.sqrt(x1 * x1 + y1 * y1);
};
const getDocPosition = (element) => {
let eleCom = element;
if (typeof element === 'string') eleCom = document.querySelector... |
import {LitElement, html, css } from 'lit-element'
import {Icon} from "@material/mwc-icon"
import {Formfield} from '@material/mwc-formfield'
import {Button} from '@material/mwc-button'
import {NearUser} from "./user";
import {NearResources} from "./resources";
import {urlize} from "./urlize";
import {styles} from "./st... |
import React from 'react';
import {
Platform,
View,
Keyboard,
LayoutAnimation,
Animated,
Clipboard,
Vibration,
CameraRoll,
AppState,
Alert,
KeyboardAvoidingView, Linking
} from 'react-native';
//--import MessageContainer from './chat/MessageContainer';
//--import InputToolbar, {MIN_INPUT_TOOLBAR_HEIGHT} fro... |
/**
* @author Tom <l3l_aze@yahoo.com>
*
* @requires {@link https://www.npmjs.com/package/cuint|cuint}
* @requires {@link https://www.npmjs.com/package/bluebird|bluebird}
* @requires {@link https://www.npmjs.com/package/rage-edit|rage-edit}
* @requires {@link https://www.npmjs.com/package/simple-vdf2|s... |
function Game_State(m_game, m_player) {
this.game = m_game;
this.player = m_player;
}
function Game(m_jushu, m_changfeng, m_benchang) {
this.jushu = m_jushu; //局数
this.changfeng = m_changfeng; //场风
this.benchang = m_benchang; //本场数
this.lichi_num = 0;
}
function Player(m_playerName, m_Point) {... |
/*global require, process, console*/
// node modules
var fs = require("fs");
var url = require("url");
var http = require("http");
var crypto = require("crypto");
// npm modules
var _ = require("lodash");
var mime = require("mime");
var async = require("async");
var pkgcloud = require("pkgcloud");
var File = require("... |
ENTRIES_URL = "https://bfwd-backend.herokuapp.com/api/v1/entries/"
FAVORITES_URL = "https://bfwd-backend.herokuapp.com/api/v1/favorites/"
var allEntries = []
var allFavorites = []
var authors = []
var arrayOfSentences = []
var submitted=false;
document.addEventListener("DOMContentLoaded", () => {
//console.log("We l... |
var modal = '<div class="modal" id="fileSelectModal" tabindex="-1"';
modal += 'role="dialog" aria-labelledby="fileSelectModalLabel">';
modal += '<div class="modal-dialog modal-lg" role="document">';
modal += '<div class="modal-content">';
modal += '<div class="modal-header">';
modal += '<button type="button" class... |
/**
* Livemaps v0.3
* author: Nexis <<EMAIL>>
*/
/* Default Node Skin Color */
var DeadSkinColor = '#888888';
/* Max Refreshes */
var MaxRefresh = 60;
/* Refresh Interval */
var RefreshInterval = 10000;
/* ================ [ DO NOT EDIT BELOW THIS LINE ] ================ */
/* Connected Players [CSteam64ID] */
va... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
var game = new Game();
function init() { game.init(); }
/**
* Define an object to hold all our images for the game so images are only ever
* created once. This type of object is known as a singleton.
*/
var imageRepository = new function () {
//
// too fucking tricky by far. loading is the number of images to ... |
var processing=false;
function isntProcessing(ms){;if(!processing){;return (processing=true);}else{;setTimeout("processing=false",ms);return false;};}
function doSearch() {;return isntProcessing(15000);}
function resetSearch() {;processing=false;}
function CalcDate(D){
//args TimeValue & (Months|Days|Seconds) & (+|-)... |
import React, { useMemo, useContext, useEffect, useCallback, useState } from 'react';
import { generatePath } from 'react-router';
import useReactRouter from 'use-react-router';
import { Link } from 'react-router-dom';
import { lighten, makeStyles } from '@material-ui/core/styles';
import clsx from 'clsx';
import {
B... |
// import { GalleryXZ } from './GalleryXZ.js';
export function MenuThree(menu, fun) {
var self=this
this.type="MenuThree";
this.par=menu;
this.otstup=aGlaf.otstup;
this.wh=aGlaf.wh;
this.whv=aGlaf.whv;
this.widthBig=aGlaf.widthBig;
this.dCont=new DCont(this.par.dCont);
this.... |
//Separate from Graphing API, but needs to be included as many of the operations take advantage of vector operations
function __InitVectorOperations()
{
var Operator =
{
Vec2: function(_X, _Y){ var Vec = {X:_X, Y:_Y}; return Vec;},
Add: function(A, B){ var Vec = this.Vec2(A.X + B.X, A.Y + B.Y); return Vec;},
... |
/*********************************************************************************
The Campus Cloud software is available under a dual license of MIT or GPL v3.0
Copyright (C) 2013
<NAME>, <NAME>, <NAME>, <NAME>,
<NAME>, <NAME>, <NAME>, <NAME>
/************************************************************... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, { Component } from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
Image,
Button,
Picker,
SectionList,
TouchableHighlight,
TextInput,
} from 'react-... |
import React from 'react';
import NotificationEmail from './NotificationEmail';
import {
Form,
TextInput,
Button,
Dropdown,
RadioTile,
Row,
Grid,
Column,
FormLabel,
Tooltip,
InlineLoading,
ToastNotification,
ModalWrapper,
DatePicker,
DatePickerInput,
TimePicker,
TimePickerSelect,
S... |
/****
main: webClient项目概况js
****/
var tempMembersDate;//用于存储项目成员信息的临时字符串,便于后边显示成员信息使用
var partyId;//用于存储邀请成员时候的 参与方ID
var projectId;
var projObj;
var accountList;
var sels = new Array("工长", "安全员", "安全总监", "材料员", "材料主管", "财务会计", "财务经理", "测量师", "测量员", "行管主任", "劳务员", "商务经理", "施工员","试验员",
"项目部", "项目副经理", "项目经理", ... |
// The OAuth2.0 client ID from the Google Developers Console.
var SERVICE_HOST = "http://harrisburg.cs.colostate.edu:8787/columbus";
var CLIENT_ID = '492266571222-lk6vohmrf2fkkvkmjfi5583qj30ijjkc.apps.googleusercontent.com';
var APIKEY = "<KEY>";
var FUSION_TABLE_ID = "1hUiW58GkgIM1A5lWPeN4xwL1TXaxm7RMYaMsYt6s";
var ma... |
backend = "https://carex.uber.space/stories/backend/"
backend_stories = backend+"stories/"
backend_audio = "https://carex.uber.space/stories/audio/"
isEditor = false;
story = undefined;
story_json = undefined;
story_id = undefined;
audio_map = undefined;
audio_objects = undefined;
audio_right = new Audio("https://d35... |
"use strict";
// RPC wrapper
document.getElementById("status").innerHTML = "hello"
console.log("TESTING")
jQuery(document).ready(function($){
var transitionEnd = 'webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend';
var transitionsSupported = ( $('.csstransitions').length > 0 );
... |
var CHAR_BAT = './assets/image/monster_bat_darkgreen.png';
var CHAR_GIANT = './assets/image/monster_giant_blue.png';
var MAP_DATA = "" +
"707070707070707070707070707070707070707070707070707070707070" + "\n" +
"----------------------------------------------------------@B" + "\n" +
"----------------------------------*B-... |
"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... |
function getRndInteger(min, max) {
return Math.floor(Math.random() * (max - min + 1) ) + min;
}
const rndNum = getRndInteger(500,5100);
const size = 200; //width rect
let score = 0;
let hearts = 24;
let gameOver = false;
let player, startplay, stars, bombs, platforms, movingPlatform, movingPlatform2, movingPlatform... |
unitbox=document.querySelector('.unitbox')
racebar=document.querySelector('.racebar')
footer=document.querySelector('.footer');
mainframe=document.querySelector('.macroApp-wrapper')
let zerglist = [
{ name: 'drone', minerals: 50, gas: 0 , supply: 1, time:12},
{ name: 'queen', minerals: 150, gas: 0 , supply: 2... |
/* Copyright 2014-2015 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
let express = require('express')
let bodyParser = require('body-parser');
let formidable = require('formidable');
let session = require('express-session');
let crypto = require('crypto');
let app = express()
let port = 3000;
let nodemailer = require('nodemailer'); //folosirea modulului nodemailer
//Librarie necesar... |
var debug = require('debug')('Accessory');
var crypto = require('crypto')
var inherits = require('util').inherits;
var EventEmitter = require('events').EventEmitter;
var clone = require('./util/clone').clone;
var uuid = require('./util/uuid');
var Service = require('./Service').Service;
var Characteristic = require('./... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (... |
/**
* @fileoverview Gulp Task for testing/validating source files.
*
* @author <NAME> <<EMAIL>>
*/
'use strict';
const fs = require('fs');
const path = require('path');
const gulp = require('gulp');
const chalk = require('chalk');
const glob = require('globule');
const jsYaml = require('js-yaml');
const gutil = r... |
/**
* @classification UNCLASSIFIED
*
* @module controllers.webhook-controller
*
* @copyright Copyright (C) 2018, Lockheed Martin Corporation
*
* @license Apache-2.0
*
* @owner <NAME>
*
* @author <NAME>
*
* @description This implements the behavior and logic for webhooks.
* It also provides function for in... |
/* global adminpage, wpActiveEditor, quicktagsL10n, wpLink, prompt */
/*
* Quicktags
*
* This is the HTML editor in ClassicPress. It can be attached to any textarea and will
* append a toolbar above it. This script is self-contained (does not require external libraries).
*
* Run quicktags(settings) to initialize ... |
import { WDialog } from "../leafletClasses";
import WasabeePortal from "../portal";
import { getSelectedOperation } from "../selectedOp";
import { greatCircleArcIntersect } from "../crosslinks";
// import WasabeeLink from "../link";
import {
clearAllLinks,
getAllPortalsOnScreen,
testPortal,
} from "../uiCommands"... |
"use strict";
/**
* The DefaultView acts as an interface for other views to use so the proper
* methods and attributes are implemented.
*
* Also, this view allows certain models to be injected into the "this" context
* of your class.
*
* It is recommended that you use the listenTo function to bind to model e... |
import { ApiSectionsComponent } from '@ngx-bootstrap-doc/docs';
import { DatepickerDemoComponent } from './demos/datepicker-demo.component';
import { DemoDatepickerBasicComponent } from './demos/basic/basic';
import { DemoDatepickerByIsOpenPropComponent } from './demos/trigger-by-isopen-property/trigger-by-isopen-prope... |
import cytoscape from 'cytoscape';
import 'ui/visualize';
import {VisProvider} from 'ui/vis';
import {getVisualizeLoader} from 'ui/visualize/loader';
import { timefilter } from 'ui/timefilter';
const app = require('ui/modules').get('apps/panorama', []);
const node_colors = [
'#c3b7ac', // created
'#aca96e', /... |
/**
* This app js file give the global instruction how the this app should do
*
*/
var express = require('express');
var clientSessions = require('client-sessions');/////////
var mkdirp = require('mkdirp');
var rimraf = require('rimraf');
var path = require('path');
var favicon = require('serve-favicon');
var logge... |
const _ = require('underscore');
const $ = require('jquery');
const Backbone = require('backbone');
const SQL = require('internal-carto.js').SQL;
const safeTableNameQuoting = require('dashboard/helpers/safe-table-name-quoting');
const cartoMetadataStatic = require('./carto-table-metadata-static');
const checkAndBuildOp... |
$(document).ready(function(){
window.clusterId = getQueryString("clusterId");
window.endTime = getQueryString("endTime") || getCurrentTime();
window.startTime = getQueryString("startTime") || (window.endTime - 60 * 60);
window.host = getQueryString("host") || "all";
window.date = getQueryString("dat... |
/// <reference path="../../typings/index.d.ts" />
var filterType;
(function (filterType) {
filterType[filterType["category"] = 0] = "category";
filterType[filterType["item"] = 1] = "item";
})(filterType || (filterType = {}));
var SsgUI;
(function (SsgUI) {
'use strict';
var document = window.document;
... |
"use strict";
exports.viewFunction = exports.BulletProps = exports.Bullet = void 0;
var _inferno = require("inferno");
var _inferno2 = require("@devextreme/runtime/inferno");
var _combine_classes = require("../../utils/combine_classes");
var _resolve_rtl = require("../../utils/resolve_rtl");
var _get_element_offs... |
import React from 'react';
import { max, sum } from 'd3-array';
import { scaleLinear } from 'd3-scale';
import PrimaryCallToAction from '../../../shared/js/components/gironde.fr/PrimaryCallToAction';
import MoneyAmount from '../../../shared/js/components/MoneyAmount';
function delay(time){
return () => new Promi... |
import React, { Component } from 'react';
//import {findDOMNode } from 'react-dom';
//import logo from './logo.svg';
//import { render } from '@testing-library/react';
//import ResizeObserver from 'rc-resize-observer';
// import { View } from 'react-native';
//import 'jquery-ui';
import jQuery from "jquery";
import ... |
import { isMobile } from './mobile';
import { checkMonetization, isMonetizationEnabled } from './monetization';
import { initAudioContext, generateBufferDataForSong, pauseSong, playSong, resumeSong, stopSong } from './sound';
import { save, load } from './storage';
import { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT, CHARSE... |
"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... |
const CustomError = require('../../class/CustomError');
const Pool = require('../../class/Connection');
const Request = require('../../class/Request');
const Utils = require('../../class/Utils');
/**
* @api {SCHEMA} App App
* @apiGroup Schemas
* @apiName App
* @apiDescription The optional properties are included b... |
/*
* Neuroarch Interaction
*/
var cartridge_graph;
var cartridge_node_dict = {};
var cartridge_name_to_label = {};
var alpha_process_dict = {};
// only works with cartridge number 0
//var cartridge_num = 0;
// handle returned by setInterval when using periodic notification for execution
var ex_notification;
functi... |
//this is key press value not click
const leftKeySkip = -10; //10s
const rightKeySkip = 20; //20s
const volumeUp = 0.05;
const volumeDown = -0.05;
const video = document.querySelector(".video");
const current = document.querySelector(".current");
const duration = document.querySelector(".duration");
const progressRn... |
// global variables
var questionEl,
questionID,
timeInterval,
timeLeft,
perTime, //global perTime
penaltyTime, // global penaltyTime
bonusTime, // global bonusTime
settings = {}, // init settings
highScores = getData(); // load storage data as current highScores array
// capture cont... |
"use strict";
function getRatio(){
var ctx = document.createElement("canvas").getContext("2d");
var dpr = window.devicePixelRatio || 1;
var bsr = ctx.webkitBackingStorePixelRatio
|| ctx.mozBackingStorePixelRatio
|| ctx.msBackingStorePixelRatio
|| ctx.oBackingStorePixelRatio
||... |
import Telegram from "@36node/telegram";
import { Decimal } from "decimal.js";
import * as cs from "./constants";
/**
* assert functions
*/
function assertRange(low, high, exceptVals = []) {
return num => {
if (typeof num === "string") {
num = parseInt(num, 10);
}
if (exceptVals.includes(num)) ... |
'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 ("va... |
$(document).ready(function () {
DashboardCategory.init();
DashboardCategory.gerSports();
DashboardCategory.getPopularSports();
// DashboardCategory.test();
// $('.trigger-collapse').on('click',function (e) {
// step 2
$(document).on("click", ".trigger-collapse", function(e) {
... |
import { default as smaaAreaTexture } from "./textures/area.js";
import { default as smaaSearchTexture } from "./textures/search.js";
const vertexSource = `\
#define mad(a, b, c) (a * b + c)
#if defined(SMAA_PRESET_LOW)
#define SMAA_MAX_SEARCH_STEPS 4
#elif defined(SMAA_PRESET_MEDIUM)
#define SMAA_MAX_SEARCH_STEPS 8
... |
import * as THREE from '../build/three.module.js';
/**
* LOD Viewer
* LOD level is like this: Points - Floor - Surface - Line - (3D)Model.
*
* Changelog:
* Dr.Koo sent us this viewer 2021.12.01
*
* @usage:
* let lodViewer = new LODViewer();
* lodViewer.loadBuildings();
*/
{ // copy global variable
... |
import Icon from 'components/commons/Icon';
import PropTypes from 'prop-types';
import React from 'react';
import { Alert, Button, Label } from 'react-bootstrap';
import { faRandom } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { FeatureCollectionDis... |
import keys from '../util/keys'
import platform from '../util/platform'
import startsWith from '../util/startsWith'
import parseKeyEvent from '../util/parseKeyEvent'
import { getDOMRangeFromEvent } from '../util/windowUtils'
import DefaultDOMElement from '../dom/DefaultDOMElement'
import Component from './Component'
im... |
/* global addEdge, addEdgeBetweenSelected, addEdgeBwt, addNode, addOneNode, animation_check, animationFlag: true, auto_refresh, ca, CaLayout, callToAlgorithms, caReLayout, changeLayout, clearCaStyle, clearCyStyle, clearResult, clearSource, copiedEles, copy, cy, CyLayout, cyReLayout, drawOn, duplicateEdge, duration, get... |
let uuid = require('uuid/v4'),
{ required } = require('valivali'),
Input = require('components/common/Input.js'),
Modal = require('components/common/Modal.js'),
FormField = require('components/forms/FormField.js'),
ElementRenderer = require('components/views/designer/ElementRenderer.js'),
Butto... |
/*eslint-disable no-unused-lets*/
/*global window,$, d3, PolyBool, parameters, Set*/
// import * as spv from './spatial_view.js';
import {
networkHierarchy
} from './explore.js';
import {
indexTime,
arrayAnimals,
setActiveAnimals,
decIndexTime,
Drawer
} from './spatial_view/spati... |
const he = require('he');
const fetch = require('node-fetch');
const Sequelize = require('sequelize');
const Discord = require('discord.js');
const { ReactionCollector } = require('discord.js');
const REACT=['\u0031\u20E3', '\u0032\u20E3','\u0033\u20E3','\u0034\u20E3'];
const Timer = require('./../classes/timer.js');
... |
// ShackStats
// Copyright (C) 2016 <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, merge, publ... |
function ready() {
getRates();
}
document.addEventListener("DOMContentLoaded", ready);
var dates =[];
var quotes=[];
var msg;
// ! CHANGE ONLY WITH changeStepSize() function
var step = 12; // hours step
var plot_period = 12; // months for plot "cost for rent period"
function changeStepSize(i) {
console.l... |
// In each list of tests below, test file types that are not supported should
// be ignored. To make sure tests respect that, we include a file of type
// "bogus/duh" in each list.
// These are small test files, good for just seeing if something loads. We
// really only need one test file per backend here.
var gSmallT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.