text stringlengths 5.97k 41.2k |
|---|
'use strict';
const { app, BrowserWindow, ipcMain } = require('electron');
const path = require('path');
const url = require('url');
const convert = require('xml-js');
const fs = require('fs');
const mm = require('music-metadata');
const loki = require('lokijs');
const id3 = require('node-id3');
const replace = requi... |
/*
* ::718604!
*
* Copyright(C) November 20, 2014 U.S. Food and Drug Administration
* Authors: Dr. <NAME> (1), Dr. <NAME> (2), et al
* Affiliation: Food and Drug Administration (1), George Washington University (2)
*
* All rights Reserved.
*
* The MIT License (MIT)
*
* Permission is hereby granted, free... |
import React from 'react';
import { PropTypes } from 'prop-types';
import {
Badge,
Button,
ButtonGroup,
Card,
Col,
Dropdown,
DropdownButton,
Form,
InputGroup,
Modal,
Nav,
OverlayTrigger,
TabContent,
Tooltip,
Row,
} from 'react-bootstrap';
import ReactTooltip from 'react-tooltip';
import a... |
/**
* Copyright (c) 2015 <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... |
'use strict';
var commonServer = require('norman-common-server'),
commonMessage = require('./../common/common.message.js'),
constants = require('./../../../constants'),
NormanError = commonServer.NormanError,
registry = commonServer.registry,
tp = commonServer.tp,
_ = tp.lodash,
Promise = r... |
var is_data_channel_open = false;
var message_send_time = performance.now();
var webRTCServer = null;
var timer;
var destFld = null;
var startBtn = null;
var endBtn = null;
var webrtc = null;
var videoSize = null;
var fsMaxBtn;
var fsMinBtn;
var resizeContent;
var isFullScreen = false;
var isInCall = null;
var _rtc ... |
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* This file is shared between www and fbsource and www is the source of truth.
* When you make change to this file on www, please make sure you test it on
* fbsource and send a diff to update the files too so that the 2 versions are
* kept in sync.
*
... |
'use strict'
let map = (a,b,c,d,e) => d + (((a - b) / (c - b)) * (e - d))
function determine_of_y(min,max){
let the_number = 0.0000000001
let run = true
let choice
max > Math.abs(min)?choice = max:choice = Math.abs(min)
while(run){
Math.floor(choice / the_number) == 0?run = false:the_number... |
var weatherDataSF, weatherDataSR, weatherDataNP, weatherDataOL, weatherDataSJ;
var scene = 1;
var bgImg;
var baymap, sfAqiImg, srAqiImg, npAqiImg, olAqiImg, sjAqiImg, titleScreen;
var hr1, hr2, hr3, hr4, hr5;
var aqi1, aqi2, aqi3, aqi4, aqi5;
var inforPoor1, inforPoor2, inforModerate, inforHealthy;
var history, back;
v... |
import {utils as utils_} from '../utils/utils';
import MapMetanode_ from './metanode';
//get rid of compiler mess
var utils = utils_;
var MapMetanode = MapMetanode_;
var MapMetatile = function(metaresources, surface, tile) {
this.metaresources= metaresources; //this is metastorage tile
this.map = metaresour... |
/**
* Module dependencies.
*/
var express = require('express');
var routes = require('./routes');
var http = require('http');
var path = require('path');
var app = express();
var sentiment = require('sentiment');
var twitter = require('ntwitter');
var stream;
var DEFAULT_TOPIC = "UPO";
// E... |
var azureInjectReady = false;
/**
* Inject css
* @param url Css text if type = 'text'; otherwise href url
* @param tag Inject to target tag
* @param type 'text' or others, optional
*/
function injectCSS(url, tag, type) {
var style;
if (type === 'text') {
style = $('<style/>');
style.te... |
import $ from 'jquery'
import F_ from '../Basics/Formulae_/Formulae_'
//jqueryUI
import turf from 'turf'
import * as d3 from 'd3'
import Dropy from '../../external/Dropy/dropy'
import '../../external/JQuery/jquery.autocomplete'
import calls from '../../pre/calls'
import './Search.css'
// prettier-ignor... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
let displayLogo = false;
let message = 'Creative Code Budapest';
let hoverCode = true;
let displayFrontImage = true;
let useRandomImages = true;
let imagePath =
'https://res.cloudinary.com/creativecodebudapest/image/upload/f_auto,w_340,dpr_1.0,c_fill,g_west/v1574804898/cc4/creativecode_4_kfila1.jpg';
// let imagePath ... |
/**
* Copyright 2016 Google Inc. 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 appli... |
// Show Loader when page is loading
$(window).load(function() {
$(".loader").fadeOut(100);
});
var isTouch = window.DocumentTouch && document instanceof DocumentTouch;
function scrollHeader() {
// Has scrolled class on header
var zvalue = $(document).scrollTop();
if (zvalue > 30) $("#header, .mobile-container"... |
var serverSystem = server.registerSystem(0, 0);
import { Coordinate, Position, BlockType, Direction, Block } from '../constructor';
import { utils } from '../utils'
let compiler = {
raw: function (blockArray) {
return blockArray
},
clone: function ({ startCoordinate, endCoordinate, targetCoordinat... |
import _, { filter } from "lodash";
import { ScrutinizerJSON, Handledata, AdhocHandler } from "./reportData";
import {
reportTypes,
reportDirection,
displayOptions,
filterTypes,
granularityOptions,
resolveDNS
} from "./reportTypes";
let makescrutJSON = new ScrutinizerJSON();
let dataHandler = new Handledat... |
var LegendOfAdlez = LegendOfAdlez || {};
//title screen
LegendOfAdlez.Game = function(){};
var music;
var adlezSpellSound;
//create game instance
LegendOfAdlez.Game.prototype = {
create: function() {
this.map = this.game.add.tilemap('world_map');
//Add music
music = this.add.au... |
var Promise = require('bluebird');
var fs = Promise.promisifyAll(require('fs'));
var path = require('path');
var _ = require('lodash');
var mkdirp = Promise.promisify(require('mkdirp'));
var config = {
'dryrun': false,
'encoding': 'binary',
'files': {
'scaffile': '.scaf',
'scafout': '.scafo... |
/**
* @file sql
* @author atom-yang
* @date 2019-07-30
*/
const mysql = require('mysql');
const AElf = require('aelf-sdk');
const redis = require('redis');
const bluebird = require('bluebird');
const Counter = require('../redis/index');
const { config } = require('../common/constants');
const {
isResourceTransact... |
var htmlParser = require("htmlparser2"),
cssSelector = require("css-select"),
fs = require("fs"),
deepcopy = require("deepcopy"),
traverse = require('babel-traverse').default,
t = require("babel-types"),
path = require("path")
function error(msg,node, path){
var loc = node && (node.loc || nod... |
Form_formula = {};
CoreForm = {};
CoreForm.instanceform = {};
Form_formula.initFormScripts = function () {
CoreForm = {};
CoreForm.instanceform = {};
try{
form_version = WorkflowManager.getInstanceFormVersion();
form_script = form_version.form_script;
if(form_script && form_script.... |
import {LitElement, html, css} from 'lit-element';
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js'
import { pathJoin } from './util.js'
import './mp-accordion';
function quote(str) {
return str.replace(/'/g,"''").replace(/[\r\n]+/g,"\\n");
}
function escape(name) {
return quote(name.replace(/... |
// 获取地址栏信息分段查询用户的id值
var h=window.location.href;
// 声明变量接收地址栏
// 控制台输出地址栏信息
var num=h.split("?")[1];
// console.log(num);
// 控制台输出地址栏截取的用户id
/**********************************************************************蜂窝主体文字**********************************************************************/
$(function(){
$.ajax({
... |
//Deep Future Card Generator
//Environment Variables
var renderCardGo=document.getElementById('renderCardGo');
var message=document.getElementById('message');
var cardForm=document.getElementById('cardForm');
var era=document.getElementById('era');
var titles=document.getElementById('titles');
var techsButtonsForm=doc... |
/**
* Created by lucasm on 11/07/16.
*/
var WORLD = 0;
var TIME = 0;
var NB_NODES_TO_DISPLAY = 4000;
var NB_HOPS = 2;
var NODE_SIZE = 12;
// these variables shouldn't change over time once loaded
var colorsByNodeType = {};
var colorsByLinkType = {};
var gAllNodes = [];
var gNodesPerType = {};
var gNodesWithRel = []... |
#!/usr/bin/env node
"use strict";
/*
* Never LET PERFECT GET IN THE WAY OF GOOD
* MAKE it WORK
* PRODUCT IS EVERYTHING
*Author* : goes by <NAME> (nile^io)
*Date* : July, 2019
Description: this program generates source maps for Node-RED nodes. it generates source maps for every line in the original sou... |
var client; //= new SFTP.Client();
var currentPath = '/';
var list = document.getElementById('dirlist');
var __rootDrive = "", __selectedDrive;
var __wsPath = "";
var TreeJSON = { d: [], f: [], l: '', p: '', hasBack: false };
var FinalTreeJSON = [];
var __pathArr = [], __dirIndex = -1;
var previewFileIconSettings = { ... |
/*******************************************************************************
* Copyright (c) 2013, 2016 Prepartic and others.
*
* 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
*... |
// ==UserScript==
// @name F5 UI Enhancements for LTM
// @version 1.3.2
// @homepage https://github.com/jangins101/F5/blob/master/F5%20UI%20Enhancements%20for%20LTM.js
// @description Adds a lot of useful features to the GUI in order to make access to different configuration items quicker
// @updateURL https://github.... |
if (vidya===undefined) var vidya = require("./out/vidya");
const aver = vidya.Aver;
const sut = vidya.Strings;
describe("Strings", function() {
describe("#isEmpty()", function() {
it("true ()", function() { aver.isTrue( sut.isEmpty() );});
it("true (undefined)", function() { aver.isTrue( sut.isEmp... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {FullWidget} from '../WidgetStyles.js'
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import qs from 'qs';
import { INTERWIDGET_MESSAGE_TYPES } from '../../redux/actions/Dashboard.js';
import { ArrayT... |
import { mat4, vec4 } from 'gl-matrix';
import Constants from 'vtk.js/Sources/Rendering/Core/ImageMapper/Constants';
import * as macro from 'vtk.js/Sources/macros';
// import vtkDataArray from 'vtk.js/Sources/Common/Core/DataArray';
// import { VtkDataTypes } from 'vtk.js/Sources/Common/Core/DataArray/Constants';
// im... |
/**
* @class Contact Page where users can import their phone contact and Add/invite them to be their friends.
*/
var args = arguments[0] || {};
var friendsManager = require('managers/friendsmanager'),
userManager = require('managers/usermanager');
var helpers = require('utilities/helpers');
var nameFontSize, iconSi... |
// BLACKJACK
//
// Converted from BASIC to Javascript by <NAME>. (nanochess)
//
function print(str)
{
document.getElementById("output").appendChild(document.createTextNode(str));
}
function input()
{
var input_element;
var input_str;
return new Promise(function (resolve) {
... |
import { observable, action, computed } from 'mobx';
import agent from '../agent';
import productsStore from './productsStore';
import commonStore from './commonStore';
import ttnsStore from './ttnsStore';
import npStore from './npStore';
const LIMIT = 10;
export class OrdersStore {
@observable isLoading = false... |
/////////////////////////////////////
// UPDATE ///////////////////////////
/////////////////////////////////////
let int = {
non_s: 0,
hygiene: 0,
distancing: 0,
isolate: 0,
quarantine: 0,
masks: 0,
summer: 0,
vaccines: 0
};
let daysCurrent, daysDrawn, daysTotal, daysPerFrame;
let r0, re;
//let r0_dom =... |
/* eslint-disable no-await-in-loop */
'use strict';
const _ = require('lodash');
const XRegExp = require('xregexp');
const validator = require('validator');
const entitiesDecode = require('html-entities').decode;
const nconf = require.main.require('nconf');
const winston = require.main.require('winston');
const db ... |
'use strict';
var _ = require('norman-client-tp').lodash;
var moment = require('norman-client-tp').moment;
module.exports = [
'$rootScope',
'$scope',
'$http',
'$q',
'$timeout',
'$interval',
'$stateParams',
'sdm.sampleData',
'SampleDataHelper',
'uiError',
'uiDialogHelper',
... |
$(".toast").toast({
delay: 6000
});
window.data = {
aspirasi: null,
idasp: null,
komentar: [],
progress: true
};
async function init(datas, status = 0) {
let listAspirasi = document.getElementById("data-aspirasi");
if (datas.status) {
data.komentar = [];
listAspirasi.innerHTML = "await....!";
let aspiras... |
'use strict';
const Big = require( 'big.js' )
let seqclosure = function( Gibber ) {
let Theory = Gibber.Theory
let proto = {
DO_NOT_OUTPUT: -987654321,
_seqs: [],
type: 'sequence',
stop() {
proto._seqs.forEach( s => s.stop() )
},
start() {
proto._seqs.forEach( s => s.start... |
import React, { Component } from 'react';
import { func, shape } from 'prop-types';
import {
ActivityIndicator,
Alert,
DeviceEventEmitter,
Dimensions,
Linking,
PermissionsAndroid,
Platform,
ScrollView,
Share,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import * as Animat... |
import { AbstractThreeBrainObject } from './abstract.js';
import { THREE } from '../threeplugins.js';
import { CONSTANTS } from '../constants.js';
import { to_array, min2, sub2 } from '../utils.js';
import { compile_free_material } from '../shaders/SurfaceShader.js';
const MATERIAL_PARAMS = {
'transparent' : true,
... |
var boundingBox = /* color: #ff0000 */ee.Geometry.LinearRing(
[[-114.029935546875, 37.12096750852173],
[-111.9590126953125, 36.725738284424736],
[-112.52480859375, 34.96256007895751],
[-114.5517861328125, 35.39359059550445],
[-114.029935546875, 37.12096750852173]]),
... |
var can_changeJogadorAtivo = true//variavel que dita se pode ou nao mudar o jogador ativo
var can_deixarBotComecar = true//variavel que dita se pode ou nao deixar o bot comecar
var jogadorAtivo = "X"//variavel que guarda o jogador que esta na vez
var modoJogoAtual = "Singleplayer"
var usuario_podeJogar = true//fica fal... |
/**
* Topic: Releasing the room when no one is attending
* Author: <EMAIL>
* Team: collaboration FRANCE
* Version: 1.4
* Date: 12/05/2021
*/
const xapi = require('xapi');
/*
* ********************************
* EDIT THIS SECTION BELOW
* ********************************
*/
/* 1. At what level is the... |
'use strict';
const Wikia = require('node-wikia');
const util = require('util');
const exists = util.promisify(require('url-exists'));
const fetch = require('../resources/Fetcher');
const { embeds } = require('./NotifierUtils');
const Broadcaster = require('./Broadcaster');
const logger = require('../Logger');
const... |
let CommonStructs = artifacts.require("CommonStructs");
let Instructions = artifacts.require("Instructions");
let InstructionsProvider = artifacts.require("InstructionsProvider");
let Deals = artifacts.require("Deals");
let Interpreter = artifacts.require("Interpreter");
let Proxy = artifacts.require("Proxy");
let { ca... |
import React, { Component } from 'react';
import axios from 'axios';
import styled from 'styled-components';
import { createGlobalStyle } from 'styled-components';
import Banner from './Banner/Banner';
import DefaultHeadSvg from './mobileImg/DefaultHeadSvg'
import OpenPanelIcon from './mobileImg/OpenPanelIcon';
import... |
/*
-------------- ABOUT THIS PROJECT ----------------
This is a project to create a fully working functional AVL tree, also known as
balanced binary search tree (order: traversal order).
The tree is self-balancing, mutable, and includes all the good interfaces described below.
The tree uses a doubleList data structure... |
"use strict";
var _phoneInputHelpers = require("./phoneInputHelpers");
var _metadataMin = _interopRequireDefault(require("libphonenumber-js/metadata.min.json"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function ownKeys(object, enumerableOnly) { var keys = Ob... |
import clsx from "clsx";
import React from "react";
import PropTypes from 'prop-types';
import useSound from "use-sound";
import debounce from "lodash.debounce";
import styles from "./index.module.scss";
import {DragDropContext} from "react-beautiful-dnd";
import withStyles from "@material-ui/core/styles/withStyles";
... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import { Button, Row, Col } from 'react-bootstrap';
import compact from 'lodash/compact';
import union from 'lodash/union';
import TagsInput from 'react-tagsinput';
import { sectionProps, sectionsProps } ... |
import {join} from 'path';
import PromiseThrottle from 'promise-throttle';
import {getDomForUrl} from './fetchDom.js';
import {writeJSONFile} from './jsUtils.js';
import {
getDataDir, getLanguageSuffix, getLanguagePrefix
} from '../src/pathInfo.js';
const requestsPerSecond = 0.2;
const doubleAngleQuotes = /»/gu;
c... |
var boxes = [ 2, 2,
3, 3,
4, 4,
5, 5, 5,
6, 6, 6, 6, 6,
7, 7, 7, 7, 7, 7, 7,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10... |
'use strict'
const express = require('express')
const bodyParser = require('body-parser')
const Messenger = require('fb-messenger-app').default
const botdata = require('./test/botdata.js') // import test bot data
const Wit = require('node-wit').Wit
const log = require('node-wit').log
const PAGE_TOKEN = process.env.PA... |
// Copyright 2017 Google Inc.
//
// 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... |
#!/usr/bin/env node
const {Builder, By, Key, until} = require('selenium-webdriver');
const fs = require("fs");
const { EOL } = require('os');
const path = require("path");
const clipboardy = require('clipboardy');
const { v4: uuidv4 } = require('uuid');
const fileName = process.argv[2];
let specificTest = null;
if (... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CRUDStore = void 0;
var tslib_1 = require("tslib");
var file_saver_1 = require("file-saver");
var mobx_state_tree_1 = require("mobx-state-tree");
var service_1 = require("./service");
var helper_1 = require("../utils/helper");
var pick... |
import tty from 'tty'
import events from 'events'
import supportsColor from 'supports-color'
import sanitize from '../helpers/sanitize'
import { ReporterStats } from './ReporterStats'
import * as fs from 'fs'
import * as path from 'path'
import merge from 'deepmerge'
const ISATTY = tty.isatty(1) && tty.isatty(2)
expo... |
/**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights re... |
/*
2018-05-04
APP-WAP交互约定:
App调用wap详情页时传递参数:
&env=app
&langCode={两位数内容语言码如ru}
&userId={userId}
&pageType=details
&deviceId={deviceId}
&newsId={newsId}
&clientType={clientType}
&version={version}
*/
var mParam;
var slideDatas = [];
var browser;
var user;
var newsId = "";
var type = 0; // 0 ne... |
'use strict';
/**
* Configuration dependencies.
*/
var config = require('../config/production/config');
Object.keys(config).length === 0 &&
(config = require('../config/production/config.backup'));
var config_md5 = require('md5')(JSON.stringify(config));
var modules = require('../config/production/modules');
Obj... |
import React from "react";
// Custom Components
import DashboardInfoCard from "../../Components/DashboardCard";
import DashboardInfoList from "../../Components/DashboardList";
import { BluprintLoggedUser } from "../../Context/UserContext";
import { withSnackbar } from "notistack";
import Grid from "@material-... |
/***********************************************************************************************************************************************
*Autores: <NAME>;
<NAME>;
<NAME>;
<NAME>;
*Data de Criação: 21/09/2016
*Data de Modificação: 02/10/2016
*Descrição: Esta página con... |
// edit
var
g_ref_limit = '<div data-name="ref_limit" data-mode="popup" data-type="limit" data-title="Word Limit" data-emptytext="N/A" data-showbuttons="bottom" data-placement="top" data-inputclass="editable_normal" class="editable_normal editable" show_trash="0" data-url=""></div>',
g_but_edit_ass = '<b... |
import * as d3 from 'd3'
import { skillProficiencies, skillCategories } from '@/common/constants'
// selections
let container
let svg
let legend
let legendNodes
let legendText
let skillNodes
let categoryLabels
// geography
let originX
let originY
let width
let height
let imageWidth_
let imageHeight_
let centroids = {... |
//Imports
var BR = ee.FeatureCollection("users/JonathanVSV/Brazil4GEE"),
geometry = /* color: #d63000 */ee.Geometry.Polygon(
[[[-75.138588704977, -8.103869716910255],
[-69.074135579977, -12.512780812118697],
[-66.437416829977, -11.136408112054964],
[-60.460854329977, -16.595176... |
//
// objects.js
//
// Kopiluwak. Copyright (c) 2020 <NAME>
//
function JNull() {
this.isa = new JType(JTYPE_NULL);
this.str = function() { return "JNull"; }
}
const JOBJ_STATE_UNINITIALIZED = 0;
const JOBJ_STATE_INITIALIZING = 1;
const JOBJ_STATE_INITIALIZED = 2;
function JObj(klclass) {
if (!klclass.isO... |
/*
----------------------------------------------------------------------------------------
/// +++ WYRMWIND.JS +++ \\\
© 2020 <NAME>
AN OPEN SOURCE JAVASCRIPT FRONTEND LIBRARY. USED FOR MAKING BEAUTIFUL WEB APPLICATIONS.
COM... |
$('#member-option li').click(function() {
$('#member-value').text(this.children[0].text).append('<span class="caret"></span>');
});
$('#job-option li').click(function() {
$('#job-value').text(this.children[0].text).append('<span class="caret"></span>');
switch(this.children[0].text) {
case '在職':
$('#salary-va... |
// Work out the endpoint to use, for dev you can change to point at a remote ESP
// and run the HTML/JS from file, no need to upload to the ESP to test
var baseHost = window.location.hostname;
//var baseHost = 'emonesp.local';
//var baseHost = '192.168.4.1';
//var baseHost = '172.16.0.52';
var baseEndpoint = 'http://'... |
/*
author : <NAME>
Github : @sacharbit
linkedin : https://www.linkedin.com/in/sacha-charbit-004502b9/
*/
var Database = function(){
this.data = {};
this.objects = {};
this.splitSize = Database.prototype.splitSize;
}
var fs = require('fs');
Database.prototype.splitSize = 1000000;
Database.prototype.size = fu... |
const Discord = require('discord.js');
const db = require('quick.db');
const config = require('../../config.json')
exports.run = async (doky, message, args) => { // setando a base
let member = message.mentions.users.first() || message.author; // caso ele n mencione, vai ser pra si mesmo
if (message.author.id !== '... |
/**页面宽高控制*/
var width=document.body.offsetWidth;
var height= document.documentElement.clientHeight;
$('#home').css({
"width":width,
"height":height
});
$('#subjectBox').css({
"width":width,
"height":height
});
$('#chart').css({
"width":width,
"height":width*0.6
});
$('#characterChart').css({
... |
import { cloneDeep, each, isObject, uniq, includes, remove, isArray, isEmpty, uniqWith, isEqual } from 'lodash-es';
import * as VocabUtil from './vocab';
import * as StringUtil from './string';
import { lxlLog, lxlWarning } from './debug';
export function expandInherited(display) {
const cloned = cloneDeep(display);... |
/****************************************************************************************
* LiveZilla ChatReportsClass.js
*
* Copyright 2014 LiveZilla GmbH
* All rights reserved.
* LiveZilla is a registered trademark.
*
***************************************************************************************/
func... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _mapState = _interopRequireDefault(require("./map-state"));
var _transition = require("./transition");
var _transitionManager = require("./transition-manager");
function _interopRequireDefault(obj) { return... |
//reference
//http://www.codicode.com/art/how_to_draw_on_a_html5_canvas_with_a_mouse.aspx
//http://www.codicode.com/art/undo_and_redo_to_the_html5_canvas.aspx
//https://developer.mozilla.org/fr/docs/Web/HTML/Canvas
var mousePressed = false;
var lastX, lastY;
var ctx;
var serveur0 = location.host;
v... |
"use strict";
/**
* GestureView.tsx
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT license.
*
* RN-specific implementation of the cross-platform GestureView component.
* It provides much of the standard work necessary to support combinations of
* pinch-and-zoom, panning, single t... |
var SearchableMapLib = SearchableMapLib || {};
var SearchableMapLib = {
// parameters to be defined on initialize()
map_centroid: [],
defaultZoom: 9,
filePath: '',
fileType: '',
csvOptions: '',
listOrderBy: '',
recordName: '',
recordNamePlural: '',
debug: false,
// internal propert... |
/*
Copyright (C) 2020, <NAME>
All rights reserved.
11/27/2020
last modified 12/18/2020
*/
const HIGHLIGHT_LINE = {lineWidth: 3, strokeStyle: "red"};
function init_graph_node(id) {
return "INIT_GRAPH_" + id;
}
function compare(edge1, edge2) {
return (edge1.key - edge2.key < 0)? false : true;
}
function... |
// "message"{
// "from": "xxxx",
// "to":["xxx"],
// "content":"xxxxx",
// "type":0,
// "time":"xxxx.xx.xx xx.xx.xx"
// }
let noticeIndex = null;
let noticeUser = new Array();
let noticeMessage = new Array();
let noticeCount = 0;
let statusChangeMark = 0;
let currentUser = getCurrentUser();
//处理接收到的数据
f... |
/* * * * * * * * * * * * * * * * * *
* RisingInsightMorphVis *
* * * * * * * * * * * * * * * * * */
// helper to sum the count in the array
const sumArrayReducer = (accumulator, currentValue) => accumulator + currentValue;
// A guide on how to filter by checkbox selection
const checkBoxGuide = {
"che... |
//SOLAR
//@sndsgns
//Could Los Angeles generate its energy needs from solar panels?
//Extracting external data and calculating whether LA can run off of solar energy
//Function which formats numbers with thousand, milion, billion, etc. comma separators
//Reference: http://stackoverflow.com/questions/2901102/how-to-pr... |
/*
the below 4byte function hashes were produced using https://github.com/iquidus/abi2signature
functions with stateMutability 'view' should be ignored (readonly).
some manual formatting is required.
note: if using truffle to compile, do not pass the full build .json, extract the abi array out to its own json and pas... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import Mousetrap from 'mousetrap'
import { selectCommentOriginalPostId } from '../selectors/comment'
import {
selectInnerHeight,
selectInnerWidth,
selectIsLightBoxActive,
selectIsMobile,
} from '../... |
'use strict';
const path = require('path');
const crypto = require('crypto');
const Feplet = require('feplet');
const fs = require('fs-extra');
const JSON5 = require('json5');
const frontMatterParser = require('./front-matter-parser');
const Pattern = require('./object-factory').Pattern;
let t;
module.exports = cl... |
/* global AFRAME */
if (typeof AFRAME === 'undefined') {
throw new Error('Component attempted to register before AFRAME was available.');
}
let accessorFn = require('accessor-fn');
if ('default' in accessorFn) {
// unwrap default export
accessorFn = accessorFn.default;
}
let ThreeGlobe = require('three-globe')... |
// This file is to show how a library package may provide JavaScript interop features
// wrapped in a .NET API
let canvasClasses = new Map();
function addGlobalEventListener(type, selector, callback) {
document.addEventListener(type, e => {
if (e.target.matches(selector)) callback(e)
})
}
function addW... |
"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 Bowser from "bowser";
import { clamp, map } from "moremath";
import PropTypes from 'prop-types';
import React from "react";
import ReactDOM from 'react-dom';
import createReactClass from 'create-react-class';
import SimpleSignal from "simplesignal";
import SecurityPlannerConstants from "./../../../constants/Sec... |
'use strict';
/**
* frable: A table widget for fracas.
*
* Based on ngTable:
* @author <NAME> <<EMAIL>>
* @url https://github.com/esvit/ng-table/
* @license New BSD License <http://creativecommons.org/licenses/BSD/>
*/
var angular = require('angular');
var app = angular.module('frable', []);
// TODO get rid o... |
const dotenv = require('dotenv');
dotenv.config({path: './.env'});
// This will check if the node version you are running is the required
// Node version, if it isn't it will throw the following error to inform you.
if (Number(process.version.slice(1).split(".")[0]) < 8) throw new Error("Node 8.0.0 or higher is require... |
define('safe/visualization', ['require', 'exports', 'module' , 'ace/lib/fixoldbrowsers', 'ace/config', 'ace/lib/dom', 'ace/lib/net', 'ace/lib/lang', 'ace/lib/useragent', 'ace/lib/event', 'ace/theme/textmate', 'ace/edit_session', 'ace/undomanager', 'ace/keyboard/vim', 'ace/keyboard/emacs', 'ace/keyboard/hash_handler', '... |
/// <reference path="../types/index.d.ts" />
const assert = require('assert');
const fs = require('fs');
const graph = require('./graph');
const print = require('./print');
const utils = require('./utils');
const eventFilter = process.env.EVENT_FILTER ? process.env.EVENT_FILTER.split(',') : null;
const topLevelNamesp... |
'use strict';
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ... |
import pluqModule from "../../libs/pluq_v07.js";
const {WebcController} = WebCardinal.controllers;
const {PLCameraConfig} = window.Native.Camera;
class AuthFeatureError {
code = 0;
message = undefined;
constructor(error){
if (typeof error === 'string'){
this.code = 1;
thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.