text
stringlengths
8.5k
48.7k
///////////////////////////// // START This code loads the data from 3 csv documents into 3 variables: ///////////////////////////// // 1. imports - contains all data // 2. lookup - contains color legend info var imports = []; var lookup = []; d3.csv(options.SUMMED_DATA, function(error, data){ d3.csv(options.DEFAU...
'use strict'; const fs=require('fs'); const path=require('path'); const request=require('request'); const globalVar=require('../../public/scripts/globalVariable.js') const getPartWithKey = require('../modules/getPartWithKey'); const getCSSForBlock = require('../modules/getCSSForBlock'); const getItemPage = require('../...
/** * Created by j on 2015/5/17. */ $(document).ready(function () { var taskId = getvl("taskId"); var evarole=getvl("evarole"); var term=getvl("term"); // alert(term); $('.close, #cancel').bind('click', closepop); firstPage(); $("#backtolist").click(function(){ parent.$("#mainFrame").attr("...
var gardenAttr = { rowCount: 5, columnCount: 3, start: { x: 91, y: 245 }, end: { x: 635, y: 1130 }, blockWidth: 174, blockHeight: 181, blockScale: 0.95, next: { x: 0, y: 0 }, spacing: { x: 0, y: 0 } }; gardenAttr.spacing.x = Math.floor(((gardenAttr.end.x - gardenAttr.start.x) - (gardenAttr...
import isEmpty from "lodash/isEmpty"; import firebase from "firebase"; import { coursesService } from "./courses"; import { firebaseService } from "./firebaseService"; import { SOLUTION_PRIVATE_LINK, SOLUTION_MODIFIED_TESTS, notificationShow } from "../containers/Root/actions"; import { fetchPublicPathActiviesSu...
import {LERP_TYPES, PROP_TYPES, t2 as T2} from "./t2.js" import EventMaker from './EventMaker.js' const on = (elem, type, cb) => elem.addEventListener(type,cb) const toRad = (deg) => deg * Math.PI/180 const pickOne = (arr) => arr[Math.floor(Math.random()*arr.length)] const world = new CANNON.World(); let lastTime con...
//----------------------------------------------------------- // Builder //----------------------------------------------------------- "use strict"; var join = require("./join"); var providers = require("./providers/index"); require("./providers/math"); require("./providers/logical"); require("./providers/string"); var...
/* Parses the MATRX state and generates and updates the grid */ // GUI settings // How long should the animation of the movement be, in percentage with respect to // the maximum number of time available between ticks 1 = max duration between ticks, 0.001 min (no animation) // Note: it is not recommended to set this ...
"use strict"; var socket; var video; var videoIsPlaying = false; var myRoom; var throttle = 1; //Alter this for more performance, but more accurate syncing! var compensationt1 = Math.round(new Date().getTime() / 1000); var compensationt2; var isPlaying; var SERVER; var currentPlayingVideoID = 0; var isController = fals...
import React from 'react' import { useHistory } from "react-router-dom"; import { createPersonalInfos } from './apiForPersonalInfo'; import { Formik, FormikConsumer, useFormik } from 'formik' import {Link} from 'react-router-dom' function PersonalInformation() { /*const { register, handleSubmit } = useForm({ d...
/* This is the Lavalink version of nexu-dev and DarkoPendragon's discord.js-musicbot-addon! Get Lavalink here: https://ci.fredboat.com/viewLog.html?buildId=lastSuccessful&buildTypeId=Lavalink_Build&tab=artifacts&guest=1 Lavalink has also been included in this module's folder along with its settings. You also do...
var floor1_rangedB = 140; /* floor 1 fixed at -140dB to 0dB range */ function lsfit_acc(p) { p = p||{}; // int x0; // int x1; // int xa; // int ya; // int x2a; // int y2a; // int xya; // int an; // int xb; // int yb; // int x2b; // int y2b; // int xyb; // int bn; p.x0 = 0; p.x1 ...
function BranchData() { this.position = -1; this.nodeLength = -1; this.src = null; this.evalFalse = 0; this.evalTrue = 0; this.init = function(position, nodeLength, src) { this.position = position; this.nodeLength = nodeLength; this.src = src; return this; } ...
// ----------------------------------------to add new playlist(playlist dash) ---------------------------------------- $(document).ready(function() { if (window.location.search.indexOf('msg=error_msg') > -1) { $('#error_db').slideUp(); $('#error_db').slideDown(); function success_1(){ ...
var db = require('../db/db'); var fs = require('fs'); var Promise = require('bluebird'); var databaseName = process.env.CARTO_DB_NAME; //other db functions var projectDB = require('../db/project'); var anonUserDB = require('../db/anonUser'); var dynamicDB = require('../db/dynamic'); var tileDB = require('../db/tileo...
// @flow import React from 'react'; import ModDetail from "../../components/ModDetail/ModDetail"; import CharacterAvatar from "../../components/CharacterAvatar/CharacterAvatar"; import './Review.css'; import Arrow from "../../components/Arrow/Arrow"; import Toggle from "../../components/Toggle/Toggle"; import ModSet ...
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; const async = require('async'); const levelup = require('levelup'); const encoding = require('encoding-down'); const kadence = require('@deadcanaries/kadence'); const fs = require('fs'); const path = require('path'); const utilities = require('../../Utilities'); const _ ...
'use strict';var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc); switch (arguments.length) { case 2: return decorators.reduceRight(funct...
// parse command line options var minimist = require('minimist'); var mopts = { string: [ 'node', 'runner', 'server', 'suite', 'task', 'version' ] }; var options = minimist(process.argv, mopts); // remove well-known parameters from argv before loading make, // ot...
var _ = require('lodash'); /** * @name DropletBlock * @description Definition of a block to be used in Droplet * @property {string} func identifying the function this block runs * @property {string} blockPrefix Prepend this string before the normal block name in the palette * @property {Object} parent object with...
// Rendering styles import StyleParser from './style_parser'; import FeatureSelection from '../selection/selection'; import gl from '../gl/constants'; // import GL constants since workers can't access GL context import ShaderProgram from '../gl/shader_program'; import VBOMesh from '../gl/vbo_mesh'; import Texture from...
/** * * SugarCRM Community Edition is a customer relationship management program developed by * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc. * * SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd. * Copyright (C) 2011 - 2017 SalesAgility Ltd. * * This program is free so...
import { MqttClient } from '@iota/mqtt.js' import I18n from '../lang' import { Base } from '../base' import Http from '../http' import Trace from '../trace' import _sumBy from 'lodash/sumBy' import _get from 'lodash/get' import _debounce from 'lodash/debounce' import CryptoJS from 'crypto-js' import Iota from './iota' ...
import * as THREE from 'https://threejsfundamentals.org/threejs/resources/threejs/r112/build/three.module.js'; import {GUI} from 'https://threejsfundamentals.org/3rdparty/dat.gui.module.js'; import {OrbitControls} from 'https://threejsfundamentals.org/threejs/resources/threejs/r112/examples/jsm/controls/OrbitControls.j...
/* ModernDeckInit.js Copyright (c) 2014-2020 <NAME>, et al Released under the MIT License */ import { version } from "../package.json"; window.SystemVersion = version.replace(/\.0$/,""); // remove trailing .0, if present import { AsciiArtController } from "./AsciiArtController.js"; import { AutoUpdateController }...
$(document).ready(function() { initPage(); render(); $("#system option:first-child").attr("disabled",true) $("#module option:first-child").attr("disabled",true) $("#level option:first-child").attr("disabled",true) $("#sqlDbtype option:first-child").attr("disabled",true) setTimeout(function()...
'use strict' const db = require('../server/db') const {User, Recipe} = require('../server/db/models') async function seed() { await db.sync({force: true}) console.log('db synced!') const users = [ {email: '<EMAIL>', password: '<PASSWORD>'}, {email: '<EMAIL>', password: '<PASSWORD>'} ] const recipes ...
import _ from 'lodash'; import xlsx from 'node-xlsx'; import stream from 'stream'; import { logger } from '../config/logger.cjs'; import { Staging, Organization, LabelUnit, ModelKeys } from './../models'; import { sequelize } from '../database'; import { assertOrgIsHomeOrg } from './data-assertions'; import { encod...
/** * This modules adds support for the new Size Mapping spec described here. https://github.com/prebid/Prebid.js/issues/4129 * This implementation replaces global sizeConfig with a adUnit/bidder level sizeConfig with support for labels. */ import * as utils from '../src/utils.js'; import { processNativeAdUnitParam...
var current_id_tab = 1; (function($) { $.fn.WPO_Modal = function(opts) { var config = $.extend({}, { confirmdel:'Are you sure to delete?', id:'wpo-modalbox' }, opts); var $wpolayout = null; this.each(function() { $wpolayout = $(this); }); return this; }; })(jQuery); ...
//Digital graphics, because I can't draw //www.amiedd.com 'use strict'; var canvas = document.getElementsByTagName( 'canvas' )[ 0 ]; canvas.width = canvas.clientWidth; canvas.height = canvas.clientHeight; var config = { TEXTURE_DOWNSAMPLE: 1, DENSITY_DISSIPATION: 0.98, VELOCITY_DISSIPATION: 0.99, P...
// Based on simple canvas network visualization by <NAME> // source: https://bl.ocks.org/mbostock/ad70335eeef6d167bc36fd3c04378048 // Canvas canvas = document.querySelector("canvas") var parentdiv = document.getElementsByClassName("canvas_container")[0] canvas.width = parentdiv.offsetWidth canvas.height = parentdiv.of...
/* This script and many more are available free online at The JavaScript Source :: http://javascript.internet.com Created by: Down Home Consulting :: http://downhomeconsulting.com */ /* Country State Drop Downs v1.0. (c) Copyright 2005 Down Home Consulting, Inc. www.DownHomeConsulting.com Permission is hereby granted...
/* eslint-disable no-unused-vars */ const common = require(`../lib/common`) const ballMovement = require(`../lib/ballMovement`) const setPositions = require(`../lib/setPositions`) const actions = require(`../lib/actions`) function decideMovement(closestPlayer, team, opp, matchDetails) { const allActions = [`shoot`, ...
import React, { Component } from 'react'; import { View, Text, Image, StyleSheet, TouchableOpacity, Alert, TextInput, ScrollView, AsyncStorage } from 'react-native'; import { LinearGradient } from 'expo-linear-gradient'; import { Card } from 'react-native-shadow-cards'; import { Container, Header, Title, Button, Icon, ...
function getElementsByClass(searchClass,node,tag) { var classElements = new Array(); if ( node == null ) node = document; if ( tag == null ) tag = '*'; var els = node.getElementsByTagName(tag); var elsLen = els.length; var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"); for (i = 0, j = 0; i<elsLen; i...
/** * Part of PII-Scrubber project. * Main JavaScript code for crowd interface. * * @author adamyi */ var SelectionUtils = {}; /** * Returns an object with 2 properties: a boolean value indicating if #child was found in the currently iterating * set of child nodes, and an integer value representing how many ch...
// Version 1.5 import { AlphaQuaternion, AlphaVector } from './Maths'; /* [Vector] [Color] | | [Face] [Skin] | | [Shape] ---BlockType | ID -- just a number in a table with the BlockType as its value | [alpha_Block(id, x, y, z, ...
document.addEventListener("DOMContentLoaded", event => { // ======================================================================== AUTH CONTROL ============================== firebase.auth().onAuthStateChanged(firebaseUser => { const app = firebase.app(); const db = firebase.firestor...
/** * Created by SDX on 2014/8/19. * vision:1.0 * title: * e-mail:<EMAIL> */ /**============================================================== 1.页面交互效果模块 (低耦合) ==============================================================**/ /* 更多展开 */ function MoreBtn(settings) { this.btn = settings.btn; this.infoMin...
jQuery(document).ready( function($) { jQuery('.ilentheme-options #tabs,.ilenplugin-options #tabs') .tabs({ show: function(event, ui) { var lastOpenedPanel = $(this).data("lastOpenedPanel"); if (!$(this).data("topPositionTab")) { $(this).data("topPositionTab", $(ui.panel).position().top) } ...
// http://www.theyt.net/wiki/%ED%95%9C%EC%98%81%ED%83%80%EB%B3%80%ED%99%98%EA%B8%B0 // 초성 가지 수 19개(14개) // 중성 가지수 21개 // 종성 가지수 (공백 포함) 28개, (공백제외) 27개 // 종성 겹받침 11개 // 한글키 33개 const KOR_KEY = 'ㄱㄲㄴㄷㄸㄹㅁㅂㅃㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅛㅜㅠㅡㅣ'; const ENG_KEY = '<KEY>'; const TOP_DATA = 'ㄱㄲㄴㄷㄸㄹㅁㅂㅃㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎ'; const MID_DATA = 'ㅏㅐㅑ...
// global variable for capturing the current ajax request. var currentRequest = null; var currentFilterRequest = null; // this variable will capture the ajax request for filters Array.prototype.max = function() { return Math.max.apply(null, this); }; Array.prototype.min = function() { return Math.min.apply(nul...
/** Data model functions for the Advert data-type. */ import { assert, assMatch } from '../utils/assert'; import Enum from 'easy-enums'; import DataClass from './DataClass'; import C from '../CBase'; import ActionMan from '../plumbing/ActionManBase'; import SearchQuery from '../../base/searchquery'; import List from '....
import React, {forwardRef, useState, useEffect} from 'react'; import axios from 'axios'; import FileUploadIcon from '@mui/icons-material/FileUpload'; import AddPhotoAlternateIcon from '@mui/icons-material/AddPhotoAlternate'; import PictureAsPdfIcon from '@mui/icons-material/PictureAsPdf'; import BookView from '../Book/...
import { create } from 'rung-sdk'; import { OneOf, Double } from 'rung-sdk/dist/types'; import Bluebird from 'bluebird'; import agent from 'superagent'; import promisifyAgent from 'superagent-promise'; import { path, lt, gt, pipe, cond, equals, contains, __, T, concat } from 'ramda'; import { JSDOM } from 'jsdom'; con...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
goog.module('soccersub.PlanCalculator'); const Assignment = goog.require('soccersub.Assignment2'); const Lineup = goog.require('soccersub.Lineup'); const util = goog.require('soccersub.util'); const ENABLE_LOGGING = false; const logCall = (name, ...args) => { if (!ENABLE_LOGGING) { return; } /* const toStr...
/* *************************************************************************** ** Program : floortempmon.js, part of FloorTempMonitor ** Version : v0.6.9 ** ** Copyright (c) 2019 <NAME> ** ** TERMS OF USE: MIT License. See bottom of file. *************...
/* Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/asl/ or in the "license" file accompanying this file. ...
// ===================================== // GROUP SECTION ======================= // ===================================== // Grab the URL of the website var baseURL = window.location.origin; // ===================================== // FIND GROUP ========================== // ===================================== $(d...
var model = { data: [ { name: "<NAME>", googleID: "ChIJs_C94VNYwokRAL_Ca9EH3rw", foursquareID: "56170622498ecfea6b924d0b", position: { lat: 40.760942, lng: -73.99007489999997 } }, { name: "<NAME>", googleID: "ChIJXQNum4fgwokRVCtTQI7HpkY", foursquareID: "4b64f8a6f9...
import {ANIMATE, FADE_IN, FADE_OUT, TRANSITION} from './core/SlashrConstants'; export class SlashrAnimationQueue { constructor(slashr) { //console.log("TODO: Add support for css transitions."); this._metadata = { queue: {}, queueIdx: 0, isRunning: false, queueAddTimeout: null } this._slashr = slas...
var express = require('express'); var path = require('path'); var bodyParser = require('body-parser'); var app = express(); var request = require('request'); var AWS = require('aws-sdk'); var cryptico = require('cryptico'); var crypto = require("crypto"); var eccrypto = require("eccrypto"); var config = require("./conf...
const $ = require('../../core/renderer'); const eventsEngine = require('../../events/core/events_engine'); const errors = require('./ui.errors'); const Action = require('../../core/action'); const extend = require('../../core/utils/extend').extend; const inArray = require('../../core/utils/array').inArray; const each =...
'use strict'; var domain = require('domain'); var url = require('url'); var request = require('request'); var http = require('http'); var coreModules = require("soajs.core.modules"); var core = coreModules.core; var drivers = require('soajs.core.drivers'); /** * * @returns {Function} */ module.exports = function...
/* Software distributed under MIT License, read the accompanying LICENSE.txt file for more information. */ let vertices = []; let circumcenter = false, medicenter = false, orthocenter = false, incenter = false, morley = false, eulerline = false, ninecircle = fal...
import * as React from 'react'; import { ConstrainMode } from 'office-ui-fabric-react/lib/components/DetailsList/DetailsList.types'; import { useState, useEffect } from 'react'; import { DetailsList } from 'office-ui-fabric-react/lib/components/DetailsList/DetailsList'; import { CommandBar } from 'office-ui-fabric-reac...
const functions = require("./"); const { readData, writeData, writeDashboardData, createDashboardDb, } = require("../data"); const { createDashboardCharacter, dashboardMapping } = require("./DashboardDb"); const main = require("../../index"); const { indexOf, upperFirst } = require("lodash"); const { ...
/* 2017-12-7 12:41:21 | 修改 木遥(QQ:346819890) */ var thisWidget; //当前页面业务 function initWidgetView(_thisWidget) { thisWidget = _thisWidget; if (thisWidget.config && thisWidget.config.style) {//适应不同样式 $("body").addClass(thisWidget.config.style); } //清除所有标号 $("#btn_plot_delall").click(functi...
import React from "react"; import values from "lodash/values"; import Box from "@material-ui/core/Box"; import IconButton from "@material-ui/core/IconButton"; import CloseIcon from "@material-ui/icons/Close"; import makeStyles from "@material-ui/core/styles/makeStyles"; import Typography from "@material-ui/core/Typogra...
/* * Mad-Advertisement * Copyright (C) 2011-2013 <NAME> <<EMAIL>> * * 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...
import React from 'react'; import { SafeAreaView, StyleSheet, View, TextInput, Text, StatusBar, TouchableOpacity, Dimensions, Animated, Easing, PanResponder, TouchableWithoutFeedback, BackHandler } from 'react-native'; import { Icon } from 'react-native-elements'; import Svg,...
/** * * ListView * */ import clsx from 'clsx'; import isEqual from 'lodash.isequal'; import PropTypes from 'prop-types'; import React, { Fragment, useCallback, useEffect, useRef, useState, } from 'react'; import { VariableSizeList, VariableSizeGrid } from 'react-window'; import AutoSizer from 'react-virtu...
/* eslint-disable max-classes-per-file */ /* eslint-disable no-plusplus */ /* eslint-disable no-underscore-dangle */ // https://github.com/g200kg/webaudio-controls/blob/master/webaudio-controls.js import '../utils/webaudio-controls.js'; class ZigZag { constructor(startX, startY, endX, endY, numSegments) { this._nu...
import React, { Fragment, useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import AddCircleSharpIcon from '@material-ui/icons/AddCircleSharp'; import RemoveCircleSharpIcon from '@material-ui/icons/RemoveCircle'; import Button from '@material-ui/core/Button'; import IconButton from '@material-ui/...
var currentProject,currentRequest; $(document).ready(function(e){ setInterval("loadNewRequest()", 60000); currentProject = {id:-1}; currentRequest = {id:-1}; $('#loadingModal').removeClass('show in'); $('#loadingModal').addClass('fade in'); portletEvents(); }); //Return the id of the ...
function BranchData() { this.position = -1; this.nodeLength = -1; this.src = null; this.evalFalse = 0; this.evalTrue = 0; this.init = function(position, nodeLength, src) { this.position = position; this.nodeLength = nodeLength; this.src = src; return this; } ...
import BasePlugin from './../_base'; import {registerPlugin} from './../../plugins'; import {Parser} from './../../formula'; var ruleJS = (function (root) { 'use strict'; var instance = this; var rootElement = document.getElementById(root) || null; var version = '1.0.0'; var parser = new Parser(); var el =...
import React, { useState, useEffect } from "react"; import { useSelector, useDispatch } from "react-redux"; import { useParams, useNavigate, Link } from "react-router-dom"; import classNames from "classnames"; import _ from "lodash"; import { Form, Formik, Field, ErrorMessage } from "formik"; import * as Yup from "yup"...
// This code is the same encryption algorithm used by RStudio's UI /* eslint-disable */ const navigator = {}; const window = {}; let g; let j; const k = (244837814094590 & 16777215) == 15715070; function l(b, a, c) { if (b != null) if (typeof b === 'number') this.ca(b, a, c); else a == null && typeof b !==...
'use strict'; const pixiApp = { app: new PIXI.Application(baseDimensions), loader: PIXI.Loader.shared }; const utage = new UtageInfo(); const shaders = new Shaders(); const textFunc = new TextFunctions(); let audio = undefined; //Cant create a audio context without user input. const player = new Player(pixiApp, ut...
// Copyright (C) 2013-2014, 2018 BrandsEye (PTY) LTD // // 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, /...
const _ = require('lodash'); const admin = require('firebase-admin'); const StatisticsDoc = '--stats--'; const RangesTable = 'ranges'; const PendingTable = 'pending'; const dateformat = require('dateformat'); const MAX_DIF = 180; /*var co = require('co'); const functions2 = require('./firestore');// const settings = {p...
'use strict'; function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } var _require = require('conjunction-junction'), isPrimitiveNumber = _require.isPrimitiveNumber, isOb...
/* * Payroll Processing Page * */ import React from 'react'; import { Helmet } from 'react-helmet'; import PropTypes from 'prop-types'; import moment from 'moment'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import ReactPaginate from ...
import * as Rx from 'rx'; import $ from 'jquery'; import _ from 'underscore'; import user from 'phraseanet-common/src/components/user'; const searchAdvancedForm = (services) => { const {configService, localeService, appEvents} = services; const url = configService.get('baseUrl'); let $container = null; ...
var nativeMethods = hammerhead.nativeMethods; var browserUtils = hammerhead.utils.browser; var eventUtils = hammerhead.utils.event; var featureDetection = hammerhead.utils.featureDetection; var eventSimulator = hammerhead.sandbox.event.eventSimulator; var DataTransfer = hammerhead.sandbox.event.DataT...
import { AmbientLight, AnimationMixer, AxesHelper, Box3, Cache, CubeTextureLoader, DirectionalLight, GridHelper, HemibboxLight, LinearEncoding, LoaderUtils, LoadingManager, PMREMGenerator, PerspectiveCamera, RGBFormat, Scene, SkeletonHelper, UnsignedByteType, Vector3, WebGLRender...
var _ = require('busyman'), fs = require('fs'), path = require('path'), Q = require('q'), chai = require('chai'), sinon = require('sinon'), sinonChai = require('sinon-chai'), expect = chai.expect, ccbnp = require('cc-bnp'); chai.use(sinonChai); var BShepherd = require('../index'), ...
// ISO- 3166-1 alpha-2 export function countryToFlag(isoCode) { return isoCode && typeof String.fromCodePoint !== 'undefined' ? isoCode .toUpperCase() .replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397) ) : isoCode; } export function flagIOC(ioc) { ...
'use strict'; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange'); const { ExchangeError, ArgumentsRequired, InsufficientFunds, InvalidOrder, OrderNotFound, AuthenticationError, BadRequest } = require ('./base/errors'); // --------------------...
/******************** * @Author admin * <p>need: jquery.js </p> * <p>need plugins: layer.js/dropzone.js/toastr.js </p> * <p>modify plugins: city-picker/city-picker2/dropzone</p> * <p>incoming plugins: formload</p> ********************/ /****************************************************************************...
// # Rectangle factory // A factory for generating rectangular shape-based entitys, including round-cornered rectangles // // Path-defined entitys represent a diverse range of shapes rendered onto a DOM &lt;canvas> element using the Canvas API's [Path2D interface](https://developer.mozilla.org/en-US/docs/Web/API/Path2D...
var metas = document.getElementsByTagName('meta'); var i; var itemzap = 0; jQuery(function ($) { $(".phone").mask("+7 (999) 999-99-99"); }); if (navigator.userAgent.match(/iPhone/i)) { for (i = 0; i < metas.length; i++) { if (metas[i].name == "viewport") { metas[i].content = "width=device-...
// elections.js // By <NAME> - http://mg.to/ // See UNLICENSE or http://unlicense.org/ for public domain notice. var color = { dem: '#0000EE', gop: '#EE0000', ind: '#592B02', demgop: '#9900FF', gray: '#808080' }; var elections = { 2008: { dem: { tableids: 'TODO', candidates: [ { color: '#20FF1F', id...
function BranchData() { this.position = -1; this.nodeLength = -1; this.src = null; this.evalFalse = 0; this.evalTrue = 0; this.init = function(position, nodeLength, src) { this.position = position; this.nodeLength = nodeLength; this.src = src; return this; } ...
/** * Created by cailong on 2017/1/17. */ var app = angular.module('yemaWebApp', ['angularFileUpload']); var navIndex = 2; app.controller('itunesSearchControl', function($scope, $http,$location, FileUploader){ var url = 'myapp/verify'; $scope.insufficientFund = false; $scope.inviteUrl = "http://www.mu...
function ConfigWindow() { const { ipcRenderer } = require('electron') const ipc = ipcRenderer // MINIMIZE WINDOW minimizeBtn.addEventListener('click', () => { ipc.send('minimizeApp') }) // CLOSE WINDOW closeBtn.addEventListener('click', () => { ipc.send('closeA...
/** * Copyright (C) 2012 KO GmbH <<EMAIL>> * * @licstart * This file is part of WebODF. * * WebODF is free software: you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License (GNU AGPL) * as published by the Free Software Foundation, either version 3 of * the License, ...
// Injects required polyfills for IE11 import "core-js/stable"; import "whatwg-fetch"; // Add all non-polyfill deps below. import _ from "lodash"; import tippy from "tippy.js"; import * as d3 from "d3"; import * as c3 from "c3"; import moment from "moment"; // Localization deps import i18next from "i18next"; import L...
import React, {useRef, useContext, useEffect, useState} from 'react' import axios from "axios"; import 'bootstrap/dist/css/bootstrap.min.css'; import {Container, Row, Col, OverlayTrigger} from "react-bootstrap"; import './report.css'; import {AppContext, MentionContext} from "../../App"; import Button from "react-boots...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import { View, Text, StyleSheet, LayoutAnimation, SectionList, TouchableOpacity, RefreshControl, Platform, } from 'react-native'; import * as timeF...
'use strict'; //const { getHashes } = require('crypto'); //var netutils = require('regtest-client'); //const TxBuilder=require('./src/transaction_builder'); const { Transaction } = require('./src/transaction'); //const { Psbt, PsbtTransaction } = require('./src/psbt'); const { Psbt } = require('./src/psbt'); const EC...
/** Tile.js contains all methods for initializing and drawing tile assets * Each tile has the following children, in this order: * stars * lightscreen * border * planet * nametext * resources * spy eyes * darkscreen */ var sectors = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; var resourceIndex = ["metal", "water"...
function createHeadlineFigures(count,charts,dataSets){ charts.forEach(function(chart,i){ var id="#headline"+i; if(dataSets[chart.data].length==0){ $(id).html('No Data'); } else { var bite = hxlBites.data(dataSets[chart.data]).reverse(chart.chartID); $('#he...
// FUNCIONES PARA CARGAR LOS COMBOS DE LA VENTANA DE DEFINICION DE FLUJO // funcion para cargar los combos dependiendo el tipo de documento seleccinado function cargar_cmb_departamentos(cmb_tipo_tramite){ var idTipoTram=$(cmb_tipo_tramite).val(); //mostramos los botones finalizar y add doc y...
import React, { Component } from 'react' import { connect } from 'react-redux' import { View, Text, ScrollView, StyleSheet, ListView, Image, TouchableOpacity, Animated, AsyncStorage, } from 'react-native' import { Toast, Overlay } from 'teaset' import equal from 'deep-equal' import Toast2 from 'antd-m...
var Twit = require('twit'), _ = require('lodash'), Word = require('./Word.js').Word, utils = require('./utils.js'), PromiseConfig=require('./PromiseConfig.js').PromiseConfig, querystring = require('querystring'), restclient = require('node-restclient'), request...
var Video = (function() { function constructor() { } return constructor; })(); /** * Represents a video decoder capturing all of its internal state. */ var Decoder = (function() { function constructor() { this.SequenceParameterSets = []; this.PictureParameterSets = []; this.V...