text
stringlengths
3.07k
16k
/* eslint-disable no-param-reassign */ import { makePropGetter, useGetLatest } from "react-table"; const isSticky = (value) => /left|right/i.test(value); const getStickyValue = ({ sticky, parent }) => { if (isSticky(sticky)) { return sticky; } if (parent != null) { // check if parent is sticky sti...
// es5 and 6 polyfills, powered by babel require("babel/polyfill") var $ = require('jQuery'), Backbone = require('backbone'), React = require('react'), Parse = require('parse') let fetch = require('./fetcher') console.log('javascript loaded') var appId = "<KEY>", jsKey = "<KEY>", restapi = "<KEY>" Parse.initial...
const yargs = require('yargs') const core = require('../../lib') const sh = require('string-hash') const moment = require('moment') const fill = require('fill-range') const as = require('async') const objectPath = require('object-path') const createCsvWriter = require('csv-writer').createObjectCsvWriter async funct...
const asyncAuto = require('async/auto'); const asyncEachLimit = require('async/eachLimit'); const asyncMapSeries = require('async/mapSeries'); const {returnResult} = require('asyncjs-util'); const {shuffle} = require('lodash'); const {take} = require('lodash'); const checkChannelClosed = require('./check_channel_close...
var exec = require('co-exec'); var fs = require('co-fs'); var midi = require('jsmidgen'); var storageService = require('./storage-service'); var outputDir = './out/'; var tracks = [ "bleep", "meow", "bass", "ping", "string", "reso", "arp", "bark", "mono1", "mono2", "mono3...
import React from 'react' import { ScrollView, Text, TextInput, TouchableOpacity, View } from 'react-native' import { connect } from 'react-redux' import Hyperlink from 'react-native-hyperlink' import { EstonAssistant } from 'App/Common' import Style from './SolveScreenStyle' import { Header } from '@Components' import...
let menuOneItems = ["Sandwiches", "Ice Cream", "Milkshakes", "Contact", "Pie", "Pork", "Sides", "Locations", "Alcohol", "Other"]; let menuTwoItems = ["Ram", "Headphones", "Touchscreen", "Monitors", "Desktops", "SSD", "Speakers", "Mice", "CPU", "Tablets"]; let menuThreeItems = ["Football", "Shoes", "Baseball", "News", "...
'use strict'; var async = require('async'); var request = require('request'); var _ = require('lodash'); var debug = require('debug')('longshoreman'); var redisCmd = require('./redis').redisCmd; var notify = require('./notify'); var hosts = require('./hosts'); var history = require(...
import webAuthApi from "utils/webAuthApi" import Cookie from 'js-cookie' import { addDays } from 'date-fns' const webAuthService = { async getChallenge() { const response = await webAuthApi.get("challenge") return response.data }, /** * Calls the .create() webauthn APIs and sends returns to server ...
import store from '../store/index.js' import http from '@/common/request.js' import urls from '../common/urls.js' var pub_funs = { //登录 isLogin(Obj) { if (!this.isPhoneNumber(Obj.phone)) { return uni.showToast({ title: '请正确输入手机号', icon: 'none' }) } if (!Obj.code) { return uni.showToas...
var express = require("express"); var router = express.Router(); var axios = require("axios"); var gdb = require("../utils/graphdb"); // #################### GET #################### // GET ALL INGREDIENTS THAT HAVE COCKTAILS ASSOCIATED router.get("/", async function(req, res, next) { if (req.query.build) { ...
import { pallette, colormap, percentColToD3Rgb, valToPercentColor } from './colors.js'; import { setCategoryLegend } from './d3_utils.js'; const genX = (data, svgArea, domain) => { if (domain === undefined) { domain = d3.extent(data); } return d3.scaleLinear() .domain(domain).nice() .range...
var href = parent.window.location.href, hrefLastSegment = href.substr(href.lastIndexOf('/') + 1), resolveURI = parent.ues.global.dashboard.id == hrefLastSegment ? '../' : '../../'; var TOPIC = "range-selected"; $(function() { var dateLabel = $('#reportrange .btn-label'), datePickerBtn = $('#btnCust...
/* * Copyright 2006 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 ...
import React, { Component} from 'react'; import PlaylistPopUp from '../components/PlaylistPopUp' import { postSong, getSongs, changeSong, postSongWithTwo, getUser, addUserToState} from '../services/localapi.js' import { connect } from 'react-redux' import MessagePopUp from '../components/MessagePopUp' const imagesPath...
const { app, BrowserWindow, ipcMain } = require('electron') const path = require('path') const util = require('util') const brokersLifeCycle = require('../brokers/brokersLifeCycle'); const ipcBusModule = require("../.."); // const ipcBusModule = require('../../lib/electron-common-ipc'); // ipcBusModule.Acti...
//NG登録したユーザーのイラストを非表示 const removeElement = (userOrTagObj = {}) => new Promise((resolve) => { if (userOrTagObj.userKey) { const userDatas = userOrTagObj.userKey; userDatas.map((userData) => { const userId = userData.userId; const targets = document.querySelectorAll(`[hr...
//aOldFolder: the old folder in the source file that need to be updated //aNewFolder: the new fodler that will replace the old folder (if files are found under the new folder) //aOldFiles: an array of old filenames that are renamed now in your new project //aNewFiles: an array of current filenames now in your new proje...
const transformTSOnly = require('./transformTSOnly'); const t = require('@babel/types'); const COMPONENT_INNER_SOURCE = '__inner_source'; const DOC_INFO_FIELD = '__doc_info'; const DOC_INFO_PREFIX = DOC_INFO_FIELD + '_'; const isDocInfoIdentifierName = (name) => { return name.startsWith(DOC_INFO_PREFIX); }; functi...
document.querySelector("#parcela1").addEventListener('change', atualizarSoma) document.querySelector("#parcela1").addEventListener('input', atualizarSoma) document.querySelector("#parcela2").addEventListener('change', atualizarSoma) document.querySelector("#parcela1").addEventListener('input', atualizarSoma) document.q...
// function solve() { // document.querySelector("#btnSend").addEventListener("click", onClick); // function onClick() { // const input = document.querySelector("textarea").value; // const output1 = document.querySelector("#bestRestaurant").lastElementChild; // const output2 = document.querySelecto...
const http = require("http"); const https = require("https"); const middlewareCompiler = require("./middleware/middlewareCompiler.js"); const dataObj = require("./data/data.js"); const requestObj = require("./data/req.js"); const responseObj = require("./data/res.js"); const maritimeRouter = require("./router/router.js...
/* global d3, crossfilter, timeSeriesChart, barChart */ var barChartPartModulo=barChart() .width(600) .x(function (d) { return d.key;}) .y(function (d) { return d.value;}); var barChartPartLeccion=barChart() .width(600) .x(function (d) { return d.key;}) .y(function (d) { return d.value;}) var bar...
let debug = require('debug')('loopback:connector:gdatastore'); const Datastore = require('@google-cloud/datastore'); const _ = require('./util'); module.exports = Query; function Query(ds, model, idName, definition) { this.ds = ds; this.model = model; this.idName = idName; this.definition = definition...
window.onload = () => { const form = document.getElementById('form') form.addEventListener('submit', (event) => { event.preventDefault() // window.history.back() generateNewComic(form) return false }) const lede = document.getElementById('lede') const preview = docum...
var LOGIN_BASE_URL = 'http://localhost:8000/'; var isPasswordLoginValid="false"; var isEmailLoginValid="false"; function doesEmailExists(){ var email = $("#email-login").val(); var myURL=LOGIN_BASE_URL+"login/checkemail"; if(email==''){ $('#email-login').parent().removeClass('has-success has-error text-...
import React, { Component } from 'react'; import { ActivityIndicator, FlatList, Image, StyleSheet, View } from 'react-native'; import { Button } from 'react-native-elements'; import { connect } from 'react-redux'; import { MainText, NotificationItem } from 'components'; import { withFirebase } from 'helper/Firebase'; ...
import React from 'react' import ReactDOM from 'react-dom' import { useStaticQuery, graphql } from 'gatsby' import CaseStudyModal from './CaseStudyModal' import { Slide } from 'react-slideshow-image' import CasestudyStyle from './Wrapper' const Slideshow = () => { const data = useStaticQuery(graphql` qu...
const imageFormats = ['.jpg', '.jpeg', '.png', '.webp']; const videoFormats = ['.mp4', '.webm']; async function main() { //Set up canvas resizing const canvas = document.getElementById('renderer'); function resize() { let { width, height } = document.body.getBoundingClientRect(); canvas.width = width; ...
import cheerio from 'cheerio' import Crawler from 'simplecrawler' import database from '../db/models' import { Op } from 'sequelize' import { BASE_URL } from './shared/constants' import { getUuid, isUrl, log, relativePath } from './shared/helpers' const debug = (args) => log({ ...args, message: `[ANSWER]: ${args.messa...
import {range} from "d3-array"; function compareValue(compare) { return function(a, b) { return compare( a.source.value + a.target.value, b.source.value + b.target.value ); }; } export default function() { var padAngle = 0, arcGroups = null, chordSum = null, sortArcGroups = null, sor...
import {Vector3} from '../Datum/Math/Vector3.js'; import {Object3D} from '../Core/Object3D.js'; /** * @author wangzhidong * @modified DongYi 2018/07/11 */ /*function LOD() { Object3D.call( this ); this.type = 'LOD'; Object.defineProperties( this, { levels: { enumerable: true, value: [] } } ); } ...
import React from 'react' import { Link } from 'react-router-dom' import { Avatar, Card, CardHeader, CardMedia, Paper, } from '@material-ui/core' import { withStore, } from 'freenit' import Template from 'templates/default/detail' import getStyles from './styles' class Landing extends React.Component { ...
var angular = require('angular'); // WGo // TODO: Is it worth abstracting this into its own module? require('./lib/wgo/wgo.js'); require('./lib/wgo/kifu.js'); require('./lib/wgo/sgfparser.js'); require('./lib/wgo/player.js'); require('./lib/wgo/basicplayer.js'); require('./lib/wgo/basicplayer.component.js'); require('...
const fs = require('fs-extra') const path = require('path') const cp = require('child_process') const babel = require('@babel/core') const env = require('@babel/preset-env') const walk = require('walk') const uglify = require('uglify-js') const os = require('os') const chalk = require('chalk') const input = process.ar...
Vue.component('deviceSearch', require('../../../components/search/deviceSearch.vue')); Vue.component('pagination', require('../../../components/pagination/pagination.js')); Vue.component('btnSelector', require('../../../components/selectors/buttons.vue')); //Vue.component('deviceBlock', require('../../../components/par...
import "../styles/views.scss" import {Elm as Cirdis} from "../src/Main.elm"; const cirdis = Cirdis.Main.init({}) // Mouse move perf hack let lastMouseMove = 0; let delayedDeliver = null; let sendDrag = false; const onMouseMove = function onMouseMove(e) { // Create a separate object from the event to avoid breaking...
import React, { useState, useEffect } from 'react'; import { Text, View, Modal, StyleSheet, TouchableOpacity, TextInput, Picker, } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import { FUNDS, PENSION, POST_FIXED_INCOME, TREASURY_DIRECT, SAVINGS, PRE_FIXED_INCOME, BITCOIN, STOCK, ...
import React, { useState, useEffect } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { IconButton, TextField, Grid } from '@material-ui/core'; import ArrowBackIcon from '@material-ui/icons/ArrowBack'; import DeleteIcon from '@material-ui/icons/Delete'; import AddIcon from '@material-ui/icon...
const EventEmitter = require('events'); const { uuidv4 } = require('../uuidv4'); const { stateTableLog } = require('./state-table-log') const { fb_steps } = require('../../utils/firebase/firebaseEventEmitter') //const { fbDatabase } = require('../../utils/firebase/firebaseInit') const { fbRest } = require('../firebase...
const printJS = require("./util/printJS"); module.exports = function migrator(elNode, context) { const builder = context.builder; const argument = elNode.argument; const match = argument && /^([$A-Z_][0-9A-Z_$]*) from (.*)$/i.exec(argument); if (!match) { return; } context.dep...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); 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 ("va...
var this_js_script = $("script[src*=apphorario]"); var my_var_1 = this_js_script.attr("data-my_var_1"); if (typeof my_var_1 === "undefined") { var my_var_1 = "some_default_value"; } Vue.config.devtools = true; var v = new Vue({ el: "#app", data: { url: my_var_1, addModal: false, editModal: false, ...
// Implementation of store callbacks. class SessionStore extends lib_libsignal.SessionStoreBase { constructor(service, session, name) { super(service.id, session); this.data = {}; this.name = name; } display() { return "Session Store"; } log() { console.log(`${this.name} SessionStore: ...
/** * Created by phanmduong on 9/3/17. */ import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import Select from '../../components/common/Select'; import Loading from '../../components/common/Loading'; import * as summaryFinanceActions from './summaryFinanceAction...
function Update_Static_Images() { //Read the updated time var timestamp_year = parseInt(document.forms["TimeForm"]["latest_year"].value); var timestamp_month = parseInt(document.forms["TimeForm"]["latest_month"].value); var timestamp_day = parseInt(document.forms["TimeForm"]["latest_day"].value); if...
/* * AppleWidgetController.js * Copyright (c) 2010-2011 Apple, Inc. * All rights reserved. * * Responsibility: drb */ // // Class: AppleWidgetController // var AppleWidgetController = function() {}; AppleWidgetController.prototype = { kAjaxFailedEvent : 'AppleWidgetController:AjaxFailed', kMaxAjaxWaitTimeMs ...
'use strict'; var async = require('async'); var _ = require('lodash'); var validator = require('validator'); var db = require('../database'); var posts = require('../posts'); var topics = require('../topics'); var utils = require('../../public/src/utils'); module.exports = function (User) { User.getLatestBanInfo = ...
function hello(){console.log('hello');} function newUser(user,newuser,Render){ var s={username: newuser.username}; user.find(s,function(e,d){ if(!d.length) {console.log("user not in database"); user.create(newuser,function(e,d){ if (e) return handleError(e); Render.redirect('/'); }); ...
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, Promise, generator) { return new Promise(function (resolve, reject) { generator = generator.call(thisArg, _arguments); function cast(value) { return value instanceof Promise && value.constructor === Promise ? value : new Prom...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); let SCORE_MIN = -Infinity; let SCORE_MAX = Infinity; let SCORE_GAP_LEADING = -0.005; let SCORE_GAP_TRAILING = -0.005; let SCORE_GAP_INNER = -0.01; let SCORE_MATCH_CONSECUTIVE = 1; let SCORE_MATCH_SLASH = 0.9; let SCORE_MATCH_WORD = 0.8; let SC...
var $ = require('./ender') , delayed = require('delayed') , validName = require('../lib/valid-name') , $makemeone , $packageName , $monthsRadios , $histogramHeightRadios , $optionsCheckboxes , selectedMonths = 12 , selectedHistogramHeight = 1 , selectedOptions = { ...
require('dotenv').config(); const childProcess = require('child_process'); const gulp = require('gulp'); const plugins = require('gulp-load-plugins')({ pattern: ['gulp-*', 'gulp.*', 'main-bower-files'], replaceString: /\bgulp[-.]/, }); const browserify = require('browserify'); const babelify = require('babelify'); ...
/* * Iopa Bot Framework * Copyright (c) 2016 Internet of Protocols Alliance * * 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 * * ...
import { defineMessages } from 'react-intl'; import { formati18n } from 'client/common/i18n/helpers'; import globalMessages from 'client/common/root.i18n'; import moduleMessages from '../message.i18n'; const messages = defineMessages({ allBuyerSeller: { id: 'sof.invoices.allbuyerseller', defaultMessage: '所有客...
import * as types from '../mutation-types'; import {api} from '../../api'; import jwt_decode from 'jwt-decode'; import jwtTokenUtil from '../../utils/jwtTokenUtil' /** * * 存储app登录所需要的数据,包括登录的用户名、IP、应用标题等信息,对登录token的获取和刷新、清理 * */ // initial state const state = { login: null, expired: false, usermail: ...
function loadSelect2() { $('select.location.level-1').location(); $('select.location.level-1').bind('change', function (event) { var distEle = $(this); var dist = distEle.val(); $('select.location.level-2', $(this).parents('.form-wrapper').first()).location({ level: '2', ...
console.log("J U I loaded"); var timer; var timer2; var timer3; var counter; var cell; var curCount = 0; var gameLost = false; var multiUp = 0; var total = 10; var score = 0; var points = 100; var board = [ 0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0, ...
import * as THREE from '../include/three.module.js'; import * as CANNON from '../include/cannon-es.js'; import * as m from './main.js'; import * as c from './controls.js'; import * as de from './loadDefaultObjects.js'; // Ball model constants export let ball = 0; export let ballc = 0; let result = 0; // Movement exp...
import React, { useState, useContext } from 'react'; import { Redirect } from 'react-router-dom'; import {Avatar, Button, Card, CssBaseline, TextField, Link, Grid, Box, Checkbox, Typography, Divider, Container} from '@material-ui/core'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import HouseIcon...
// Copyright 2012 The Obvious Corporation. /* * A minimal in-process data pipe implementation. Pipes have * a write end, which provides the writable stream protocol, and * a read end, which emits events. */ /* * Modules used */ "use strict"; var assert = require("assert"); var events = require("events"); var...
import React from "react"; import WebCam from "../webcam/webcam"; import "./form.css"; import { v4 } from "uuid"; const bc = { borderColor: "grey", }; class Form extends React.Component { constructor(props) { super(props); let maskId = null; if (props.maskId) { maskId = props.maskId; } else...
// Requires var Q = require('q'); var _ = require('underscore'); var os = require('os'); var fs = require('fs'); var path = require('path'); var wrench = require('wrench'); var utils = require('./utils'); // Constants var INDEX_HTML_TEMPLATE = [ '<!DOCTYPE html>', '<html>', ' <head>', ' <met...
/** * 中科方德软件有限公司<br> * agricultureiot:jslib.iscas_june.1.0.js * 日期:2015年12月8日 */ // //////////////////////////////////////////// // //////////////////////////////////////////// // ///////////// 举例 /////////////////// // //////////////////////////////////////////// // //////////////////////////////////////////// //...
var screenWidth var screenHeight wx.getSystemInfo({ success: function (res) { screenWidth = res.screenWidth screenHeight = res.screenHeight console.log(res.version) }, }) const btnCTRL = 80 //按钮大小 const mapcol = 12 //地图的总列数 const pix = screenWidth /2 / mapcol //每个方块格的长度 const pix_mini=pix/2//小方格的长度 cons...
import React from 'react'; import { getFileName } from 'codechum-app-utils'; import GLOBALS from 'codechum-app-globals'; import { Text, Code, Compiler } from 'components/elements'; import { programmingLanguages } from 'components/elements/Code/constants'; import { textTypes } from 'components/elements/constants'; imp...
const keystone = require( 'keystone' ), Types = keystone.Field.Types, User = require( '../users/user.model' ), Validators = require( '../../utils/field-validator.controllers' ); // configure the s3 storage adapters const imageStorage = new keystone.Storage({ adapter: require( 'keystone-storage-adapter-s...
import server from './serverStores' const DIALOG_CONFIG = 'DIALOG_CONFIG' const SYSTEM_INFO = 'SYSTEM_INFO' const SHARE_DATA = 'SHARE_DATA' const TOAST_CONFIG = 'TOAST_CONFIG'// 打开提示弹窗 const AUTH_USERINFO_STATE = 'AUTH_USERINFO_STATE' //更新是否授权userinfo状态 const IS_INIT = 'IS_INIT' //应用初始化完成 const stores = { modules...
'use strict' /* token = device token */ var mongoose = require('mongoose'); var moment = require('moment'); var config = {}; var mongoConnectionString = process.env.MONGOLAB_URI || "mongodb://127.0.0.1/KalReminder"; /*------------ models ---------- */ var UserModel = { name: String, token: {type: String, require...
var video = document.querySelector("#videoElement"); var video2 = document.querySelector("#videoElement2"); if (navigator.mediaDevices.getUserMedia) { navigator.mediaDevices.getUserMedia({ video: true }) .then(function (stream) { video.srcObject = stream; video2.srcObject = stream; }) .catc...
$(document).ready(function(){ suggestion_ajax_request = {abort: function(){}}; if(window.location.hash.length > 3) { //var query = trim(strstr(window.location.hash, '/').substr(1), '/'); var query = trim(window.location.hash, '#_=/!'); displayResult(query); } $('input[name=call]').keyup($.debounce(keyUp, ...
const util = require('cal360.util.js') const center = g.getWidth() / 2 const middle = g.getHeight() / 2 // Math.cos with degrees as input function cos(deg) { return Math.cos((deg * Math.PI) / 180) } // Returns the northward equinox of the specified Gregorian year function equinox(year) { let Y = (year - 2000) / 1...
import * as React from 'react'; import { getGraph, mockReturnDataPrereqsCS225 as mockData, mockReturnDataContextCS225 as mockData2, mockReturnDataReverseCS225 as reverseMock} from './util' import { GraphDisplay } from './GraphDisplay' import { graphFetch, fakeFetch } from '../mockutils' import { endpointBase } from...
/*********************************************************** DOG TRACKER ************************************************************/ // Initializing pubnub var pubnub = PUBNUB({ publish_key : "pub-c-cab5bb0d-dfef-4115-ab0c-670977ede3fb", subscribe_key : "sub-c-0971ddba-19b8-11e7-aca9-02ee2ddab7fe" }...
/*global jscolor*/ /*eslint no-undef: "error"*/ const preview = { /** * Default values - if set to these values, the params do not need to appear in the query string */ defaults: { theme: "default", hide_border: "false", date_format: "", locale: "en", }, /** * Update the preview with ...
// ------------- VARIABLES ------------- // var ticking = false; var isFirefox = (/Firefox/i.test(navigator.userAgent)); var isIe = (/MSIE/i.test(navigator.userAgent)) || (/Trident.*rv\:11\./i.test(navigator.userAgent)); var scrollSensitivitySetting = 30; //Increase/decrease this number to change sensitivity to trackp...
import boxShadows from "../../box-shadow.js"; const componentStyles = (theme) => ({ root: { '&:hover': { backgroundColor: 'transparent', }, }, icon: { borderRadius: 3, width: 16, height: 16, boxShadow: 'inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)', backgr...
import React from 'react'; import { compose } from 'recompose'; import { injectState } from 'freactal'; import autobind from 'auto-bind-es5'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import TrashIcon from 'react-icons/lib/fa/trash'; import { distanceInWords } from 'date-fns'; import {...
import { wit, bots } from '../index'; import moment from 'moment-timezone'; import _ from 'lodash'; import models from '../../../app/models'; import dotenv from 'dotenv'; import { utterances, colorsArray, constants, buttonValues, colorsHash, timeZones, timeZoneAttachments } from '../../lib/constants'; import { witTime...
/*Covid-19 L'API che ho utilizzato mi permette di interfacciarmi con un servizio chiamato "Covid-19" per il quale non è prevista nessuna autenticazione. La richiesta è HTTP GET e la risposta è in formato json. Il json contiene le informazione relative al Covid di 190 Stati e anche le informazioni globali. Creo una lis...
/** * * TaskBoard * */ import React, { memo, useState } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import { Droppable, Draggable } from 'react-beautiful-dnd'; import { useInjectReduc...
//Find alternative low risk way Array.prototype.move = function(old,to){ if(to == old) return; this[to] = this.slice(old,old+1)[0]; //Figure out how to settle overrides/update for them delete this[old]; //Prevents reindexing } let bar = document.getElementById("framebar"); let maxFrames = 700; window.keyframes = JS...
//Variables globales var xhr = null; var alto_pantalla; var alto_menu; /* Evento document ready */ $(document).ready(function(){ //Evaluamos si existen los sessionStorages if(sessionStorage.getItem("ID_USUARIO") == null || typeof sessionStorage.getItem("ID_USUARIO") == 'undefined'){ //Red...
import SparkMD5 from 'spark-md5'; import dataURL2Blob from './dataURL2Blob'; var xdebug = window.myDebug('Utils:upload'); const CHUNKED_UPLOAD_URL='/apis/v2/upload/chunk'; const DEFAULT_CHUNK_SIZE = (1024 * 1024); export const calMd5sum = (src, opts) => { /* src: File or Blob. opts: { chunkSize:...
var express = require('express'); var router = express.Router(); var stringify = require('json-stringify-safe'); var fs = require('fs'); var mammoth = require('mammoth'); var auth = require('../helpers/auth'); var Subject = require('../models/models').Subject; var Pool = require('../models/models').Pool; var Section = ...
'use strict'; let score = 0; let randomNum = (Math.floor(Math.random() * Math.floor(19))) + 1; let answers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; for (let i = 0; i < answers.length; i++) { answers[i] = (Math.floor(Math.random() * Math.floor(24))) + 1; } console.log('cheat answer question 6 ' + randomNum); console.log(...
// ...................................................... // .......................UI Code........................ // ...................................................... document.getElementById('join-room').onclick = function() { disableInputButtons(); connection.sdpConstraints.mandatory = { Offer...
/* * Copyright 2000-2020 Vaadin 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...
'use strict' const fs = require('fs') const assert = require('assert') const path = require('path') const {promisify} = require('util') const {exec, fileExists, ensureVarDir} = require('./util') const github = require('./github') const countLinesInFile = require('./count-lines-in-file') const {countLinesInBuffer} = c...
/* * 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. */ //Quantidade inicial modelo let quantidade = 1; //Array Carrinho let carrinho = []; //Qual a pizza selecionada no modelo let qualPiz...
const functions = require("firebase-functions"); const admin = require("firebase-admin"); admin.initializeApp(); const db = admin.firestore(); const fieldValue = admin.firestore.FieldValue; exports.getPantryToken = functions.https .onCall(async (data, context) => { const {pantryId} = data; return awa...
import React from 'react'; import { connect } from 'react-redux'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import { withRoomContext } from '../../../../RoomContext'; import { useIntl } from 'react-intl'; import Grid from '@material-ui/core/Grid'; import IconButton from ...
const noHTMLError = new TypeError( 'HTML was not returned to Hypernova, this is most likely an error within your application. Check your logs for any uncaught errors and/or rejections.', ); noHTMLError.stack = null; function errorToSerializable(error) { // istanbul ignore next if (error === undefined) throw new ...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const bignumber_js_1 = __importDefault(require("bignumber.js")); const ilp_packet_1 = require("ilp...
/** * Copyright (c) 2015-present, Facebook, Inc. * 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. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict...
var multiplayerSocket, players = {}, connected = false, chatBoxes = {}, chatTime = 5000, playerId; function connectToServer(){ multiplayerSocket = new WebSocket("ws:"+document.location.hostname+":"+document.location.port+"/"+name); multiplayerSocket.onmessage = serverUpdate; multiplayerSocket.onopen = function(even...
import { fetchReceitas } from "api"; import { formatPrice } from "helpers"; import React, { useEffect, useState } from "react"; import '../layouts/custom.css'; import ModalReceitaUpdate from "./Receita/ModalReceitaUpdate"; import ModalReceitaInsert from "./Receita/ModalReceitaInsert"; // react-bootstrap components impo...
var sourceURLctr = 1; var getPreparedCode = (function () { var consoleTest = /(^.|\b)console\./, re = { docReady: /\$\(document\)\.ready/, shortDocReady: /\$\(function/, console: /(^.|\b)console\.(\S+)/g, script: /<\/script/ig, code: /%code%/, csscode: /%css%/, ...
import * as PIXI from 'pixi.js' import { placeholder } from '../customConfig' const has = Object.prototype.hasOwnProperty export default class Game { constructor(props) { this.renderer = props.renderer this.root = props.root this.modal = props.modal this.uploader = props.uploader this.dataMan =...
var date = new Date().toDateString().slice(4); var searchHistory = []; var searchInput = ""; // load local storage loadHistory(); // default values on first open if (searchHistory.length === 0) { searchInput = "Melbourne, AU"; displayData(searchInput); } else { searchInput = searchHistory[0].cityName + ...