text
stringlengths
5.97k
41.2k
const StringUtil = require('../util/string-util'); const log = require('../util/log'); const {loadSvgString, serializeSvgToString} = require('scratch-svg-renderer'); const loadVector_ = function (costume, runtime, rotationCenter, optVersion) { return new Promise(resolve => { let svgString = costume.asset.d...
/* START USER DEFINED PARAMETERS */ var ssHost = "https://yourcompany.sendsafely.com"; var ssApiKey = "INSERT_API_KEY_HERE"; var ssApiSecret = "INSERT_API_SECRET_HERE"; /* END USER DEFINED PARAMETERS */ const sjcl = require("sjcl"); const requestSync = require('sync-request'); const fs = require('fs'); const SendSafel...
const { performance } = require('perf_hooks') const chalk = require('chalk') const { forEach, logger, parseToml, writeToml, getValue, addToGitIgnore } = require('./helpers') const { wranglerOptions } = require('./Constants') const wrangler = require('./Wrangler') const io = require('./io') class Runner { cons...
import * as PubSub from './PubSub'; import * as Conf from './Config'; import * as Util from './Util'; //Dom references let parentNode = document.querySelector('.'+Conf.CSS.FACETS); //'client' data store of what's currently displayed. (vs indexedDB) //todo: combine/abstract the year/location filter methods. let store ...
L.Control.FeatureLegend = L.Control.extend({ options: { position: 'topleft', title: 'Legend', symbolContainerSize: 24, maxSymbolSize: 24, minSymbolSize: 2, collapsed: false, drawShadows: false, symbolScaling: "clamped", }, initialize: function...
import React from 'react' import { connect } from 'react-redux' import { DropTarget } from 'react-dnd' import reactLS from 'react-localstorage' import _ from 'lodash' import * as actions from '../../actions/index' import * as api from '../../actions/model.api' import { DiagramWidget } from './diagram/DiagramWidget...
import React, { Component } from "react"; import Ship from "./Ship"; import "./style.css"; import { Redirect } from "react-router-dom"; import PropTypes from "prop-types"; import { compose } from "redux"; import { connect } from "react-redux"; import { firebaseConnect, firestoreConnect } from "react-redux-firebase"; im...
//"use strict"; // Various namespace-like modules var STACK_ALIGN = 16; var LLVM = { LINKAGES: set('private', 'linker_private', 'linker_private_weak', 'linker_private_weak_def_auto', 'internal', 'available_externally', 'linkonce', 'common', 'weak', 'appending', 'extern_weak', 'linkonce_odr', ...
import * as THREE from 'three' import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls' import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer' import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass' import { UnrealBloomPass } from 'three/examples/jsm/postpro...
import d3 from '../../utils/d3-import'; import { SelectedInfo } from './cont-class'; import { moveMenubar } from './cont-bbox'; import { rScale } from './cont-zoom'; import { redrawOriginal, drawLastEdit } from './cont-edit'; import { config } from '../../config'; // Need a timer to avoid the brush event call after br...
var istex = { istexBaseURL : "api.istex.fr/document/openurl", theMaxPageLinks : 2500, debug : true, message : function(aMessage) { if (debug) { console.log("istex.log: " + aMessage); } }, /** * Check if the string str ends with given suffix. */ endsWith : function(str, suffix) { ...
// ==UserScript== // @name ddb-my-campaign-stats // @namespace https://github.com/Weatwagon/ddb-character-sheet-campaign-info-enhancement // @version 2.0.10 // @description New campaing info side panel with expandable character stats // @author Weatwagon orignal project by Mivalsten // @mat...
import { generateUuid } from "../generateUuid" import { EMACalc } from "../helpers"; const jointNames = ['shoulder_pan_joint', 'shoulder_lift_joint', 'elbow_joint', 'wrist_1_joint', 'wrist_2_joint', 'wrist_3_joint']; const jointNameMap = { 'shoulder_pan_joint': 'Shoulder Pan Joint', 'shoulder_lift_joint': 'Sho...
/** @license React v16.4.1 * react-dom-test-utils.production.min.js * * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var g = require('object-assign'), l = require('react...
/* KeeFox - Allows Firefox to communicate with KeePass (via the KeePassRPC KeePass plugin) Copyright 2008-2015 <NAME> <<EMAIL>> keeFoxLoginInfo: This was loosly based on the LoginInfo object that Mozilla provided with Firefox 3.0 but it has been heavily modified to support some of the extra features ...
/* * Activiti Modeler component part of the Activiti project * Copyright 2005-2014 Alfresco Software, Ltd. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; ei...
/** * The MIT License (MIT) * Copyright (c) 2017-present <NAME> <<EMAIL>> */ 'use strict'; const GateTestUtil = require('../../gate-test-util'); const Register = require('../Register'); const {SystemClock} = require('../../Clock'); const {int16Table} = require('../../../../util/numbers'); /** * Testing data. ...
import React, { useRef, useState, useMemo, useCallback, useEffect, memo } from 'react' import { Button, Input, Select, Popover, Modal, Result, Dropdown, Tooltip, message, Alert, Upload, Badge } from 'antd' import { ArrowLeftOutlined, MobileOutlined, DownloadOutlined, CopyOutlin...
const navigator = parent.require('web-midi-api'); const DMX = parent.require('dmx'); const fs = parent.require('fs'); const KEY_PRESSED = '90'; const KEY_RELEASED = '80'; const INVALID = -1; const NUM_KEYS = 12; // keys in an octave const ON_OFF = 0; const FADE = 1; const PULSE = 2; const CHASE = 3; let midi; let i...
// Drawing test framework // Developed by: <NAME> and <NAME> // Version: 0.0.1-DEV // Note: ~5k samples should generate 40KB data (2+2+4 bytes for two coords and timestamp) // EXTERNAL GLOBAL VARIABLES: user, stage // Setting up instructions (based on stage) // Stage 1-5: firkateszt // Stage 6-24: körteszt var erro...
// This script should be defered or loaded after the document body is loaded const ORIGIN = 'https://api.covid19api.com'; const COUNTRY_STATUS_ENDPOINT = `${ORIGIN}/total/dayone/country`; const COUNTRIES_ENDPOINT = `${ORIGIN}/summary`; const WORLD_ENDPOINT = `${ORIGIN}/summary`; const SVG_NAMESPACE = 'http://www.w3.o...
// "unimportant" words - the, of, to, and, a, in, is, it, you, that, he, was, for, on, are, with, as, I, his, they, be, at, one, have and this. // for now taken from: https://marksprague.wordpress.com/enterprise-seo-2/unimportant-words-impact-relevancy/ var omitDictionary = [ "the", "of", "to", "and", "a", "in", "is...
// homebridge-lib/lib/Colour.js // // Library for Homebridge plugins. // Copyright © 2016-2021 <NAME>. All rights reserved. 'use strict' // Return point in color gamut closest to p. function closestInGamut (p, gamut) { // Return cross product of two points. function crossProduct (p1, p2) { return p1.x * p2.y ...
/* * Copyright (c) 2016-2017 by STEP Tools 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 applica...
import React, { useState, useMemo, useEffect, useRef } from 'react' import styles from './table.module.css' import SomethingWentWrong from '../../SomethingWentWrong/SomethingWentWrong' import { useTable } from 'react-table' import Checkbox from '../../dataentry/checkbox/checkbox' import Button from '../../button/button...
$j( document ).ready( function() { // Load this file only on form editor page if( ! $j( 'form#bookacti-form-editor-page-form' ).length || typeof bookacti.form_editor === 'undefined' ) { return; } // Add / remove form managers bookacti_init_add_and_remove_items(); // Specific dialogs $j( '#bookacti-form-field-...
'use strict'; var $ = require('jquery'); var _ = require('underscore'); // require('../../node_modules/sidr/dist/jquery.sidr.min.js'); var Backbone = require('backbone'); var Marionette = require('backbone.marionette'); Backbone.$ = $; $.colorpicker = require('bootstrap-colorpicker'); var Handlebars = require('handleb...
//參數們 //物件定義 var whiteFog; //主要底色物件 var canvas; //DEMO CANVAS //寬度參數 var puzBigW = -1; var puzBigH = -1; var puzSmW; var puzSmH; //設定參數 var round = 15; //自動吸引填滿寬度 var puzXSlice = 5; //切塊 var puzYSlice = 5; var zIndex; //拿起至頂 var bgUrl = "public/images/index_img.jpg"; //圖片選擇 window.onload = func...
// DOM Elements var mainEl = document.getElementById('main'), navEl = document.getElementById('navbar'), navBtnEl = document.getElementById('navBtn'), navListEl = document.getElementById('navList'), settingBtnEl = document.getElementById('settingsBtn'); var sectionsEls = [], currentEl; var settings = {}, ...
function corrigirTotal(total){ total = total+""; if(total.charAt(total.length-3) == "."){ total = total.split("."); total = total[0]+","+total[1]; }else if(total.charAt(total.length-2) == "."){ total = total.split("."); total = total[0]+","+total[1]+"0"; }else{ total = total+",00"; } return total; } va...
/* eslint-disable no-console */ const express = require('express'); const cors = require('cors'); const bodyParser = require('body-parser'); const compression = require('compression'); const fetch = require('node-fetch'); const maxmind = require('maxmind'); const fs = require('fs-extra'); const tar = require('tar'); co...
'use strict'; import 'promise-polyfill/src/polyfill'; // polyfill for element.closest if (!Element.prototype.matches) { Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector; } if (!Element.prototype.closest) { Element.prototype.closest = f...
/** * Racing Game */ /** * Shim layer, polyfill, for requestAnimationFrame with setTimeout fallback. * http://paulirish.com/2011/requestanimationframe-for-smart-animating/ */ window.requestAnimFrame = (function(){ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || ...
import Chart from "./components/TempChart/Chart" import Chart2 from "./components/RainChart/Chart2" import Pie from "./components/PieDay1/index" import PieDay2 from "./components/PieDay2/index" import PieDay3 from "./components/PieDay3/index" import moment from 'moment' import './index.css' import React, { useEffect, ...
import { v4 as uuid } from 'uuid'; import { camelCase } from 'lodash'; import sizeof from 'object-sizeof'; import Account from '../accounts/accountOidcInterface'; import userAccess from '../accounts/access'; import orgs from '../orgs/orgs'; import clientAccess from '../oidc/client/access'; import intApi from './interac...
function initializeAuthListener() { firebase.auth().onAuthStateChanged(function (user) { if (user) { $('#loginMenuItem').addClass('gone'); $('#registerMenuItem').addClass('gone'); $('#logoutMenuItem').removeClass('gone'); InitializeCartDBListener(); } ...
import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { withStyles } from '@material-ui/core/styles'; import Popper from '@material-ui/core/Popper'; import ListSubheader from '@material-ui/core/ListSubheader'; import Paper from '@material-ui/core/Paper'; import IconButton f...
import _ from 'underscore'; import $ from 'jquery'; import Backbone from 'backbone'; import Promise from 'bluebird'; import { query, buffer, itemIndex, selection, setSelectAll, setSelectRow, rangeSelection, columns, rows, columnGroup, cells, sortableHeader, events, } from './projection'; impo...
// @ts-check import stringify from "json-stringify-safe" import _ from "lodash" import { getGatsbyVersion } from "gatsby-core-utils" import { lt, prerelease } from "semver" const typePrefix = `Contentful` const makeTypeName = type => _.upperFirst(_.camelCase(`${typePrefix} ${type}`)) const GATSBY_VERSION_MANIFEST_V2 ...
/** * Website created by <NAME> * In the matter of being used as a map of my master thesis about virtual spaces * in space design during my studies at the ENSA Dijon. * * * All the code is free for you to use in any way you want, help yourself :) * * Coded with the help of the THREE.js lib : www.threejs.org **...
/** * Created by halil on 22/08/2017. */ function VarOptLinearRegressionRadialBrushConfig() { this.brushes= []; this.brushCircleRadius=0.80; this.scales={ "rscale":d3.scale.linear().domain([0,1]).range([0,boxWidth/2]), "boxxscale":d3.scale.linear().domain([-1,1]).range([0,boxWidth]), "boxyscale"...
var map, layer = new OpenLayers.Layer.WMS(), featurecollection, vector_layer,selectedFeature,selectFeaturesControl,ClusterStrategy; //Unselect the feature when it's popup is closed function onPopupClose(evt) { selectFeaturesControl.unselect(selectedFeature); } //When the feature is selected, it creates a popup di...
/* * Apache License, Version 2.0 * * Copyright (c) 2019 Tigoole * * 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 applicab...
var sx = require('../node-sx'), eto = sx.eto, express = require('express'), crypto = require('crypto'), async = require('async'), http = require('http'), _ = require('underscore'), sha256 = function(x) { re...
////////////// // generic ////////////// function deleteNode(id){ //delete a dom node with id //thanks https://developer.mozilla.org/en-US/docs/Web/API/Node/removeChild var node = document.getElementById(id); if (node.parentNode) { node.parentNode.removeChild(node); } } Math.log10 = funct...
"use strict"; function _templateObject2() { var data = _taggedTemplateLiteral(["\n Platform: ", " (", ")\n Cypress Version: ", "\n "]); _templateObject2 = function _templateObject2() { return data; }; return data; } function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || ...
import merge from 'mout/src/object/merge'; import vec4 from 'gl-matrix/src/gl-matrix/vec4'; import CanvasOffscreenBuffer from '../../../Common/Misc/CanvasOffscreenBuffer'; import { loop } from '../../../Common/Misc/Loop'; import WebGlUtil from '../../../Common/Misc/WebGl'; import PingPong from '../../../Common/Misc/Pi...
/* Skill Engine*/ /* Global Variables */ //var $ = jQuery.noConflict(); /* extending */ function extend(ChildClass, ParentClass) { 'use strict'; ChildClass.prototype = new ParentClass(); ChildClass.prototype.constructor = ChildClass; } /* SPE Constructor */ var SPE = function () { 'use strict'; ret...
'use strict'; exports.__esModule = true; exports.processWebpackConfig = processWebpackConfig; exports.prepareWebpackRuleConfig = prepareWebpackRuleConfig; exports.prepareWebpackStyleConfig = prepareWebpackStyleConfig; var _chalk = require('chalk'); var _chalk2 = _interopRequireDefault(_chalk); var _constants = requ...
var bfs_recursive = function(nodes) { var node, children = []; if (nodes.length==0) { return; } console.log(nodes.map(function(node){ return node.val; }).join(" ")); while((node=nodes.shift())) { if (node.left ) children.push(node.left ); if (node.right) children.push(node.right); } ...
// Copyright (c) 2014 by <NAME> tmtg.net <EMAIL> // Released under BSD license. See LICENSE for details. // This file is part of jgame.js - a 2D game engine /** * @fileOverview * Class JGTileMap - tile handling. */ // highp is needed for sufficient offset precision var jgtilevsh=(function () { /* precision highp fl...
/* * Copyright (c) AXA Group Operations Spain S.A. * * 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,...
/* * Copyright (c) 2006-2007 <NAME> http: * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including co...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getStylusOptions = getStylusOptions; exports.urlResolver = urlResolver; exports.createEvaluator = createEvaluator; exports.resolveFilename = resolveFilename; exports.readFile = readFile; exports.normalizeSourceMap = normalizeSourceM...
'use strict' const trim = require('lodash/trim') const uniqBy = require('lodash/uniqBy') const slugg = require('slugg') const without = require('lodash/without') const { parseHook } = require('../../lib/profile-hooks') const _parseJourney = require('../../parse/journey') const _parseJourneyLeg = require('../../parse/...
// Generate random, unique customer ID on page load function uuid() { function s4() { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); } return s4() + s4() + s4() + s4(); } var customerId = uuid(); var PolicyBuilder = function () { }; PolicyBui...
import { WebXRButton } from "./util/webxr-button.js"; import * as global from "./global.js"; import { Renderer, createWebGLContext } from "./render/core/renderer.js"; import { Anidraw } from "./render/core/anidraw.js"; import { Gltf2Node } from "./render/nodes/gltf2.js"; import { Node } from './render/core/node.js'; im...
// inspiration from http://www.nytimes.com/interactive/2012/09/06/us/politics/convention-word-counts.html#Economy // https://static01.nyt.com/newsgraphics/2012/09/04/convention-speeches/ac823b240e99920e91945dbec49f35b268c09c38/index.js import classnames from 'classnames' import { max } from 'd3-array' import { drag } f...
var RBx, RBy; var Rwidth; var zones = []; var zoneIds = []; var nHor = 4; var nRad = 4; var type; var startColor; var endColor; var xfield; var rfield; var xOrder; var yOrder; var BackgroundDrawned = false; function drawBackground(radarDiv) { /* * if (BackgroundDrawned) return; */ BackgroundDr...
/** @module @author iAmMichaelConnor @desc Run from within nightfall/zkp/code E.g. node src/tools-trusted-setup.js */ import { argv } from 'yargs'; import os from 'os'; import fs from 'fs'; import path from 'path'; import inquirer from 'inquirer'; import codePreProp from './tools-code-preprop'; import keyExtractor fr...
'use strict'; const objectPath = require("object-path"); /** * Adds the given field to the Mongoose model at the end of the path. * * @param {object} model The Mongoose model. * @param {string} path The path where the field will be added (sucessive fields separated with points, even when a * nested field is in...
var fs= require("fs"); var xml2js = require("xml2js"); var stream = require('stream'); var util = require('util'); var parser = new xml2js.Parser(); function iterateCountries(oXml, fct) { oXml.svg.g.forEach(function(g1) { if(g1.g) { var g = g1.g; g1.g.forEach(function(g) { //console.log(g.$.id); f...
/* eslint-disable mocha/no-pending-tests */ /* * Copyright © 2019 Lisk Foundation * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this ...
$(document).ready(function() { $(function() { $('.draggable').draggable(); }); $(".reservation").click(function() { alert("!!!"); }); $.datepicker.regional['ru'] = {clearText: 'Очистить', clearStatus: '', minDate: "0", closeText: 'Закрыть', closeStatus: '', ...
exports = exports || {}; exports.parse = function(str){ return parseTopLevel(str2in(str)); }; exports.codegen = function(modules){ return codegen(modules, makeContext()); }; function getToken(input){ var lastChar = input.getChar(); //whitespace while(lastChar && !!lastChar.match(/\s/)){ lastChar = in...
var React = require('react'); var ReactDom = require('react-dom') var CubicBezier = function (mX1, mY1, mX2, mY2) { var CubicBezierSpline; function A(aA1, aA2) { return 1.0 - 3.0 * aA2 + 3.0 * aA1; } function B(aA1, aA2) { return 3.0 * aA2 - 6.0 * aA1; } function C(aA1) { 3.0 * aA1; } fu...
'use strict'; class Avanza { constructor( options = false ) { let config = { 'dev': false, // output logs or not etc 'sort_default': 'priceThreeMonthsAgo', // default sort (DESC) // NOTE: Proxies make things super-slow, set config to proxies: [] + use a plugin for a browser that can disable CO...
import React, { useState, useContext, useEffect, useRef } from "react" import CssBaseline from "@material-ui/core/CssBaseline" import { makeStyles } from "@material-ui/core/styles" import Header from "../components/header" import Footer from "../components/footer" import Container from "@material-ui/core/Container" imp...
/* * * * (c) 2010-2021 <NAME> * * License: www.highcharts.com/license * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; import A from '../Animation/AnimationUtilities.js'; var getDeferredAnimation = A.getDeferredAnimation; import F from '../FormatUtilities.js';...
/** * IUB Data Fetcher controller. */ const ftpClientInstance = require('ftp'); const fs = require('fs'); const fse = require('fs-extra'); const targz = require('targz'); const xmlParser = require('xml2json'); const IubEntry = require('../models/iubEntry'); const config = require('../config'); /** * Include config...
const {isEmpty, isArray, isObject} = require('@dgteam/helper') // const {base64Decode} = require('@dgteam/helper/dist/hash') function trimStr(str) { return str.replace(/(^\s*)|(\s*$)/g, "") } class Items extends Array { constructor(items, opt) { super(...items) this.select = 'default' ...
let gameScript = ` return class { constructor(world, el) { this.world = world this.wrapper = document.createElement('div') this.wrapper.style.position = 'relative' this.wrapper.style.paddingTop = '100%' this.wrapper.style.margin = '0 auto' el.appendChild(this.wrappe...
/** * For More Sites in Morpheus */ var dhtml_view_sites = function(){ // first time through set up the DOM $PBJQ('#selectSiteModal').addClass('dhtml_more_tabs'); // move the selectSite in the DOM $PBJQ('.more-tab').position(); // then recast the function to the post initialized state which will run from t...
var Module = typeof Module !== "undefined" ? Module : {}; var moduleOverrides = {}; var key; for (key in Module) { if (Module.hasOwnProperty(key)) { moduleOverrides[key] = Module[key]; } } Module["arguments"] = []; Module["thisProgram"] = "./this.program"; Module["quit"] = (function(status, toThrow) { throw toThro...
/** * @namespace basis.tracker */ /** @cut */ var namespace = 'basis.tracker'; var hasOwnProperty = Object.prototype.hasOwnProperty; var eventUtils = require('basis.dom.event'); var getComputedStyle = require('basis.dom.computedStyle').get; var getBoundingRect = require('basis.layout').getBoundingRect; /** * @typed...
var aliasing = true; var transparency = false; var monochrome = false; var magnification = 1; var default_canvas_width = 683; var default_canvas_height = 384; var my_canvas_width = default_canvas_width; var my_canvas_height = default_canvas_height; var canvas = new Canvas(); var ctx = canvas.ctx; var palette = [ ...
const actions = require('./base'); const utils = require('../utils'); const scope = require('../scope'); /** @lends module:interact */ const interact = require('../interact'); const InteractEvent = require('../InteractEvent'); /** @lends Interactable */ const Interactable = require('.....
// // Simple Tetris Game for further tweaking. // // author: <NAME>, 2017 // web: http://thomasdiewald.com // // This version is a direct 1 to 1 port of my processing sketch in java. // // // Video of this version with some radiosity: // https://vimeo.com/243877934 // var shapelist = [ [ 8 ], [ ...
var friendList = null; var myUid = null; var statuses = {}; var inboxData = null; var inboxFetchInterval = null; var newMessageAudio = new Audio("mouth_pop.wav"); var loggedIn = false; var torqueEnabled = false; var torrentOpenWindows = {}; var downloadItemOpenInfo = {}; var _gaq = _gaq || []; _gaq.push(['_setAccount...
/* VRT - Copyright © 2017 <NAME> All Rights Reserved */ import * as d3 from 'd3'; import $ from 'jquery'; import {EventEmitter} from 'events'; import {random} from "../../vrt/js/random.js"; const transition_time = 500; const easing_fn = d3.easePolyInOut; export function LayoutGrid(parent) { EventEmitter.c...
import Box from '@mui/material/Box'; import Typography from '@mui/material/Typography'; import {scaleLinear} from 'd3-scale'; import React, {useState} from 'react'; import {connect} from 'react-redux'; import {setSearchTokens} from './actions'; import {createFilterFunction} from './dataset_filter'; import {intFormat} f...
import React, { useState } from 'react'; import { Form, Select, Checkbox, Input, Modal, Button, Row, Col, Image, Tooltip } from 'antd'; import { QuestionCircleOutlined } from '@ant-design/icons'; import moment from 'moment-timezone'; import ActionPicture from '../../images/vbb-in-action.png'; const...
const server = require('express')() const http = require('http').Server(server) const io = require('socket.io')(http) const credentials = require('./credentials') const admin = require('firebase-admin') const firestore = require('@google-cloud/firestore') const request = require('request') const discord = require('dis...
/** * @fileoverview Month view factory module * @author NHN FE Development Lab <<EMAIL>> */ 'use strict'; var util = require('tui-code-snippet'); var config = require('../config'), array = require('../common/array'), datetime = require('../common/datetime'), domutil = require('../common/domutil'), c...
const express = require('express'); const axios = require('axios'); const cors = require('cors'); const expressCache = require('express-cache-middleware'); const cacheManager = require('cache-manager'); const conditionLocations = require('./conditionLocations.json'); const cacheMiddleware = new expressCache( cacheMan...
import Convo from "./Convo" export const MARISAN = Convo.condition((arkona) => arkona.gameState["urhaw_notes"], new Convo("Thou hath returned again. As much as I enjoy thy company and incessant questioning, I must return to my studies of the Raighd.") .answer("The Raighd... can you tell about that again?", "R_MA...
/* Importing required modules. */ const { app, BrowserWindow, dialog, ipcMain, globalShortcut } = require('electron'); const electron = require('electron'); const path = require('path'); const ProgressBar = require('electron-progressbar'); const {autoUpdater} = require("electron-updater"); const isDev = require('elect...
/** * Red.It - A smooth Reddit client app - v0.0.3 * http://reddit.simonvreux.be * * Author: <NAME> <<EMAIL>> * License: MIT (http://opensource.org/licenses/MIT) * Updated: 13-05-2015 */ /** * Save a cookie in the browser * @param {string} name * @param {string} value * @param {integer} days */ function cre...
var cssTimingFunctions = { easeInQuad: "cubic-bezier(0.550, 0.085, 0.680, 0.530)", easeOutQuad: "cubic-bezier(0.250, 0.460, 0.450, 0.940)", easeInOutQuad: "cubic-bezier(0.455, 0.030, 0.515, 0.955)", easeInCubic: "cubic-bezier(0.550, 0.055, 0.675, 0.190)", easeOutCubic: "cubic-bezier(0.215, 0.610, 0.355, 1.000)", ...
var KEYS = require('../Enums').KEYS; var Input = require('../Input'); var emitter = Input.emitter; var Settings = require('../../menu/UserSettings').Settings; var LEFT_THUMBSTICK_THRESHOLD = 0.16; var RIGHT_THUMBSTICK_THRESHOLD = 0.06; var MAX_INPUT_THUMBSTICK = 128; function LeftStick(data) { Input.moveStickL(data[...
import React, { Component } from 'react'; import Style from 'style-it'; import { get, set } from 'object-path'; import * as Sentry from '@sentry/browser'; import { Route, Redirect, Link } from 'react-router-dom'; import './App.css'; import { APIService } from './services'; import { ComponentController } from './contr...
const akasha = require('akasharender'); const plugin = require('../index'); const { assert } = require('chai'); const baseConfig = { linkRelTags: [ { relationship: "foo", url: "http://foo.bar" }, { relationship: "gronk", url: "http://gronk.bar" }, { relationship: "them", url: "http://the...
function set_circle_element(elm, value) { value = value.toFixed(0); if (value > 100) value = 100; value2 = (360 / 100) * value; // --- /* circle2 */ e...
var gapi_loaded = false; var gapi_inited = false; //TODO check chrome.runtime.lastError for all storage.local operations function do_load_dictionary(file_text) { var lines = file_text.split('\n'); var rare_words = {}; var rank = 0; var prev_lemma = null; for (var i = 0; i < lines.length; ++i) { ...
import React, { Component } from 'react'; import { EditorBlock } from 'draft-js' import ReactMediaRecorder from './MediaRecorder' import styled from 'react-emotion' import icon from "./icon.js" import { updateDataOfBlock, addNewBlockAt } from '../../../model/index.js' import axios from 'axios' const VideoContainer ...
// getters Ids by url const locationIds = location.href.split('?')[1]; const patientId = locationIds.split('&')[0].split('=')[1]; const systemReviewId = locationIds.split('&')[1].split('=')[1]; const backgroundId = locationIds.split('&')[2].split('=')[1]; const neurologicalExamId = locationIds.split('&')[3].split('=')[...
/* eslint-disable no-param-reassign */ import Promise from 'bluebird'; import {FirebaseMessagingError} from 'firebase-admin/lib/utils/error'; import {RaixPushError} from '../common/pushError'; import {AppTokenUtil} from './appTokenUtil'; /* A general purpose user CordovaPush ios, android, mail, twitter?, facebook?...
var EventEmitter = require('events').EventEmitter ,_ = require('underscore') , fs = require('fs') , Garam = require('../Garam') , Base = require('../Base') , async = require('async') , domain = require('domain') , bfj = require('bfj') ,zlib = require('zlib') , assert= require('asse...
/* eslint-disable */ import React from 'react'; import axios from 'axios'; import ReactTestComponent from './test-components/ReactTestComponent'; import ReduxTestComponent from './test-components/ReduxTestComponent'; // import React Challenges: import * as React_01 from './challenges/react/React_01' import * as React_...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; require("core-js/modules/es.string.trim.js"); require("core-js/modules/web.dom-collections.iterator.js"); require("core-js/modules/es.regexp.exec.js"); require("core-js/modules/es.string.split.js"); require("c...