text
stringlengths
3.22k
29.5k
'use strict'; import Edge from './do/Edge'; import DataManager from './DataManager'; import InteractionManager from './InteractionManager'; import geometry from './utils/geometry'; import d3 from 'd3'; /** * Private variables/consts */ const TRANSITION_DURATION = 100; /** * @param entity * @returns {number} */ ...
///////////////////////////////////////////////////////////////////// // Copyright (c) Autodesk, Inc. All rights reserved // Written by Forge Partner Development // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that...
import path from 'path'; import PSD from '@porky-prince/psd'; import Group from './model/Group'; import getLayout from 'layout'; import Option from './option/Option'; import { createPng, readPng, writePng } from './utils'; import { Font } from './model/Font'; import { FNT_EXT, PNG_EXT, SPACE, TAB } from './const'; impo...
import {GL, Debug, ResizeEvent} from './Context'; import {State as Input} from './Input'; import {glMatrix, vec3, mat4} from 'gl-matrix'; import Mesh from './Mesh'; class Camera { constructor(level) { /* Camera */ this.height = 2; this.cameraOffset = this.height * 0.375; this.fov = glMatrix.toRadian(75); th...
#!/usr/bin/node /** * Required modules */ var fs = require('fs'), cli = require('cli'), Promise = require('bluebird'), AWS = require('aws-sdk'), bind = require('dns-zonefile'), region; /** Parse CLI commands */ cli.parse({ log: ['v', 'Enable verbose logging'], awsKey: ['k', 'AWS access key (I...
var servers = { // all of these need to be made https, can't upload to http from an https page spark: "http://spark.furore.com/fhir", fhir2: "http://fhir2.healthintersections.com.au/open", fhir3: "http://fhir3.healthintersections.com.au/open", hapi2: "http://fhirtest.uhn.ca/baseDstu2", hapi3: "h...
const Tado = require('node-tado-client'); const TadoHeatingZone = require('./tado-heating-zone'); const TadoMobileDevice = require('./tado-mobile-device'); const TadoHomeDevice = require('./tado-home-device'); const TadoApi = require('./tado-api'); /** * Initializes a new platform instance for the Tado plugin. * @...
import ru from 'date-fns/locale/ru'; import $ from "jquery"; import React from 'react'; import DatePicker, { registerLocale } from "react-datepicker"; import "react-datepicker/dist/react-datepicker.css"; import { BrowserRouter } from 'react-router-dom'; import './Appoint.css'; import Filters from './Filters'; import Li...
let eq = (a, b) => a == b; /*let arrayEq = function(ra, rb) { let isA = Array.isArray(ra); let isB = Array.isArray(rb); if (isA !== isB) return false; // one is array and the other isn't if (isA === false && isB === false) return eq(ra, rb); // to handle non-arrays and also the recursive step if (ra.length !...
import React, { useState, useEffect, useRef } from 'react' // utility import KeyBoardEventHandler from 'react-keyboard-event-handler' import produce from 'immer' // style import './SnekBoard.css' // assets // assets[props] import { buildBoard as defaultBoard } from './assets/board' // assets[methods] import {genEdi...
import React, {useState} from 'react'; import { View, Text, StyleSheet, Dimensions, TouchableOpacity, BackHandler, Platform, ToastAndroid, } from 'react-native'; import {Icon, Image} from 'react-native-elements'; import {getStatusBarHeight} from 'react-native-status-bar-height'; import {NavigationCo...
/* WAV2SKETCH utility - converts audio files to Teensy code Javascript version by <NAME>, converted from original by <NAME> HOW IT WORKS: File loader listens for a user choosing a file Check desired sample rate and encoding If no desired sample rate chosen, file's header is read to see if the sample rate c...
import findIndex from 'lodash.findindex' import clonedeep from 'lodash.clonedeep' import { filtersToQueryData, queryStringToSearchType, queryToFilterData, } from '~/utils/search-query-transform' import { ALL_MEDIA, AUDIO, IMAGE, supportedSearchTypes, } from '~/constants/media' import { UPDATE_QUERY, ...
var fs = require('fs'); var q = require('q'); var EventEmitter = require('events').EventEmitter; var gulp = require('gulp'); var rg = require('rangle-gulp'); var inject = require('gulp-inject'); var colors = require('colors'); var runSequence = require('run-sequence'); var angularFileSort = require('gulp-angular-fileso...
// A helper class to send OGN. // Used by the payout pipeline. const BigNumber = require('bignumber.js') const Logger = require('logplease') const Token = require('@origin/token/src/token') Logger.setLogLevel(process.env.LOG_LEVEL || 'INFO') const logger = Logger.create('tokenDistributor') // To avoid paying exorbi...
//generates the buddhist quotes function createOneBuddhistQuote(){ var buddhistQuotes = [ {firstPart: "Todo vuestro cuerpo", secondPart: "se llenara", thirdPart:"de luz."}, {firstPart: "Antes de entrar,", secondPart: "en el templo", thirdPart: "perdonen."}, {firstPart: "La presencia es conciencia pura",...
blankCitation = { 'author': null, 'quals': null, 'title': null, 'date': null, 'org': null, 'selection': null, 'link': null }; myCitation = blankCitation; defaultFormat = '[a, q, o, "t," d, l]'; defaultDateFormat = 'MM/dd/yy'; defaultCopyToClipboard = true; defaultDateAccessed = false; defaultAddInitials...
'use strict' import "./Playlist.scss" import {DraggablePlaylistItem} from "../PlaylistItem"; import PropTypes from 'prop-types' import React, { useState, useCallback } from 'react' import {useSocket, useSocketState} from '../../hooks/useSocket'; import url from 'url' import { DndProvider, useDrop } from 'react-dnd' i...
const yaml = require("js-yaml"); const { DateTime } = require("luxon"); const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight"); const pluginRss = require("@11ty/eleventy-plugin-rss"); const htmlmin = require("html-minifier"); const Image = require("@11ty/eleventy-img"); /** * Converts strings to slu...
function getJobUrl(type) { if(type){ var url = "/m/getJobList.html"; }else{ var url = "/m/postList.html"; } var paramarr = new Array(); if ($("#city").val()) { paramarr.push("city=" + $("#city").val()); } if ($("#trade").val()) { paramarr.push("trade=" + ...
import ObjectUtil from "utils/ObjectUtil"; import UUID from "utils/UUID"; import Events from "utils/Events"; import Audio from "media/Audio"; var cache = {}; var audioContext; var masterGain; function createMasterGain() { if (audioContext) { masterGain = (audioContext.createGain === undefined) ...
var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } r...
import { AddressForm } from '@shopify/theme-addresses'; import MicroModal from 'micromodal'; import '../css/customers.scss'; const form_action = '/account/addresses'; const classes = { hidden: 'hidden', add_address: 'add-address', edit_address: 'edit-address', }; class Customer { constructor(){ this.sel...
/** * Version of Phasmophobia evidence and hints are based on * NOTE: * Minor patches and bug fixes that don't alter the "planned" ghost behavior are ignored. * Only updates that change or introduce ghost behaviour will trigger a version update. * For example if a new ghost is added at version 5, but there was...
import _ from 'lodash'; import SQLite from 'react-native-sqlite-storage'; import {convertHash, Lenguaje} from '../utils'; let DB; const closeDatabase = () => { // console.log('Closing', DB) if (DB) { // console.log("Closing database ..."); DB.close(closeCB, errorCB); } else { // console.log("Databas...
const hre = require("hardhat") const {ethers} = require("hardhat"); const admin = '0x5D52Be75de735461D8C81bAea74005657A470EF9'; let tombCa = '0xBEf8F941F0b9FF97355435974fa2a124b647C8e1'; let tShareCa = '0x5853C51ED3Bd8818F234A0783A82fDe7D65A34bd'; let tBondCa = '0x49f458c147B58D24D4023583872976e45862813b'; let genPool ...
const vscode = require('vscode') let likes = [] let list = [] let random = [] let mode = 0 let index = 0 let dynamic = null const compact = song => interaction.utility.extract(song, ['id', 'name', 'cover', 'album', 'artists', 'source']) const intelligence = (history = {}) => { let origin = list, start = history.sta...
$(() => { $("#form").submit(onSubmit); const url = new URL(window.location.href) const search = url.searchParams; const start = search.get("start"); if (start) { $("#start-page").val(start); } const target = search.get("target"); if (target) { $("#target-page").val(target); } }); let worker ...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import autoPrefix from '../utils/autoPrefix'; import transitions from '../styles/transitions'; function getRelativeValue(value, min, max) { const clampedValue = Math.min(Math.max(min, value), max); return clampedValue / (max - min); } fun...
var _autoselects = []; function autoselectInit() { var els = document.getElementsByClassName("form-autoselect"); for (var i=0; i<els.length; i++) { if (!els[i].className.match("autoselect-init")) { els[i].addClass("autoselect-init"); _autoselects.push(new autoselect(els[i])); } } if...
var start = 0; var end = 0; $(document).ready(function() { /* var typeaheadCate = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.obj.whitespace('name'), queryTokenizer: Bloodhound.tokenizers.whitespace, limit: 3, remote: { url:'http://172.31.222.72:9000/bdbkDemo/json/getTy...
"use strict"; // WASI POLYFILL for WAPY const wlog = console.log const nav_start_ns = performance.timing.navigationStart * 1_000_000 const ViewSlots = { u8 : "Uint8", u16 : "Uint16", u32 : "Uint32", u64 : "BigUint64", i8 : "Int8", i16 : "Int16", i32 : "Int32", i64 : "BigInt64", } va...
"use strict"; var root = document.createElement("div"); root.innerHTML = "<p>" + doLesson() + "</p>"; document.body.appendChild(root); function doLesson() { return algoritimo23(); // algoritimo22(); // algoritmo21(); // algoritmo20(); // algoritmo19(); // algoritmo18(); // algoritmo17(); ...
/* Copyright (c) 2018-2019 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: * Redistributions of source code must retai...
var gulp = require('gulp'); var args = require('yargs').argv; var browserSync = require('browser-sync'); var config = require('./gulp.config')(); var del = require('del'); var $ = require('gulp-load-plugins')({ lazy: true }); var port = process.env.PORT || config.defaultPort; var tasklist = require('gulp-task-listing')...
#!/usr/bin/env node // vim: set filetype=javascript: // mtrader-broker.js /* * Copyright (c) 2019 <NAME>, Some 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 c...
var checkFlag = { bondcd: false, checkState: "1" //债券代码复核标识 1复核 2未复核 }; //非空项检查 function bcheckNull() { var x = $("#accountdate1_date").val().split("-"); var z = $("#transactiondate").val().split("-"); var accountratecd = $("#accountratecd").val(); var dt1 = new Date(); var dt3 = new Date()...
var fs = require('fs'); var _ = require('underscore'); var path = require('path'); var gutil = require('gulp-util'); var chalk = require('chalk'); /* 递归处理文件,文件夹 path 路径 floor 层数 handleFile 文件,文件夹处理函数 */ function walkSync(path, floor, handleFileSync) { handleFileSync(path, floor); floor++; var files = fs.re...
function Bubbles(container, self, options) { options = typeof options !== 'undefined' ? options : {} animationTime = options.animationTime || 200 typeSpeed = options.typeSpeed || 5 widerBy = options.widerBy || 2 sidePadding = options.sidePadding || 6 recallInteractions = options.recallInteractions || 0 in...
$(function () { $("#jqGrid").jqGrid({ url: baseURL + 'test/stressParamFile/list', datatype: "json", colModel: [ {label: '文件ID', name: 'fileId', width: 30, key: true}, // {label: '用例ID', name: 'caseId', width: 35}, {label: '用例名称', name: 'caseName', width: 3...
var hyperquest = require('hyperquest') , jsonist = require('jsonist') , through2 = require('through2') , assert = require('assert') , level = require('level') , rimraf = require('rimraf') , moment = require('moment') , NpmDownloadDb = require('./') var dbdir ...
const request = require('request') /* Base url : https://splatoon2.ink/data/schedules.json */ let langs = { fr: { "tower_control": "Expédition risquée", "claim_blitz": "Pluie de palourdes", "splat_zones": "Défense de zone", "rainmaker": "Mission bazookarpe", "regular": "Guer...
'use strict'; const request = require('request'); const config = require('./config/config'); const async = require('async'); const fs = require('fs'); const NodeCache = require('node-cache'); const tokenCache = new NodeCache({ stdTTL: 5 * 60 }); let Logger; let requestWithDefaults; const MAX_PARALL...
require('dotenv').config(); const PORT = process.env.PORT || 7001; const express = require('express'); const exphbs = require('express-handlebars'); const bodyParser = require('body-parser'); const flash = require('express-flash'); const session = require('express-session'); const passport = require('passport'); const...
import m from '../modules/mithril.js'; export let navBar = { view: function() { return [ m('nav.navbar', {role: 'navigation', 'aria-label': 'main navi'}, m('.navbar-brand', m('a.navbar-item[href=/#/home/]', m('img', {src: './logo-shield.png'}), ), m('a.navbar-burger.burger', {role: 'butt...
const express = require('express') const router = express.Router() var jsonQuery = require('json-query') var nunjucks = require('nunjucks') var env = nunjucks.configure() // Create array of search results router.get('/options-choice/*/local-priorities', function (req, res) { // check for data if (!req.session.d...
import React, { useState, useEffect } from 'react'; import { Text, Dimensions, TouchableWithoutFeedback, Image, View, ScrollView, SafeAreaView, } from 'react-native'; import styles from './styles'; import { ICONS } from '../../config/images'; import Following from './Following'; import Popular from './Pop...
/* * Copyright 2021, GeoSolutions Sas. * 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. */ import { useEffect, useState, useRef } from 'react'; import { useSwipeable } from 'react-swipeable'; /** * useSwi...
var map,siteSelWMS, layerURL = "http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer"; var wfstLayer; var innundationWMS; var button2025,button2075,button2000,button2050,button3000; var DeleteFeature = OpenLayers.Class(OpenLayers.Control, { initialize: function(layer, option...
/*global jQuery, Handlebars, Router */ Handlebars.registerHelper('eq', function (a, b, options) { return a === b ? options.fn(this) : options.inverse(this); }); // 13 is the key number for the enter key const ENTER_KEY = 13; // 27 is the key number for the escape key const ESCAPE_KEY = 27; // utils or the todo app...
// vim: noexpandtab // ***** Project Page File Listing ***** function ProjFileList() { this._project = ""; this._team = null; //allow for an auto refresh this._timeout = null; //how often to retry an auto update -- this only occurs if an update failed, in seconds this._refresh_delay = 3; //when was it 'born', ...
import React, {Component} from 'react'; import {connect} from "react-redux"; import { bindActionCreators } from 'redux'; import {setMiniHeights} from '../../actions' import {CIRCLE_RADIUS, HANDLER_COMMON_PROPS, MIN_HANDLER_RECT_WIDTH, MIN_HANDLER_RECT_HEIGHT} from '../../constants/handler'; class MiniHandlers extends ...
import React, { useState } from 'react'; import { SafeAreaView, StyleSheet, TouchableOpacity, Image, View, Text } from 'react-native'; import { KeyboardAwareFlatList } from 'react-native-keyboard-aware-scroll-view'; import firestore from '@react-native-firebase/firestore'; import LottieView from 'lottie-rea...
//1 function countOfNegatives(a) { return a.filter(x => x < 0).length; } //2 function isPrime(input) { if (!Number.isSafeInteger(input) || input <= 0) { throw "error"; } if (input === 4) { return false; } for (let i = 2; i < Math.sqrt(input); i++) { if (input % i === 0) { return false; ...
import { OBJECT_TO_STRING, OBJECT_HAS_OWN, OBJECT_KEYS } from "../../native/object"; import { OBJECT_SIGNATURE, ARRAY_SIGNATURE, TYPE_SYMBOL, TYPE_STRING, TYPE_NUMBER, TYPE_OBJECT } from "../../native/constants"; import { MATH_MAX } from "../../native/math"; const ACTION_GET_PATH = 0; const ACTION_...
#!/usr/bin/env node const { execSync } = require('child_process') const { existsSync, readFileSync } = require('fs') const { join } = require('path') const yaml = require('js-yaml') const chalk = require('chalk') const DELIMITER = '::\t' function detectSLSConfig(argv) { if (!argv.serverless) { const paths = [ ...
// width and height allocated to element containing the app in the DOM const winWidth = window.innerWidth; const winHeight = window.innerHeight * 0.901; // Create element to attach app to DOM const canvas = document.querySelector("#app"); // Aliases const Application = PIXI.Application, Container = PIXI.Container, ...
import observer from '@cocreate/observer'; import './index.css'; let ignore = '#dropMarker, script'; function initVdom() { let virtualDom = document.querySelector("[vdom-target]"); let selector = virtualDom.getAttribute('vdom-target'); if (!selector) return; let realDom = document.querySelector(selector); if(re...
import React, { useState, useEffect, memo } from 'react'; import { Modal, Button, Input, Table, Radio, Popconfirm } from 'antd'; import cloneDeep from 'lodash/cloneDeep'; import './index.scss'; let prevConfig = null; // { // "XPath": ["//a[text()='工单管理']", "/html/body/div[1]/ul[1]/li[2]/a[1]"], // "JSpath": ["bo...
const EventEmitter = require('events'); const mongoose = require('mongoose'); const async = require('async'); const Config = require('./../../config.js'); const CrawlConfig = require('./../../crawl.config.js'); const ProxyManager = require('./../proxy/ProxyManager.js'); const Bridge = require('./../../phantomjs/Bridg...
/** * Copyright 2018 Shape Security, 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 a...
/** * Copyright 2015 The AMP HTML 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 require...
var browser = null; var map = null; var renderer = null; var woodTexture = null; var cubeMesh = null; var cubeShader = null; var cubeState = null; var animationTime = 0; var timeStart = 0; (function startDemo() { // create map in the html div with id 'map-div' // parameter 'map' sets path to the map which will...
import React, { useContext } from 'react' import { Input, Menu, Segment, Checkbox, Grid, Header, Icon, Image, Sidebar, Transition, List, Button, Table, Tab, Modal,Divider, Form,Dropdown } from 'semantic-ui-react'; import * as moment from 'moment'; import { useParams, Link, useRouteMatch } ...
/* Name: xt009 Description: XT009 GPS server for Node.js Author: <NAME> (https://frankl.in) Modified by: <NAME> Source: https://github.com/darioniz/nodejs-xt009 Fork of: https://github.com/fvdm/nodejs-tk102 */ var net = require('net'); var EventEmitter = require('events').EventEmitter; var x...
class Main { constructor() { this.colonne = 7; this.ligne = 7; this.tableauPrincipal = []; this.nbObstacle = 13; this.caractereObstacle = "#"; this.tableauArme = []; this.tableauJoueur = []; this.nbPersoMax = 2; this.joueur1; this.jou...
import './App.css'; import React from 'react'; import SignInButton from './SignInButton'; import PlaylistAdd from './PlaylistAdd'; import TrackList from './TrackList'; import Cookies from './cookies'; import Step from './Step'; import LoadingButton from '@mui/lab/LoadingButton'; import { Alert, Button, Link, Snackbar ...
const { xy, number_string } = require("../../../libtowers/utils.js"); const { Game, Tower } = require("../../../libtowers/libtowers.js"); const Draw = require("./draw.js"); const { UI } = require("./ui.js"); const { FG, BG } = require("./colors.js"); class CanvasManager { constructor(canvas, columns=20, rows=13, w...
function tryDraw(digraph) { var result = dagre.dot.toObjects(digraph); result.edges.forEach(function(e) { if (!e.label) { e.label = ""; } }); result.nodes.forEach(function(node) { node.inEdges = []; node.outEdges = []; }); result.edges.forEach(function(edge) { edge.source.outEdges.push(edge); ...
const $ = require("jquery"); require("jquery-easing"); require("./templates"); require("jquery-mousewheel")($); const clipboard = require("clipboard-polyfill"); const contract = require("./contract"); const socket = require("./socket-client"); module.exports = (function () { let client = {}; let errorFlag...
import Phaser from 'phaser' import { gameOver } from '../score' /** * * @param {Phaser.Scene} scene * @param {number} totalWidth * @param {string} texture * @param {number} scrollFactor */ // ASSIGNMENTS let facing = '' let wall let creditTrigger let floor let tutors let player let diploma let credits let credi...
import React from 'react' import { Helmet } from 'react-helmet' import { withPrefix } from 'gatsby' import { CookiesProvider, useCookies } from 'react-cookie' import styled from 'styled-components' import { ThemeProvider } from 'styled-components' import useSiteMetadata from './SiteMetadata' import Footer from '../co...
var mDebugging=2 oCMenu=new makeCoolMenu("oCMenu") oCMenu.useframes=0 oCMenu.frame="frmMain" oCMenu.useNS4links=1 oCMenu.checkselect=0 oCMenu.offlineUrl="file:///C|/Inetpub/wwwroot/dhtmlcentral/" oCMenu.onlineUrl="http://www.dhtmlcentral.com/" oCMenu.pagecheck=1 oCMenu.checkscroll=2 oCMenu.resizecheck=1 oCMenu....
const klay = require('klayjs'); const assign = require('./assign'); const defaults = require('./defaults'); const klayNSLookup = { addUnnecessaryBendpoints: 'de.cau.cs.kieler.klay.layered.unnecessaryBendpoints', alignment: 'de.cau.cs.kieler.alignment', aspectRatio: 'de.cau.cs.kieler.aspectRatio', borderSpa...
'use strict'; goog.provide('Blockly.Arduino.VisionSensor'); goog.require('Blockly.Arduino'); var kMuName = 'Mu' var funMuVs2GetColorRCGLabel = '\ int MuVs2GetColorRCGLabel(MuVisionSensor& Mu, int x, int y) {\n\ static int x_last = -1;\n\ static int y_last = -1;\n\ x = x>100 ? 100:(x<0 ? 0:x);\n\ y = y>100 ? ...
import { QueueTask, CreepTask, findQueueTask, State, takeFromStore, Task } from "./Task"; import { info, error } from "../Logging"; import { INFINITY, BUILD_PRIORITY, BUILD_DEFAULT_PRIORITY, PRIORITY_LEVEL_STEP, Role } from "../Constants"; import { Frankencreep } from "../FrankenCreep"; import "../GameObjects/Game"; i...
import React from 'react'; import Head from 'next/head'; import style from '../styles/pages/index.less'; export function binToNumber (arr) { return arr.reduce((memo, el) => ((memo << 1) | el), 0); }; export function last (arr) { return arr[arr.length - 1]; } export const ElementaryCellularAutomata = { CELL_ON...
import React, { useEffect, useState } from 'react' import { Link, navigate } from 'gatsby' import styled from '@emotion/styled' import firebase from 'gatsby-plugin-firebase' import { getProfile } from '../utils/firebase' import { useAppContext } from '../services/context' import { Button, Div, colors, FlexRow, H1, Con...
var Alexa = require('alexa-sdk'); var speechOutput = ' '; var reprompt = ' '; var cardTitle = 'Nursery Rhymes'; var cardContent = ' '; var imageObj = {}; var check = ' '; exports.handler = function(event, context, callback) { var alexa = Alexa.handler(event, context); alexa.registerHandlers(handlers); ale...
// Draakon Arena (Hard) // WIP // made by ?_? let player, entity, library, effect; const {HIGHLIGHT_ITEM, SpawnItem, SpawnMarker, SpawnVector, SpawnCircle} = require("../lib"); module.exports = { load(dispatch) { ({ player, entity, library, effect } = dispatch.require.library); }, //RESS Bait //Range Check...
"use strict"; /* * Copyright (C) 2017-2020 HERE Europe B.V. * Licensed under Apache 2.0, see full license in LICENSE * SPDX-License-Identifier: Apache-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.MapRenderingManager = void 0; const harp_materials_1 = require("@here/harp-materials");...
import { getStoredDurations, saveStoredDurations } from './storage/durations'; import { getDefaultResetOnInteraction, saveDefaultResetOnInteraction } from './storage/interaction'; import { getPageTimers, addPageTimer, removePageTimer, savePageTimers } from './storage/timers'; import * as Messages from '../messages'; im...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); function _createForO...
import React, { Component } from 'react'; // import 'bootstrap/dist/css/bootstrap.min.css'; // import 'mdbreact/dist/css/mdb.css'; import { TableRow, td } from 'material-ui'; import { Button as BTTN, Icon } from 'semantic-ui-react'; import { Initial } from 'react-initial'; import { Redirect } from 'react-router-dom'; i...
"use strict"; const path = require("path"); const fs = require("fs"); const readdir = require("util").promisify(fs.readdir); const readline = require("readline"); const Guide = require("./guide"); /** * @typedef {import("../../index").deps} deps */ class Zone { /** * Creates an instance of Zone. * @param {de...
const fs = require('fs') let Vue = require('./vue.js') const {ipcRenderer} = require('electron'); let comicCount = 0; let oldChapterId = undefined; let curComic = 0; let curChapter = 0; let curPage = 0; let comic_chosen = 0; let chapter_by_left = false; // 设置左边边框宽度 setLeftUIWidth = function(leftPx){ let totalPx ...
//Reusable non plugin stuff goes in app (function (win, doc) { 'use strict'; var app = app || { _isSafari : null, _isMobile : null, _bgImageLink : null, _searchedTag : null, _buttonLetter : null, _postHeaderImg : null }; app.isSafari = function(){ ...
/** * 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...
// Copyright 2017 ODK Central Developers // See the NOTICE file at the top-level directory of this distribution and at // https://github.com/opendatakit/central-backend/blob/master/NOTICE. // This file is part of ODK Central. It is subject to the license terms in // the LICENSE file found in the top-level directory of ...
var mkdirp = require("mkdirp"); var colors = require("colors/safe"); var fs = require("fs"); var async = require("async"); var walk = require("walk"); var path = require("path"); var ignore = require("ignore"); var ejs = require("ejs"); var _ = require("lodash"); var Translator = require("./translator"); ...
/* make UI */ function createBox() { // initialize var markBox = document.createElement("div"); markBox.id = "markBox"; // append to body document.body.appendChild(markBox); // css properties $(markBox).css("all", "initial"); $(markBox).css("border", "thin solid grey"); $(markBox).css("border-left"...
import get from 'lodash/get'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withTranslation } from 'react-i18next'; import { AppState, Linking, StyleSheet, View, Text } from 'react-native'; import { connect } from 'react-redux'; import LottieView from 'lottie-react-native'; impo...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" :...
// From: https://github.com/josch/cycles_johnson_meyer/tree/master/de/normalisiert/utils/graphs /* (BSD-2 license) Copyright (c) 2012, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redis...
var population; var course; var iteration = 0; var iterationP; function setup() { iterationP = createP(); //randomSeed(10); createCanvas(600,600); course = new Course(); course.generateCourse(); population = new Population(); course.trackPieces[0].show(); console.log("Go!!"); } function draw() { bac...
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import styled, { css } from 'styled-components'; import { size, filter, map, flow, isEmpty, get } from 'lodash/fp'; import { HashRouter as Router, NavLink } from 'react-router-dom'; import { getSnippets, getStarre...
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Input from '@material-ui/core/Input'; import InputLabel from '@material-ui/core/InputLabel'; import MenuItem from '@material-ui/core/MenuItem'; import FormHelperText from '@material-ui/core/FormH...
//global variables const inquirer = require('inquirer'); const mysql = require('mysql'); const cTable = require("console.table") const chalk = require("chalk") const clear = require('clear'); const figlet = require('figlet'); const { table } = require("console"); const { hostname } = require('os'); //SQL Conn...
const chess = new Chess(); const currentColor = chess.turn(); const turn = 0; const timeOut = null; const photon = document.getElementsByClassName('photon-shader'); const sphere = document.getElementsByClassName('sphere'); const piece = document.getElementsByClassName('piece'); const square = document.getElementsByClas...
// any change in gulpfile need to restart const { src, dest, watch, series, parallel } = require('gulp'); // compile Sass to CSS const sass = require('gulp-sass'); // support CSS for old browsers const autoprefixer = require('autoprefixer'); // minify CSS const postcss = require('gulp-postcss'); // sync browsers each...