text stringlengths 5.97k 41.2k |
|---|
"use strict";
class AsyncStorage {
}
Map.prototype.map = (function (gen) {
const out = [];
for (const [key, value] of this.entries()) {
out.push(gen(key, value));
}
return out;
});
Number.prototype.mod = function (n) {
return ((this % n) + n) % n;
};
Array.prototype.clear = function () {
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ExtendedResolver = void 0;
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopR... |
// Rendering styles
import {StyleParser} from './style_parser';
import FeatureSelection from '../selection';
import ShaderProgram from '../gl/shader_program';
import VBOMesh from '../gl/vbo_mesh';
import Texture from '../gl/texture';
import Material from '../material';
import Light from '../light';
import {RasterTileS... |
import React, { Component } from "react";
import Kalimba from "../components/Kalimba";
import { connect } from "react-redux";
import { getInstruments } from "mobx-music";
import { delay } from "q";
import NoteButton from "../components/NoteButton";
import AccidentalButton from "../components/AccidentalButton";
import T... |
/*
Function Reference
==================
loadLevel() - loads up the level
fireRule() - fires the css rule
updateProgressUI() - adds a checkmark to the level menu and header when a correct guess is made, removes it if incorrect
hideTooltip() - hides markup tooltip that hovers over the elements
showHelp() ... |
import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import enhanceWithClickOutside from 'react-click-outside'
import uuid from 'uuid';
import SelectAsync from './Async'
import shadowDOM from '../helpers/shadowDOM'
import {
KEY_UP,
KEY... |
import crypto from "crypto";
import { promises as fs } from "fs";
import process from "process";
import readline from "readline";
import url from "url";
import { Command } from "commander";
import _ from "lodash";
import { getTestHash } from "../lib/hash-test.js";
import {
getLangs,
getSharedDeps,
getSharedDeps... |
import Sortable from 'sortablejs'
import * as _ from 'lodash';
import { v4 as uuidv4 } from 'uuid';
import eventbus from '../../../service/eventbus';
// import eventbus from '../../../views/editor/service/eventbus';
let common = {
createNewInstanceKey () {
return uuidv4()
}
};
const viewport = {
na... |
import React from 'react';
import * as THREE from 'three';
import { TrackballControls } from 'three/examples/jsm/controls/TrackballControls.js';
import { Line2 } from 'three/examples/jsm/lines/Line2.js';
import { LineMaterial } from 'three/examples/jsm/lines/LineMaterial.js';
import { LineGeometry } from 'three/ex... |
//links
//http://eloquentjavascript.net/09_regexp.html
//https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
//const { task } = require("gulp");
localStorage.setItem("Tasks", JSON.stringify(
[
{ name: "Get five clients", finished: false },
{ name: "Finish project", finished: fa... |
#!/usr/bin/env node
const readFiles = require('read-files-promise');
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const utils = require('./utils');
const chalk = require('chalk');
const progress = require('cli-progress');
const repl = require('repl');
const readline = require('... |
var exception_type_code_option = "";
var reason_type_name_option = "";
var vm = new Vue({
el:'#rrapp',
data:{
user:{},
mydata:[],
workshoplist:[],
newException:{},
lastrow:'',
lastcell:'',
check:true
},
created:function(){
this.getUser();
getWorkShopList();
},
methods: {
getUser: function(... |
import Struct from 'struct';
import Bundle from 'iota.lib.js/lib/crypto/bundle/bundle.js';
import {
addChecksum,
noChecksum,
transactionTrytes,
} from 'iota.lib.js/lib/utils/utils.js';
import bippath from 'bip32-path';
import semver from 'semver';
import { getErrorMessage } from './error';
import * as guards from... |
var _ = require('underscore');
var xml2js = require('xml2js');
var _xmlParser = xml2js.parseString;
var _xmlBuilder = new xml2js.Builder();
var key2dyn = module.exports = {};
/**
* Parses Keynote script XML string to object.
*
* @this {Converter}
* @param {string} Keynote script XML string.
* @callback
* @re... |
var AIRTIME_API_VERSION = "1.1";
(function($){
$.fn.airtimeShowSchedule = function(options) {
var defaults = {
updatePeriod: 20, //seconds
sourceDomain: "http://localhost/", //where to get show status from
text: {onAirToday:"On air today"},
showLimit: 5
};
options = $.ext... |
function KMP(am, w, h) {
this.init(am, w, h);
}
KMP.prototype = new Algorithm();
KMP.prototype.constructor = KMP;
KMP.superclass = Algorithm.prototype;
KMP.MARGIN_X = 40;
KMP.MARGIN_Y = 100;
KMP.COUNTER_BUILD_LABEL_X = 20;
KMP.COUNTER_BUILD_LABEL_Y = 20;
KMP.COUNTER_SEARCH_LABEL_X = 20;
KMP.COUNTER_SEARCH_LABEL_Y... |
import React, { Component } from 'react';
import { OstWalletSdk } from '@ostdotcom/ost-wallet-sdk-react-native';
import {
View,
Text,
TextInput,
TouchableOpacity,
Image,
Keyboard,
BackHandler,
TouchableWithoutFeedback
} from 'react-native';
import { getBottomSpace, isIphoneX } from 'react-native-iphone-... |
"use strict";
/**
* Copyright (c) Sony Interactive Entertainment Inc.
*
* This source code is licensed under the BSD-3-Clause license found
* in the LICENSE file in the root directory of this source tree.
*/
var __extends = this && this.__extends || function () {
var _extendStatics = function extendStatics(d, b... |
import React, { PureComponent } from 'react';
var padStart = function padStart(str, targetLength, padString) {
var useNative = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
if (useNative && typeof String.prototype.padStart === 'function') {
return str.padStart(targetLength, padStri... |
/**
* @Description: 我的工作台我的专题总部应用、省份应用组件
*
* @author: xingxiaodong
*
* @date: 2020/4/20
*/
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Select, Icon, DatePicker, Modal , Input, message} from 'antd';
import Cookie from '@/utils/cookie';
import moment from 'moment';
// impo... |
// dark theme customisation at the end at abt 29:57
import React, {useEffect, useState} from 'react';
import {
Alert,
View,
Text,
TouchableOpacity,
ImageBackground,
TextInput,
StyleSheet,
SafeAreaView,
} from 'react-native';
import {useTheme} from 'react-native-paper';
import { MaterialCommunityIcons, E... |
/*
* Copyright (c) 2017, Two Sigma Open Source
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { Row, Col, Modal } from 'react-bootstrap';
import { connect } from 'react-redux';
import { injectIntl, FormattedMessage, FormattedNumber, intlShape } from 'react-intl';
impor... |
/*
* Not made by us.
* Taken from https://github.com/josephg/noisejs/blob/master/perlin.js
*
*
* A speed-improved perlin and simplex noise algorithms for 2D.
*
* Based on example code by <NAME> (<EMAIL>).
* Optimisations by <NAME> (<EMAIL>).
* Better rank ordering method by <NAME> in 2012.
* Converted to Javascript by ... |
import createReducers from '../utils/createReducers'
import _ from 'lodash';
import md5 from 'md5';
import { HomePage, PaySetting } from '../utils/constants'
import { staticHost } from '../common/config';
const initialState = {
collapsed: false,//是否收起\展开菜单
menuData: [],//功能菜单数据
notifyCount: 0,//微标
not... |
/*
*
* 获取queryString字段
* */
function queryString() {
var query_string = {};
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i = 0; i < vars.length; i++) {
var pair = vars[i].split(/=(.+)/);
// If first entry with this name
if (typeof quer... |
function makeTdLsb(lstdoc, sb, pos) {
var vpos, svgns, mysbg, mytd, mysvg, myg, myrect, myline, mypath, myg2;
// pos: 0.0 .. 1.0
vpos = (16 + Math.round(pos * (90-2*16)));
svgns = "http://www.w3.org/2000/svg";
// table cell
/*
<td id="tdLsb" rowspan="5">
*/
mytd = lstdoc.createElementNS("http://www.w3.org/... |
var moncollege = "1";
var btn_attente = document.getElementById('attente');
var btn_pret = document.getElementById('pret');
var btn_emprunt = document.getElementById('emprunt');
var contenerResultatGlobal = document.querySelector('.selector')
$(document).ready(function () {
});
//**********************
// évent au ... |
/**
* 设置分快递规则
*/
function refreshDistributeShippingTable() {
$('#distribute_shipping_table tbody').empty();
$('#distribute_shipping_table tbody').html(loadding);
var param = {
"product_id": $('#product_id').val(),
};
$.ajax({
url: WEB_ROOT + 'productEdit/getSkuRegionShippingList',
type: 'POST',
data: ... |
/**
* generic compiler
*/
var fs = require('fs'),
path = require('path'),
wrench = require('wrench'),
log = require('../log'),
util = require('../util'),
jsgen = require('./jsgen'),
syslibrary = require('./library');
exports.generateLibrary = generateLibrary;
function generateLibrary (options, build_opts, arc... |
import React from 'react';
import { OverlayTrigger, Popover, Tooltip } from 'react-bootstrap';
import PropTypes from 'prop-types';
import Select from 'react-select';
import 'react-select/dist/react-select.css';
import Datetime from 'react-datetime';
import 'react-datetime/css/react-datetime.css';
import moment from 'mo... |
/*
* Client JS Code for the Dropbox Client
* it should handle files/folders, cache...
*
* By <NAME>
*/
// File
// attr must contain all needed attributes
function File(attr){
this.parent = attr['parent']; // Full path to parent
this.name = attr['name']; // File/Directory name
this.loaded = false; ... |
/**
* Created by michaelhall on 5/3/17.
*/
//============================================================
// Code for opening the websocket and sending/receiving information through it
// Mostly button listeners and text boxes used to gather this information
//========================================================... |
/* eslint-disable no-restricted-syntax, no-extend-native, guard-for-in, func-names, no-else-return, lines-around-directive, strict */
/**
* Global Functions.js
* {@link https://oldcastletraining.autodeskplm360.net/script.form?ID=300}
*/
function getTenantSettings() {
return loadItem(356769);
}
/**
* Populate... |
//------------------------------------------------------------------------------------------
// Library
// validator
// Description:
// - The library provides methods to subscribe to the various blockchains, to track
// payments and do the bookkeeping and do financal accouting checks. It communicates
/... |
const ArrayUnique = require('../../helpers/array-unique');
const create = require('../../crud/create');
const config = require('../../../../config').settings();
const CrisprDefaults = require('../CRISPR/crispr-defaults');
const fs = require('mz/fs');
const Log = require('../log');
const Mean = require('../../helpers/me... |
import Immutable from "immutable";
import won from "../../won-es6.js";
import * as useCaseUtils from "../../usecase-utils.js";
import { isPersona, isSearchAtom } from "../../redux/utils/atom-utils.js";
import {
generateHexColor,
generateRgbColorArray,
get,
getIn,
} from "../../utils.js";
import shajs from "sha.... |
/*
* This file houses utilities for copying blocks of memory to and from
* the WASM heap.
*/
/**
* Malloc returns a TypedArray backed by the C++ memory of the
* given length. It should only be used by advanced users who
* can manage memory and initialize values properly. When used
* correctly, it can save copyi... |
var THREE;
var ThreeStage = {
implementation : {
pipeline : {
},
layers : {
create : function(name) {
var layer = new THREE.Object3D();
while(!name || this.layers[name])
name = 'L'+(this._idCtr++);
layer.name = name;
this.layers[name] = layer;
this.root.add(layer);
return(la... |
const { h, Component } = require('preact');
const AdaptiveFlow = require('./AdaptiveFlow');
const Blocker = require('./Blocker');
const Dev = require('./Dev');
const Input = require('./Input');
const Poll = require('./Poll');
const PremiumsTable = require('./PremiumsTable');
const ProceduresTable = require('./Procedure... |
//-----------------------------------------------------------------------------
// Galv's Dynamic Traits
//-----------------------------------------------------------------------------
// For: RPGMAKER MV
// Galv_DynamicTraits.js
//-----------------------------------------------------------------------------
// 201... |
var month_names = [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
];
var sex_types = [
"male",
"female"
];
var personality_types = [
"Cranky",
"Peppy",
"Sisterly",
"Lazy",
"Normal",
"Snooty",
"Jock",
"Smug"
];
var species_types = [
"A... |
/*
U3.W7: Design Basic Game Solo Challenge
This is a solo challenge
Your mission description: Create a blackjack game if I can figure out how to display the table.
Overall mission:
Deal hands of blackjack, initially just one player and dealer. No animation.
Display cards in browser window.
UI: window display... |
/*eslint no-unused-vars: 0*/
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import ReactResizeDetector from 'react-resize-detector';
import NvistaRoiSettings from './NvistaRoiSettingsPanel';
const fabric = require('fabric').fabric;
/**
* Sketch Tool based on FabricJS for React Appl... |
const connection = undefined;
var turn = undefined;
var timeout = undefined;
var gameid = undefined;
this._4x2 = [];
this._3x2 = [];
this._4x1 = [];
this._2x1 = [];
let canvas = document.getElementById('canvas');
let ctx = canvas.getContext('2d');
canvas.width = window.innerHeight * 0.97 * 0.560;
canvas.height = wind... |
import React, { useState, useEffect} from 'react';
import List from './List.jsx';
import './App.css';
import axios from 'axios';
import logo from './assets/keyBoarder.png';
const App = () => {
//used to set/create Audio context or webkitAudio in case AudioContext isn't available
window.AudioContext = window.AudioC... |
require('dotenv').config()
require('@kth/reqvars').check()
// const transferToLadokData = require('./utils/transferToLadokData')
const CanvasApi = require('@kth/canvas-api')
const got = require('got')
const path = require('path')
const fs = require('fs')
const util = require('util')
const parseStringAsync = util.promi... |
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
var fs = require('fs');
var jsonfile = require('jsonfile');
var shell = require('shelljs');
var router = express.Router();
var spawn = require('child_process').spawn;
var path = require('path');
router.get('/', function(... |
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const vm = require('vm');
const stream = require('stream');
const os = require('os');
const v = (a, d, c, b = !1, f = !1) => {
const e = c ? new RegExp(`^-(${c}|-${d})$`) : new RegExp(`^--${d}$`);
d = a.findIndex(g => e.test(g));
if (-1 == d... |
/**
* Created by mac on 2015/3/6.
*/
$.showIndicator = function () {
$("body").append('<div class="preloader-indicator-overlay"></div><div class="preloader-indicator-modal"><span class="preloader preloader-white"></span></div>');
};
$.hideIndicator = function () {
$('.preloader-indicator-overlay, .preloader-i... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.MultiSelect = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _DomHandler = _interopRequireDefault(require("../utils/DomHandler"));
var _ObjectU... |
function displayFeed() {
$("#FEED").show();
$("#WELLNESS").hide();
$("#feed_button").css("opacity", 1);
$("#wellness_button").css("opacity", 0.3);
}
function displayWellness() {
$("#WELLNESS").show();
$("#wellness_button").css("opacity", 1);
$("#feed_button").css("opacity", 0.3);
$("#FEED").hide();
$... |
// Copyright 2017 <NAME>
//
// Licensed under the modified BSD (3-clause BSD) License.
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the Lic... |
/*!
* contentstack-cli
* copyright (c) Contentstack
* MIT Licensed
*/
'use strict';
/*!
* Module dependencies
*/
var _path = require('path');
var async = require('async');
var prompt = require('prompt');
var chalk = require('chalk');
var exec = require('child_process').exec;
var os = require('os');
var _ = req... |
import React, { useState, useEffect, useRef } from 'react'
import PropTypes from 'prop-types'
import styled, { keyframes } from 'styled-components'
import classNames from 'classnames'
import find from 'lodash/fp/find'
import COLORS from '../../../constants/colors-config'
import TYPOGRAPHY from '../../../constants/typo... |
const EventEmitter = require('events').EventEmitter;
const {
dialog, screen, powerMonitor, session, net
} = require('electron');
const path = require('path');
const MainWindowProcessManager = require('./MainWindowProcessManager');
const MainBus = require('./MainBus');
const MainSystem = require('./MainSystem');
const ... |
/**
* Copyright 2017 IBM All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
//#region Classes
class FeastList {
constructor() {
this.locations = [];
}
addLocation(map) {
let loc = new Location(map);
this.locations.push(loc);
}
removeLocation(map) {
let index = -1;
for (let i = 0; i < this.locations.length; i++) {
if (thi... |
'use strict'
let events = require('events'),
privacy = require('./privacy'),
relationships = require('../node_modules/friends-of-friends/lib/relationships'),
url = require('url'),
util = require('util'),
utils = require('techjeffharris-utils');
function OffTheRecord_Client (options) {
if (!(this instance... |
'use strict';
let badapter = require('./badapter');
let configuration = require('./webrtc.config');
let idhelper = require('./idhelper');
class WebRTC {
constructor(localid, overlay) {
this.listeners = [];
this.connections = [];
this.connectionMap = {};
this.instanceMap = {};
this.deadTimestamps = new Set(... |
/** @module */
import Core from './core/core';
import cssVars from 'css-vars-ponyfill';
import {
DefaultTemplatesLoader,
Renderers,
DOM,
SearchParams
} from './ui/index';
import Component from './ui/components/component';
import ErrorReporter from './core/errors/errorreporter';
import ConsoleErrorReporter fr... |
// Constants
var FPS = 60
var randomseed = 1234
var width = 10
var length = 10
var spd = 0.02
var rotSpd = 0.005
// Variables
var camera = {
rx: -1,
ry: 0,
rxSpd: 0,
rySpd: 0,
x: 0,
y: 0,
z: 1,
xSpd: 0,
ySpd: 0,
zSpd: 0,
zoom: 300,
}
var mouse = {
x: 0,
y: 0,
dx: 0,
dy: 0,
left: false,
right:... |
/**
* @author <NAME> <<EMAIL>>
* Creates and manages the sidebar with the dynamic contents
* of the graph and tree information as well as properties.
*/
/**
* Set all properties from graph and tree which
* are displayed in the sidebar.
*/
function setSidebarProperties() {
emptyDynamicSidebar();
setGrap... |
/*
* This file contains the logic of the Timer application. It may seem complex,
* but it strictly follows the MVC pattern, which dictates to separate model
* (the Project and Projects classes) from the code manipulating the HTML. The
* use of MVC was probably not necessary in such a small application, but I
* con... |
/**
* Created by ygshen on 2017/4/28.
*/
//InfoLinksComponent: info links
var headerInfoApp = angular.module('headerInfoApp', []);
headerInfoApp.controller('headerInfoController', function ($scope, $http) {
$scope.resource = H.resource;
var resource= $scope.resource;
$scope.query = {};
$scope... |
import React, { Component } from 'react';
import firebase from 'firebase/app';
import '@firebase/messaging';
import { Link } from 'react-router-dom';
import '../css/info.css';
import buscar from '../buscar.png';
import foto from '../cerrar.png';
import campanita from '../campanita.png';
import SocketNew from './Socke... |
import _ from 'underscore';
import $ from 'jquery';
import { OrderedMap } from 'immutable';
import { rowGrouper } from './rowGrouper'
import { squashNodes } from './squashNodes';
import {
createElement,
setHtml,
outerHtml,
setAttribute,
removeAttribute,
bindElem,
appendChild,
} from './dom-placeholders'... |
const WAE = require('web-auto-extractor').default
const fetch = require('node-fetch')
const validator = require('validator')
const isStream = require('is-stream')
const getStream = require('get-stream')
const { runTest } = require('./lib/tests')
const { schemas: validSchemas, getSchema } = require('./lib/schemas')
con... |
#!/usr/bin/env node
const { existsSync, promises: fs } = require('fs')
const path = require('path')
if (require.main === module) {
main().catch((error) => {
console.error(error)
process.exit(1)
})
} else {
module.exports = main
}
function findPaths() {
const root = require('pkg-dir').sync() || requir... |
import {
PersonSimpleOverlayRow,
PositionOverlayRow
} from "components/advancedSelectWidget/AdvancedSelectOverlayRow"
import AdvancedSingleSelect from "components/advancedSelectWidget/AdvancedSingleSelect"
import CustomDateInput from "components/CustomDateInput"
import * as FieldHelper from "components/FieldHelper"... |
/*******************************************************************************
* Copyright 2013-2020 Rundfunk und Telekom Regulierungs-GmbH (RTR-GmbH)
*
* 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 ... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
var PropTypes = _interopDefault(require('prop-type... |
var fs = require('fs');
var sia = require('sia.js');
var http = require('request');
// Passing arguments
var argument1 = process.argv[2]
var argument2 = process.argv[3]
console.log()
console.log("*** KEOPS DECENTRALIZER v0.1.0 ***")
if (argument1 == "scan") {
siaContracts()
} else if (argument1 == "... |
// Technical things -- getting the output in the right place, setting event listeners etc
var output = "type start to begin"
var command = null;
var note;
var place = 'first'
var inElement = document.getElementById('input');
var outElement = document.getElementById('out');
var out2 = document.getElementById('out2');
va... |
var initialMessageHeight = 0,
keysPressed = [];
Template.messages.events({
'keydown #mymessage' : function(evnt,tmplt){
keysPressed[evnt.keyCode] = true;
},
'keyup #mymessage' : function(evnt,tmplt){
text = tmplt.find('#mymessage').value;
t= Date.now() + tdiff;
allowed = text.length < 500 ? true... |
let src = "https://latitudes.in/bing_sms.mp3";
let audio = new Audio(src);
let states = [];
let dists = [];
let state_id = 0;
let district_id = 363;
let options = {
// Namespace. Namespace your Basil stored data
// default: 'b45i1'
namespace: "cowin",
// storages. Specify all Basil supported storages and prio... |
/**
* [ Demon Roulette Rewrite ]
* - Contributors
* * ItzElectrix
* * Joey
* * Firee
*/
const {
Client,
Collection,
Intents,
Permissions,
MessageEmbed
} = require('discord.js');
const client = new Client({
autoReconnect: true,
intents: [Intents.FLAGS.GUILDS,
Intents.FLAG... |
SVG_EXTENSIONS = [".svg", ".svg.gz", ".svgz" ];
AUDIO_EXTENSIONS = [ ".mp3", ".wav", ".ogg", ".ape", ".flac", ".m4a", ".xm", ".s3m", ".mod", ".it", ".j2b", ".ac3", ".wma" ];
VIDEO_EXTENSIONS = [ ".avi", ".mkv", ".mp4", ".ogv", ".mpg", ".flv", ".mov", ".wmv", ".webm", ".m4v", ".m2ts", ".rmvb" ];
JPEG_EXTENSIONS = [".j... |
/**
* Created by raven on 2017/12/25.
*/
document.onkeydown = function (e) {
var e = window.event ? window.event : e;
if (e.keyCode == 13) {
save();
}
};
$(function () {
init();
});
function init() {
var project_id = $('#project_id').val();
var project = '';
var html = '';
va... |
import axios from 'axios';
import { Api } from '../api/api.js';
import moment from 'moment-timezone';
function StrToHex(response){
var responseHex = "";
for(var i=0; i<response.length; i++){
if(responseHex == "")
responseHex = response.charCodeAt(i).toString(16).length<2?'0'+response.charCo... |
import IndexedDBScheduler from './IndexedDBScheduler'
class SuperMapImageryProvider {
constructor (options) {
const { appendForwardSlash, Credit, defaultValue, defined, DeveloperError, Event, Resource, when, Math } = Cesium
options = defaultValue(options, {})
const { url } = options
if (!defined(url)... |
// Load Modules
import { onDomReady } from 'cantil';
import * as utils from './utils';
const loadingDom = document.getElementById('loading');
const contentDom = document.getElementById('content');
const navbarDom = document.getElementById('navbar');
const formsDom = document.getElementById('forms');
const fetchOptions... |
import "./index.css";
const rangeValue = (val, min, max) => {
return min + val * (max - min);
};
const mapVal = (val, min, max) => {
return (val - min) / (max - min);
};
const cropNumber = (val) => {
if (val < 0) {
return 0;
}
if (val > 1) {
return 1;
}
return val;
};
/*let p = [
[0, 32],
[0.9... |
/*!
* webjs - Response Patch
* Copyright(c) 2012 C61 Lab
* MIT Licensed
*/
// dependencies
var fs = require("fs");
var url = require("url");
var mime = require('mime');
var util = require('util');
var utils = require('./utils');
var dataStream = require('dataStream');
var eventproxy = require('eventpr... |
// @flow
import React from 'react';
import {
branch,
compose,
renderComponent,
setDisplayName,
withState,
} from 'recompose';
import { connect } from 'react-redux';
import Card from '@ncigdc/uikit/Card';
import Tabs from '@ncigdc/uikit/Tabs';
import SideTabs from '@ncigdc/uikit/SideTabs';
import { withTheme ... |
const os = require('os');
const fs = require('fs');
const fsr = require('fs-reverse');
const zlib = require('zlib');
const readline = require('readline');
const { promisify } = require('util');
const _ = require('lodash');
const moment = require('moment');
const filesize = require('filesize');
const { isStringIp } = r... |
import * as THREE from '../../build/three.module.js';
//////////////////////////////////////////////////////////////////////////////
var VISIBLE_FOOTPRINT_TILE = 9
var VISIBLE_3D_TILE = 4
// buildings and regions
var quadTree = null;
var treeObjects; //buildings are saved in treeObjects of Quadtree
var region = {
... |
/**
* This the component is used in Insights.js and allows to build trend graph
*/
import React, { useState, useEffect } from "react";
import "./Funnel.css";
import {
Card,
Button,
Select,
Menu,
Dropdown,
Tooltip,
DatePicker,
Spin,
message,
Tag,
} from "antd";
// import FunnelStep ... |
'use strict';
require('dotenv').config();
var Alexa = require("alexa-sdk");
const https = require("https");
const accountSid = process.env.ACCT_SID;
const authToken = process.env.AUTH_TOKEN;
// require the Twilio module and create a REST client
const client = require('twilio')(accountSid, authToken);
const HELP_MESSAGE... |
/*
dnscontrol configuration file for DICAIRE.com
*/
var REG_NONE = NewRegistrar("none", "NONE"); // No registrar are currently automated
var r53 = NewDnsProvider("r53_main", "ROUTE53");
var O365Tenant = "DicaireStrategies-com";
var berlinIP = IP("10.10.10.40");
var dublinSubnet = IP("10.10.100.");
var ... |
const AdmZip = require('adm-zip')
const child_process = require('child_process')
const crypto = require('crypto')
const fs = require('fs-extra')
const os = require('os')
const path = require('path')
const { URL } ... |
if (typeof (window.calendar) == 'undefined') {
window.calendar;
}
$().ready(function () {
if (ons.isReady()) {
$.get('/mobile/attendant/get-log-messages', {}, function (response) {
if (response.error) {
showToast(response.error);
}
});
}
});
function ... |
////////////////////////////////////////
// define window event
////////////////////////////////////////
window.addEventListener("load", function(){
initEvent();
threeStart();
});
////////////////////////////////////////
// define initEvent()
////////////////////////////////////////
var stopFlag = true;
var rese... |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
var _excluded = ["argumentFormat", "arrowLength", "arrowWidth", "border", "className", "color", "container", "contentTemplate", "cornerRadius", "customizeToolti... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _xhtml = require("./xhtml");
var _types = require("../../tokenizer/types");
var _context = require("../../tokenizer/context");
var N = require("../../types");
var _identifier = require("../../util/identifi... |
import React, { useMemo, useContext, useEffect, useState } from 'react';
import styled from 'styled-components';
import SizeAwareElement from '../../common/size-aware-element';
import {
MapContainer,
ScaleControl,
TileLayer,
FeatureGroup,
ImageOverlay,
CircleMarker,
} from 'react-leaflet';
import L from 'le... |
// import React, {useState} from 'react'
// import {Accordion, Flex, Text, Button, AccordionItem, AccordionPanel, AccordionButton, AccordionIcon, Box, Tooltip} from '@chakra-ui/react'
import FilterButton from '../FilterButton'
import Project from '../Project'
import {InformationCircleOutline} from 'react-ionicons'
impo... |
/**
* @copyright 2013 <NAME>
* @copyright 2016 commenthol
* @license MIT
* @module moon
*/
/**
* Moon: Chapter 53, Ephemeris for Physical Observations of the Moon.
*
* Incomplete. Topocentric functions are commented out for lack of test data.
*/
import base from './base'
import coord from './coord'
import mo... |
import React, { useEffect, useState, useRef } from "react";
import { useDispatch, useSelector } from "react-redux";
import { connect } from "./redux/blockchain/blockchainActions";
import { fetchData } from "./redux/data/dataActions";
import * as s from "./styles/globalStyles";
import styled from "styled-components";
im... |
'use strict';
var mode = 'start'; // What mode are we in (start, build, view)
var cards = void 0; // Object containing all cards
var displayCards = {}; // Object containing cards we want to display
var nameField = void 0; // Field used for filtering cards by name
var character = ''; // Character we have selected
va... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.