text
stringlengths
3.22k
29.5k
"use strict"; var handleCharacter = function handleCharacter(e) { e.preventDefault(); $("#characterMessage").animate({ width: 'hide' }, 350); if ($("#characterName").val() == '' || $("#characterAge").val() == '') { handleError("All fields are required"); return false; } sendAjax('POST', $("#c...
import React from "react" import styled from "styled-components" import Img from "../images/citadel144.png" const Section = styled.section` display: flex; flex-direction: column; align-items: center; border-radius: 3px; width: 600px; transition: all 0.5s ease; .tabs { width: 100%; display: flex; ...
if (document.getElementById('openhelp')) { $('#openhelp').click(function() { if ($("#formattinghelp").val() == '') { // load text CodeMirror.runMode( $('#formattinghelptext').val(), "logger", $("#formattinghelp").get(0) ...
$(document).ready(function () { $('.material-card > .mc-btn-action').click(function () { var card = $(this).parent('.material-card'); var icon = $(this).children('i'); icon.addClass('fa-spin-fast'); if (card.hasClass('mc-active')) { card.removeClass('mc-active'); ...
var diff; var enableContentLocation = false; /* ( (?:\d\d\d\d-\d\d-\d\d(?: |T)|\w{3} \d{2}(?: \d\d|\d\d\d\d)? ) \d\d:\d\d:\d\d(?:\.\d+)?(?:Z|\+\d\d:\d\d)?| \d{13} ) (.*) //*/ var DATEDATAREGEXP = /((?:\d\d\d\d[-/]\d\d[-/]\d\d(?: |T)|\w{3} \d{2}(?: \d\d|\d\d\d\d)? )\d\d:\d\d:\d\d(?:\.\d+)?(?:Z|\+\d\d:\d\d)?|\d{1,1...
const { roasts, compliments, roastcommand, compliment, ttscomplimentcommand, roastidea, complimentidea, ttsroastcommand, coinflip } = require('./commands/general/general_purpose.js'); const { disconnectcommand, joincommand } = require('./commands/voice/voice_general.js'); const { setnick, setrole, createrole } = requ...
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...
/** * partty.js * Copyright (c) 2015, <NAME> (MIT License) * Copyright (c) 2012-2015, <NAME> (MIT License) * Binding to the pseudo terminals. */ var extend = require('extend'); var pty = require('../build/Release/pty.node'); var net = require('net'); var tty = require('tty'); var version = process.versions.node....
'use strict' const os = require('os') const path = require('path') const Utils = require('../utils') const EncryptLoginStream = require('./login/encrypt_stream') const EncryptWorldStream = require('./world/encrypt_stream') const DecryptLoginStream = require('./login/decrypt_stream') const DecryptWorldStream = require...
//验证 var IdCardValidate = (function () { var vcity = { 11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:"江苏", 33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆", 51:"四川",52:"贵州",53:"云南",54:"西藏",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆...
var currScrollPos = 0; var ladderObjAmt = 0; (function ($, document, window) { //物件ladder定位功能 $.fn.JResLadderObj = function(options) { var defaults = { state: true, setupMode: false, position: 'fixed', container: '', path: { 0:{ ...
import { dispatch as d3_dispatch } from 'd3-dispatch'; import { xml as d3_xml } from 'd3-fetch'; import { Projection, Tiler } from '@id-sdk/math'; import { utilStringQs } from '@id-sdk/util'; import { coreGraph, coreTree } from '../core'; import { osmEntity, osmNode, osmWay } from '../osm'; import { utilRebind } from ...
const db = require('../db/db'); const uuidv4 = require('uuid/v4'); let addons = []; addons.push(require('./addons/userdata-socket')); addons.push(require('./addons/bodies')); addons.push(require('./addons/iot-api')); addons.push(require('./addons/launchable')); addons.push(require('./addons/admin')); addons.push(re...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _log = require('./utlis/log'); var _log2 = _interopRequireDefault(_log); var _crud = require('./utlis/crud'); var _crud2 = _interopRequireDefault(_crud); var _getAllRequest = require('./utlis/getAllRequest'); var _getAllRequest2 =...
import { mw } from "../globals"; import { mostFrequent } from "./util"; /** * @private * @class * @prop {String|Number} name parameter name, or position for unnamed parameters * @prop {String} value wikitext passed into the parameter (whitespace trimmed) * @prop {String} wikitext Full wikitext, including leading p...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. "use strict"; var tree; function prepareWebKitXMLViewer() { var html = createHTMLElement('html'); var head = createHTMLElement('head'); html.appen...
import { Layout, Menu, Divider, Row, Col, Icon } from 'antd'; import React, { Fragment } from 'react'; import { Link, animateScroll as scroll } from 'react-scroll'; import { isMobile } from 'react-device-detect'; import i18n from './i18n'; import global from './global'; import './layout.css'; import logo from './assets...
/** * Copyright (c) 2018 Public Library of Science * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify,...
/*! * trezorhelpers.js - Trezor input transformations and other helpers. * Copyright (c) 2020, <NAME> (MIT License) */ 'use strict'; const assert = require('bsert'); const scriptCommon = require('bcoin/lib/script/common'); const Network = require('bcoin/lib/protocol/network'); const consensus = require('bcoin/lib/...
import React from 'react' import moment from 'moment' import { BrowserRouter as Router, Route, Switch } from 'react-router-dom' import PropTypes from 'prop-types' import { connect } from 'react-redux' import Notifications from 'react-notify-toast' import ReactGA from 'react-ga' import ErrorComponent from './Error/index...
var microtime = require('microtime'); var SPI = require('spi-device'); /* A node.js library to control a WS2801 RGB LED stripe via SPI with your Raspberry Pi @copyright 2013 <NAME> (MIT-License) */ function RPiWS2801(){ this.spiBus = 0; this.spiDevice = 0; this.numLEDs = 32; this.spi = nul...
/** * indexController.js * * Controller file for index.js that contains all of the methods not directly used in the router * Handles the API calls and provides methods for handling the responses for view display */ const fetch = require('node-fetch'); /** * getWeather() * * Asynchronous function that uses try...
// gatilho no botão para o caso de uma pesquisa document.getElementById("btnFilter").addEventListener("click", function () { Start(); }); //reset da tag caso selecione perfil novamente document.getElementById("prof").addEventListener("click", function () { document.getElementById('select').options[0].sel...
import { round, hasOwn, mkConverter } from "@qtxr/utils"; import Interpolator from "./interpolator"; import { prepareKeyframes, interpolate } from "./interpolator-utils"; const convert = mkConverter({ deg: { rad: Math.PI / 180, grad: 400 / 360, turn: 1 / 360 }, rad: "deg", grad: "deg", turn: "deg", px...
//By <NAME> (MIT License). Buffer Loader was in an audio tutorial I found on HTML5 Rocks. //TODO: /* - MIDI web context support - Seeking for audio buffer source nodes -- How: copy audio buffer, stop old node, start new one at time X. */ export class SoundJS { //Only one Audio context at a time! ...
// ==UserScript== // @name Main Auction Displayer // @version 0.15 // @namespace dithpri.RCES // @description Displays puppets' main nation above puppet name in an auction // @author dithpri // @downloadURL https://github.com/dithpri/RCES/raw/master/userscripts/auction/Main%20Auction%20Displayer...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
const widgetStyle = ` h1, div, p { margin: 0px; padding: 0px; font-family: 'system-ui' } a{ text-decoration: none; color: inherit; } #github-logo{ height: 20px; position: absolute; top: 10px; right: 10px; } .cover{ height: 120px; width: 100%; backgrou...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var urlencodedParser = bodyParser.urlencoded({ extended: false }); var mongoose=require('mongoose'); var MongoClient = require('mong...
import { vec3, quat } from 'gl-matrix'; import { quatToEuler, eulerToQuat } from 'webglue/lib/util/euler'; import * as bezier from '../util/bezier'; let tmpVec3 = vec3.create(); let tmpQuat = quat.create(); let useEuler = false; let eulerData = null; function lerp(a, b, t) { return a + t * (b - a); } function creat...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
const { Word } = require("./parse-tree"); const { getEnumInf, hashOfObj } = require("./utils"); const failFn = () => false; const passFn = () => true; // WARN This function hosts structrual assumption and implements a workaround to detect enum, // thereby reducing the dynamic behaviour of the verifier. For the the ti...
const fs = require('fs') const bs58 = require('bs58') const { toBuffer } = require('eth-util-lite') const { BN } = require('ethereumjs-util') const { sleep, RobustWeb3, normalizeEthKey, borshify, borshifyInitialValidators, nearAPI } = require('rainbow-bridge-utils') const { HttpPrometheus } = require('../.....
/** * Launchy! 🚀 — An Accessible Modal Window * * Features include: * - On launch, shift focus to the modal window container * - The modal window is described by the modal heading * - Trap keyboard focus within the modal when active/visible * - Close the window on `esc` key press * - Close the window on overla...
import * as c from "./../chart.js-2.9.4/package/dist/Chart.min.js" var keywords; class Pair { constructor(data) { console.log("data: " + data) keywords = JSON.parse(data); let keyword_dim_dict = this.get_keyword_dimension_dict(keywords.dimensions) var cards = "" this.add_...
/** FUNCIONES DEL FORMULARIO PARA INSERTAR CUENTAS PERSONALES **/ function checkboxLOPD_LSI(checkbox1, checkbox2, checkbox3, fecha1, fecha2, fecha3) { inicializarCheckboxLOPD_LSI(checkbox1, fecha1, fecha2, fecha3); inicializarCheckboxLOPD_LSI(checkbox2, fecha1, fecha2, fecha3); inicializarCheckboxLOPD_LSI...
import React, { Component } from "react"; import "./../../../App.css"; import {Button, Col, Form, Image, Jumbotron, ProgressBar, Row} from "react-bootstrap"; import auth from "./../../../auth"; import axios from "axios"; import { storageRef2 } from "../../../firebase"; class AskQuestion extends Component{ constru...
const cheerio = require('cheerio'); const _ = {}; _.clone = require('lodash/clone'); _.cloneDeep = require('lodash/cloneDeep'); _.has = require('lodash/has'); _.isArray = require('lodash/isArray'); _.isEmpty = require('lodash/isEmpty'); const VariableRenderer = require('./VariableRenderer'); const { PageSources } = r...
(function () { searchResultsArr = []; resultsPerPage = 5; var searchTerm = getQueryVariable('query'); var fleet = getQueryVariable('fleet'); if (searchTerm) { // Retain search query and fleet document.getElementById('search-box').setAttribute('value', searchTerm); document.getElementById('flee...
'use strict'; // Load modules const Hoek = require('hoek'); const Items = require('items'); const Joi = require('joi'); // Declare internals const internals = { schema: { base: Joi.object({ name: Joi.string().required(), clone: Joi.boolean(), tags: Joi.boolean(), ...
//SVG params. var svgHeight = 960; var svgWidth = 510; // Margins. var margin = { top: 20, right: 40, bottom: 80, left: 100 }; // Chart area minus margins. var chartHeight = svgHeight - margin.top - margin.bottom; var chartWidth = svgWidth - margin.left - margin.right; // Create an SVG wrapper, append a...
"use strict"; function App(api, parameters) { this._elem = window; this._html = document.getElementsByTagName("html")[0]; this._body = document.body; this._elem.addEventListener("load", this._onLoad.bind(this), false); } App.prototype._onLoad = function() { // Header animation setup this._points = [];...
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.writable = true; Object.defineProperty(target, de...
// Copyright IBM Corp. 2015,2016. All Rights Reserved. // Node module: strong-globalize // This file is licensed under the Artistic License 2.0. // License text available at https://opensource.org/licenses/Artistic-2.0 'use strict'; var assert = require('assert'); var helper = require('./helper'); var wc = require('w...
const moviesMock = [ { id: '38841cd3-1f5d-40b2-ae66-cdd6b7033d18', title: 'Seventh Heaven (Septième ciel, Le)', year: 2012, cover: 'http://dummyimage.com/103x133.bmp/ff4444/ffffff', description: 'Praesent id massa id nisl venenatis lacinia. Aenean sit amet justo. Morbi ut odio.\n\nCras mi pe...
const leb = require('leb'); // const debug = require('debug')('mft'); const stream = require('stream'); const Parser = require('stream-parser'); const Field = require('../filetypes/TOC/Field'); const Entry = require('../filetypes/TOC/Entry'); const TOCFile = require('../filetypes/TOC/TOCFile'); const DATA_TYPES = requ...
/* Copyright 2018 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 applicable law or agre...
console.log( "=== simpread offline load ===" ) import {browser} from 'browser'; import * as msg from 'message'; let currIdx = 0, maxCount = 0, urls = [], images, cb, type = "html", markdown; /** * Offline HTML * * @param {string} title * @param {string} desc * @param {string} content * @param {object} st...
//;$(function(){ // 基于准备好的dom,初始化echarts实例 var app = echarts.init(document.getElementById('online')); var posList = [ 'left', 'right', 'top', 'bottom', 'inside', 'insideTop', 'insideLeft', 'insideRight', 'insideBottom', 'insideTopLeft', 'insideTopRight', 'insideBottomLeft', 'insideBottomRight' ...
"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 fulfilled(value) { t...
import React from "react"; import { Box, Button, Flex, Heading, Input, Modal, ModalBody, ModalCloseButton, ModalContent, ModalHeader, ModalOverlay, Select, Tooltip, Wrap, WrapItem, } from "@chakra-ui/react"; import { gql, useMutation, useQuery } from "@apollo/client"; import { appearance...
var restServiceURL = new Object(); restServiceURL["PROD"] = "../prod/rest/"; //"http://api.tradecard.com/rest/"; restServiceURL["CQA"] = "../cqa/rest/"; //"http://cqa.tradecard.com/rest/"; restServiceURL["SUPORT"] = "../support/rest/"; //"http://support.tradecard.com/rest/"; restServiceURL["TRAINING"] = "../train...
var createjs = require('createjs'), storage = require('./storage'), remaining = require('./timer'); var stage , teemos = [] , background , score = 0 , state = null , teemoCountText = new createjs.Text('Teemos: ', '20px Arial', '#dda582') , bestScoreText = null , stageWidth = 800 ...
var popu, target, gen = 0; var genP, maxfitP, doneP; //feel free to play with these values var populationSize = 350, mutationRate = 0.01; //add obstacles var obs = [{ h: 210, w: 24, x: 490, y: -7 }, { h: 220, w: 24, x: 317, y: 151 }]; var tmpCx, tmpCy; var toAdd = false, cb, rerun; f...
function getLocalStorageKey(id) { return "posTab" + id; }; function getModel() { function getDetails() { const items = $("#SalesItems .item"); var model = []; $.each(items, function () { const el = $(this); const itemId = window.parseInt(el.attr("dat...
const config = require('./config') const pathPrefix = config.pathPrefix === '/' ? '' : config.pathPrefix module.exports = { siteMetadata: { title: config.siteTitle, siteUrl: config.siteUrl, author: config.author, description: config.siteDescription, rssMetadata: { site_url: config.siteUrl ...
/* * Filename: /home/anujkumar/Desktop/public-sunbird/sunbird-portal/src/app/helpers/pdfCreator/pdfCreator.js * Path: /home/anujkumar/Desktop/public-sunbird/sunbird-portal/src * Author: <NAME> */ const PDFDocument = require('pdfkit') const FileSystem = require('fs') const bodyParser = require('body-parser') const ...
"use strict"; var simp = { getYear: function (date) { return date.getFullYear(); }, getMonth: function (date) { var switch_var; if (typeof date === "number") { switch_var = date; } else if (date instanceof Date) { switch_var = date.getMonth(); ...
const Discord = require('discord.js'); const util = require('util'); const fs = require('fs'); const readdir = util.promisify(fs.readdir); const { MessageEmbed } = require("discord.js") const ms = require("ms") const Spotify = require("spotify-finder") let config = require("../../config.json") const Canva...
import DialogueEvent from './dialogueEvent'; import TextUI from './textUI'; import GenerateCity from './generateCity'; class Game extends Phaser.Scene { constructor() { super({ key: 'game' }); } preload() { this.load.audio('cycle', 'assets/sound-ominous.wav'); this.load.audio('click', 'assets/sound-...
// Computes the distance function haversine(leg){ let R = 6371; // kilometres let φ1 = parseFloat(leg.departure.latitude) * Math.PI / 180; let φ2 = parseFloat(leg.arrival.latitude) * Math.PI / 180; let Δφ = φ2-φ1; let Δλ = (parseFloat(leg.arrival.longitude) - parseFloat(leg.departure.longitude)) * M...
const merge = require('webpack-merge') const chalk = require('chalk') const debug = require('debug')('plugin:service:config') // const getEnv = require('../utils/env') const logger = require('../utils/logger') const fileUtil = require('../utils/file') const restart = require('../utils/restart') const emitter = require(...
'use strict' /* the actual handler for transactions in the XO transaction family this will accept transactions and process the payload depending on the contents of the payload and current game state perform some kind of state transition think of the handler as the main logic behind the tp */ // load...
/*============================================================= PRO IDE: FULLY EDITED AND RE-USED AUTHOR: <NAME> WEBSITE: WWW.RRJ.WORLD,WWW.RRJPRINCE.COM FACEBOOK: WWW.FACEBOOK.COM/RRJ.PRINCE EMAIL: <EMAIL> EMAIL:<EMAIL> THANKS TO GOD AND MY MOM AND ALSO THE PEOPLE OVER INTERNET AND AROUND...
'use strict'; /* * KodiBrowser: Handles list and directories */ const debug = require('debug')('neeo-driver-spotify:SpotifyBrowser'); const debugData = debug.extend('data'); const neeoapi = require('neeo-sdk'); //const Promise = require('bluebird'); const dotProp = require('dot-prop'); const config = require('./Co...
// @TODO: YOUR CODE HERE! var svgWidth = 1000; var svgHeight = 600; var margin = { top: 20, right: 40, bottom: 80, left: 100 }; // Define Dimensions of the Chart Area var width = svgWidth - margin.left - margin.right; var height = svgHeight - margin.top - margin.bottom; // Create an SVG wrapper, append an S...
import React, { Component } from "react"; import { connect } from "react-redux"; import { Redirect } from "react-router-dom"; import queryFromFilters from "../../utils/queryFromFilters"; import axios from "axios"; import { defaults } from "lodash"; import { getDocuments, createDocument, updateDocument, removeDo...
/** * This JavaScript file contains three inline modules. * * 1. Navigation Menu * 2. Search * 3. Generative Background Pattern */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 1. NAVIGATION MENU * * * * * * * * * * * * * * * * * * * * * * * * *...
//Created by <NAME> //This makes it easier to create navigation bars, automatically adding all the css and html //Embed with <script src="https://liambloom.github.io/lib/Perego/Perego.js"></script> //jshint multistr: true, esversion: 5 function Menu(options, color) {//color of menu //console.log("hi") Object.definePr...
import React, { Component } from 'react'; import { createStackNavigator, TransitionPresets } from '@react-navigation/stack'; import { View, Text } from 'react-native'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; // import { stack } from 'd3-shape'; import { SafeAreaProvider } from 'react-...
const queries = require('./queries'); const xss = require('xss'); function handle_form(req, res) { // About the project var project_id = xss(req.body.project_id) const project_name = xss(req.body.project_name) const project_desc = xss(req.body.project_desc) const rels = xss(req.body.rels) const phase = xss(...
/* var data = new Date(); var dia = data.getDate(); var mes = data.getMonth(); var ano4 = data.getFullYear(); var str_data = ano4 + '-' + (mes+1) + '-' +dia; if (dia < 10) { var str_data = ano4 + '-' + (mes+1) + '-0' +dia; }else{ var str_data = ano4 + '-' + (mes+1) + '-' +dia; } */ document.addEventL...
/* Songs List */ export const SONGS_BY_ARTIST_REQUEST = 'SONGS_BY_ARTIST_REQUEST'; export const SONGS_BY_ARTIST_SUCCESS = 'SONGS_BY_ARTIST_SUCCESS'; export const SONGS_BY_ARTIST_FAILURE = 'SONGS_BY_ARTIST_FAILURE'; export const SONGS_BY_LANG_REQUEST = 'SONGS_BY_LANG_REQUEST'; export const SONGS_BY_LANG_SUCCESS = 'SONG...
/////////////////////////////////////////////////////////////////////////// ///////////////// Selective nodes and links highlight ///////////////////// /////////////////////////////////////////////////////////////////////////// function hop1() { var nodesToHighlight = [153, 280, 284] var labels = ['Shareholder X',...
const express = require('express'); const router = express.Router(); const auth = require('../../middleware/auth'); //Item Model const Item = require('../../models/Item'); //Pet Model const Pet = require('../../models/Pet'); //Breed Model const Breed = require('../../models/Breed'); //Category Model const Category = r...
'use strict'; //Modules const https = require('https'); //Helpers const Utils = require('./helpers/utilities'); const Constants = require('./helpers/constants'); const ReturnObject = require('./helpers/ReturnObject'); /** * @class CoinCodex * @author <NAME> <<EMAIL>> * @description A Node.js wrapper for the CoinC...
const { idiot, kestrel, kite, not, and, or, xor, equals, conditional, mockingBird, omega, vireo, thrush, lark, Y, zero, one, two, three, succ, plus, pred, sub, mult } = require('../src/combinators.js'); // numbers // inspired by: http://matt.might.net/articles/js-church/...
$(function() { let donutData = directEmailData(); let donuts = new DonutCharts(); donuts.create(donutData); $('#refresh-btn').on('click', function refresh() { let newData = directEmailData() donuts.update(newData); }); }); fun...
/* globals tf */ import { cocoParts, cocoPairs, cocoPairsNetwork } from './human-pose-estimator-coco.js' const HeatMapCount = 19 const PafMapCount = 38 const MaxPairCount = 17 const DIMFACTOR = 8 const DEFAULTCONFIG = { nmsWindowSize: 6, nmsThreshold: 0.001, localPAFThreshold: 0.141, partScoreThreshold: 0.24...
var fs = require('fs'); var {google} = require('googleapis'); var config = require('../config.json'); var fluid = fluid || require('infusion'); var CREDENTIALS_PATH = config.credentialsPath; var TOKEN_PATH = config.tokenPath; var SCOPES = config.scopes; /********************** * SPREADSHEET GRADES * ***************...
#!/usr/bin/env node // Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the LICENSE // file in the root directory of this source tree. // const crypto = require('crypto'); const events = require('events'); const fs = require('fs'); const request = requi...
var suggestionsRequest = "/dev/movienightbot/testData.json"; var app = new MovieNightBot(); var settings = new Settings(); function MovieNightBot() { this.items = null; this.txtPositionP = null; this.lastData = null; this.bGetSuggested = false; this.currentPage = 0; this.pageCount = 0; this.maxHealth = 0; ...
/** The MIT License Copyright (c) 2008 <NAME>(<EMAIL>) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
'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 ("val...
import { detailLevel } from "./index"; /** * Iterates the sample otu json response and sums the values by site * @param {*} sampleOtus */ function aggregateSampleOtusBySite(sampleOtus) { let siteAggs = {}; let missingOtus = []; for (let i in sampleOtus) { // NOTE: order of tuple is important. let samp...
require('colors'); const async = require('async'); const moment = require('moment'); const utils = require('./utils') const spawn = require('child_process').spawn; const settings = utils.settings; let scheduler; let data = { fetcher: {percent: 0}, refetcher: {percent: 0}, checker: {percent: 0}, ...
import { useState } from 'react'; import Head from 'next/head'; import { useFormik } from 'formik'; import axios from 'axios'; import Header from '../components/Header'; import { useCart } from '../contexts/CartContext'; import { formatPrice } from '../util/format'; function Cart() { const [orderStatu...
import React, {Component} from 'react'; import {render} from 'react-dom'; import DeckGL, {MapController, FlyToInterpolator, TRANSITION_EVENTS} from 'deck.gl'; import {StaticMap} from 'react-map-gl'; import GeoJsonLayerWithFilter from './geojson-layer'; const SAMPLE_GEOEPR = 'rfe.geojson'; const MAPBOX_ACCESS_TOKEN = ...
#!/usr/bin/env node var async = require('async'); var cmd = require('commander'); var path = require('path'); var shell = require('shelljs'); var STK = require('./stk-ssc'); cmd .version('0.0.1') .option('--input <filename>', 'Input path') .option('--labels <filename>', 'Labels file', __dirname + '/data/scannet...
import React, { useEffect, useState } from "react"; import { useFetch } from '../../Hooks/UseFetchGet' import axios from 'axios' import { useActividad } from '../../Hooks/UseNvaActividad' import { useToken } from '../../Hooks/UseFetchToken' import { Redirect } from "react-router-dom" // reactstrap components import { ...
/* Student: <NAME> Contact: <EMAIL> Class: GUI I Professor: <NAME> Assignment: HW 8 File: hw8.js contains all functions for scrabble */ /* global score */ var global_score = 0; /* this data structure is from professor heines, it will be used to keep track of the tiles */ var ScrabbleTiles = [] ; ScrabbleTiles["A"] =...
import React, { Component } from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { addPhysicalAction } from '../../actions/action.js' import { Button, Form, Input, Icon, Select } from 'antd'; import style from '../../public/css/newPhysical.css' const FormItem = Fo...
/** * @file Layer.js * @author leeight */ import $ from 'jquery'; import _ from 'lodash'; import {DataTypes, defineComponent} from 'san'; import {nextZindex, create} from './util'; import {opacity} from './fx/opacity'; import {getOffset} from '../esui/dom'; import {getScrollTop, getScrollLeft, getViewWidth, getView...
var Future = Npm.require('fibers/future'); OPLOG_COLLECTION = 'oplog'; var TOO_FAR_BEHIND = process.env.METEOR_OPLOG_TOO_FAR_BEHIND || 2000; idForOp = function (op) { if (op.op === 'd') return op.o._id; else if (op.op === 'i') return op.o._id; else if (op.op === 'u') return op.o2._id; else if (op...
import React, { useState, useEffect } from "react"; import { addSong, addToGallery } from "../../actions/musicPlaylist"; import { useHistory } from "react-router-dom"; import { TextField, Button, Typography, Paper, IconButton, } from "@material-ui/core"; import MenuItem from "@mui/material/MenuItem"; import M...
/** * @copyright Copyright 2016 <NAME> <<EMAIL>> * @license MIT */ 'use strict'; const Chalk = require('chalk').Instance; const { debuglog } = require('util'); const InvalidSlugError = require('./invalid-slug-error.js'); const Shortline = require('./shortline.js'); const SlugDetectionError = require('./slug-detec...
class BTAppNode extends BTNode { // Centralizes all the app-only logic of reading and writing to org, creating the ui etc constructor(title, parent, text, level) { super(title, parent); this._text = text; this._level = level; this._folded = false; this._keyword = null; ...
import _extends from "@babel/runtime/helpers/extends"; import _defineProperty from "@babel/runtime/helpers/defineProperty"; import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator"; import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; import _slicedToArray from "@babel/runtime/helpe...
const { overwriteFs, cancel } = require('./fs.js') let registered = false let oldResolveLookupPaths let oldFindPath let oldAsarLoader function unregister () { if (!registered) return let Module try { Module = require('module') } catch (_error) { Module = null } if (!Module) { registered = fal...
// author: <NAME>,2020 & <NAME> let sensorNoise = 10; let robot, battleField; function setup() { createCanvas(710, 400); // Create robot and battlefield. battleField = new BattleField(random(width), random(height)); robot = new Robot(random(width), random(height)); setSensors(); } function setSensors() { // TOD...