text
stringlengths
5.97k
41.2k
var jsf = require('json-schema-faker'); var postman_collection = require('postman-collection'); var ItemGroup = postman_collection.ItemGroup; var Item = postman_collection.Item; var Request = postman_collection.Request; var Response = postman_collection.Response; var RequestBody = postman_collection.RequestBody; ...
import { TerrainData } from 'shared'; const uuidv4 = require('uuid/v4'); const findObject = (list) => { return (x, y) => { return (list[x] || [])[y]; } } const buildUnitModel = (id, unit, reference) => { let model = { id: id, type: 'unit', name: reference.kind.name, ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Dispatcher = void 0; var _child_process = _interopRequireDefault(require("child_process")); var _path = _interopRequireDefault(require("path")); var _events = require("events"); function _interopRequireDefault(obj) { return obj ...
//Brick Breaker Pong game source file, //Copyright © 2016 <NAME> <<EMAIL>> //This work is free. You can redistribute it and/or modify it under the //terms of the Do What The Fuck You Want To Public License, Version 2, // as published by Sam Hocevar. See the LICENCE file for more details. var img; function setup() {...
var app =require('../fixtures/bootstrap'), util = require('util'), vows = require('vows'), assert = require('assert'), regex = protos.require('lib/regex.js'); //////////// CODE GENERATION // var src = []; // for (var key in regex) { // src.push(util.format(' %s: {\n\ // regex: %s,\n\ // va...
/* eslint-disable no-unused-vars */ /** * Lab 4 Activity 3 * @author <NAME> * @email (<EMAIL>) * */ let critic = { movie: "The Room (2003)", review: [ "I've never in my life been more entertained by a film that has absolutely NO redeeming qualities. The sense of alienation emanating from this film places...
//one line variable declaring (variable are used to store data types) var _firstName="Jhon", _lastName='Doe', _age = 23; document.write(`${_firstName} ${_lastName} ${_age}`, " delcared variables in java script"); console.log(`${_firstName} ${_lastName} ${_age}`, "delcared variables in java script"); document.write("<br...
"use strict"; const PioneerTypes = require("./PioneerTypes"); /** * @type {Object.<string, PioneerTypes.Property>} * NOTE: * =========================================================================================== * Internal-Properties: * -------------------- * Property Names that start with a '#' are marked...
var BulbasaurIcon = new ol.layer.Tile({image: new ol.style.Icon({src: 'icons/001.png'})}); var IvysaurIcon = new ol.layer.Tile({image: new ol.style.Icon({src: 'icons/002.png'})}); var VenusaurIcon = new ol.layer.Tile({image: new ol.style.Icon({src: 'icons/003.png'})}); var CharmanderIcon = new ol.layer.Tile({image: new...
import { parseObjFilePacked } from './gl/mesh'; import { initPackedInstancedBuffer } from './gl/buffer'; import loadTexture from './gl/texture'; import { buildingParticleSettings, wallSettings, buildings, state, } from './state'; import { Modes } from './constants'; import wallTexture from '../res/text...
/** * -------------------------------------------------------------------------- * Ace (v3.0.1): general.js General Ace Function */ import $ from 'jquery' // import bootstrap from 'bootstrap' import Util from './util' class Basic { static _HandleBasics () { Basic._handleAlerts() Basic._handleDropdowns(...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
var scr=document.getElementsByTagName('script'); var zoombox_path = scr[scr.length-1].getAttribute("src").replace('zoombox.js',''); (function($){ var options = { theme : 'zoombox', //available themes : zoombox,lightbox, prettyphoto, darkprettyphoto, simple opacity : 0.8, ...
/** * @fileoverview Common propTypes detection functionality. */ 'use strict'; const annotations = require('./annotations'); const propsUtil = require('./props'); const variableUtil = require('./variable'); const versionUtil = require('./version'); const propWrapperUtil = require('./propWrapper'); const getKeyValue...
#!/usr/bin/env node /* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache Lice...
// ag-grid-enterprise v4.1.4 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 === "func...
import React, {Component} from 'react'; import Dropdown, {DropdownTrigger, DropdownContent} from 'react-simple-dropdown/lib/components/Dropdown.js'; import {Link} from 'react-router-dom'; import {connect} from 'react-redux'; import { withRouter } from 'react-router'; import styled from 'styled-components'; import {fet...
var vows = require("vows"), load = require("../load"), assert = require("../assert"); var suite = vows.describe("d3.scale.sqrt"); suite.addBatch({ "sqrt": { topic: load("scale/sqrt", "interpolate/hsl"), // beware instanceof d3_Color "domain": { "defaults to [0, 1]": function(d3) { var...
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
#!/usr/bin/env nodejs 'use strict'; const fs = require('fs'); const path = require('path'); function loadConfig(fname) { if (!fs.existsSync(fname)) return {}; let r = {}; let data = fs.readFileSync(fname, 'utf8'); let lines = data.replace(/\r\n/g, "\n").replace(/\r/g, "\n").split("\n"); line...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var PropTypes = _interopDefault(require('prop-types')); var d3Scale = require('d3-scale'); var d3TimeFormat = require('d3-tim...
var webPath = window.webPath; if (typeof moment === "function") { moment.locale("zh-cn"); } function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null; } function formDate(da...
/******************************************************************************* uBlock Origin - a browser extension to block requests. Copyright (C) 2014-present <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* * Copyright 2020. F5 Networks, Inc. See End User License Agreement ("EULA") for * license terms. Notwithstanding anything to the contrary in the EULA, Licensee * may copy and modify this software product for its internal business purposes. * ...
import React, { Component } from 'react'; import { Alert, Select, Icon, Input, Modal, message, Tooltip, Button as AntButton, Collapse, Checkbox, Row, Col, DatePicker, TimePicker, } from 'antd'; import moment from 'moment'; import 'moment-timezone'; import Swal from 'sweetalert2'; import { c...
import { boot } from '@jsxcad/sys'; import { fromObj } from './fromObj.js'; import { realize } from '@jsxcad/geometry'; import test from 'ava'; test.beforeEach(async (t) => { await boot(); }); const cube = ` # cube.obj # g cube v 0.0 0.0 0.0 v 0.0 0.0 1.0 v 0.0 1.0 0.0 v 0.0 1.0 1.0 v 1.0 0.0 0.0...
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating // requestAnimationFrame polyfill by <NAME> // fixes from Paul Irish and <NAME> (function() { var lastTime = 0; var vendors = ['ms', 'moz', 'webki...
import {html, css} from 'lit-element'; import {classMap} from 'lit-html/directives/class-map'; import {autoParse} from 'mtg-decklist-parser'; import {createAction, StateElement} from 'helpers/store'; import {CardCache} from 'helpers/cache'; import {DeckModel} from 'models/deck'; import {isTouchEvent} from 'helpers/util...
function msginfo(info, type, func){ if(!type){ type = "error"; } swal({ title:"", text:info, type: type, confirmButtonColor: "#27c24c", confirmButtonText:"确定" },function(){ if(func){ func(); } }); } function formatDate(dt, fmt){ var date = new Date(dt.time); var o = { "M+" : date.getMonth...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var OrmUtils_1 = require("../util/OrmUtils"); var MongoDriver_1 = require("../driver/mongodb/MongoDriver"); var FindOperator_1 = require("../find-options/FindOperator"); var ApplyValueTransformers_1 = require("....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const command_1 = require("@salesforce/command"); const core_1 = require("@salesforce/core"); const command_base_1 = require("../../../lib/command-base"); const utils_1 = require("../../../lib/utils"); const o...
// ResourceList import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale'; import T from './../../utils/T'; import router from 'umi/router'; import { EnumQuickRegisterParams } from './../../constants/dataSync/EnumSyncConf...
'use strict'; global.Promise = require('bluebird'); const fs = require('fs'); const path = require('path'); const axios = require('axios'); const Eris = require('@dyno.gg/eris'); const { utils } = require('@dyno.gg/dyno-core'); const dot = require('dot-object'); const each = require('async-each'); const StatsD = requ...
/* eslint-disable prefer-destructuring, max-depth, complexity */ import _isUndefined from 'lodash/isUndefined'; import _isFinite from 'lodash/isFinite'; import _isFunction from 'lodash/isFunction'; import _isArray from 'lodash/isArray'; import lexer from './lexer'; const SYMBOLS = { error: 2, STRING: 4, EOF: 14...
// Copyright (c) 2018, Compiler Explorer Authors // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // thi...
/* eslint no-redeclare: "off", block-scoped-var: "off" */ const _ = require('lodash'); const esprima = require('esprima'); const escodegen = require('escodegen-papandreou'); const estraverse = require('estraverse-fb'); const espurify = require('espurify'); const mozilla = require('source-map'); const repeatString = req...
const { WOQL } = require("../woql") /** * Class responsible for converting a JSON WOQL into a WOQL.js / WOQL.py string */ function WOQLPrinter(vocab, language) { this.vocab = vocab this.language = language this.indent_spaces = 4 this.boxed_predicates = [ 'variable', 'array_element', ...
// SOUND EFFECTS // SFX urls are from rawgit. Allows loading sounds files on static github page. // Background Music var bgm = new Howl({ urls:['https://cdn.rawgit.com/DuyH/attbikehackathon/gh-pages/sfx/bgm.mp3'], //rawgit buffer: true, autoplay: true, loop: true, onstart: function(){ setTimeout(function...
//Reservierte globale Variablen var map; var sharingMap; var sharingLayer; /** Meldet den Benutzer über Google Plus an für den Zugriff ans Backend * * @param mode Sollte der access token automatisch aktualisiert werden ohne ein Popup * @param authorizeCallback Url, worauf Google den User weiterleiten nach einem...
/* 动态图层实现动态可视域 */ // 引入依赖 import { watch, ref, reactive, toRefs, onBeforeUnmount, onMounted } from "vue"; import tool from '../../../js/tool/tool.js' //提示等工具 import resource from '../../../js/local/lang.js' //语言资源 import {actions, storeState, storeDate } from '../../../js/store/store.js' //简单局部状态管理 imp...
const os = require("os"); const fs = require("fs"); const path = require("path"); const axios = require("axios"); const moment = require("moment"); const { createCanvas, registerFont, loadImage } = require("canvas"); const logger = require("./logger")("images"); const { sleep, digitsFormatter, fileSizeFormatter } = req...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fs = require("fs"); const path = require("path"); const process = require("process"); const util_1 = require("util"); const AsyncLock = require("async-lock"); const frida = require("frida"); const compiler = require("frida-compil...
import React, {Component} from 'react' import {FlexPane, FlexPaneContainer, FlexPaneBar, FlexPaneButtons, FlexPaneTitle} from 'react-flexpane' import 'react-flexpane/dist/styles.css' import io from 'socket.io-client' import classNames from "classnames" import CheckBoxWithLabel from './CheckBoxWithLabel' import Popup f...
"use strict"; (function () { GameEvents.Subscribe("end_game", EndScoreboard); /* // Placeholder var args = { "data":{ "players":{ "76561198015161808":{ "xp_multiplier": 10, "xp": "0", "xp_change": 200 }, "90071996842377216":{ "xp_multiplier": 1, "xp": "0", "xp_change":...
var natural = require('natural'), tokenizer = new natural.WordTokenizer(), stemmer = natural.PorterStemmer, randomstring = require('randomstring'), AWS = require('aws-sdk'); var s3 = new AWS.S3(); fetch('https://647fsnjln8.execute-api.us-west-2.amazonaws.com/beta') .then(function(response) { retu...
/* eslint-disable */ /** * Created by <NAME> on 2017/3/14. */ import React, {Component} from "react"; import withSideEffect from "react-side-effect"; import deepEqual from "deep-equal"; import objectAssign from "object-assign"; import { TAG_NAMES, TAG_PROPERTIES, REACT_TAG_MAP } from "./HelmetConstants.js"; co...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
var fs = require('fs'); var template = getTemplate(); var demoHome = null; var outputHome = process.argv.length > 2 ? process.argv[2] : './live-demo/'; if (fs.existsSync(outputHome)) { console.error("ERROR: remove output dir and try again: " + outputHome); process.exit(1); } outputHome = outputHome ? outputHom...
import React, { Fragment, useState, forwardRef, useEffect, useRef, useCallback } from 'react' import styled from 'styled-components' import AppBar from '@material-ui/core/AppBar' import Box from '@material-ui/core/Box' import MUIContainer from '@material-ui/core/Container' import Tabs from '@material-ui/core/Tabs' impo...
import { Button } from "@blueprintjs/core"; import draggableClassnames from "../constants/draggableClassnames"; import { some, isEqual, debounce } from "lodash"; import prepareRowData from "../utils/prepareRowData"; import React from "react"; import Draggable from "react-draggable"; import RowItem from "../RowItem"; im...
import { Client } from "pg"; import { graphql } from "@octokit/graphql"; import orderBy from "lodash/orderBy"; import { useRouter } from "next/router"; import { useSession } from "next-auth/client"; import GitHubIcon from "../../svg/github.svg"; import ChevronRightIcon from "../../svg/chevron-right.svg"; import Chevron...
import React, { useState, useEffect, useLayoutEffect } from "react"; import { CRow, CCol, CCard, CButton, CDropdownDivider, CCardImage, CDropdown, CDropdownToggle, CDropdownMenu, CDropdownItem, CModal, CModalHeader, CModalBody, CLink, CModalTitle, } from "@coreui/react"; import useFullPageLoader from "sr...
import { Widget, VDOM } from "../../ui/Widget"; import { Field, getFieldTooltip } from "./Field"; import { Culture } from "../../ui/Culture"; import { FocusManager, oneFocusOut, offFocusOut, preventFocusOnTouch } from "../../ui/FocusManager"; import { StringTemplate } from "../../data/StringTemplate"; import { monthSta...
var SnakeGame = {}; SnakeGame.Game = function (parameters) { this.app = parameters.app; this.width = 0; this.height = 0; this.x = 0; this.y = 0; this.meal_color = { r: 255, g: 255, b: 255 }; this.snake = null; this.meals = []; }; SnakeGame.Game.prototyp...
/* eslint space-infix-ops: 0, space-before-function-paren: 0, indent: 0, no-trailing-spaces: 0 */ /* global width, height, RGB, HSB, createVector, createCanvas, ellipseMode, ellipse, noStroke, line, BLEND, MULTIPLY, rectMode, CENTER, loadSound, keyCode ellipseMode, rect, RADIUS, random, fill, keyIsDown, colorMode, fr...
'use strict'; const { Box, Measurement } = require('@sensebox/opensensemap-api-models'), { UnprocessableEntityError, BadRequestError } = require('restify-errors'), idwTransformer = require('../transformers/idwTransformer'), { addCache, createDownloadFilename, computeTimestampTruncationLength, csvStringifier } = ...
var msg = Msg.factory({}) var msg2 = Msg.factory({ id: "foo", class: "bar", window_inner_x_class: "red !big", enable_titlebar: true, }) var msg3 = Msg.factory({ id: "boom", window_x: "none", overlay_x: "right", }) var msg4 = Msg.factory({ id: "boop", }) var msg5 = Msg.factory({ id: "poop", lock:...
/* eslint-disable max-len */ /* eslint-disable no-param-reassign */ const Endpoints = require('../../resources/Endpoints'); const List = require('../Util/List'); const PartyMeta = require('./PartyMeta'); const PartyMember = require('./PartyMember'); const ClientPartyMember = require('./ClientPartyMember'); const { Part...
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; function getMiddle(pol) { var start = pol.getLatLngs()[0];...
import EmojiFile from '../emoji-file.js'; if('serviceWorker' in navigator){ navigator.serviceWorker.register('./sw.js').then(function(reg){ // console.log('Registration complete with scope', reg.scope); }).catch(function(err){ // console.log('Registration failed', err); }) } const come = document.getEle...
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- /// <reference path="//Microsoft.WinJS.2.0/js/base.js" /> /// <reference path="../../ZumoE2ETestA...
/* * Import required packages. * Packages should be installed with "npm install". */ var express = require("express"); var app = express(); var nodemailer = require('nodemailer'); var session = require('express-session'); var bodyParser = require("body-parser"); var cookieParser = require("cookie-pa...
/*global Buffer, process */ import { spawn } from 'child_process'; import jpegExtract from 'jpeg-extract'; import crypto from 'crypto'; import ip from 'ip'; import dns from 'dns'; import { promisify } from 'util'; import isDocker from 'is-docker'; import path from 'path'; import fs from 'fs'; const dnsLookup = promisi...
import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react'; import { View, Text, TouchableOpacity, TouchableWithoutFeedback, Animated, BackHandler, } from 'react-native'; import { useSelector, useDispatch } from 'react-redux'; import Svg, { Path } from 'react-native-svg'; import { moveListName,...
/** * DevExtreme (viz/core/base_widget.js) * Version: 20.2.3 * Build date: Tue Oct 20 2020 * * Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; exports.default = void 0; var _renderer = _interopRequi...
'use strict'; //<NAME> 2016 - <EMAIL> import * as THREE from 'three' import _ from 'lodash' class MapControls extends THREE.EventDispatcher{ constructor(camera, domElement, options){ super(); this.camera = camera; //Object to use for listening for keyboard/mouse events ...
//-----需要配置---start const API_HOST='http://localhost:3001/'; const AuthKey='sessionKey'; //-----end var WebAPI_MSG_START='WebAPI_MSG_START'; var WebAPI_MSG_ERROR='WebAPI_MSG_ERROR'; var WebAPI_MSG_SUCESS='WebAPI_MSG_SUCESS'; //headers={ "Content-type": "application/x-www-form-urlencoded",} function WebAPI(){ func...
/* * Copyright (C) 2012 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
var $pyjs_array_slice = Array.prototype.slice; function $pyjs_kwargs_call(obj, func, star_args, dstar_args, args) { if (obj !== null) { func = obj[func]; } // Merge dstar_args into args[0] if (dstar_args) { if (pyjslib.get_pyjs_classtype(dstar_args) != 'dict') { throw (pyj...
function create_box_from_annot(opt_box, surrounding_eps){ // Making enlarge boxes w = opt_box['width'] + surrounding_eps ; l = opt_box['length'] +surrounding_eps ; cx = opt_box['center'].x; cy = opt_box['center'].y; angle = opt_box['angle']; center = new THREE.Vector3(cy, 0, cx); top_r...
var lat1; //Own Latitdue var lat2; //Latidude - Variable for calc distance var lon1; //Own Logitude var lon2; //Longitude - Variable for calc distance var question = document.getElementById("question"); var answer1 = document.getElementById("answer1"); var answer2 = document.getElementById("answer2"); var answer3 = do...
import React, { Component } from "react"; import { observer, inject } from "mobx-react"; import { Modal, ModalBody, ModalHeader, Button, Input, Container, FormGroup, Card, CardBody, CardHeader, TabContent, TabPane, Alert, Label, Row, Col, Nav, NavI...
var hash = require('./lib/hash') var messages = require('./lib/messages') var ReadStream = require('./lib/read-stream') var WriteStream = require('./lib/write-stream') var AppendStream = require('./lib/append-stream') var DiffStream = require('./lib/diff-stream') var MatchStream = require('./lib/match-stream') var lexi...
import React from 'react'; import PropTypes from 'prop-types'; import * as d3 from 'd3'; import isEqual from 'lodash.isequal'; import ScalerContext from 'context/Scaler'; import { createYScale, createXScale } from 'utils/scale-helpers'; import GriffPropTypes, { areaPropType, seriesPropType, annotationPropType, ...
// // /COE/RBP_PAM_SERVICE_ORD_GETL exception: 0 struct: 2 table: 6 var: 1 // // abap 2.3.0 at: 2021-04-23 11:59:34 // // prettier-ignore const parameters = { // IMPORT PARAMETERS // IV_TOTALS : "", // CHAR (1) no text (undefined) // IS_DISPLAY_PARAMETERS : {}, // BAPI_ALM_LIST_NAV...
// here we init the view page (function(window, document) { var store = new Persist.Store('strapdown', { swf_path: '/persist.swf' }); document.head = document.getElementsByTagName('head')[0]; ////////////////////////////////////////////////////////////////////// // // Shims for IE < 9 // if (!('getElement...
import BaseScene from "./BaseScene"; import { setInterval } from "timers"; import i18next from "i18next"; function detectmob() { if( navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigat...
'use strict'; /** * The `kss/builder/base/twig` module loads the KssBuilderBaseTwig * class, a `{@link KssBuilderBase}` sub-class using Twig.js templating. * ``` * const KssBuilderBaseTwig = require('kss/builder/base/twig'); * ``` * @module kss/builder/base/twig */ const KssBuilderBase = require('../kss_builde...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var rxjs = require('rxjs'); var isObservable = require('rxjs/internal/util/isObservable'); var operators = require('rxjs/operators'); function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments....
// --------------------------------------------------------------------------- // // Security Advising Modules (SAM) for Cloud IoT and Mobile Ecosystem // // Copyright (C) 2020 Instituto de Telecomunicações (www.it.pt) // Copyright (C) 2020 Universidade da Beira Interior (www.ubi.pt) // // This program is free softw...
var inherits = require("util").inherits; var to = require("./utils/to.js"); var Account = require('ethereumjs-account'); var Block = require('ethereumjs-block'); var Log = require("./utils/log"); var Receipt = require("./utils/receipt"); var VM = require('ethereumjs-vm'); var RuntimeError = require("./utils/runtimeerro...
var cookieTool = { unCkProList:[], cookieKey:"pro_list_1", arrUnique:function(arr){ var hash=[]; for (var i = 0; i < arr.length; i++) { if(hash.indexOf(arr[i])==-1){ hash.push(arr[i]); } } return hash; }, removeCookie:function(...
/* -*- mode: javascript; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // // Dalliance Genome Explorer // (c) <NAME> 2006-2011 // // bam.js: indexed binary alignments // var BAM_MAGIC = 21840194; var BAI_MAGIC = 21578050; var CSI_MAGIC = 21582659; function BamFile() { } function Vob(b, o) { this.block = b; ...
function get(url) { // Return a new promise. return new Promise(function(resolve, reject) { // Do the usual XHR stuff var req = new XMLHttpRequest(); req.open('GET', url); req.onload = function() { // This is called even on 404 etc // so check the status ...
/* eslint-disable import/first */ /* global jest, test, expect, describe */ import { MemoryDirectory } from "../files/memory"; import { parseTextArrayBuffer, stringToArrayBuffer } from "../utils"; import IndexedDB from "fake-indexeddb/build/index"; import { LocalStorageRoot, database } from "../files/local"; import { V...
/*HTML Include*/ function includeHTML(callback) { var z, i, elmnt, file, xhr; /*loop through a collection of all HTML elements:*/ z = document.getElementsByTagName("*"); for (i = 0; i < z.length; i++) { elmnt = z[i]; /*search for elements with a certain atrribute:*/ file = elmnt...
// // Copyright (c) 2020 Cisco Systems // Licensed under the MIT License // /* * a Webex Teams Integration based on nodejs, that acts on user's behalf. * implements the Webex Teams OAuth flow, to retreive Webex Teams API access tokens. * * See documentation: https://developer.webex.com/docs/integrations * */ co...
/** * Copyright (C) 2018 New York University * University at Buffalo, * Illinois Institute of Technology. * * 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 Lic...
import React, { Component } from "react"; import moment from 'moment'; import { connect } from "react-redux"; import { setUser,setSearchFilter,setTransportFilter,setGoodsFilter,setWatchFilter,setAbnormalFilter} from "../actions"; import { Button, FormGroup, FormControl, ControlLabel, DropdownButton, MenuItem} from "rea...
import EventEmitter from 'tiny-emitter'; import OpenSeadragon from 'openseadragon'; import { SVG_NAMESPACE, addClass, hasClass, removeClass } from '@recogito/annotorious/src/util/SVG'; import DrawingTools from '@recogito/annotorious/src/tools/ToolsRegistry'; import Crosshair from '@recogito/annotorious/src/Crosshair'; ...
import { FaPhoneAlt, FaEnvelope, FaLinkedin, FaGithub } from 'react-icons/fa'; // contact info export const contact = [ { name: "E-mail", link: "<EMAIL>", type: "email", icon: FaEnvelope, }, { name: "Phone", link: "719-492-9075", type: "cell", ...
class Strings { constructor() { this.base = new Array(64); this.menu = new Array(256); this.editor = new Array(320); for (let i = 0; i < this.base.length; i++) { this.base[i] = `<missing base str ${i}>`; } for (let i = 0; i < this.menu.length; i++) { this.menu[i] = `<missing menu str ${i}>`; } f...
import React, {useState, useEffect, useRef, useCallback} from 'react'; import { StyleSheet, View, Text, StatusBar, ScrollView, TouchableWithoutFeedback, Dimensions, } from 'react-native'; import {useDispatch} from 'react-redux'; import {IconButton, Portal} from 'react-native-paper'; import Tts from 'reac...
/* MIT LISCENSE Copyright 2020 Wagyourtail Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
"use strict"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ Object.defineProperty(exports, "__esModule", { value: true }); var bidi_1 = require("@angular/cdk/bidi")...
var row = 11 var column = 11 var tileSlotNumber = 7 var currentTileCount = tileSlotNumber + 1 var firstTimeGeneratedTiles = [] // sockets let ws = new WebSocket('ws://localhost:3000') ws.onopen = function(event) { // send "whoAmI" event let whoAmI = { event: 'whoAmI', data: { client: 'CL' } } ws.send(JSON.string...
// Tool function do_url_change(data) { return encodeURIComponent(data); } function do_return_date() { var today_data = new Date(); return '' + String(today_data.getFullYear()) + '-' + ((today_data.getMonth() + 1) < 10 ? '0' : '') + String(today_data.getMonth() + 1) + '-' + (today...
// Callback URL needs to be updated: // index.js (here) // app.js (/src/browser/app.js) // Stitch Facebook Auth (https://stitch.mongodb.com/groups/5b97d252d383ad60c1342b56/apps/5b97d3aa0e1190f86be22237/auth/providers/oauth2-facebook) // * url // Stitch Google Auth (https://stitch.mongodb.com/groups/5b97d252d383ad60c134...
 /* 88888888ba 88 88 888888888888 88 88 ,ad8888ba, ...
let currentTableName = null; let groupsData = null; let performersData = null; let songsData = null; let repertoiresData = null; let tourProgramsData = null; let concertsData = null; const groupTblHeader = ["Group", "Creation time", "Country", "Hit parade place"]; const performerTblHeader = ["Full name", "Birthday", ...