text
stringlengths
5.97k
41.2k
//////////////////////////////////////////////////////////////////// // ! Cuidado, código feito as pressas e sem planejamento à frente!// // Manuseie com cuidado // //////////////////////////////////////////////////////////////////// let totalCaracteres = 0 let linhaPosicional...
// find the start button element and assign it a variable let startQuizEl = document.querySelector("#start"); // find the timer element and assign it to a variable let timerEl = document.querySelector("#timer"); // initiate the timer let quizTime = ""; // create area where questions will display let questionAreaEl = do...
// All the UI for a single issue, without store load or listening for changes // import { authn, icons, messageArea, ns, rdf, store, style, utils, widgets } from 'solid-ui' import { newIssueForm } from './newIssue' const $rdf = rdf const kb = store const SET_MODIFIED_DATES = false function complain (message, context...
$(document).ready(iniciar); var actual; var tabla; function iniciar() { window.setTimeout(function() { $("#caja-cargando").hide(); },1300); tabla=$("#tb_usuarios").DataTable(); $("#tb_usuarios").attr('style', 'width:100% !important;'); generar_filtro(); //activo una funccion al presionar el boton regis...
// This project is inspired by the following two projects. // https://github.com/petejonze/QuestPlus // https://github.com/BrainardLab/mQUESTPlus // Kudos to the developers! // import numeric from 'numeric_es6'; console.log('jsQuestPlus Version 2.0.0') class jsquest { // PF menas Psychometric Functions con...
import Express from 'express'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import logger from 'morgan'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.config.dev'; import webpackDevMiddleware from 'webpack-dev-middleware'; impor...
/* eslint-env worker */ /* global objectHash */ importScripts('../../conf/app.js') importScripts('../kairos.js') importScripts('../gevent.js') importScripts('../stores/user.js') importScripts('lib/updater-count.js') let LastMod = 0 const LoadStatus = new Map() const Entries = new Map() const Channels = new Map() const...
const Discord = require('discord.js') const token_file = require('./tokens.json') const axios = require('axios') const youtubedl = require('ytdl-core') const youtubeapi = require('youtube-api-v3-search') const mongo = require('mongodb') const yttoken = token_file.youtube.api_key const client = new Discord.Client() co...
//mostly based on https://github.com/Zen33/vue-sparklines (MIT Licence) export const min = data => Math.min.apply(Math, data); export const max = data => Math.max.apply(Math, data); export const arrayMax = max; export const arrayMin = min; export const avg = data => data.reduce((a, b) => a + b) / data.length; export c...
import Vue from 'vue' import VueRouter from 'vue-router' import axios from 'axios' import VueAxios from 'vue-axios' // importing custom components import add_relation from './components/add_relation'; import add_field from './components/add_field'; import edit_relation from './components/edit_relation'; import mult...
import React, { Component } from 'react'; import { Map, List, Iterable } from 'immutable'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { translate, Trans } from 'react-i18next'; import * as GlobalActions from 'modules/GlobalModule'; import * as NoticeActions from 'modules/...
var debug = false; function log() { if (debug) { console.log(arguments); } } function ignoreThisPage(options) { return $.grep(options.except_urls, function(url) { return RegExp(url).test(window.location.href) }).length > 0; } function whiteList(options) { return $.grep(options.only_urls, function(url) ...
const log = console.log; var NOTES_PER_RIFF = 8; var REST = 0; var HOLD = 1; var _n = (x,y) => x + (y + 1) * 12; var C=0 var Cs=1 var Db=1 var D=2 var Ds=3 var Eb=3 var E=4 var F=5 var Fs=6 var Gb=6 var G=7 var Gs=8 var Ab=8 var A=9 var As=10 var Bb=10 var B=11 var C_1 = _n(C,-1) var Cs_1 = _n(Cs,-1) va...
/* # Primary Developers 1) <NAME>, Ph.D. 2) <NAME> refer verilog_documentation.md */ import { scopeList } from "./circuit"; import { errorDetectedGet } from "./engine"; import { download } from "./utils"; import { getProjectName } from "./data/save"; import modules from './modules'; import { sanitizeL...
var template = $("#template").val(), loadMoreFlag = true, isClick1 = false, isClick2 = false, sku2 = $('.sku2').length; $(function() { if ($('.foot-tips').hasClass('no-more')) { $('.foot-tips').hide(); } // goods search $(".search_btn").click(function() { var keyword = $("...
#!/usr/bin/env node // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. 'use strict'; var fs = require('fs'); var nopt = require('nopt'); var uuid = require('uuid'); var prettyjson = require('prettyjson'); var colorsTm...
"use strict"; // A Type Inference Algorithm that provides partial support for inference // of non-recursive higher rank polymorphic types. // // Copyright 2017 by <NAME> // Licensed under the MIT License var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ...
import { BufferGeometry } from 'three/src/core/BufferGeometry'; import { Float32BufferAttribute } from 'three/src/core/BufferAttribute'; import { Vector3 } from 'three/src/math/Vector3'; import { Quaternion } from 'three/src/math/Quaternion'; function TerrainMeshGeometry( x, y, resolution, meshData, offsets, transform...
// Copyright 2020 Las Venturas Playground. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. import { CommandBuilder } from 'components/command_manager/command_builder.js'; import { format } from 'base/format.js'; import { fromNow } fr...
'use strict'; const HomeKitTypes = require('../types/types.js'); const EveTypes = require('../types/eve.js'); const LogUtil = require('../../lib/LogUtil.js'); const moment = require('moment'); const store = require('json-fs-store'); var Service, Characteristic, FakeGatoHistoryService; const timeout = ms => new Promi...
/* * Copyright (C) 2017 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DI...
var countries = [ { name: "<NAME>", currency: "B$ (Brunei Dollar)", location: [4.94029, 114.94806], capital: "Bandar Seri Begawan", leader: "His Majesty <NAME>", gdp_curr_yr: 12128089002, population: 428697, pop_male: "51%", pop_female: "49%", urban_pop: "...
/** * * @authors yutent (<EMAIL>) * @date 2018-08-05 01:14:35 */ 'use strict' import '/lib/anot.next.js' import '/lib/marked/index.js' import '/lib/prism/index.js' import '/lib/meditor/index.js' import '/lib/request/index.js' import Qiniu from '/lib/qiniu.js' import Attach from '/lib/meditor/addon/attach-nativ...
/* * Copyright 2020 Adobe. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
"use strict"; /* jslint browser: true, globalstrict: true, devel: true, debug: true */ /* global THREE, THREEx, signals, Stats, Detector */ /* global check, checkDefined, EC_Placeable, EC_Mesh, EC_Camera, EC_Light, LT_Point, LT_Spot, LT_Directional */ // For conditions of distribution and use, see copyright notice ...
// @flow const { extension: { extractee, emitters } } = require("@valos/vdoc"); const { extractee: { authors, ref, dfn, em, pkg, filterKeysWithAnyOf, filterKeysWithNoneOf }, ontologyColumns, revdocOntologyProperties, } = require("@valos/revdoc"); const { name, version, description } = require("./package"); const...
if ("serviceWorker" in navigator) { navigator.serviceWorker.register("/ccuc/sw.js").then(function(reg) { console.log("registered service worker in scope: ", reg.scope); }, function(err) { console.log("failed to register service worker: ", err); }); } let contents = document.getElementById("...
#!/usr/bin/env node 'use strict'; 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]; } } } return target; }; let copyManifest = (() => ...
const ages = require("../ages.json"); const ageCost = require("../ages-cost/ArcticFuture"); Object.defineProperty(exports, "__esModule", { value: true, }); exports.default = { key: "Arctic_Orangery", gbReward: { 1: { critical_hit_chance: 4.87, strategy_points: 2, }, 2: { critical_h...
/** * Copyright 2016 PT Inovação e Sistemas SA * Copyright 2016 INESC-ID * Copyright 2016 QUOBIS NETWORKS SL * Copyright 2016 FRAUNHOFER-GESELLSCHAFT ZUR FOERDERUNG DER ANGEWANDTEN FORSCHUNG E.V * Copyright 2016 ORANGE SA * Copyright 2016 Deutsche Telekom AG * Copyright 2016 Apizee * Copyright 2016 TECHNISCHE UNIVERSIT...
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator.throw(va...
/* Node-OpenDroneMap Node.js App and REST API to access OpenDroneMap. Copyright (C) 2016 Node-OpenDroneMap Contributors 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...
// Constructor function AuthView() { StandardTableView.call(this); this.name="AuthView"; this.allDataLoaded=false; this.renderTimer=null; this.currentDomain="person"; this.clipboard=null; } Temp.prototype = StandardTableView.prototype; AuthView.prototype = new Temp(); authView = new AuthView(); AuthView...
/** * Telko: A brain-dead simple telnet-style relay meant to be used for * testing Elko servers with simple text JSON messages, usually pasted * in from a text file. * * The problem is that some references change between executions, so * statically stored (text file) JSON messages can't work * to refer to obje...
aux = 0; function verStatus(){ var store_escravo = new Ext.data.JsonStore({ autoDestroy: true, id: 'store_escravo', proxy: new Ext.data.HttpProxy({ method: 'GET', url: '../ajax', disableCaching:false }), //method:'GET', //u...
function bird (audioContext, type){ if (!audioContext) { console.error('AudioContext is required!'); return; } var freqMultiplier = 7000; var freqOffset = 300; var maxAttackDecayTime = 0.9; //seconds var envFreqMultiplier = 3000; var oscStarted = false; var panner = audioContext.createPann...
var platformGroup; var ready = false; var allReady = false; var meReady = false; var gameStarted = false; var eurecaServer; var eClient; var created = false; var playerRole; var player2 = false; var platform = 0; var playerHealth = 2; var nextPlatformTick = 0; var sounds = new Soundtrack(); sounds.bg.start(); var eu...
var URL = require('url'), util = require('util'), events = require('events'), Buffer = require('buffer').Buffer, fs = require('fs'), path = require('path'), jsdom = require('jsdom'), uglifyjs = require('uglify-js'), jsp = uglifyjs.parser, pro = uglifyjs.uglify, compress = null, /...
/* eslint-disable no-console */ import _chalk from 'chalk'; import stripAnsi from 'strip-ansi'; import { isSystemWin } from './utils'; const ICN_ROCKET = isSystemWin ? 'RNV' : '🚀'; const ICN_UNICORN = isSystemWin ? 'unicorn' : '🦄'; const _chalkCols = { white: v => v, green: v => v, red: v => v, yell...
/** * Author: <NAME> * email: <EMAIL> * * Implementation of the Edge-Path-Bundling algorithm from our publication: Edge-Path Bundling: A Less Ambiguous Edge Bundling Approach (https://arxiv.org/abs/2108.05467) * * The following class encapsulates all necessary code to bundle edges and draw on a web canvas. */ ...
import { d20 } from "./dice" export const attributes = { mu: "mu", in: "in", kl: "kl", ch: "ch", ko: "ko", kk: "kk", ge: "ge", ff: "ff" } export const skillz = [ { name: "Fliegen", id: "TAL_1", attributes: [attributes.mu, attributes.in, attributes.ge]}, { name: "Gaukeleien", id: "TAL_2", attribute...
// Ontogen - Store/Ontology Management Module // (c) 2013-2014 <NAME>, <NAME> // MIT License var restf = require('restf.js'); var og = require('ogconfig.js'); // function for creating a RootConcept object/document function RootConcept(docStore, swords, stmr) { var stopwords = swords || og.DEFAULT_STOPWORDS; var...
const calcString = (stringExpression) => { // console.log(` START stringExpression: ${stringExpression}`) while(stringExpression.includes('(')){ let subStrStart = stringExpression.lastIndexOf('(') let subStrEnd = stringExpression.slice(subStrStart).indexOf(')') + subStrStart + 1 stringExpression = strin...
import { assign, defaults, sortBy } from "lodash"; import React, { PropTypes } from "react"; import LineSegment from "./line-segment"; import Scale from "../../helpers/scale"; import Domain from "../../helpers/domain"; import Data from "../../helpers/data"; import { PropTypes as CustomPropTypes, Helpers, VictoryTrans...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/* * This background page handles the sending requests and dealing with responses. * Passes are exchanged with the server containing blinded tokens for bypassing CAPTCHAs. * Control flow is handled in the listeners. Cryptography uses SJCL. * * @author: <NAME> * @author: <NAME> */ /*global sjcl*/ /* exported cle...
const ES = require('elasticsearch'); const ElasticsearchScrollStream = require('elasticsearch-scroll-stream'); const _ = require('lodash'); const Response = require('./class/response'); const QueryBuilder = require('./class/query-builder'); const AggregationBuilder = require('./class/aggregation-builder'); const Searc...
import React, { Component } from 'react'; import { reduxForm, Field } from 'redux-form'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import _ from 'lodash'; import axios from 'axios'; import * as actions from '../../actions'; // import languages from '../constants/languages'; import...
'use strict'; var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writ...
// variables and constants used const searchParams = new URLSearchParams(window.location.search); const token = searchParams.get("token"); const stallIds = []; var VideoSize = { 'HD': [320, 180, 1280, 720], 'SD': [640, 480, 640, 480], 'LD': [80, 45, 640, 360] }; var conf...
import { Tree } from './Tree.js'; import { NodeBST } from './NodeBST.js'; import { Panel } from './Panel.js'; import { ExpertAlien } from './ExpertAlien.js'; import { HelpBubble } from './HelpBubble.js'; var data; var singleTon; var numsToInsert; var tasks; var tasks2; var panel; var expert; var controls; var keyEnte...
const yomiDict = {}; let problem = ""; let problems = []; let answer = "生麦生米生卵"; let correctCount = 0; let englishVoices = []; const voiceInput = setVoiceInput(); let endAudio, incorrectAudio, correctAudio; loadAudios(); const AudioContext = window.AudioContext || window.webkitAudioContext; const audioContext = new Aud...
/** * Wheel, copyright (c) 2020 - present by <NAME> * Distributed under an MIT license: https://arnovandervegt.github.io/wheel/license.txt **/ const path = require('../../../../shared/lib/path'); const DOMNode = require('../../../lib/dom').DOMNode; const dispatcher = require('../../../lib/dispatcher').dispat...
'use strict'; // libraries const http = require('http'); const request = require('request'); const express = require('express'); const exphbs = require('express-handlebars'); const cookieParser = require('cookie-parser'); const fetch = require('node-fetch'); // modules const dateUtil = require('../util/date-util.js');...
/* globals window, localStorage, navigator */ var FieldDBObject = require("./../FieldDBObject").FieldDBObject; var ELanguages = require("./ELanguages").ELanguages; var CORS = require("./../CORS").CORS; var Q = require("q"); var english_texts = require("./en/messages.json"); var spanish_texts = require("./es/messages.j...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
'use strict'; var dropDown = document.querySelectorAll('.js__dropdown'); var dropDownTitle = document.querySelectorAll('.js__dropdown-title'); var arrow = document.querySelectorAll('.arrow'); function refreshDropDown(event) { var parent = event.currentTarget.parentElement; // var arrowSpan = event.currentTarget...
Array.prototype.random = function () { return this[Math.floor((Math.random() * this.length))]; } const range = x => Array.from(Array(x).keys()); // constants keyDefs = { "37": "left", "38": "up", "39": "right", "40": "down", "32": "space" }; time_step = 150; canvas_size = 800; ca...
/* bubbleChart creation function. Returns a function that will * instantiate a new bubble chart given a DOM element to display * it in and a dataset to visualize. * * Organization and style inspired by: * https://bost.ocks.org/mike/chart/ * */ function bubbleChart() { /**--------------------------------------...
// // Notes specific functions // See utils.js for more // const Keyboard = window.SimpleKeyboard.default; const defaultKeyboardTheme = "hg-theme-default"; var virtual_keyboard_div = document.getElementById("virtual-keyboard"); var virtual_keyboard = null; var scanner_buffer = ""; var current_study_row = -1; var stu...
"use strict"; var loadFile = function(event) { var output = document.getElementById('output'); output.src = URL.createObjectURL(event.target.files[0]); }; $('.btnPrevious').click(function(){ $('.nav-tabs > .active').prev('li').find('a').trigger('click'); }); $("#first_name").on('keyup', fu...
/* * project deploy processor * @module deploy * @author genify(<EMAIL>) */ var fs = require('fs'), util = require('util'), _io = require('./util/io.js'), _fs = require('./util/file.js'), _util = require('./util/util.js'), _path = require('./util/path.js'), _log = require('./uti...
"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 && obj !== Symbol.prototype ? "symbol" : typeof obj; }; // Dependencies var Path = require...
const config = {}; config.distances = []; for (var i = 0; i <= 100; i++) { if (i <= 10) { config.distances.push(i); } else { config.distances.push(i); } } config.sizes = [ { name: "", text: "默认", "font-size": "15px", padding: "3px 13px", height: "34px", "line-height": "26px", "img-height": "26px"...
var svgns = 'http://www.w3.org/2000/svg'; var svgxlink = 'http://www.w3.org/1999/xlink'; var sliceEnds = []; var numSlices = 12; // How many slices do we want var spins = 7; var slicesContainer = document.getElementById('slicesContainer'); var sliceSize = 300 / numSlices; var markerDiv = document.getElementById('marker...
var quanTable; var hdrTable; var lifeTable; var meanSchoolTable; var expSchoolTable; var gniTable; var countryInfo = []; var hdrSorted = []; var lifeSorted = []; var meanSchoolSorted = []; var expSchoolSorted = []; var gniSorted = []; var areas = []; var ranks = []; var countries = []; var hdrF = []; var hdrM = []; v...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFieldState = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; desc...
function _extends() { _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]; } } } return target; }; return _extends.apply(this, arguments); } f...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProp...
import { Box, FormControlLabel, withStyles } from '@material-ui/core'; import Rating from '@material-ui/lab/Rating'; import Badge from '@material-ui/core/Badge'; import Button from '@material-ui/core/Button'; import Card from '@material-ui/core/Card'; import CardActionArea from '@material-ui/core/CardActionArea'; impor...
import Prism from 'prismjs' import ClipboardJS from 'clipboard' import { Xt } from 'xtend-library' import kebabCase from 'lodash.kebabcase' require('prismjs/plugins/unescaped-markup/prism-unescaped-markup') require('prismjs/plugins/unescaped-markup/prism-unescaped-markup.css') require('prismjs/components/prism-jsx.min...
const debug = window.data.debug; const websocketsReconnectTimeout = window.data.websocketsReconnectTimeout; const websocketsUrl = window.data.websocketsUrl; mapboxgl.accessToken = window.data.mapboxAccessToken; const openweatherApiKey = window.data.openweatherApiKey; const boats = window.data.boats; const buoys = windo...
/*! * gcm.js - gcm for javascript * Copyright (c) 2018-2019, <NAME> (MIT License). * https://github.com/bcoin-org/bcrypto * * Parts of this software are based on golang/go: * Copyright (c) 2009, The Go Authors. All rights reserved. * https://github.com/golang/go * * Resources: * https://en.wikipedia.org...
var Doc_Navigation_Menu = { ready: function() { var me = this; $("#menu-doc-upload").click(function() { $("#doc-file-upload-wrapper").slideToggle("normal"); }); $("#document-file-upload").fileinput({ uploadUrl: url("doc/file/upload"), uploadAsync: true, ajaxSettings: { ...
'use strict'; configApp.factory("ProductService", function($http) { return { getCategory : function() { var urlConfig = [baseUrl, 'admin','category_list'].join('/'); return $http({ method: 'POST', url: urlConfig, data: $.param({}), headers: {'Content-Type'...
// Basic Functions function include_dom(script_filename) { var html_doc = document.getElementsByTagName('head').item(0); var js = document.createElement('script'); js.setAttribute('language', 'javascript'); js.setAttribute('type', 'text/javascript'); js.setAttribute('src', script_filename); html...
// Major Project // <NAME>, <NAME> // October 24, 2020 // //Work Cite for pathfimder; //https://en.wikipedia.org/wiki/A*_search_algorithm //https://www.youtube.com/watch?v=aKYlikFAV4k //https://www.slant.co/versus/11584/11585/~dijkstra-s-algorithm_vs_a-algorithm //https://www.youtube.com/watch?v=GC-nBgi9r0U //https://w...
/* eslint no-unused-vars: 0 */ 'use strict'; function replaceDotsWithUnderScore(match) { return match.replace(/\./g, '_'); } function constructControls(tree, type, version, isPrivate) { var pattern = { 'floorPlans': { 'ABSOLUTE': { 'name': 'ABSOLUTE', 'contr...
/*eslint-env node*/ //------------------------------------------------------------------------------ // HORUS application //------------------------------------------------------------------------------ 'use strict'; // This application uses express as its web server // for more info, see: http://expressjs.com // ===...
/** * Created by <NAME> on 24.11.2014. */ import { BaseUtils, I18nextManager } from 'phovea_core'; import '../webpack/_bootstrap'; import { BuildInfo } from './buildInfo'; import { AppMetaDataUtils } from './metaData'; /** * header html template declared inline so we can use i18next */ const getTemplate = () => { ...
"use strict"; let _ = require("lodash"); let osmium = require("osmium"); let turf = require("@turf/turf"); let process = require("process"); /** * Returns the value of a tag on the given way, respecting directional variants * of the tag. * * @param tag {String} The base tag name, not including `:lanes`, `:backwa...
"use strict"; //============================================================================= function HSVtoRGB(h, s, v) { var r, g, b, i, f, p, q, t; if (arguments.length === 1) { s = h.s, v = h.v, h = h.h; } i = Math.floor(h * 6); f = h * 6 - i; p = v * (1 - s); q = v * (1 - f * ...
var MEMO_ROOT_OFFSET = {}; var OCTAVES = [0, 1, 2, 3, 4, 5, 6, 7, 8]; // prettier-ignore var OCTAVE_STEP_FREQUENCIES = { 0: { 0: 16.352, 1: 17.324, 2: 18.354, 3: 19.445, 4: 20.602, 5: 21.827, 6: 23.125, 7: 24.5, 8: 25.957, 9: 27.5, 10: 29.135, 11: 30.868, }, 1: { 0: 32.703, 1: 34.648, 2: 36.708, 3: 38.891, 4: 4...
var canvas = document.getElementById('myCanvas'); var ctx = canvas.getContext('2d'); ctx.imageSmoothingEnabled = false; ctx.webkitImageSmoothingEnabled = false; ctx.miterLimit = 1; function mostrarGrafo(grafo) { var conexoes = grafo.conexoes(); var vertices = []; var i = 0, j = 0, m = conexoes.length; ...
const http = require("http"); const fs = require('fs'); const xml2js = require('xml2js'); const axios = require('axios'); const util = require('util'); const { exec } = require('child_process'); const jsdom = require("jsdom"); const { JSDOM } = jsdom; /** * high grey: icon-1867-BDBDBD-nodesc * dark grey: icon-186...
import React, { Component, Suspense } from 'react'; // import Promise from 'bluebird'; import { connect } from 'react-redux'; // import MarkdownIt from 'markdown-it'; import log from 'electron-log'; import { withTranslation } from 'react-i18next'; // import withMatchedParams from '../libs/withMatchedParams'; // import...
/* * wx api 桥接文件,主要是为了降低迁移成本; * 如果觉得使用桥接版本的 api 不符合期望或期望更精细化提升体验, * 请前往 https://docs.alipay.com/mini/api 使用原生 api(my.{api_name}) */ // helper util function convertDeviceStructs(devices) { var realDevices = []; if (devices && devices.length > 0) { for (var i in devices) { var {deviceName,...
/* Name: VKBK.js ================================================ Base functions for all pages and page specific. */ // GLOBAL // =============================================== $(".tip").tooltip(); // tooltips $.pjax.defaults.maxCacheLength = 0; $(document).pjax('a[data-pjax]', '#pj-content', {timeout:50...
/** * @file Volume * @author <NAME> <<EMAIL>> * @private */ import { Vector3, Box3, Matrix3, Matrix4 } from "../../lib/three.es6.js"; import { WorkerRegistry, ColorMakerRegistry } from "../globals.js"; import WorkerPool from "../worker/worker-pool.js"; import { uniformArray } from "../math/array-utils"; import M...
import './assets/style.css'; import './assets/animations.css'; import './assets/loading.css'; import './reducers/windowMessage'; import './socket'; import Koji from 'koji-tools'; import './views/ReactLayer'; import reduxStore from './lib/createStore'; import * as AppActions from './actions/App'; import * as types from...
const Q = require('q') const _ = require('busyman') const mutils = require('./mutils') const MqttNode = require('./mqtt-node') const debug = require('debug')('mqtt-shepherd:msgHdlr') const msghdlr = {} msghdlr._clientRegisterHandler = function (shepherd, msg) { // reg_data = { clientId, transId, ip, mac, lifetime, ...
/* global AFRAME */ if (typeof AFRAME === 'undefined') { throw new Error('Component attempted to register before AFRAME was available.'); } /** * A-Charts component for A-Frame. */ AFRAME.registerComponent('babia-bars', { schema: { data: { type: 'string' }, height: { type: 'string', default: 'h...
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import _ from 'lodash' import ContentContainer from 'components/ContentContainer' import GeneralRoulette from 'components/GeneralRoulette' import Img from 'components/Img' import MonUnit from './MonUn...
var url="http://127.0.0.1:1337/"; var coord=[]; var iconos_fichas=[]; var msg_notificacion; iconos_fichas["Coche"]="car.png";iconos_fichas["Barco"]="boat.png";iconos_fichas["Avion"]="aeroplane.png";iconos_fichas["Ordenador"]="computer.png";iconos_fichas["Android"]="android.png";iconos_fichas["Camara"]="camera.png";icon...
import assert from 'assert'; import * as fetch from '../../lib/fetch/index.js'; import maintainers from '../../lib/maintainers.js'; import log from '../../lib/log.js'; import provinceToIso2 from './province-to-iso2.json'; import * as transform from '../../lib/transform.js'; import datetime from '../../lib/datetime/inde...
//*Psst!* Don't actually request to join. It's just a template. :) //REMINDER: If you are making a team that is NOT a DIRECT spin-off, POST THE LINK to your club program in the Tips and Thanks of this program. //Do NOT change or remove any part this program that attributes the template maker to DY, or you will be fla...
var fs = require('fs'); //Import server-client-commons eval(fs.readFileSync('public/server-client-commons.js') + ''); //Server Setup var express = require('express'); var app = express(); var server = app.listen(8888); var bodyParser = require('body-parser'); app.use(bodyParser.urlencoded({ extended: true })); ...
/* jshint esversion: 6 */ import { guiUtils, output, BooleanButton, map } from "../libgui/modules.js"; import { basic, circles } from './modules.js'; /** * choosing a view of the kaleidoscopic image * @namespace view */ export const view = {}; // circle intersections as centers for invers...
import Ember from 'ember'; import d3 from 'npm:d3'; import TextDrawing from 'khartis/models/drawing/text'; import LineDrawing from 'khartis/models/drawing/line'; import Coordinates from 'khartis/models/drawing/coordinates'; import d3lper from '../../../utils/d3lper'; import markerMaker from '../../../utils/marker-maker...
var margin = { top: 150, right: 0, bottom: 10, left: 150 }, rectSize = 8, width = rectSize * 30, //1000, height = rectSize * 19, // ,0.8*width; graph = { nodes: [], links: [] }; var x = d3.scale.ordinal().rangeBands([0, width]), y = d3.scale.ordinal().rangeBands([0, height]), xBoundaryLines = d3.scale.li...