text
stringlengths
8.5k
48.7k
import '../component/button'; import '../modal/dialog'; import '../modal/confirm'; import BaseForm from './form-base'; import WebUploader from 'libs/webuploader/webuploader.js'; import _ from '../../utils/util'; import uploaderFlash from 'libs/webuploader/Uploader.swf'; import { Log } from '../../libs/log'; class Fil...
'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); var _ = require('lodash'); //var ejs = require('ejs'); var fileSys = require('fs'); var path = require("path"); module.exports = yeoman.Base.extend({ constructor: function () { yeoman.Base.apply(th...
/*jshint strict:false, undef:false, unused:false */ var fontSizes = { 1: 10, 2: 13, 3: 16, 4: 18, 5: 24, 6: 32, 7: 48 }; var styleToSemantic = { backgroundColor: { regexp: notWS, replace: function ( doc, colour ) { return createElement( doc, 'SPAN', { ...
// INIT GLOBAL VARIABLES ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: // canvas elements var cvs, ctx, download_cvs, download_ctx, read_cvs, read_ctx; // ---------------------------------------------------------------------------- // OG image related inf...
// Resize jQuery(window).resize(function() { "use strict"; resizeFullElement(); // Compare Sidebar Height var $wavesMain = jQuery('.waves-main'); var $wavesSidebar = jQuery('.waves-sidebar'); $wavesSidebar.parent().css('height',''); if(jQuery(window).width()>=975 && $wavesMain.height()<$w...
'use strict'; const path = require('path'); const DemoExampleHelper = require('./demo_example_helper'); const CONNECTION_CONFIG_FILE = 'connection.conf'; const confPath = path.join(__dirname, CONNECTION_CONFIG_FILE); const helper = new DemoExampleHelper(confPath); const btcCli = helper.getBitcoinCli(); const elements...
"use strict"; /* bundles some operations related to dungeon navigation */ window.gm = window.gm || {}; window.gm.dng = window.gm.dng || null; //{}; //represents a button the player can press for directions N,E,S,W; this will also be used to generate the map //if you have to connect 2 rooms, you have to define directio...
import { Board } from './board' import { Token, ActiveToken, PassiveToken, } from './token' import { Counter } from './counter' import { Timer } from './timer' import { random } from './utils' class Cells { constructor(size, config){ this.PLAY = 'play' this.CLOSE = 'close' th...
// const wtfnode = require('wtfnode'); /*------------------------------------------------------------------------------------------------------------------- Modules //-------------------------------------------------------------------------------------------------------------------*/ const { isNumber } = require('...
import dialog from "@skpm/dialog" const fs = require("@skpm/fs") const sketch = require("sketch") const Settings = sketch.Settings let doc = sketch.getSelectedDocument() let selectedLayers = doc.selectedLayers let JSONPath = "" let isJSONPathUpdated = false const maxPanelHeight = 480 const panelMargin = 20 const itemWi...
const { hexAt, hexLongIsNegative, hexLongToHex, negateHexLong, NUM_HEX_IN_LONG } = require("./HexHelper"); const { inflateSync } = require("zlib") var l = "", d = 0; const i = 65533, n = new Uint8Array(10), s = new Uint8Array(0); function u(e) { if (e === l) return d; for (var t = e.length, r...
"use strict"; /** * This widget is from <https://github.com/GregSS-Dev/COVID-Act-Now-Scriptable-Widget> * By <NAME> * Based on PurpleAir-AQI-Scriptable-Widget, * code by <NAME>, <NAME>, <NAME>, * <NAME>, <NAME>, and <NAME>: * <https://github.com/jasonsnell/PurpleAir-AQI-Scriptable-Widget> */ /** * Thi...
/* eslint-disable */ import * as d3 from "d3"; export class Browser { constructor(element) { this.container = element; this.contigs = []; this.knowngenes = []; this.gc_skew = []; this.gc_content = undefined; this.gc_content_window = 1000; this.gc_content_step = 100; this.props = { ...
"use strict"; const {utils, values} = require("@ckb-lumos/base"); const {computeScriptHash} = utils; const {ScriptValue} = values; const {addressToScript} = require("@ckb-lumos/helpers"); const {TransactionSkeleton} = require("@ckb-lumos/helpers"); const {CellCollector} = require("@ckb-lumos/indexer"); const {...
import ExtReactDOM from "./common/ExtReactDOM"; export default ExtReactDOM; import ExtButton_ from "./ExtButton"; import ExtCycle_ from "./ExtCycle"; import ExtSegmentedbutton_ from "./ExtSegmentedbutton"; import ExtSplitbutton_ from "./ExtSplitbutton"; import ExtCalendar_event_ from "./ExtCalendar_event"; import ExtCa...
import React, {PureComponent} from 'react'; import { FlatList, Icon, IconApp, Image, Keyboard, KeyboardAvoidingView, //LayoutAnimation, Platform, ScrollView, StyleSheet, Text, TouchableOpacity, View, } from '../src/react-native'; import {observer} from 'mobx-react'; import { ...
Ext.define('acesure.config.view.CalNodeConfig', { extend : 'Ext.panel.Panel', border : false, alias : 'widget.CalNodeConfig', id:"calNodeConfigId", layout:"vbox", items : [ { height:108, width:"100%", padding:'0 25 0 25', style:'background:#fafbfc;border:0;border-bottom:1px solid #e3eaec', defaults:{bod...
// CS30 Final Project // <NAME> // February 28, 2021 // // Extra for Experts: // - Backtracking algorithm is able to solve sudokus // - Multiple difficulty levels with three options per difficulty, never repeating the same level twice in a row // - Allows you to keep track of possible numbers before commiting to one //...
var { _, d3, fs, glob, io, queue, request } = require('scrape-stl') var q = queue(8) //copy(str.split('option value="').map(d => d.split('"')[0])) var slugs = [ "Concept:All-Star 2013 Shanghai", "Concept:All-Star 2014 Paris", "Concept:All-Star 2015 IWC Melbourne", "Concept:All-Star 2015 Los Angeles", "Conce...
//----------------------------------------------------------------------------- /** * Object to contain information and code for the design. */ var Design = {}; /** * Meta information about the design */ Design.info = { "name": "Hobbes", "designer": "<NAME>", "version": "1.1.0", "license": "MIT", "short_d...
// constants section const GRAPH_NODE_START_COLOR = 4; // index in color sheme const GRAPH_LINE_DIMMED_COLOR = "#ddd"; var g_peers = {}; // global dict of detected peers indexed by peer_id var g_peer_answer_awaits_count = 0; // how many peers were requested but not yet answered var g_scan_queue = []; // global queue ...
/*global define, __wxAppData, WeixinJSBridge, __wxConfig*/ // 通讯, storage, reload javscript, // 代理 request, // onCompassChangem/onAccelerometerChange API "use strict"; var ua = navigator.userAgent Object.defineProperty(navigator, 'userAgent', { get : function () { return ua +' appservice webview/10000' } }) va...
var g = ga(160, 120, setup, [ "maps/level.json", "images/sheet.json", "images/sheet.png" ], load ); g.start(); //Set the frames per second to 30 g.fps = 30; //Scale and center the game g.scaleToWindow(); //Optionally re-scale the canvas if the browser window is changed window.addEventListener("resize...
/* global AppComponent, ImModel, CladeOrgDbMixin, PositionSearchMixin, UserRegionsMixin */ var HgIntegratorModel = ImModel.extend({ // Handle hgIntegrator's UI state and events and interaction with the server/CGI/cart. mixins: [ CladeOrgDbMixin(['cladeOrgDb']), PositionSearchMixin(['regionSelect...
//---Module Dependencies-------------------------------------------------------- var express = require('express'), bodyParser = require("body-parser"), methodOverride = require("method-override"), app = express(), http = require("http"), dust = require("dustjs-linkedin"), consolidate = requi...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const parallel_exec_1 = require("./parallel_exec"); const parallel_pool_1 = require("./parallel_pool"); const csv_stringify = require("csv-stringify/lib/sync"); const debug = require("debug"); const debuglog = debug('averages'); 'use strict'; ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var scanCodeIntToStr = []; var scanCodeStrToInt = Object.create(null); var scanCodeLowerCaseStrToInt = Object.create(null); exports.ScanCodeUtils = { lowerCaseToEnum: function (scanCode) { return scanCodeLowerCaseStrToInt[scanCode] || 0 /*...
/* global bootstrap BigNumber */ "use strict"; // JavaScript for Monitor App // Global Constants const SERVERS = [ // List of XRP Server URL's { "name": "Testnet", "displayClass": "text-warning", "serverURL": "wss://s.altnet.rippletest.net/", "explorerURL": "https://testnet.xrpl.org/", }, { "...
const MoonCatData = { template: ` <div> <b-card header-class="warningheader" header="Incorrect Network Detected" v-if="network != 1337 && network != 1 && network != 3"> <b-card-text> Please switch to the Ethereum mainnet in MetaMask and refresh this page </b-card-text> </b-ca...
// stop the http and dns server in windows var commonDir = process.env.ALLUSERSPROFILE+"/Glimpse"; var ip = require("ip"); var myIp = ip.address(); // HTTP server ............................................................................................ var express = require('express'); var path = require('path'); v...
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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 limitatio...
"use strict"; // <copyright file="distribution-lists.tsx" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: ...
import { OpType, FocusMode, getAllSubTopicKeys, ModelModifier } from '@blink-mind/core'; import { ZIndex, Flex, PropKey, cancelEvent, iconClassName, TopicBlockIcon, StyledCheckbox, Icon } from '@blink-mind/renderer-react'; import { Button, Alert, PopoverInteractionKind, Popover, MenuDivider, MenuItem } from '@blueprint...
/* Copyright 2016 OpenMarket Ltd 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 writing, software ...
import Tuna from 'tunajs'; import Polywad from './polywad'; import { pitches } from './pitches'; import _ from 'lodash'; let audioContext = window.AudioContext || window.webkitAudioContext; let logStats = { verbosity: 0, suppressedLogs: 0 }; let logMessage = function(message, logLevel){ logLevel = logLevel || 1;...
import { jmList } from './jmList.js'; /** * 画图基础对象 * 当前库的工具类 * * @class jmUtils * @static */ export default class jmUtils { /** * 复制一个对象 * * @method clone * @static * @param {object} source 被复制的对象 * @param {object} target 可选,如果指定就表示复制给这个对象,如果为boolean它就是deep参数 * @param {b...
var util = require('./util'); var type = require('./import/type'); var gen = require('./generate'); var stats = module.exports; // Collect unique values. // Output: an array of unique values, in first-observed order stats.unique = function(values, f, results) { f = util.$(f); results = results || []; var u = {}...
/* * Auth <EMAIL> 2015-2016 * */ //系统需要安装 memcached imageMagick nodejs flash-air var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var Memcached = re...
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var pica = require('pica'); //d var cropImage = function cropI...
import { useState, useEffect} from 'react'; import { a, br, div, fieldset, h, h3, input, label, span, textarea } from 'react-hyperscript-helpers'; import isNil from 'lodash/fp/isNil'; import isEmpty from 'lodash/fp/isEmpty'; import forEach from 'lodash/fp/forEach'; import includes from 'lodash/fp/includes'; import clon...
/* * main.js * * Copyright (c) 2021 tora-japan (s.noda) * * Released under the MIT license. * see https://opensource.org/licenses/MIT * * https://github.com/tora-japan/ */ isDebugNextRandom = 0; // デバッグ用:テトリミノの順番をランダムにする/順番にする gameSwitch = "gameStart"; // ゲームスイッチ tetriminoSize = 25; ...
boardEl = $('#board'); var squareToHighlight = ''; var crossTableInitialized = false; var gameActive = false; var squareClass = 'square-55d63'; var whiteToPlay = true; var whiteTimeRemaining = 0; var blackTimeRemaining = 0; var whiteTimeUsed = 0; var blackTimeUsed = 0; var whiteMoveStarted = 0; var blackMoveStarted ...
import Promise from 'bluebird' import BigNumber from 'bignumber.js' import Web3 from 'web3' import * as exchangeAPI from 'wyvern-exchange' import { WyvernProtocol } from 'wyvern-js' import * as WyvernSchemas from 'wyvern-schemas' import { logger } from './logging.js' import { cachedAsync } from './cache.js' import { ...
// FN Custom show error message for select2 function selec2Validate(ele) { var parEle = $(ele).closest('.justify-content-start'); if ($(ele).hasClass('error')) { var errorEle = $('label.error', parEle); parEle.append(errorEle); $('.select2-selection--multiple', parEle).addClass('error'); } else { $('label.er...
/* Linear regressions */ const Decimal = require('decimal.js') const tdist = require('../distributions/studentt.js') const fdist = require('../distributions/f.js') const chidist = require('../distributions/chi.js') const M = require('../tools/matrix.js') const Arr = require('../tools/array.js') // Dependencies,...
var $ = jQuery.noConflict(); function image_preload(selector, parameters) { var params = { delay: 250, transition: 400, easing: 'linear' }; $.extend(params, parameters); $(selector).each(function() { var image = $(this); image.css({visibility:'hidden', opacity: 0, display:'block'}); image.wrap('<spa...
/** * Generated from the Phaser Sandbox * * //phaser.io/sandbox/oCMvHAaL * * This source requires Phaser 2.6.2 */ var cur_game; function level2() { checkFlag = false; var game2 = new Phaser.Game(1120, 580, Phaser.AUTO, '', { preload: preload_2, create: create_2, update: update_2, render: render_2 });...
const TILE_SIZE = 20; const LIGHT_LEVELS = 7; const LIGHTNESS_STEP = 100 / LIGHT_LEVELS; class DungeonTile { constructor(x, y, index, isRoom) { this.pos = createVector(x, y); this.index = index; this.isRoom = isRoom; this.hasLight = false; this.lightLevel = 1; this.isWall = false; this.color; } get n...
var Immutable = require("immutable"); var alt = require("../alt-instance"); var MarketsActions = require("../actions/MarketsActions"); var SettingsActions = require("../actions/SettingsActions"); var market_utils = require("../common/market_utils"); import ChainStore from "api/ChainStore"; import utils from "common/uti...
// Copyright (C) 2013 <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, publish, dis...
// Parameters rScale = 1; rMin = 0.5; scoreRate = 1e-6; damageRate = 0.02; arrowSpread = 200; arrowBase = 10; // Event handler var EventHandler = function() { this.handlers = []; this.contexts = []; } EventHandler.prototype = { add: function(f, context) { this.handlers.push(f); this.contex...
load_new('scr/_gui.js'); /* ах, чудна българска земьо, полюшвай цъфтящи жита! */ test_gui=true function tbl(t,tx) { return '<table '+tx+'>'+crlf+t+'</table>'+crlf;} function row(r,rx) { return '<tr '+rx+'>'+crlf+r+'</tr>'+crlf;} function col(c,cx) { var cx_=''; if(cx!=undefined) cx_=cx; return '<td '+cx_+'>'...
import { EventEmitter } from "events"; import { DigestAuthentication, Grammar, IncomingRequestMessage, IncomingResponseMessage, Levels, LoggerFactory, Parser, URI, UserAgentCore } from "../core/index"; import { createRandomToken, str_utf8_length } from "../core/messages/utils"; import { LIBRARY_VERSION } from "../versi...
/** * Uses software parts from boolean.py (https://github.com/bastikr/boolean.py): * Copyright (c) 2009-2020 <NAME>, <EMAIL> and others SPDX-License-Identifier: BSD-2-Clause */ const {isEqual, uniqWith, get, sortBy, some, concat, groupBy, forOwn, uniq, isObject} = require("lodash"); const TOKEN_AND = 1; const TOK...
// The task scheduler for the main game loop var fps = 60; var gameLoopInterval = Math.floor(1000/fps); var taskScheduler; var balls = []; // array for ball objects var critBalls = []; // array for balls in critical condition (waiting for icu) var icuBalls = []; // array for balls in intensive care (in icu) var ball...
// Script (C) 2012 by <NAME>. // You can modify the code for non-commercial use; // attribution would be nice. // If you want to make money off it, please contact me. var NLEX = 150; var NSENT = 30; var s; var ss; var punc = ".?!"; var cat; var ncat; var syl; var nsyl; var catindex = ""; var badca...
// 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 License, Version 2.0 (the // "License"); you may...
// app state: which component gets plotted var state = { component: 3, deformation: true, animframe: 0, next: undefined, render: undefined, colorAxisType: 1 } // nodes var nodes var globalMax var globalMin // oriented faces to be rendered //for(let i = 0; i < 14; ++i) { quads = [...quads, ...q...
var peer = null, comp = null, player, ship={type:"Sub", btn:null, col:"gray"}, config={size:0, vcalc:0, gameon:true, plyrone:false, p2ready:false, opp:"Player 2" }; document.getElementById("plselect").onclick = function(evt) { //get user's name if (ev...
/* global all, artifacts, command, config, eggs, master */ /* eslint no-undef: "error" */ /* ========================================================================== * 以下为数据结构 * ========================================================================== * * * ==========================...
/* ----------------------------------------------------------------------------------- Map Quiz JS Develolped by the Applications Prototype Lab (c) 2014 Esri | https://www.esri.com/legal/software-license ----------------------------------------------------------------------------------- */ require([ 'e...
// This sample demonstrates handling intents from an Alexa skill using the Alexa Skills Kit SDK (v2). // Please visit https://alexa.design/cookbook for additional examples on implementing slots, dialog management, // session persistence, api calls, and more. const Alexa = require('ask-sdk-core'); const persistenceAdapt...
//定义全局变量 var canvas; var context; var P = Math.PI; var chords = [ [1025, 124, 763, 81], [1025, 124, 1068, 363], [763, 81, 537, 47], [537, 47, 402, 102], [763, 81, 952, 169], [952, 169, 988, 363], [988, 363, 949, 497], [1068, 363, 1028, 532], [1028, 532, 970, 630], [...
import React, { Component } from 'react'; import Files from 'react-files'; import { debounce, throttle } from 'lodash'; import { withStyles } from '@material-ui/core/styles'; import Box from '@material-ui/core/Box'; import Menu from '@material-ui/core/Menu'; import ListItem from '@material-ui/core/ListItem'; import Di...
/** * Wheel, copyright (c) 2017 - present by <NAME> * Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt **/ const $ = require('../../program/commands'); const errors = require('../errors'); const err = require('../errors').errors; const t ...
var recipes = {}; recipes.common = [ { 'fur': {'furScrap': 5}, 'fur-2': {'smallPelt': 2}, 'shellPlating': {'brokenShell': 10}, 'shellPlating-2': {'smallShell': 5}, 'leather': {'smallPelt': 5}, 'leather-2': {'largePelt': 1}, 'copperIngot': {'copperOre': 10} },{ 'mediumPotion': {'smallPotion': 3}, ...
import React, {Component} from 'react'; import '../../../style/user_main.css'; import Modal from "react-modal"; import Dropzone from "react-dropzone"; import {fetchGet, fetchSendObj, fetchSendWithoutRes} from "../../../services/fetchService"; import {Popover} from "react-bootstrap"; import HelpButton from "../../common...
import { u, wallet } from '@cityofzion/neon-js'; import { str2hexstring, int2hex, hexstring2str } from '@cityofzion/neon-js/src/utils' import {unhexlify,hexlify} from 'binascii'; const handler = require('./handleFile') //module to handle responses from nos promises //module to display bet informatio // decode data af...
console.log('r/place'); var canvas = document.querySelector('canvas'); // Define height and width of canvas // to be that of window dimensions canvas.width = window.innerWidth; canvas.height = window.innerHeight; // c stands for context var c = canvas.getContext('2d'); // Create a rectangle // Fill rect takes wha...
//Game Variables var ACC = 0.25; var FRICTION = -0.05; var count = 0; var DIG_INTERVAL = 750; var TILE_SIZE = 64; var SKYHEIGHT = TILE_SIZE * 15; var WORLDHEIGHT = 100; var WORLDWIDTH = 50; var TERMINAL_VELOCITY = 18; var GRAVITY = 0.12; var lastCall = 0; var windowWidth = window.innerWidth - 150; ...
const buildSizePrefix = '=== BUILD SIZES: '; const buildSizePrefixRe = new RegExp(`^${buildSizePrefix}(.+)$`, 'm'); function fetchTravis(path, searchParams = {}) { const url = new URL(path, 'https://api.travis-ci.org'); url.search = new URLSearchParams(searchParams).toString(); return fetch(url.href, { ...
"use strict"; // {{{ Loading Spinner Icon var myLoader = loader().width(25).height(25); d3.select("#loader_container").call(myLoader); /// Loading Spinner Icon }}} //{{{ ZOOMING AND CHANGING var supportsOrientationChange = "onorientationchange" in window; var orientationEvent = supportsOrientationChange ? "orientatio...
/* * This file is part of Totara LMS * * Copyright (C) 2010 onwards Totara Learning Solutions LTD * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * ...
"use strict" // Main function: function ready(error, results){ // This function initilizes the webpage when Tree.html // and the data from the queue is loaded // store treemap data var data = results; // define the top level of the tree/array root = data[0]; root.x0 = viewerHeight /2; root.y0 = viewerWidth...
/* The Official Pocket Browser Code, Created and Written by the Pocket, Inc. © 2021 Pocket Inc. github.com/PocketInc/Pocket-Browser */ // Require all external modules. // NPM. const electron = require("electron").remote const fs = require("fs"); var linebyline = require("line-by-line"); //Variable used to save ho...
// Soft body simulator with anisotropic friction // Copyright (c) 2016 <NAME> // Licensed under MIT license. //3d index class //TODO: optimize xsize and ysize to be power of 2 function make3dIndex(cellSide, xsize, ysize) { var index = this; index.side = cellSide; index.xsize = xsize; index.ysize =...
// ## Title: THREE JS game style immersive slider selection screen // ## Author: <NAME> // ## Date: 10/03/2017 // ## Let"s get everything set up var scene, camera, cameraControls, can_click = 1, position = 0, spotLight, particles = [], Lights = [], gems = []; // ## Let"s load in our au...
function SkeletonBinary(){}; SkeletonBinary.prototype = { data : null, scale : 1, json : {}, nextNum : 0, chars : null, readByte : function(){ return this.nextNum < this.data.length ? this.data[this.nextNum++] : null; }, readBoolean : function(){ return this.readByte() !...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ OSM.SERVER_URL="localhost:8001/app.php" window.onload = function () { var map; var leafletmap_tooltip; var layersContr...
// electronicLife. Chapter 10, Exercise 2. A return to electronic life. "use strict"; var g_interval = {}; // area2d // -------------------- // Vector // Grid // directions // directionNames // dirPlus var area2d = function() { // Vector // ---------------------- // x : int // y : ...
/** * This module houses the functionality to evaluate and process adpod adunits/bids. Specifically there are several hooked functions, * that either supplement the base function (ie to check something additional or unique to adpod objects) or to replace the base function * entirely when appropriate. * * Brief ou...
/* Copyright 2014-2019 Google LLC 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
function collide(x, y, object){ if(x > object.x && x < object.x + object.w && y > object.y && y < object.y + object.h ){ return true; } else { return false; } } var app = playground({ width : 800, height: 1000, preferedAudioFormat: "mp3", create: function(){ //gam...
var attached_file; function getDAList(course_code) { destroyDatatable("#tbl_da_pending_list", "#tbl_da_pending_list_body"); destroyDatatable("#tbl_da_approved_list", "#tbl_da_approved_list_body"); destroyDatatable("#tbl_da_rejected_list", "#tbl_da_rejected_list_body"); // var tab = document.getElementB...
/* Copyright (c) 2010 Human Engines 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 conditions and...
/* * 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 License, Version 2.0 (the * "License"); you may n...
import Ember from 'ember'; import ChartComponent from './chart-component'; import LegendMixin from '../mixins/legend'; import FloatingTooltipMixin from '../mixins/floating-tooltip'; import AxesMixin from '../mixins/axes'; import FormattableMixin from '../mixins/formattable'; import SortableChartMixin from '../mixins/so...
/* * Expresso * Copyright(c) <NAME> <<EMAIL>> * (MIT Licensed) */ /** * Module dependencies. */ var assert = require('assert'), childProcess = require('child_process'), http = require('http'), path = require('path'), util = require('util'), cwd = process.cwd(), fs = require('fs'), de...
/********/ // Data // /********/ const metadata_dir = './metadata'; const superdatasets_file = metadata_dir + '/super.json'; const json_file = metadata_dir + '/datasets.json'; const SPLIT_INDEX = 3; /**************/ // Components // /**************/ // Component definition: recursive item in data tree Vue.component("...
import { computed, observable, toJS } from "mobx"; import moment from "moment"; import color from "tinycolor2"; //import LoaderTsne from "./Loaders/Tsne"; import LoaderJson from "./Loaders/Json"; import LoaderLdaJson from "./Loaders/LdaJson"; import LoaderLombardi from "./Loaders/Lombardi"; import LoaderJsonFeed from "...
// !!! PARAMTERS TO BE INTRODUCED BY USER !!!! //------------------------------------------- const tag_name = 'mensfashion'; //------------------------------------------- const P_POST_LIKES = 0; //100 const P_POST_COMMENTS = 0; //10 //------------------------------------------- const P_ENG_RATE = 1.00; // Percen...
/* eslint-disable */ /** * FitCurves.js - Piecewise cubic fitting code * * original: FitCurves.c * http://tog.acm.org/resources/GraphicsGems/gems/FitCurves.c * * ported by ynakajima (https://github.com/ynakajima). * modifications by <NAME> (https://github.com/msegado) * * THIS SOURCE CODE IS PUBLIC DOMAIN, an...
/** @module ember @submodule ember-handlebars */ import Ember from "ember-metal/core"; // Ember.assert, Ember.warn, uuid // var emberAssert = Ember.assert, Ember.warn = Ember.warn; import EmberHandlebars from "ember-handlebars-compiler"; import { get } from "ember-metal/property_get"; import { set } from "ember-metal...
import { ROOT_CHAIN_ID, DEV_ENV_L1_RPC, CONFIGS } from './config.js'; import { ethers } from '/lib/extern/ethers.esm.min.js'; export { ethers }; export const ERC20_ABI = [ 'function name() view returns (string)', 'function symbol() view returns (string)', 'function decimals() view returns (uint8)', 'function ...
/* Deepaks's Unicode Converters Version 3.0 Copyright (C) 2014(<NAME>) http://www.deepakgiri.com.np This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, o...
/* @flow */ /* eslint key-spacing:0 */ 'use strict' // Imports // First we need to import the libraries we require. // Load in the file system libraries. // [SafeFS](https://github.com/bevry/safefs) is aliased to `fsUtil` as it provides protection against a lot of the common gotchas const { readdir, readFile, writeFi...
var START_TO_START = 0, START_TO_END = 1, END_TO_END = 2, END_TO_START = 3; function documentFromRange(range) { var startContainer = range.startContainer; return startContainer.nodeType == 9 ? startContainer : startContainer.ownerDocument; } function selectionFromWindow(window) { if ($.browse...
require('dotenv').config(); const { API_URL} = process.env const { Account, Address, TransactionBuilder, Networks } = require('@oipwg/hdmw') const { log }= require('../../helpers/log') const uuidv4 = require('../../helpers/uuidv4'); const { getTotalQty, getOfferPriceBtc, getSellableQty, getProfitUsd, ...
import THREE from '../third_party/three.js'; import { renderer, getCamera } from '../modules/three.js'; import Maf from '../modules/maf.js'; import easings from '../modules/easings.js'; import OrbitControls from '../third_party/THREE.OrbitControls.js'; const canvas = renderer.domElement; const camera = getCamera(); co...
const getId = id => document.getElementById(id); const animateHanoiBtn = getId("animateHanoiBtn"); const answer = getId("answer"); const diskAmountInput = getId("diskAmountInput"); const pegsAmountInput = getId("pegsAmountInput"); const startingPegInput = getId("startingPegInput"); const endingPegInput = getId("e...