text
stringlengths
5.97k
41.2k
import moment from 'moment'; import _ from 'lodash'; import Knex from '~/src/library/mysql'; import DATE_FORMAT from '~/src/constants/date_format'; import DatabaseUtil from '~/src/library/utils/modules/database'; import Logger from '~/src/library/logger'; import MCityDistribution from '~/src/model/parse/city_distributi...
/* global chrome BigInt */ chrome.runtime.onInstalled.addListener(() => { console.log('SAFEW extension successfully installed!'); localStorage.setItem('disclaimerAccepted', "false") return; }); // launch extension chrome.browserAction.onClicked.addListener(function (tab) { chrome.tabs.create({ ...
// =================================================================== // Author: <NAME> <<EMAIL>> // WWW: http://www.mattkruse.com/ // // NOTICE: You may use this code for any purpose, commercial or // private, without any further permission from the author. You may // remove this notice from your final code if you wi...
const base = require('./base') const RegressorMixin = base.RegressorMixin const BaseEstimator = base.BaseEstimator const utils = require('./utils') const tf = require('@tensorflow/tfjs') const prep = require('./preprocessing') /* class SGDRegressor extends RegressorMixin(BaseEstimator){ constructor(params){ ...
/* Copyright (c) 2013-2015 <NAME>, MIT License */ /* jshint node:true, asi:true, eqnull:true */ 'use strict'; var fs = require('fs') var util = require('util') var _ = require('lodash') var patrun = require('patrun') var jsonic = require('jsonic') var error = require('eraro')({package:'seneca',msgmap:ERRMSGM...
var dynamicEditorConfig = { toolbar: [ [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ], [ 'Link','Unlink','Image','Flash','Table','PageBreak','Iframe' ] , [ 'NumberedList','BulletedList','JustifyLeft','JustifyCenter','JustifyRight','J...
/* pdfviewer.js by @nxnine requires: nine.js icon.js component.js pdf.js pdf viewer component, experimental, built from pdf.js example */ // Loaded via <script> tag, create shortcut to access PDF.js exports. var pdfjsLib = window['pdfjs-dist/build/pdf']; // The workerSrc pr...
const state = {}; const DRAW_SELECTOR = '.you-draw-it'; function basicData(elem) { const key = elem.dataset.key; return { key: key, question: window.ydi_data[key], sel: d3.select(elem), resultSel: d3.select('.result.' + key) }; } function removeAll() { d3.selectAll(DRAW_SELECTOR).each(functi...
function getSortWeight(itemDef) { var weight = itemDef.classType * 10 || 0; if (itemDef.itemCategoryHashes) { if (itemDef.itemCategoryHashes.indexOf(2) > -1) { weight += 10; } else if (itemDef.itemCategoryHashes.indexOf(3) > -1) { weight += 20; } else if (itemDef.itemCategoryHashes.indexOf(4) > -1) { w...
import { getData, getSlotIndex, setData } from '../utilities/state'; /* eslint-disable no-console */ const input = document.getElementById('value-min-level'); // https://gamefaqs.gamespot.com/ps/562865-final-fantasy-vi/faqs/39433 const statIncrements = { 1: { exp: 0, hpp: 0, hp: 0, mpp: 0, mp: 0, }, 2: { ...
// What the server expects as input for an order // // var sampleOrder = { // lineitems:[ // { // lineitem: { // product_id: 4, // combined_price: 6 // }, // lineitem_options: [14, 2, 7, 15] // }, // { // lineitem: { // product_id: 10, // combined_...
var Colors = new function() { this.ColorFromHSV = function(hue, sat, val) { var color = new Color(); color.SetHSV(hue,sat,val); return color; } this.ColorFromRGB = function(r, g, b) { var color = new Color(); color.SetRGB(r,g,b); return color; } this.ColorFromHe...
// functionality: // 1. provide sketch background, react to mousePressed, mouseDragged and mouseReleased // 2. collect drawn data points from user // canvas coefficients var canvasHeight = 600, canvasWidth = 600, gridWidth = 50, strkWeight = 2, padding = 15; // point collection var drawnPtsPartial = [], drawn...
window.onload = createReferences; window.onresize = ()=>{ setMouth(); createGraphs(); } const SmileyState = { Happy: 'Happy', Medium: 'Medium', Sad: 'Sad' }; let smiley; let mouth; let smileyState = SmileyState.Happy; function createReferences() { smiley = document.getElementById('smiley'); mouth = document.getE...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.genHLines = genHLines; exports.genBlob = genBlob; exports.genHBlobs = genHBlobs; exports.test = void 0; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Ob...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import path from "path"; import express from "express";...
//Modernizr touch detect Modernizr.load({ test: Modernizr.touch, yep :['css/touch.css'], nope: [] }); var test = false; if ("document" in self && !("classList" in document.createElement("_"))){ test = true; } Modernizr.load({ test: test, yep : ['external/classList/classList.js'], nope: [] }); $(document).r...
const card_types = { 'f': "face up", 'h': "in hand", 'd': "face down", 'p': "played cards", 'e': "deck", 'b': "burn pile", 'i': "pick pile" }; let timer; let this_player_id; let prior_database_checksum = ""; function enable_refresh_timer() { timer = setInterval( function () { ...
const fs = require('fs'); const vm = require('vm'); const util = require('util'); const path = require('path'); const native = require('bindings')('boa'); const debug = require('debug')('boa'); const utils = require('./utils'); const DelegatorLoader = require('./delegator-loader'); // internal symbols const IterIdxFor...
var cp = require('child_process'); var os = require('os'); var cache = {}; var workers = []; var checksRunning = 0; var packageCounter = 0; var depKeyCounter = 0; var enableStats = false; var enableLocalWorker = false; var enableQueue = false; var localWorker; if (enableLocalWorker === true) { localWorker = requir...
/** @license (C) Copyright Nuxeo Corp. (http://nuxeo.com/) 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 agree...
'use strict' const http = require('http') const util = require('util') const lib = require('@apigee/http-helper-functions') const keepAliveAgent = new http.Agent({ keepAlive: true }); var SPEEDUP = process.env.SPEEDUP || 1 var ONEMINUTE = 60*1000/SPEEDUP var TWOMINUTES = 2*ONEMINUTE var TENMINUTES = 10*ONEMINUTE var O...
var idOverlapChk = false; var signupFormChk = true; $(function() { var ptn = []; let privatePtn = []; privatePtn.push(new Pattern($("#private-input-id"), /^[a-z0-9]{4,12}$/, "아이디는 4~12자 소문자 영문과 숫자를 조합해서만 사용 가능합니다.")); privatePtn.push(new Pattern($("#private-input-pwd"), /^[A-Za-z0-9]{6,12}$/, "비밀번호는 6~12자 영문과 숫자...
import React, { Component, } from 'react'; import { StyleSheet, Text, ScrollView, View, Platform, ViewPropTypes, TouchableWithoutFeedback, Animated, TouchableOpacity, } from 'react-native'; import PropTypes from 'prop-types'; import {screen} from "../../common"; import Icon from "react-na...
/* * Copyright 2017-2020 EPAM Systems, Inc. (https://www.epam.com/) * * 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 requ...
"use strict"; var core_1 = require('@angular/core'); require('rxjs/add/operator/share'); require('rxjs/add/operator/debounce'); var rxjs_1 = require('rxjs'); var const_1 = require('./const'); var ResponsiveConfigInterface = (function () { function ResponsiveConfigInterface() { } return ResponsiveConfigInter...
String.prototype.repeat||(String.prototype.repeat=function(t){"use strict";if(null==this)throw new TypeError("can't convert "+this+" to object");var r=""+this;if(t=+t,t!=t&&(t=0),0>t)throw new RangeError("repeat count must be non-negative");if(t==1/0)throw new RangeError("repeat count must be less than infinity");if(t=...
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 === "function") r = Reflect.decorate(d...
/* Copyright (c) 2017, 2021 OpenInformix. Copyright (c) 2014, IBM Corporation. Copyright (c) 2013, <NAME> <<EMAIL>> Copyright (c) 2010, <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 copyrigh...
// React import React, { useState, useEffect, useRef } from "react"; // Child components import SearchAutocomplete from "../../components/SearchAutocomplete"; import TableToolbar from "../../components/TableToolbar"; // Material Design import { makeStyles, useTheme } from "@material-ui/core/styles"; import ClickAwayLi...
import { ICON_CLOSE, ICON_MAXIMIZE, ICON_MINIMIZE } from "../../Assets/Icons/inline" import { computePreferredForegroundColor } from "../../Utility/Color" import template from "./kiwi-window.html" import styles from "./kiwi-window.scss" const templateElement = document.createElement("template") templateElement.innerHT...
'use strict'; // Helper: root(), and rootDir() are defined at the bottom const path = require('path'), webpack = require('webpack'), minimist = require('minimist'), args = minimist(process.argv), rootDir = process.env.PWD || process.cwd(), envFile = args.env || path.join(rootDir, '.env'),...
// This file contains data for templates page tests // Templates Elements export const selectRecordDisplay = 'select[name="DataTables_Table_0_length"]' export const templateRows = 'tr[role="row"]' export const templatePages = 'a[aria-controls="DataTables_Table_0"]' export const templateSearchFilter = 'input[class="shee...
import {getAnnotations} from "../_ajax/annotation"; import {putTopicList} from "../_ajax/topics"; import {getUserInfo} from "../_user/netlify"; import {storeGet, storeSet} from "../_util/store" import {BookmarkLocalStore} from "./localStore"; import {purify} from "../_util/sanitize"; import notify from "toastr"; impo...
var CILJS = require("../CilJs.Runtime/Runtime"); var asm1 = {}; var asm = asm1; var asm0 = CILJS.findAssembly("mscorlib"); asm.FullName = "LeaveBug.cs.ciljs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null";/* static T Program.FirstOrDefault<T>(T[],pred`1)*/ asm.x6000001 = function (T) { return functio...
var $ = require('common:widget/ui/jquery/jquery.js'); var UT = require('common:widget/ui/ut/ut.js'); var FBClient = require('home:widget/ui/sidebar-facebook/fbclient.js'); var TPL_CONF = require('home:widget/ui/sidebar-facebook/fbclient-tpl.js'); var WIN = window, DOC = document, conf = WIN.conf.FBClient, that = FB...
import React, { Component } from 'react'; import { Text, TouchableOpacity, TouchableHighlight, View, TextInput, ScrollView, ListView, StyleSheet, Platform, PixelRatio, Dimensions, } from 'react-native'; import CustomNavBar from '../components/CustomNavBar.js' import ChatServer from '../mo...
// Find browser's scrollbar width var scrollDiv = document.createElement("div"); scrollDiv.className = "scrollbar-measure"; document.body.appendChild(scrollDiv); var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth; document.body.removeChild(scrollDiv) // App entry var app = Elm.Main.init({ flags: sc...
var dir_results = ""; var dir_orthos = ""; var f_accuracy_sample = ""; var orthoMetadata = null; var grid_list = []; var regionFiles = []; var regionPopInfo = []; var xc = 500; var yc = 500; var grid_square_size_meters = 100; var image_resolution = 2; //meters per pixel var sample_radius_size_meters = 500; var populati...
/** * Convert a note number to a frequency in hz (with 440 A as 0) * * @param {int} p Note number */ function noteNum2Freq(p) { return 440*Math.pow(2, p/12); } /** * * @param {int} win Window length * @param {int} sr The sample rate, in hz * @param {float} minFreq The center of the minimum mel bin, in hz...
"use strict"; var fs = require("fs"), path = require("path"), rimraf = require("rimraf"), os = require("os"), _ = require("lodash"), async = require("async"), https = require("https"), HttpsProxyAgent = require("https-proxy-agent"), AdmZip = require("adm-zip"), spawn = require("child_process").spaw...
/** * Created by 4399-1091 on 2016/11/4. */ $(function(){ /** * 图片延迟加载 */ ue.lazyimg({ target : $(".lazyimg"), type : "scroll" }); /** * 百度分享 */ window._bd_share_config={ "common":{ "bdSnsKey":{}, "bdText":"找儿歌视频大全,到4399儿歌故事,儿童歌曲大...
 // 截取请求参数 QueryString = { data: {}, Initial: function () { var aPairs, aTmp; var queryString = new String(window.location.search); queryString = queryString.substr(1, queryString.length); //remove "?" aPairs = queryString.split("&"); for (var i = 0; i < aPairs.length;...
//-------------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------...
const BigNumber = web3.BigNumber; require('chai') .use(require('chai-bignumber')(BigNumber)) .should(); const { assertRevert, eventFired } = require('./helpers'); const { createWorkerNode } = require("./helpers/worker_node_manager"); const { finishActiveJob, createCognitiveJob, } = require("./helpers/...
// define the tracks in the game var COLORS_KERBLIGHT = '#a02222', COLORS_KERBDARK = '#BBBBBB', COLORS_LANDLIGHT = '#000000', COLORS_LANDDARK = '#000000', COLORS_ROAD = '#000000'; var Track = function() { this.trackLength = 0; this.currentAngle = 0; this.segments = []; this.map = null; } var ...
/*jshint esversion: 6 */ // Global variables for the orientation and velocity. // See https://developers.google.com/web/fundamentals/native-hardware/device-orientation/ // for the images on the orientation convention. var alpha, valpha, z; var beta, vbeta, x; var gamma, vgamma, y; var alpha_offset = 0.0, beta_offset ...
"use strict"; var fs = require("fs"), os = require("os"), path = require("path"), http = require('http'), request = require('request'), //AdmZip = require('adm-zip'), //wrench = require("wrench"), copier = require("./copier"), Handlebars = require("handlebars"), cheerio = require("ch...
'use strict'; const promisify = require('util').promisify; const path = require('path'); const os = require('os'); const exec = promisify(require('child_process').exec); // eslint-disable-line security/detect-child-process const spawn = require('child_process').spawn; // eslint-disable-line security/detect-child-proc...
// This module organises the applied filters // Filter are the dimensions to filter by. Facets are the displayed lists of options import { fromPairs, compact, groupBy, isUndefined, get, unset, set, has, forEach, map, keys, difference, find, deburr, trim, uniqueId } from 'lodash' import { getList, makeDict } from '~/ass...
import { colors, Field, Dropdown, Checkbox, Label, P, useColorContext } from '@project-r/styleguide' import React, { useState } from 'react' import { css } from 'glamor' import { buttonStyles, createPropertyForm, matchBlock } from '../../utils' import { allBlocks, parent, childIndex, depth } from '../../u...
import { GPUComputationRenderer } from "three-stdlib"; import { HalfFloatType, Vector3, BufferAttribute, CylinderBufferGeometry, InstancedBufferAttribute, InstancedBufferGeometry, Vector2, RepeatWrapping, ShaderMaterial, Mesh, // // DataTexture, // DataUtils, // RGBFormat, // PlaneBuffer...
import React, { useState, useEffect, useRef } from "react" import "../../i18next" import { useTranslation } from "react-i18next" import { GoInfo } from "react-icons/go" import mapboxgl from "mapbox-gl/dist/mapbox-gl-csp" import MapboxWorker from "worker-loader!mapbox-gl/dist/mapbox-gl-csp-worker" import styled from "st...
"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]; ...
#!/usr/bin/env node "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function ...
'use babel'; import { CompositeDisposable, File } from 'atom'; import xml2js from 'xml2js'; class Method {} class Attribute {} class EventRegistration { constructor() { this.type = 'registration'; } } class EventHandler { constructor() { this.type = 'handler'; } } class UsesLibrary {} ...
jQuery(document).ready(function(){ //$('[data-toggle="tooltip"]').tooltip(); jQuery(document).on('click','#check', function(e){ show_bulkBooking_details(); }); numeric_input(); $('#timepicker1').timepicker(); $('#timepicker2').timepicker(); $('#from_date_bulk').dat...
/* * 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 * (at your option) any later version. * * This program is distributed in the hope that it will be use...
var map; var layer; var bounds; var polyline; var valor_baston= 0; var markers = []; var latitud_makers = []; var longitud_makers = []; var posicion_general = 0; var posicion_inicial=0; var posicion_final=0; var steps= []; var step_duration= []; var jArray; var punto_final_no_tocar; var punto_inicial_no_tocar; var requ...
var amount = 0; var ordeTime, waitTime; var timeSV = 0; var symbol = 'BTCUSDT'; var balane = 0; var tab = 'today'; var coin = 'eusd'; var _s = {} loadSound(); client.joinOrCreate("my_room", user).then(room => { coin = getUrlParameter('coin'); room.onStateChange.once(function (state) { console.log("initial roo...
alert = function(value){ console.log(value); }; Ractive.DEBUG = false; function render(template, data){ if(typeof templates[template] === 'undefined'){ templates[template] = Hogan.compile($('#'+template).html()); } return templates[template].render(data, templates); } function message(options) { $.gritter.add(...
// © 2020 <NAME> // SimpliSafe 3 API Wrapper import axios from 'axios'; import io from 'socket.io-client'; import fs from 'fs'; import path from 'path'; const subscriptionCacheTime = 3000; // ms const sensorCacheTime = 3000; // ms const internalConfigFileName = 'simplisafe3config.json'; const mfaTimeout = 5 * 60 * 10...
import {shell} from 'electron'; import moment from 'moment'; import shortid from 'shortid'; import VideoService from '../../../../src/service/VideoService'; import MediaService from '../../../../src/service/MediaService'; import openVideoViewer from './video-viewer'; // // example code gets a unknown cyphier error, see...
import fs from 'fs'; import forge from 'node-forge'; import request from 'request-promise'; import zlib from 'zlib'; import Debug from 'debug'; import Purdy from 'purdy'; import util from 'util'; util.inspect.defaultOptions.depth = null; const debug = Debug('netflix-login:crypto'); const netflixPublicKey64 = '<KEY> ...
// External const { getMountValue, getTrailingMountValue, isMount, isPrefixedMount } = require('@abcnews/mount-utils'); const cn = require('classnames'); const html = require('bel'); // Ours const { ALIGNMENT_PATTERN, SCROLLPLAY_PCT_PATTERN, VIDEO_MARKER_PATTERN } = require('../../../constants'); const { enqueue, sub...
var $pickCityCount = 1; var $dropCityCount = 1; // $.fn.select2.defaults = $.extend($.fn.select2.defaults, { // allowClear: true, // Adds X image to clear select // closeOnSelect: true, // Only applies to multiple selects. Closes the select upon selection. // placeholder: 'Select...' // }); function clone...
'use strict'; const { pronounceableTest } = require('./pronounceable'); function weigh(weight, items) { if (!Array.isArray(items)) items = [ items ]; weight = typeof weight !== 'number' ? 1 : Math.floor(weight); if (weight < 1) weight = 1; return items.map(v => (new Array(weight)).fill...
import { get, set, splitPath, sym, setSymbol, clone, isEnv, isObj, isObject, coerceToObj, alias, inject, hasOwn, isPath, mkPath, forEach, getTime, mkStdLib, matchType, isPrimitive, isConstructor } from "@qtxr/utils"; import { Hookable } from "@qtxr/bc"; import { AssetLoader } from "@qtxr/request"; ...
/*globals requireJS*/ /*jshint node: true, expr: true*/ /** * @author lattmann / https://github.com/lattmann * @author ksmyth / https://github.com/ksmyth * @author pmeijer / https://github.com/pmeijer * curl http://localhost:8855/rest/executor/info/77704f10a36aa4214f5b0095ba8099e729a10f46 curl -X POST -H "Conten...
/* *Sky Blue Ballon - Stage 7 of LPQ =D *@author Jvlaple */ importPackage(Packages.tools); importPackage(Packages.server.life); importPackage(java.awt); var status; var partyLdr; var chatState; var party; var preamble; var stage8combos = Array(Array(0, 0, 0, 0, 1, 1, 1, 1, 1), //Lol, it took me forever to work ...
/** * Aircraft data array. */ function getAircraftArray() { var aircraft = new Array(); aircraft['N244SL']=['1522.95','107.2', '163260.24','0', '0']; aircraft['N422HL']=['1555.68','107.32','166955.9', '.2','311.69']; aircraft['N7518D']=['1519', '105.7', '160558.3', '.3','455.7']; return aircraft; } /*...
import { CREATE_MAP, GENERATE_ENEMIES, HANDLE_MOVE, TOGGLE_DARKNESS } from '../actions/index'; import _ from 'lodash'; const WIDTH = 50; const HEIGHT = 40; const ROOMS = 9; const MAX_ROOM_WIDTH = 12; const MIN_ROOM_WIDTH = 6; const HEALTH_INCREASE = 30; const ENEMIES = 10; const DUNGEONS = 3; const XP_NEEDED_BASED = 5...
/* * Copyright 2013-2019 Calgary Scientific Inc. (operating under the brand name of PureWeb) * * 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/LICEN...
const { Discord, Client, MessageEmbed, ReactionUserManager } = require('discord.js'); const client = global.client = new Client({fetchAllMembers: true}); const ayarlar = require('./ayarlar.json'); const fs = require('fs'); const mongoose = require('mongoose'); const request = require('request'); const Database =...
'use strict'; const assert = require('assert'); const Scoreboard = require('../scoreboard'); const Trajectory = require('./trajectory'); const Ball = require('./ball'); const Projectile = require('./projectile'); const Explosion = require('./explosion'); const ladybugPatternData = require('./ladybug-pattern.js...
/** * Copyright (c) 2017-2019, Neap Pty Ltd. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ /** * CRYPTO MANAGER * ------------------ * * Use the most common hashing algorithms ('md5', 'sha1', 'sha...
// ### TODO: var util = require('./helper/util'); var tree = require('./node'); var error = require('./error'); var slice = [].slice; /** * register regexp pattern * @return {[type]} [description] */ var $ = (function(){ var table = {} return function(name, pattern){ if(!pattern){ //...
import htmlDomApi from './domApi' import vnode, { isVnode, isSameVnode } from './vnode' import { isArray, isPrimitive } from './utils' /** * 为 vnode 数组 begin~end 下标范围内的 vnode 创建它的 key 和 下标 的映射。 * @param {Array} children vnode 数组 * @param {Number} beginIdx 开始下标 * @param {Number} endIdx 结束下标 * @return {Object}...
'use strict'; const common = require('x2node-common'); const dbos = require('x2node-dbos'); /** * Order end operations mapping for the "o" query parameter. * * @private * @constant {Object.<string,string>} */ const ORDER_OPS_MAPPING = { '$default': 'asc', 'asc': 'asc', 'desc': 'desc' }; /** * Filter end op...
//TODO: cache emotes, only retrive new emotes from the server when the cached ones are a day(?) old // maybe when twitchemotes.com yells at me //TODO: get an icon that's not copywritten? if twitch mentions it. i'm not making money off this so... // some default settings kappa = false; globals = true; subs = true;...
/* eslint no-plusplus: 0 */ /* eslint comma-dangle: 0 */ /* eslint class-methods-use-this: 0 */ /* eslint consistent-return: 0 */ /* eslint array-callback-return: 0 */ /* eslint no-restricted-properties: 0 */ /* eslint max-len: 0 */ import html2canvas from 'html2canvas'; let disElems; const dises = []; const disParti...
import React from 'react'; import { arrayOf, bool, number, oneOf, shape, string } from 'prop-types'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl'; import classNames from 'classnames'; import { txIsAccepted, txI...
import React, { useContext, useEffect, useRef, useState } from "react"; import { StyleSheet, FlatList, View, StatusBar, Dimensions, ToastAndroid, } from "react-native"; import { Audio } from "expo-av"; import * as DocumentPicker from "expo-document-picker"; import * as ImagePicker from "expo-image-picker"; ...
// import * as _ from "lodash"; "use strict"; 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 __()); }; var botbuilder =...
const Binance = require('node-binance-api') const fetch = require('node-fetch'); const chalk = require('chalk'); const log = console.log; const beeper = require('beeper'); const WalletBridge = require("../mongo-controllers/wallet.controller"); const {APIKEY, APISECRET} = require("../config/binance.config"); const {UR...
//subway.js // Author: <NAME> // Date: Sept, 2012 // License: MIT // Code available at https://github.com/Valloway/Subwayjs // Dependencies: // Paper.js (http://paperjs.org/) // These change the subway node design. Try manipulating them to see what they do. // Note: all measurments are in pixels. var NODE_SIZE...
var derby = require('derby'); var util = derby.util; var components = require('derby/lib/components'); var App = require('derby/lib/App'); var Page = require('derby/lib/Page'); var Controller = require('derby/lib/Controller'); var derbyTemplates = require('derby-templates'); var templates = derbyTemplates.templates;...
import canvasRenderer from './canvas-renderer'; import loadAction from '../actions/actionLoadNodes'; const cameraPositions = [ [-673.1252997241281, -432.32202219098525], [-665.8563502205566, -443.4358136990735], [-657.6759832836207, -455.4802970622578], [-649.8381640832819, -466.5944282788529]...
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
import _ from 'lodash'; import dedent from 'dedent'; import moment from 'moment'; import { Observable, Scheduler } from 'rx'; import debug from 'debug'; import accepts from 'accepts'; import { isMongoId } from 'validator'; import { dasherize, unDasherize, getMDNLinks, randomVerb, randomPhrase, randomCompli...
//Se declaran variables para su uso en distintas fucniones nombresAreasEnfoque = []; nombresObjetivos = []; planAcciones = []; planRecursos = []; planIndicadores = []; planAccionTitulo = []; let cantPlanes; //Función que sirve para traer las areas de enfoque async function getData() { // const response = await fet...
'use strict'; const common = require('x2node-common'); const ws = require('x2node-ws'); const dbos = require('x2node-dbos'); const validators = require('x2node-validators'); const patches = require('x2node-patches'); const AbstractResourceHandler = require('./abstract-resource-handler.js'); /** * Create a deep cop...
import { Card, CardTitle, Container, Row, Col } from "react-bootstrap"; import { CardBody } from "reactstrap"; import React, {useState, useEffect} from 'react'; import {Grid, CardActions, Fab, CardMedia,} from "@material-ui/core"; import {Add, Label,} from "@material-ui/icons"; import axios from 'axios'; import { C...
/*! * OS.js - JavaScript Cloud/Web Desktop Platform * * Copyright (c) 2011-2017, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code mus...
function h(type, props) { var node; var stack = []; var children = []; for (var i = arguments.length; i-- > 2; ) { stack.push(arguments[i]); } while (stack.length) { if (Array.isArray((node = stack.pop()))) { for (i = node.length; i--; ) { stack.push(node[i]); } } else if (...
import Renderable from "./Renderable.js"; import { Vec3,Mat4,Quat } from "../Maths.js"; import gl, {VAO, ATTR_POSITION_LOC} from "../gl.js"; import Noise from "../../extra/Noise.js"; // tSpec = { size:2, cells:5, maxHeight:-3, freq:13, seed:1 }; class Terrain extends Renderable{ constructor(mat,tSpec,xOffset,zOffse...
import { h } from 'preact'; import { useCallback, useEffect, useRef, useState } from 'preact/hooks'; import { useInterval, useMedia, useStateRef, useThrottledCallback, useTimeoutFn, useUnmount } from 'preact-use'; import { useHotkeys as useBaseHotkeys } from 'react-hotkeys-hook'; import { _, lift } from 'one-liner.macr...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var assert = _interopDefault(require('assert')); var path = _interopDefault(require('path')); /*! * dush <https://github.com/tunnckoCore/dush> * * Copyright (c) <NAME> <@tunnckoCore> (h...
function complex_menu_click(obj) { var o1 = $X("EWAC_SELECT_TYPE"); o1.value = obj.id; o1.onchange(); } var EWAC_UISkinEvents = { MouseOver : function(obj, isRow) { var oDiv = EWAC_UISkinEvents._GetDiv(obj); // var p1 = EWA.UI.Utils.GetPosition(obj); var tb = obj.parentNode.parentNode.parentNode; var w = ...
/// This contains common JavaScript functions used to open windows etc.</p> //String constants var L_UnableToEstablishVoiceConntection = "Voice connection cannot be established. \n Chat will attempt to be launched and you may be able to start a voice conversation from there."; var L_UnableToEstablishVideoConn...