text stringlengths 8.5k 48.7k |
|---|
/* NGDS Front End App V1.2
<NAME>
sept 15 2020
*/
require('dotenv').config();
var Path = process.env.NODE_PATH;
const port = 443;
var fs = require("fs");
var https = require("https");
const cert = fs.readFileSync('../ssl/__geothermaldata_org_cert.cer');
const ca = fs.readFileSync('../ssl/__geother... |
/**
* Created by hsingh008c on 1/19/17.
*/
'use strict';
var cloudmine = require('cloudmine');
var _ = require('underscore');
var uuidV4 = require('uuid/v4');
var logger = require('./logger_module');
var local_validate = require('./local_validator');
var scim_ldap = require('./scim_ldap');
var search_local = require(... |
var rA=require("plug/requestAction.js"),
common=require("modules/common.js"),
dateObj =require('modules/date'),
template = require('art-template'),
idCard =require('modules/idCard'),
uploader=require("plug/uploader.js"),
validateFn = require('modules/validate'),
tool=require("lib/tool.js");
requi... |
/*
* The MIT License
* Copyright (c) 2011 Kuali Mobility Team
*
* 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, c... |
import * as lib from './lib.js';
import {LOG_VERYSPAM, LOG_SPAM, LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR} from './lib.js';
import {LOG_LEVELS} from './lib.js';
// Work around some issues related to caching and error reporting
// by forcing this to load up top, before we try to 'addModule' it.
import './audio-wor... |
const {app, BrowserWindow, dialog, Menu, ipcMain, Notification} = require('electron')
import { autoUpdater } from "electron-updater"
const fs = require('fs-extra')
const path = require('path')
const sha1 = require('sha1')
const machineIdSync = require('node-machine-id').machineIdSync
const Store = require('electron-sto... |
// Phase 1. Support RDFa lite attributes: vocab, typeof, property, resource, and prefix
var RDF = require('rdf');
var IRI = require('iri');
var defaults = require('./defaults.json');
var console = module.exports.console = { log: function(){}, error: function(){}, };
const StringLiteralURI = "http://www.w3.org/1999... |
console.clear();
document.documentElement.addEventListener('mousedown', () => {
if (Tone.context.state !== 'running') Tone.context.resume();
});
/**
* MusicalScale
* generate a scale of music
* https://codepen.io/jakealbaugh/pen/NrdEYL/
*
* @param key {String}
the root of the key. flats will be converted t... |
class Transform {
constructor() {
this.x = 0;
this.y = 0;
this.scaleX = 1;
this.scaleY = 1;
this.skewX = 0;
this.skewY = 0;
this.rotation = 0;
this.matrix = { a: 1, b: 0, c: 0, d: 1, tx: 0, ty: 0 };
this.matrixUpdated = false;
this.equa... |
//var testSource1 = new VideoSource( renderer, { src: '/video/placeholder.mp4' } );
//var testSource2 = new VideoSource( renderer, { src: '/video/placeholder.mp4' } );
//var testSource3 = new VideoSource( renderer, { src: '/video/placeholder.mp4' } );
//var testSource4 = new VideoSource( renderer, { src: '/video/p... |
//
// FNAF-JS
// Five Night's at Freddy's - JavaScript
//
// Original game by <NAME>
//
// Ported by Sam 'Slynch' Lynch
// Tested by Lewis 'Earwig' M.
// ^as well as just generally helping^
//
// For legality's sake, it is necessary to say that you may not monetize this code
// without my express permission. This also ... |
/**
* (c) 2010-2016 <NAME>
*
* License: www.highcharts.com/license
*/
'use strict';
import H from './Globals.js';
import './Utilities.js';
import './Axis.js';
import './Options.js';
var addEvent = H.addEvent,
Axis = H.Axis,
correctFloat = H.correctFloat,
defaultOptions = H.defaultOptions,
defined = H.defined,
... |
// ======================================================================================
// ======================================================================================
// ============= KTableViewer
// ======================================================================================
// =============... |
/*
* Websensor Car Game
* https://github.com/jessenie-intel/websensor-car
*
* Copyright (c) 2017 <NAME>
*
* 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.or... |
/* Cambia el boton de menu al abrirse*/
$(".button-collapse").sideNav({
edge: 'left',
draggable: true,
onOpen: function(){
$('#btnMenu').html('<i class="material-icons">close</i>');
},
onClose: function(){
$('#btnMenu').html('<i class="material-icons">menu</i>');
},
});
var autoclosetime = 3000;
... |
jQuery(document).scroll(function() {
var position = jQuery(window).scrollTop();
var windowHeight = jQuery(window).height();
if(position <= 500) {
jQuery("a[href='#top']").fadeOut('fast');
}else{
jQuery("a[href='#top']").fadeIn('fast');
}
if(position >= jQuery('.header .header-menu.thisisfixed').attr("rel")... |
const fs = require('fs');
const path = require('path');
const utils= require('./utils');
const argentina= require('./argentina');
const ordinals = {
'1st' : 'first',
'2nd' : 'second',
'3rd' : 'third',
'4th' : 'fourrh',
'5th' : 'fifth',
'6th' : 'sixth',
'7th' : 'seventh',
'8th' : 'eigt... |
// Clase para las operaciones del módulo de contabilidad
class Tesoreria_alta{
constructor(){
this.cuentas = null; // Pila de cuentas obtenidas con fetch
this.movimiento = new Object;
this.clasif_asiento = 1; // Pestaña superior. 1 = Egreso, 2 = Ingreso, 3= Mov. entre ctas.
this.mov... |
import { waitFor } from '@testing-library/react';
import { initDatabase, getAll, deleteDatabase, createItem, readItem, readItems, updateItem, deleteItem, moveItemUp, moveItemDown } from './Database';
import { getIndexedDB, getIDBKeyRange, getCurrentDate, getLocalStorage } from "./Global";
// implements EventTarget, d... |
"use strict";
/*
REPO: https://github.com/andiy/espruino/wiki/Qespruino_SPI
author: <EMAIL>
INTERNAL
qspi1.onerror=function(err){ ... }; // whenever an internal dma error occurs /w fallback implementation throwing Error(); this event should never occur during regular operation
KNOWN ISSUES
i#1 end of tran... |
var WebMesh = function(shaderPath, meshPath, options, callback){
this.model = mat4.create();
this.tmpModel = mat4.create();
this.mv = mat4.create();
this.mvp = mat4.create();
this.modelt = mat4.create();
this.DEBUG = false;
this.ready = false;
this.shaderPath = shaderPath;
this.... |
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy ... |
/**
@license
Copyright (c) 2017 Vaadin Ltd.
This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
*/
import { PolymerElement } from '@polymer/polymer/polymer-element.js';
import { templatize } from '@polymer/polymer/lib/utils/templatize.js';
import { afterNextRender } fro... |
import calendar from '../lib/calendarinit'
const bind = (fn, ctx) => {
return (...args) => {
return args.length ? fn.apply(ctx, args) : fn.call(ctx)
}
}
// 获取手指触摸点坐标
const getTouchPosition = (e) => {
const touches = e.touches[0] || e.changedTouches[0]
return {
x: touches.pageX,
... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
var ps;
var jcurrentFrame;
var currentAnimation;
var jcurrentBone;
var jframeGroup = [];
var jframeCopy = [];
var jframeCopyFrameCount;
var keys = [];
var jframeFlag = false;
var jcurrentTime;
var jstartFrame;
var isRunning = false;
var isOpera = !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0... |
$('button.show_nav').click(function(){
$('#main-nav').slideToggle();
});
$('.btn-group').live({
dblclick: function(e){
e.stopPropagation();
}
});
function changeHashTo(hash){
window.location.hash = suffix+hash;
}
function checkResponse(data)
{
if (data.status == "ERROR")
{
logErrorOnScreen(data.message);... |
import { Daemon } from "./daemon"
import { WalletRPC } from "./wallet-rpc"
import { Market } from "./market"
import { Pool } from "./pool"
import { ipcMain, dialog } from "electron"
import { logger } from "./pool/utils"
const os = require("os")
const fs = require("fs")
const path = require("path")
const objectAssignDe... |
import * as THREE from './build/three.module.js';
import { dracoBuildings } from './examples/MyModels/hasDraco.js';
import { GLTFLoader } from './examples/jsm/loaders/GLTFLoader.js';
import { DRACOLoader } from './examples/jsm/loaders/DRACOLoader.js';
import { BufferGeometryUtils } from './examples/jsm/utils/BufferGeom... |
$("#deckard-visual").load(function() {
console.log($(this).height($(this).contents().find("body").height()))
$(this).height( $(this).contents().find("body").height() );
});
/**
* Set up primary elements to be manipulated by functions
*/
//Set up primary ROS master
// var rosurl = 'ws://fleming.recuv.org'; //com... |
/* globals marked, unfetch, ES6Promise, Promise */ // eslint-disable-line no-redeclare
let doc = {};
if (!window.Promise) {
window.Promise = ES6Promise;
}
if (!window.fetch) {
window.fetch = unfetch;
}
onunhandledrejection = function(e) {
throw e.reason;
};
// PATCH
wtf.extend( window.wtfHtml );
var $loading... |
const dbOps = require('../util/dbOps.js')
const config = require('../config.json')
const MenuUtils = require('../structs/MenuUtils.js')
const FeedSelector = require('../structs/FeedSelector.js')
const log = require('../util/logger.js')
const EMBED_PROPERTIES = {
title: { name: 'Title', description: 'Title under... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServerCapabilities = exports.Topology = void 0;
const Denque = require("denque");
const timers_1 = require("timers");
const bson_1 = require("../bson");
const connection_string_1 = require("../connection_string");
const constants_1 = r... |
import React, { useEffect, useRef, useState } from "react";
import { fabric } from "fabric";
import { Box, Chip, useTheme } from "@material-ui/core";
import { useSnackbar } from "notistack";
import { useMeeting } from "@videosdk.live/react-sdk";
import { useMeetingAppContext } from "../../MeetingAppContextDef";
import ... |
var latexit = "http://latex.codecogs.com/svg.latex?";
var arr;
$(document).ready(function () {
"use strict";
var variables = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var jsav = new JSAV("av");
var arrow = String.fromCharCode(8594),
lastRow, // index of the last visible row (the empty row)
... |
import React from 'react';
import ReactDOM from 'react-dom'
import Cropper from 'react-cropper';
import './cropper.css';
var $ = require('jquery');
var Swipeable = require('react-swipeable')
var injectTapEventPlugin = require("react-tap-event-plugin");
injectTapEventPlugin();
//全局变量
var current_left_imgs = []
var cu... |
import React, { useState } from "react";
import { StaticImage } from "gatsby-plugin-image";
import { AnchorLink } from "gatsby-plugin-anchor-links";
import Fenetre from "../components/fenetre";
import CompteRendu from "../components/CompteRendu";
import SEO from "../components/seo";
import tergiBleu from "../images/C... |
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
function shouldBeArray(actual, expected) {
shouldBe(actual.length, expected.length);
for (var i = 0; i < expected.length; ++i) {
try {
shouldBe(actual[i], expected[i]);
... |
import React from 'react'
import { View, TextInput, Text, TouchableOpacity, StyleSheet, Keyboard, Image, FlatList, Animated, Easing, Alert, Platform } from 'react-native'
import { connect } from 'react-redux'
import { GiphyOption, Png, Words } from './'
//import { Video } from 'expo-av'
import { MaterialCommunityIcons,... |
import React, { useState, useRef } from 'react';
import ReactDOM from 'react-dom';
import Cytoscape from 'cytoscape';
import gridGuide from 'cytoscape-grid-guide';
import popper from 'cytoscape-popper';
import { useGraphState } from '../Contexts/GraphContext';
import DetailsDialog from './DetailsDialog/DetailsDialog';
... |
const translationMap = {
ui: { // Static UI elements
title: {
scriptLocation: {
en: 'Script Location',
zh: '脚本位置',
zh_tw: '腳本位置',
ru: 'Расположение скрипта',
de: 'Script Pfad',
pt_br: 'Locali... |
//下载路径
var exec = require('child_process').execSync
//useid是用户名
var whoami = exec('whoami').toString()
var useid = whoami.slice(whoami.indexOf('\\') + 1, whoami.length - 1)
var dow_path="/home/" + useid + "/" + "下载" + "/"
// var dow_path = "e:/下载/"
//用户数据
var path = require("path")
var yhsj= "/home/"+useid+"/.conf... |
// Dependencies
const luxon = require('luxon')
function Parser() {
const pdfColorIndex = [
'#000000', // 0
'#ffffff', // 1
'#4c4c4c', // 2
'#808080', // 3
'#999999', // 4
'#c0c0c0', // 5
'#cccccc', // 6
'#e5e5e5', // 7
'#f2f2f2', // 8
'#008000', ... |
import React, { Component } from 'react';
import { connect } from 'umi';
import { Checkbox, Modal, Table, message, Tree, Spin, Row, Col, Badge } from 'antd';
// import PageHeaderWrapper from '@/components/PageHeaderWrapper/';
// import { Link } from 'umi';
import moment from 'moment';
// import _ from 'lodash';
import ... |
// ==UserScript==
// @name AMQ Ladder Assist
// @namespace https://github.com/nyamu-amq
// @version 0.27
// @description
// @author nyamu
// @grant GM_xmlhttpRequest
// @connect script.google.com
// @connect script.googleusercontent.com
// @match https://animemus... |
import PureComponent from './PureComponent'
import React from 'react'
import BaseStyle from '../css/base.css'
import FaArrowCircleORight from 'react-icons/lib/fa/arrow-circle-right'
import {Button} from 'react-toolbox/lib/button'
import PropTypes from 'prop-types'
import {
fetchPathwayActivityMeans, getGeneSetsForVie... |
import { override } from 'core-decorators';
import { flatten, groupBy, isBoolean, isEmpty, isNull, pick } from 'lodash';
import Yoga from 'yoga-layout';
import { EventSource } from '../mis... |
import React, { useEffect, useState, useRef } from 'react'
import { makeStyles } from '@material-ui/core/styles'
import Card from '@material-ui/core/Card'
import CardContent from '@material-ui/core/CardContent'
import CardMedia from '@material-ui/core/CardMedia'
import Paper from '@material-ui/core/Paper';
import Grid ... |
const electron = require("electron");
const { on, send, open_box } = require("../../senders");
const doc = require("../doc");
const palette = require("../palette");
const keyboard = require("../input/keyboard");
const events = require("events");
let interval, guide_columns, guide_rows;
function $(name) {
return docu... |
'use strict';
/* global BlobView */
/* global parseJPEGMetadata */
/* global getImageSize */
/* global Downsample */
/* global cropResizeRotate, JPEGParser */
require('/shared/test/unit/mocks/mock_lazy_loader.js');
require('/shared/js/blobview.js');
require('/shared/js/media/jpeg_metadata_parser.js');
require('/share... |
"use strict";
var thingsToLoad = ["botanica/ui_background.png",
"botanica/grass.png",
"botanica/path.png",
"botanica/plot.png",
"botanica/rat.png",
"botanica/laser.png",
"botanica/cheese.png",
... |
import * as THREE from "../../lib/three/build/three.module.js";
import {ConvexBufferGeometry} from '../../lib/three/examples/jsm/geometries/ConvexGeometry.js';
let physicsWorld;
let tmpTrans;
let colGroupPlane = 1, colGroupBall = 2, colGroupConvex = 4, colGroupCompound = 8, colGroupMoveable = 16, colGroupTriangle = 32... |
import app from "./index.js";
import {
getFirestore,
collection,
addDoc,
getDoc,
onSnapshot,
deleteDoc,
doc,
updateDoc
} from "https://www.gstatic.com/firebasejs/9.1.2/firebase-firestore.js";
import { getAuth, onAuthStateChanged} from "https://www.gstatic.com/firebasejs/9.1.2/firebase-auth.js";
const a... |
'use strict';
const options = {
comment_fold: false,
display_all: true,
comment_log: true,
notification_music: true,
notification_comment: true,
timetable_max: 100,
wait_time: 3000,
interval_time: 1000,
color_threshold: 6,
};
async function main() {
Object.assign(options, await... |
/*
* test_TextDecoderOptions.js
* bug 764234 tests
*/
function runTextDecoderOptions()
{
const data = [0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1,
0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xbb,
... |
function saveAllRulesByAjax(){
if($('input[name=newname]').val() == ""){
$('input[name=newname]').focus();
$.alert('规则名称不能为空');
return false;
}
if(($('select[name=shippingMethodId]').val() == "") || ($('select[name=shippingMethodId]').val() == null)){
$.alert('运输服务不能为空');
return false;
}
... |
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
var assert = require("assert");
var logutils = require(process.mainModule.exports.corePath +
"/src/serverroot/utils/log.utils");
var commonUtils = require(process.mainModule.exports.corePath +
... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var antd = require('antd');
var moment = require('moment');
require('moment/locale/zh-cn');
var styled = require('styled-components');
var lodash = require('lodash');
function _interopDefaultLegacy (e) { return... |
'use strict'
// TODO: preview more information on item in notifications. OnPlay preview could include basic info like
// media title, season/episode numbers, artist/album/TV show
// TODO: ctrl+click InfoLabels and Booleans to add to custom list
// TODO: Switch to turn ListItem InfoLabels into Container.ListItem, may... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------... |
// global imports
const St = imports.gi.St;
const Clutter = imports.gi.Clutter;
const Lang = imports.lang;
const PopupMenu = imports.ui.popupMenu;
const Pango = imports.gi.Pango;
const GLib = imports.gi.GLib;
const Gio = imports.gi.Gio
const MessageTray = imports.ui.messageTra... |
/* eslint react-native/split-platform-components: 0 */
import { Alert, PermissionsAndroid, Platform, NativeModules, NativeEventEmitter } from 'react-native';
import BleManager from 'react-native-ble-manager';
import DeviceSettings from 'react-native-device-settings';
import { pushTabsScreen } from '../navigation/navig... |
/**
* Main file that controls the layout flow
*
* @author <NAME>
*
* @copyright i-Vis Research Group, Bilkent University, 2007 - present
*/
const HashMap = require('cose-base').layoutBase.HashMap;
const PointD = require('cose-base').layoutBase.PointD;
const DimensionD = require('cose-base').layoutBase.DimensionD... |
/**** Start of imports. If edited, may not auto-convert in the playground. ****/
var l8 = ee.ImageCollection("LANDSAT/LC8_L1T_TOA"),
water_15 = ee.Image("users/gena/AU_Murray_Darling/MNDWI_15_water_WGS"),
fa = ee.Image("users/gena/AU_Murray_Darling/SRTM_30_Murray_Darling_flow_accumulation");
/***** End of impor... |
import {chat} from './ChatFlow.js'
import { db, fd, database } from './DataKeeper.js'
import {Message} from './Utils.js'
import {validate} from '../Dependencies/Index.js'
//--------TODO--------//
/**
* Validação de cpf
* Validação de email
* Respostas recorrentes está substituindo o ~def~
* Revisar a parte de reti... |
// click, right-click
frameRate(30);
mouseX=width>>1|7;
mouseY=height>>1|7;
var world=[
[
{p:[[0,0,3],[0,3,3],[0,3,0],[0,0,0]], i:-1},
{p:[[4,0,3],[4,3,3],[0,3,3],[0,0,3]], i:-1},
{p:[[0,3,3],[4,3,3],[4,3,0],[0,3,0]], i:-1},
{p:[[0,3,0],[4,3,0],[4,0,0],[0,0,0]], i:-1},
... |
var annotations = new Annotations();
var map;
var geojson = {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [0, 0]
},
"properties": {
"title": ""
}
}]
};
var pointCount = 0;
function Annotations(){
}
Annotations.prototype.bindA... |
/******************************************************************************
Server main
*******************************************************************************/
'use strict';
// include libraries
var path = require('path'),
express = require('express'),
bodyParser = require('body-parser'),
c... |
var TextualExtractor = fabric.util.createClass(fabric.Rect, {
// type: 'textExtractorExtractor',
isTextualExtractor: true,
getExtractorType: function () {
return TEXT_RECOGNIZER;
},
toXML: function () {
var theTextRecogniser = this;
var textRecogniserNode = createXMLElement("... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions/index';
import { bindActionCreators } from 'redux';
import ReactDom from 'react-dom';
import { withStyles } from 'material-ui/styles';
import Card, { CardTitle, CardActions, CardContent, CardMedia } fro... |
import { clipboard } from "electron";
import { push as pushHistory, goBack } from "react-router-redux";
import eq from "lodash/fp/eq";
import * as wallet from "wallet";
import * as selectors from "selectors";
import { getWalletCfg } from "config";
import { pause } from "helpers";
import { TransactionDetails } from "mi... |
import * as Cesium from 'cesium'
import TilesetUtil from '@/dc/util/TilesetUtil'
import TerrainUtil from '@/dc/util/TerrainUtil'
import { LogUtil } from '@/dc'
const matrix3Scratch = new Cesium.Matrix3()
const matrix4Scratch = new Cesium.Matrix4()
const cartesian3 = new Cesium.Cartesian3()
const matrix4Scratch2 = new ... |
import { PolyfillObjectMixin,ArrangeParamsByType,Disposables,ChannelNode} from 'bg-dom';
import fs from 'fs';
// <itemSpec> is a syntax to specify one or more matching item URI. It can be specified as a literal regex or as a string with the
// following syntax. The string form allows embedding <itemSpec> in a larger D... |
// const transverse = require("@babel/traverse");
const types = require("@babel/types");
const template = require("@babel/template").default;
const stateAnnotation = /^\s*@state\s*$/;
const setStatePrefix = "SET__";
const statePrefix = "__";
const DUMMY_NAME = `_RN_${genVar()}`;
const initTag = "@ -% init %-";
let ann... |
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// NOTE: If you're adding new test harness functionality -- f... |
/*
Copyright (c) 2014-2016, <NAME>, http://xctia.org.
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 must retain the above copyright notice, this
list of conditions an... |
var express = require('express');
var router = express.Router();
var keys = require('./keys');
var clientIdFitbit = keys.IdFitbit;
var clientSecretFitbit = keys.SecretFitbit;
var redirectURIFitbit = keys.URIFitbit;
var encodedSecretAndClientFitbit = Buffer.from(clientIdFitbit+':'+clientSecretFitbit).toString('base64');... |
/*
PLANS :
- Secure two rooms and remote mine all adjacent rooms with defense against invaders
- Handle two rooms
- if remote mining, handle killing hostile creeps
- use logistics + container to maximize remote mining
- write auto-upgrading of miner/hauler pairs if energy is available
-... |
/*
A begineer exercise work
Change the original game vertical direction to horizental
Origina from https://github.com/straker/galaxian-canvas-game
And tutorials http://blog.sklambert.com/html5-canvas-game-2d-collision-detection/
*/
var game = new Game();
var lastFrame = Date.now();
var thisFrame;
var elapsed;
var avgF... |
import React,{useState,useCallback,useRef} from "react";
import { GoogleMap,useLoadScript,Marker,InfoWindow} from "@react-google-maps/api";
import usePlacesAutocomplete, {getGeocode,getLatLng,getZipCode} from "use-places-autocomplete";
import Geocode from 'react-geocode'
import {Combobox,ComboboxInput, ComboboxPopover,... |
// Artificial Intelligence
// SPIDERMAN: A* Search Algorithm + Voice Processor
// Notes: Graph init node must start with 1, the next nodes must follow the sequence
// TODO: Check Data
class AStar {
constructor(graph, coordinates) {
this.graph = graph;
this.coordinates = coordinates;
}
// n... |
import { Vector3 } from '../math/Vector3';
import { Box3 } from '../math/Box3';
import { EventDispatcher } from './EventDispatcher';
import { BufferAttribute, Float32BufferAttribute, Uint16BufferAttribute, Uint32BufferAttribute } from './BufferAttribute';
import { Sphere } from '../math/Sphere';
import { DirectGeo... |
'use strict';
var expect = require('chai').expect;
var verquire = require('../utils/verquire');
var testutils = require('./../utils/index');
var Excel = verquire('excel');
var Range = verquire('doc/range');
describe('Worksheet', function() {
describe('Values', function() {
it('stores values properly', function... |
// Copyright 2006 The Closure Library Authors. All Rights Reserved.
//
// 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... |
var _log = function() {
var context = "[TOUCH]";
return Function.prototype.bind.call(console.log, console, context);
}()
var log = function() {
//do nothing
}
Module.register("MMM-Touch", {
defaults: {
debug: false,
useDisplay: true,
autoMode: false, // false || [] == disabled or an array of:
... |
// JS code for visualization of pavement condition data for non-interstate highways.
// Code written by <NAME>, 2016.
// Contact: <EMAIL>
// Modified by <NAME> to reflect change to 97-town MPO, and migration of backing database to PostgreSQL.
// Contact: <EMAIL>
//
var CTPS = {};
CTPS.demoApp = {};
var f = d3... |
/**
* Module dependencies
*/
var util = require('util');
var _ = require('@sailshq/lodash');
var rttc = require('rttc');
var flaverr = require('./private/flaverr');
var helpConfigureMachineInstance = require('./private/help-configure-machine-instance');
var buildInspectFn = require('./private/build-inspect-fn');
var... |
import classnames from 'classnames';
import defaultImg from 'themes/images/default/default.jpg';
import defaultUserIcon from 'themes/images/default/userIcon.png';
import defaultBg from 'themes/images/others/mineBg.png';
import config, { userTag } from './config';
import request from './request';
import cookie from './c... |
/*
Written by <NAME> on 28 Oct 2019
NaivePlanner() - onclick function for the button
ConfirmDialog() -- function to create a pop up confirmation of the enrollment of a course
overload() -- function to retrieve info when toggled overload
EnrollMod() -- function to update mod taken, add mod to calendar, remove mod from ... |
/*---------------------------------------------------------------------------------------------------
Copyright (c) 2013 Intel Performance Learning Solutions Ltd, Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.... |
import forEach from '../util/forEach'
import isPlainObject from '../util/isPlainObject'
import isFunction from '../util/isFunction'
import isString from '../util/isString'
import EventEmitter from '../util/EventEmitter'
import uuid from '../util/uuid'
import Selection from '../model/Selection'
import SelectionState fro... |
var config, lights, groups, rules, scenes, schedules, sensors
var host = localStorage.getItem('nodecg-hue.hueHost');
var username = localStorage.getItem('nodecg-hue.hueUsername');
// dashboard
var hsvColorPreview, rgbColorPreview, xyColorPreview, ctColorPreview;
var rInput, gInput, bInput, rSlider, gSlider, bSlider;
va... |
// GLOBAL VARIABLES
const body = document.querySelector('body')
const wrapper = document.querySelector('.wrapper')
let overlay;
let nextBtn;
let prevBtn;
let dotContainer;
let heading;
let description;
let onboardingBox;
// syncWithLS takes two arguments: (itemNameLS, defaultValue)
let onboardingComplete = syncWithLS("... |
'use strict';
'use strict';
/**
* UtilUrl -
* 1) get titles from url
*/
/**
* Created with IntelliJ IDEA.
* User: hkon
* Date: 3/3/13
* Time: 3:55 PM
* To change this template use File | Settings | File Templates.
*/
//var UtilUrl = require('C:/utd/141213UtdV6/public/util/UtilUrl.js');
var O = require('C:/utd... |
/**
* Copyright 2012 Infogosoft
*
* This file is part of jsdicom.
*
* jsdicom 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.
*
* jsdicom is ... |
//import { info } from './info.js';
//import { loadedTables } from './tables.js';
//import { theme } from './themes.js';
//import { sidebarNav } from './sidebarNav';
//import { topNav } from './topNav';
//import { components } from './components.js';
//import { createModal } from './createModal';
//import { createTable... |
// (c) Copyright 2017-2019 SUSE LLC
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
'use strict';
const { eventTypes, rewardTypes, opts } = require('./resources/trackables.json');
const { Collection } = require('discord.js');
const fissures = ['fissures.t1.excavation', 'fissures.t1.sabotage', 'fissures.t1.mobiledefense', 'fissures.t1.assassination', 'fissures.t1.extermination',
'fissures.t1.hive'... |
window.addEventListener('load', function(){
//Funcion para cargar las histrias
$('#hp').click(function(){
idp=$('#nhis').val();
token=$('#token').val();
if(idp==''){
alertify.error('Seleccion primero un paciente')
}else{
$('#historiaPaciente'... |
/**
* TO V2 speed table
* calls function(gross weight (t)) which returns CAS.
* Indexes: 0 - Config 1 + F, 1 - Config 2, 2 - Config 3.
* Sub-Indexes: 0 to 9 represent gross weight (t) in 5t steps from 40 to 80.
*/
const to = [
[
() => 126,
() => 126,
() => 126,
(m) => 126 + 0.2 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.