text stringlengths 5.97k 41.2k |
|---|
export { fetchData, createMarkers, addMapFeatures };
async function fetchData(data) {
let fetchedData = await fetch(data);
let json = await fetchedData.json();
let features = json.features;
return features;
}
function createHubMarkers(fetchedData, map, id) {
if (!map.getLayer(id)) {
map.addLayer({
... |
var PIItagsEmpty = {
"x00020100": "Private Information Creator UID",
"x00020102": "Private Information",
"x00100010": "Patient's Name",
"x00100020": "Patient ID",
"x00100021": "Issuer of Patient ID",
"x00100022": "Type of Patient ID",
"x00100030": "Patient's Birth Date",
"x00100032": "Patient's Birth Time",
"... |
const koa = require("koa")
const Router = require("koa-router")
//const bodyParser = require('koa-bodyparser')
const metaMan = require('./meta')
const utils = require('lisa.utils')
const LiSASync = require('lisa.sync')
const static = require('koa-static')
const cors = require('koa2-cors')
const LiSAJson = require('lisa... |
/***********************
Global constants.
************************/
API_V1_DOMAIN = "https://api.myriota.com/v1/"
AUTH_DOMAIN = "https://cognito-idp.us-east-1.amazonaws.com/"
/***********************
DeviceDataStore is the main app data model and stores all app device data.
It uses the Myriota API to:
1) get a lis... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
/*
Add <script src="https://queryplayground.com/js/widgets.js"></script> to your webpage
To add a count(*) add something similar to
<p>There are <span class="socrata_count" data-url="https://data.seattle.gov/resource/a4j2-uu8v.json?$select=count(*)&$where=completed_date IS NULL"></span> open Seattle Police records requ... |
/*
* Copyright 2014 Apigee Corporation.
*
* 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, pub... |
var tz = require('moment-timezone');
var basal = require('../profile/basal');
var getIOB = require('../iob');
var ISF = require('../profile/isf');
var find_insulin = require('../iob/history');
var dosed = require('./dosed');
// main function categorizeBGDatums. ;) categorize to ISF, CSF, or basals.
function categoriz... |
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import * as THREE from 'three';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
import { Graph } from './graph.js';
import { Noise } from 'noisejs';
class App extends Component {
componentDidMou... |
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
//
// 2021 Fall COSE436 interactive Visualization
// Instructor: <NAME> (<EMAIL>)
//
// Assignment 2 Texture Mapping - exercise 2
//
var canvas;
var gl;
var program;
var eye, at, up;
var delta_translate;
var eye_translate;
var sphere;
var cube_vertex = [
-0.5000, -0.5000, 0.5000,
0.5000, -0.5000, 0.5000,
0.... |
/* eslint-disablemax-len:0 */
const themes = require('../../themes')
const noon = require('noon')
const CFILE = `${process.env.HOME}/.iloa.noon`
const config = noon.load(CFILE)
const theme = themes.loadTheme(config.theme)
/**
* Handles alerts
* @param {object} data Alert data
* @param {object} tofile The tofi... |
/**
* Bootstrap
* (sails.config.bootstrap)
*
* An asynchronous bootstrap function that runs before your Sails app gets lifted.
* This gives you an opportunity to set up your data model, run jobs, or perform some special logic.
*
* For more information on bootstrapping your app, check out:
* http://sailsjs.org/#... |
/*!
* Copyright 2014 Apereo Foundation (AF) Licensed under the
* Educational Community 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://opensource.org/licenses/ECL-2.0
*
* Unless required by applicab... |
try {
require('longjohn')
} catch(err){}
var path = require('level-path')
var sift3 = require('sift3')
var cosine = require('cosine')
var natural = require('natural')
var type = require('type-component')
var uniq = require('lodash.uniq')
var async = require('async')
var bytewise = require('bytewise')
var interpolate... |
// ------------------------- Global Vars and Initialize ----------------------- //
var m2version = "Version 2.5.2";
var sessionToken = 0;
var intCurrentDashboardID = 1; //If this equals 1, the first dashboard will be loaded
var arrActiveTimers = [];
var arrActiveTimersIDList = [];
var alertlist = [];
var timers = [];... |
const currentBytes = [
{
type: "demo",
img: "bytes/pen-1.png",
title: "Cloudy Landing",
link: "https://codepen.io/zemposPen/pen/bGNQmgX",
info: `This is the landing animation from my <a href="https://zempo.github.io/Aeropolis/" target="_blank" re="noopener noreferrer">Aeropolis</a> project. <br><b... |
// import React from 'react';
// import {
// ScrollView,
// StyleSheet,
// Image,
// TouchableWithoutFeedback,
// ImageBackground,
// Dimensions,
// } from 'react-native';
// //galio
// import { Block, Text, theme } from 'galio-framework';
// //argon
// import { articles, Images, argonTheme } from '../const... |
import React, { Component } from 'react'
import L from 'leaflet';
import 'leaflet-draw'
import './MapModal.css'
import leafletImage from 'leaflet-image'
// import actions from './actions'
// import isEmpty from 'lodash.isempty'
// import simplify from './simplify'
class MapModal extends Component {
componentDidMou... |
/* eslint-disable no-use-before-define */
import {
CCard,
CCardBody,
CCardHeader,
CCol,
CLabel,
CRow
} from '@coreui/react';
import Moment from 'moment';
import React, { useEffect, useRef, useState } from 'react';
import { withTranslation } from 'react-i18next';
import ApiPath from "../../../bry... |
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-------------------------------------------------... |
/** @module Keystore */
const assert = require('assert')
const { PrivateKey, Signature } = require('eosjs-ecc')
const ecc = require('eosjs-ecc')
const minimatch = require('minimatch')
const Keygen = require('./keygen')
const UriRules = require('./uri-rules')
const validate = require('./validate')
const globalConfig =... |
var proto = window.location.protocol;
var formApp = angular.module('FormApp', ['angular-bootstrap-select','ngFileUpload','ngAlertify','ngSanitize']);
formApp.filter('unsafe', function($sce) { return $sce.trustAsHtml; });
formApp.controller('FormController',['$scope','FormService','LookupService','Upload', '$rootScop... |
var mumble = require('mumble');
var fs = require('fs');
const isEmpty = require('lodash').isEmpty;
var request = require('request');
var readline = require('readline');
var cats = require('cat-ascii-faces');
var WebClient = require('@slack/client').WebClient;
const path = require('path');
//var irc = require('irc');
v... |
/* eslint-disable no-console */
import React, { PureComponent } from 'react';
import { withRouter } from 'next/router';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import is from 'styled-is';
import tt from 'counterpart';
import { NSFW_IMAGE_URL } from 'constants/config';
import SmartLi... |
const data = {
AF: [93, 'Afghanistan (افغانستان)'],
AL: [355, 'Albania (Shqipëri)'],
DZ: [213, 'Algeria (الجزائر)'],
AS: [1684, 'American Samoa'],
AD: [376, 'Andorra'],
AO: [244, 'Angola'],
AI: [1264, 'Anguilla'],
AG: [1268, 'Antigua and Barbuda'],
AR: [54, 'Argentina'],
AM: [374, 'Armenia (Հա... |
var nb_messages = 0;
var size_message = 0;
var time_animation = 500;
var scrollPos = 0;
function changepage(type) {
var oTable = $('#table_all_loans').dataTable();
var Table = $('#table_all_loans').DataTable();
oTable.fnPageChange(type);
pg_info = Table.page.info();
$('.pagedisplay')[0].value = (pg_info.pag... |
import React from 'react';
import {
Animated,
View,
Image,
Text,
PanResponder,
StyleSheet,
findNodeHandle,
} from 'react-native';
import {getConversationId, gestureIsClick, getSwipeDirection} from './utils';
import {
NOT_SCROLL_THRESHOLD,
SCROLL_RATIO_THRESHOLD,
HOLD_THRESHOLD,
SWIPE_THRESHOLD,
... |
import test from 'tape'
import _ from 'lodash'
import {Param} from '../src/'
let param = (value, options) => new Param('test', value, options)
let date = new Date('2016-04-24')
test('QuerymenParam constructor type', (t) => {
let type = (value) => param(value).option('type')
t.same(type('test'), String, 'should se... |
import './style/index.less'
import calendar from './calendar'
import DateScroll from './DateScroll'
class RuiDatepicker {
constructor (config) {
let date = new Date()
this.dateObj = {
yy: date.getYear() + 1900 - this.minY,
mm: date.getMonth(),
dd: date.getDate() - 1,
hh: 0,
min: ... |
import {
generateId,
openPopup,
closePopup,
popup
} from './common.js';
let goals = [];
let todos = [];
let dayTodos = [];
let targetId = [];
const $scheduleList = document.querySelectorAll('#schedule ul.scheduleList div.halfMinute');
const $selectDate = document.querySelector('.selectDate > input[type="date... |
// 0x0700D250 - 0x0700D268
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSP1Triangle, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode,
gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize,
gsSPDisplayLi... |
import React, { Component } from 'react';
import { View, Text, StyleSheet, TouchableWithoutFeedback, Image, TouchableOpacity, TextInput, Keyboard, Linking } from 'react-native';
import Icon from "react-native-vector-icons/Ionicons";
import RefreshListView, { RefreshState } from 'react-native-refresh-list-view';
import ... |
function array_shuffle(a) {
var j, x, i;
for (i = a.length - 1; i > 0; i--) {
j = Math.floor(Math.random() * (i + 1));
x = a[i];
a[i] = a[j];
a[j] = x;
}
return a;
}
function apply_stats_updater_settings() {
StatsUpdater.update_edited_fields = Settings.update_edited_fie... |
function backToPreviousPage() {
location.href = contextPath+"/cf/home";
}
function populateFields(tableName, dbProductID){
let selectedTable = tableName;
$.ajax({
url : contextPath + "/cf/mtd",
type : 'GET',
data : {
tableName: selectedTable,
dbProductID : dbProduc... |
/** @typedef {import('phaser')} Phaser */
import settings from "./settings.js";
import { Map, Room, Exit } from "./map.js";
import IsoPlugin from "./phaser3-plugin-isometric/IsoPlugin.js";
import IsoSprite from "./phaser3-plugin-isometric/IsoSprite.js";
import EnhancedIsoSprite from "./EnhancedIsoSprite.js";
import { s... |
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _possibleConstructorReturn fr... |
cpgf.import("cpgf", "builtin.debug");
function overrideEventReceiver(receiver, room, env, driver)
{
// store pointer to room so we can change its drawing mode
this.Room = room;
this.Driver = driver;
// set a nicer font
var skin = env.getSkin();
var font = env.getFont("../../media/fonthaettenschweile... |
#!/usr/bin/env node
// npm packages
import { program, Command } from 'commander';
import dotenv from 'dotenv';
// commands
import lambdaFunctions from '../methods/commands/functions.js';
import layers from '../methods/commands/layers.js';
import aliases from '../methods/commands/aliases.js';
import roles from '../meth... |
/**
* Created by <NAME> on 2017/2/22.
*/
// FUNCTIONS FOR GET/SET THE DATA FROM/INTO HTML DOM (ALSO GOOGLE MAP)
var lastContent = undefined;
var clickFun = undefined;
var drawAllMarkers = true; // should replace into animation, that will be more cleared
var cleared = false;
var animationProcess;
// FUNCTION BTN
f... |
/*
*
* This is an adapted version from https://github.com/josephg/noisejs
* I just updated the syntax & formatting.
*
* -------------------------------------------------------------
*
* A speed-improved perlin and simplex noise algorithms for 2D.
*
* Based on example code by <NAME> (<EMAIL>).
* Optimisations ... |
//header slider
$(function () {
if (document.documentElement.clientWidth <= 730) {
$('.winners').slick({
arrows: true,
infinite: false,
adaptiveHeight: true,
slidesToShow: 1,
autoplay: false,
speed: 500
});
} else {
$('.winners').slick({
arrows: true,
infinite: false,
adaptiveHeight:... |
'use strict';
function Restaurant (category, name, priceRange, address, phoneNumber, hours, link, imagePath) {
this.category = category;
this.name = name;
this.priceRange = priceRange;
this.address = address;
this.phoneNumber = phoneNumber;
this.hours = hours;
this.link = link;
this.imagePath = imagePa... |
var widgets = require('@jupyter-widgets/base');
var _ = require('lodash');
var cytoscape = require('cytoscape');
//--------------------------------------------------------------------------------
// configure igv where package.json says
// "igv_js_npm": "github:paul-shannon/igv.js.npm"
//-----------------------... |
"use strict";
var step = require("step");
var h = require("whispeerHelper");
var validator = require("whispeerValidations");
var client = require("./redisClient");
var KeyApi = require("./crypto/KeyApi");
var User = require("./user");
var Friends = require("./friends");
var SortedSetPaginator = require("./sortedSet... |
const mysql = require("mysql");
const inquirer = require("inquirer");
// ovdje cemo deklarirati variablu connection i definirati je tako da cemo ugadenom funkcijom mysql.createConnection gdje smo konfigurirali svojstva port, user, password i database
const connection = mysql.createConnection({
port: 3306,
use... |
var consts = {
stepLength: 1000, // 1 second
stepCounter: 600 // 10 minutes
};
var game = {
paused: false,
stepIdx: 0, lockSaving: false, timeSinceLastLoad: 0,
intervalId: 0, intervalState: 0, isInInterval: false,
dialogIdx: 0, inDialog: true,
getPetAnimData: function() { return petTypes[pet.type]; },
setUpPet:... |
const NAME = /[a-zA-Z_][a-zA-Z0-9_]*/;
const LEX_BLOCK_END = /([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*/;
const immd = (x) => token.immediate(x);
module.exports = grammar({
name: 're2c',
word: $ => $.identifier,
extras: $ => [
/\s/,
$.comment,
],
inline: $ => [
$._name,
$._label,
$._block_na... |
/* This SCRIPT (javascript) file by <NAME>. This file contains all the original functions that wire together the different pieces of the app -- HTML's user-events (clicks and choices) with HTML content (displayed values onscreen) and CSS Styling (displayed colors and fonts) etc. Their are several other .js script file... |
import React, { PureComponent as Component } from "react";
import { connect } from "react-redux";
import PropTypes from "prop-types";
import axios from "axios";
import produce from 'immer';
import { Table, Button, Modal, message, Tooltip, Select, Icon } from "antd";
import AddInterfaceForm from "./AddInterfaceForm";
im... |
import config from './gameConfig'
import * as helpers from './helpers'
class GameState {
constructor(mode) {
this.cards = {
deck: [],
players: [],
table: [],
discarded: [],
}
this.userIndex = 0
this.trumpSuit = null
this.attacker = null
this.defender = null
this.de... |
/**
* Copyright © 2017 The Board of Trustees of The Leland Stanford Junior University.
*
* 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.... |
function CCardSelection(iMoney, oParentContainer) {
var _iMoney;
var _iTotBet;
var _iNumCards;
var _iIndexNumBalls;
var _iCurNumBalls;
var _aCards;
var _pStartPosCoin;
var _pStartPosMoney;
var _pStartPosTotBet;
var _pStartPosButCoin;
var _pStartPosPlay;
var _pStartPosExit... |
"use strict";
var scriptData = scriptData || {
navbarHeight: 90,
navbarScrolled: 70,
navbarScrolledPoint: 200,
scrollFinishedMessage: "No more items to load.",
hoverMenu: {
hoverActive: !1,
hoverDelay: 1,
hoverFadeDelay: 200
},
siteLoader: "on"
};
window.paceOptions =... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var react_dom_1 = require("react-dom");
var PropTypes = tslib_1.__importStar(require("prop-types"));
var safePropTypes = tslib_1.__importStar(require("../../li... |
import React,{Component} from 'react';
import {bindActionCreators } from 'redux';
import {connect} from 'react-redux';
import * as CM from '../common/component';
import {getDataFromAPI,Tips} from '../common/base';
import * as MGAction from '../actions/index';
import {Link} from 'react-router';
import {createHistory... |
let user;
let room;
let key;
let chat;
const colors = [
"#efc4c4", "#efd2c4", "#efe1c4", "#efefc4", "#e1efc4", "#d2efc4", "#c4efc4", "#c4efd2",
"#c4efe1", "#c4efef", "#c4e1ef", "#c4d2ef", "#c4c4ef", "#d2c4ef", "#e1c4ef", "#efc4ef",
"#efc4e1", "#efc4d2"
];
const hide = function(id) {
const obj = $(`#${i... |
var board,
game = new Chess(),
statusEl = $('#status'),
fenEl = $('#fen'),
pgnEl = $('#pgn'),
toggleEI = $('#toggle'),
colorsEI = $('#col1');
console.log("this is new code10");
var elem = document.getElementById('col1');
console.log(elem.selectedIndex);
//document.getElementById("status").innerHTML = ... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
/////////////////////// INITIALIZE FIREBASE ///////////////////////
var config = {
apiKey: "<KEY>",
authDomain: "upick-d5758.firebaseapp.com",
databaseURL: "https://upick-d5758.firebaseio.com",
projectId: "upick-d5758",
storageBucket: "upick-d5758.appspot.com",
messagingSenderId: "98953444710... |
import { AcquisitionManager as Sdk } from "code-push/script/acquisition-sdk";
import { Alert } from "./AlertAdapter";
import requestFetchAdapter from "./request-fetch-adapter";
import { AppState, Platform } from "react-native";
import RestartManager from "./RestartManager";
import log from "./logging";
let NativeCodeP... |
'use strict';
/* eslint func-names: off */
require('./polyfills');
const fs = require('fs');
const http = require('http');
const path = require('path');
const url = require('url');
const chokidar = require('chokidar');
const compress = require('compression');
const del = require('del');
const express = require('expre... |
import React, { Component, Fragment } from 'react';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import { connect } from 'dva';
import { getLocalStorage } from '@/utils/authority';
import {
Button,
Card,
Table,
Modal,
Form,
message,
Spin,
Row,
Col,
Icon,
Input,
Divider,
Caro... |
import BoxSeries, { isLeftBottomSide, SeriesDirection } from "./boxSeries";
import { deepCopyArray, includes, isNumber, hasNegative, calculateSizeWithPercentString, } from "../helpers/utils";
import { getLimitOnAxis } from "../helpers/axes";
import { isGroupStack, isPercentStack } from "../store/stackSeriesData";
impor... |
/*
* Copyright 2008 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
/*
Terminal Kit
Copyright (c) 2009 - 2019 <NAME>
The MIT License (MIT)
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,... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import debounce from 'just-debounce-it';
import classNames from 'classnames';
import deepEqual from 'deep-equal';
import searchIcon from '@jetbrains/icons/search.svg';
import closeIcon from '@jetbrains/icons/close.svg';
import getUID from '../... |
/* globals SAML:true */
const zlib = Npm.require('zlib');
const xml2js = Npm.require('xml2js');
const xmlCrypto = Npm.require('xml-crypto');
const crypto = Npm.require('crypto');
const xmldom = Npm.require('xmldom');
const querystring = Npm.require('querystring');
const xmlbuilder = Npm.require('xmlbuilder');
// var ... |
function init( ) {
canvas = document.getElementById( 'canvas' )
renderer = new THREE.WebGLRenderer( {
canvas : canvas } )
renderer.setSize(
window.innerWidth / 5 , window.innerHeight / 5 , false )
camera = new THREE.PerspectiveCamera(
90 , window.innerWidth / window.innerHeight , 1 , 100000 )... |
var API_key = '327acbd7d79e6254e6714764cab1a033';
var longitude, latitude, callFiveDayAPI, oneCallAPI, city_name, response;
var part = 'hourly,minutely';
var storageList = [];
// link to the input, the button, and the unordered list so we can add event listeners to the
var cityInput = document.getElementById('city-name... |
//--------------------------------------------------------------------------
//
// This file is part of GenePool Swimbots.
// Copyright (c) 2021 by <NAME> - All Rights Reserved.
// ... |
import React, { PureComponent, Component } from 'react';
import PropTypes from 'prop-types';
import Loading from 'loading';
import classnames from 'classnames';
import has from 'lodash/has';
import get from 'lodash/get';
import every from 'lodash/every';
import assign from 'lodash/assign';
import debounce from 'lodash/... |
/**
* Copyright 2018 The Pennsylvania State University
* @license Apache-2.0, see License.md for full text.
*/
import { html, PolymerElement } from "@polymer/polymer/polymer-element.js";
/**
* `simple-picker`
* `a simple picker for options, icons, etc.`
*
* @microcopy - language worth noting:
* -
*
* @custom... |
//*********************GLOBAL VARIABLES*********************************************
//
//** Capture explanation popup based on properties of JSON response object**********
var CAPTCHA_EXPLANATION_MSG = ['captcha_dialog'];
var ERROR_EXPLANATION_MSG = ['errorDescription']
var CAPTCHA_DETECTED = -1;
var TIMESTAMP_SHOWN_... |
var eventTable = null;
var event_list = [];
var fcm_list = [];
var cuurent_event_obj = {};
var current_event_id = null;
var current_event_channel = null;
var current_event_address = null;
$(document).ready(function () {
loadEvents();
$("body").removeClass('bg-white');
});
function loadEvents() {
... |
/* Copyright(c) 2015 3NSoft Inc.
* 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/. */
"use strict";
/**
* This is a TypeScrypt rewrite of scrypt-1.1.6.
* In particula... |
let prevVoicingChoice = null;
let prevMannerChoice = null;
let prevPlaceChoice = null;
let prevRoundingChoice = null;
let prevHeightChoice = null;
let prevBacknessChoice = null;
let clickedOK = false;
const result_p = document.querySelector(".result > p");
const actionMessage_p = document.getElementById("action-message... |
// Trees
// implement a binary search tree
// Note: self balancing trees can be
// implemented with AVL trees
class Node {
constructor(data, left, right){
this.data = data;
this.left = left;
this.right = right;
}
}
class BinarySearchTree {
constructor() {
this.root = null; // only one importan... |
//
// The PGN (Portable Game Notation) specification for chess games:
//
// http://www.saremba.de/chessgml/standards/pgn/pgn-complete.htm
//
// commonly-used extensions:
//
// https://www.enpassant.dk/chess/palview/enhancedpgn.htm
//
// commonly-used annotation glyphs:
//
// https://en.wikipedia.org/wiki/Numeric_... |
var setInitSaveData = function(data) {
if (!getSaveData()) setSaveData(data);
};
var getSaveData = function() {
if (localStorage['data'] == undefined) return false;
return JSON.parse(localStorage['data']);
};
var setSaveData = function(data) {
localStorage['data'] = JSON.stringify(data);
};
se... |
var game = null;
var Ocean = {
vr: {
width: 640,
height: 363,
player: null,
aliens: null,
bullets: null,
bulletTime: 0,
explosions: null,
fails: null,
starfield: null,
score: 0,
scoreString: '',
scoreText: null,
lives: null,
enemyTimer: 0,
asteroidTimer: 0,
stateText: null,
typesAste... |
/**
* 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... |
var Imported = Imported || {};
Imported.Soapr_FilterBattleback = true;
var Soapr = Soapr || {};
Soapr.FilterBattleback = Soapr.FilterBattleback || {};
//=============================================================================
/*:
* @plugindesc Adds filter battleback to RPG Maker MV (like in RPG Maker VX)... |
var extend = require("../../core/utils/extend").extend,
each = require("../../core/utils/iterator").each,
Range = require("./range").Range,
categoryTranslator = require("./category_translator"),
intervalTranslator = require("./interval_translator"),
datetimeTranslator = require("./datetime_translato... |
// 页面初始化
function pageInit(){
$('#map_container').height($('#main').height()-124+'px');
}
//添加列表数据
function box_select() {
var box_latest = JSON.parse(window.localStorage.getItem('new_boxLatest'));
if(box_latest == null) {
return false;
}
for(var i = 0; i < box_latest.length; i++) {
if(box_latest[i].... |
import CursorParallax from './components/cursorParallax'
new CursorParallax
////////// query selector ///////
const cards = document.querySelectorAll(".card")
const hand = document.querySelector(".allyBoard .hand")
let handCards = hand.querySelectorAll(".card")
const allyField = document.querySelector(".allyField")
co... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
//https://gist.github.com/sgmurphy/3095196
/**
* Create a web friendly URL slug from a string.
*
* Requires XRegExp (http://xregexp.com) with unicode add-ons for UTF-8 support.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) tr... |
/* eslint-disable class-methods-use-this */
import {
indentStartTokens,
indentEndTokens,
indentElseTokens,
indentStartOrElseTokens,
tokenForIndentStartOrElseTokens,
hasStartAndEndToken,
phpKeywordStartTokens,
phpKeywordEndTokens,
indentStartAndEndTokens,
inlineFunctionTokens,
} from './indent';
impo... |
'use strict';
// API includes
var assetRenameLogger = require('dw/system').Logger.getLogger('cld-asset-upload-report', 'cld-asset-upload-report');
var jobLogger = require('dw/system').Logger.getLogger('Cloudinary', 'UPLOAD');
var ContentMgr = require('dw/content/ContentMgr');
var File = require('dw/io/File');
var Site... |
(function($) {
$.fn.menumaker = function(options) {
var cssmenu = $(this), settings = $.extend({
title: "Menu",
format: "dropdown",
sticky: false
}, options);
return this.each(function() {
cssmenu.prepend('<div id="menu-button">' + settings.title + '</div>')... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
// Load libraries.
var fs = require('fs');
var check = require('spellchecker');
var readline = require('readline-sync');
// Useful file paths.
var path = {
defTarget: __dirname + '/target.txt',
cipher: __dirname + '/words/cipher.json',
ignore: __dirname + '/words/ignore.json',
names: __dirname + '/words/names.... |
'use strict';
const Hoek = require('@hapi/hoek');
const Cache = require('../cache');
const Cast = require('../cast');
const Common = require('../common');
const Errors = require('../errors');
const Manifest = require('../manifest');
const Messages = require('../messages');
const Modify = require('../modify');
const R... |
// Copyright (c) 2015 Uber Technologies, Inc.
// 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, ... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
/* global OT */
/**
* Dependencies
*/
const util = require('./util');
const State = require('./state').default;
const accPackEvents = require('./events');
const Communication = require('./communication').default;
const OpenTokSDK = require('./sdk-wrapper/sdkWrapper');
const { CoreError } = require('./errors');
const ... |
const log = require("@ui5/logger").getLogger("normalizer:projectPreprocessor");
const fs = require("graceful-fs");
const path = require("path");
const {promisify} = require("util");
const readFile = promisify(fs.readFile);
const parseYaml = require("js-yaml").safeLoadAll;
const typeRepository = require("@ui5/builder").... |
import Phaser from "phaser";
import theBestMap from "./assets/map/hackHTHS_tilemap.png"
import tileSet0 from "./assets/map/tileset0.png"
import tileSet1 from "./assets/map/tileset1.png"
import MC_spritesheet from "./assets/sprites/MC_spritesheet.png"
import gun_MC_spritesheet from "./assets/sprites/gun_spritesheet.png"... |
// Copyright 2015 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.
/**
* @fileoverview This file has three parts:
*
* 1. A dictionary of strings for network element translations.
*
* 2. Typedefs for network propertie... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.