text stringlengths 5.97k 41.2k |
|---|
const userAgent = navigator.userAgent
const toString = Object.prototype.toString
const location = window.location
const pathKey = 'app' // storage 命名空间
const $common = {
// isIos: userAgent.match(/iPhone/i) || userAgent.match(/iPad/i) || userAgent.match(/iPod/i),
// isAndroid: !$common.isIos,
// isWx: userAgen... |
// Config values for small gauge
const smallSize = {
divWidth : 245,
divHeight : 260,
innerRadius : 85,
outerRadius : 100,
smallTickOffset : 30,
bigTickOffset : 32,
textCoeff : 0.85,
size : 'small'
}
// Config values for normal gauge
const defaultSize = {
divWidth: 350,
divHeight: 350,
innerRadiu... |
import angular from 'angular';
import configModule from './config.service';
import {cloneDeep} from 'lodash/lang';
import {get} from 'lodash/object';
import {sortBy} from 'lodash/collection';
import * as log from 'loglevel';
const moduleName = 'app.services.authority';
angular
.module(moduleName, [
config... |
/// <reference path="jquery-1.3.1.js"/>
//定义全局的默认方法程序集和参数程序集常量
var __FunAssemblyName = "Hqew.BLL.dll";
var __ParamAssemblyName = "Hqew.Model.dll";
var mSite = "http://m.hqew.com";
var wSite = "http://weixin.hqew.com";
$.fn.ajaxForm = function(options) {
if (options.initData != null) {
this.each(f... |
///////////////////////////////////////////////////////////////////////
//////////////////////Datos para la Identificaciones///////////////////
///////////////////////////////////////////////////////////////////////
//Parametros que se necesitan para funcionar con la base de Datos (requiero y la instancio)
const { app... |
// Generated by psc version 0.10.7
// | This module contains various types and functions to allow you to spawn and
// | interact with child processes.
// |
// | It is intended to be imported qualified, as follows:
// |
// | ```purescript
// | import Node.ChildProcess (ChildProcess, CHILD_PROCESS)
// | import No... |
/*function plotLineChart is based on the following graph galleries:
- https://www.d3-graph-gallery.com/graph/line_brushZoom.html : used to brush selections of the graph
-https://www.d3-graph-gallery.com/graph/line_select.html : used to select a group and plot the line chart of this group
-https://bl.ocks.org/d3noob/a22... |
/**
* @package Core
* @link http://ican.openacalendar.org/ OpenACalendar Open Source Software - Website
* @license http://ican.openacalendar.org/license.html 3-clause BSD
* @copyright (c) 2013-2014, JMB Technology Limited, http://jmbtechnology.co.uk/
* @author <NAME> <<EMAIL>>
*/
//////////////////////////////////... |
var servicePath = "electric_iron_device.do";
$(function(){
$("input.ui-button").button();
$("#body_mdl span.ui-icon,#body_edit span.ui-icon,#listarea span.ui-icon").bind("click",function() {
$(this).toggleClass('ui-icon-circle-triangle-n').toggleClass('ui-icon-circle-triangle-s');
if ($(this).hasCla... |
#!/usr/bin/env node
var fs = require('fs');
/* Escape plain text to XML safe for HTML attributes and cdata */
function escapeHTML(text){
return String(text)
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>');
}
function escapeHTMLAttr(text){
return String(text)
.replace(/&/g, '&')
.r... |
//modale per avanzamento step
var modalstep="<div class=\"modal-dialog\" id=\"modal-dialog_step\" {width:55%;}><div class=\"modal-content\"><div class=\"modal-header\"><img src=\"../img/logo.png\"><h1><img src=\"../img/booking/lettering_2_bis.png\" width=\"50% height=50%\"></h1></div>"+
"<div class=\"mo... |
/* this javascript is call from list-in-table.html
* it resquest GpsdTracking GeoJsonRest adapter to get
* the list of active devices and push on page table.
*
* Refrences:
* https://github.com/lvoogdt/Leaflet.awesome-markers
* http://leafletjs.com/examples/geojson.html
* http://leafletjs.com/examples/sample-... |
/*
||====================================================================================
|| WsDam: browser client for 10x10 draughts
||====================================================================================
|| Move logic for Draughts 100 International Rules
|| Remember:
|| - The internal respresentatio... |
const download = require('downloadjs')
const PNG = require('pngjs').PNG
const fs = require('browserify-fs')
class Highres {
constructor (renderer, scene, camera, options) {
this.renderer = renderer
this.scene = scene
this.camera = camera
this.onStart = options ? options.onStart : undefined
this.o... |
#!/usr/bin/env node
/**
* Ported by Yosef on 24/08/2016.
* from project:
* https://github.com/1connect/nginx-config-formatter
* from file:
* nginxfmt.py
*
*/
/**
POLYFILLS START
not required in nodejs
*/
if (!String.prototype.trim) {
String.prototype.trim = function () {
return this.replace(/^[... |
$(function() {
// on page load, either show the log in button or the search page,
// depending on whether a token cookie is set
id_token = getCookie('id_token=');
if (id_token) {
switchToSearch(false);
}
else {
switchToLogin(false);
}
});
function switchToSearch(keepResults)... |
import React, { Component } from 'react';
import { Switch, Route } from 'react-router-dom'
import $ from 'jquery'
import './pagesStyle.css'
class Login extends Component {
constructor() {
super();
this.state = {
}
}
componentDidMount(){
this.viewCanvas()
}
viewCanvas(){
... |
$("#logo-div").innerHeight(60);
var confHeight = $(window).innerHeight() - 64 - 48;
$("#main-div").css("padding-top", $("#logo-div").innerHeight() + "px");
$("#profile-div").css("min-height", confHeight + "px");
$("body").css("min-height", $(window).innerHeight() + "px");
$("html").css("min-height", $(window).in... |
import $S from "../../interface/stack.js";
import Config from "./Config";
import DataHandlerV2 from "./DataHandlerV2";
import FormHandler from "./forms/FormHandler";
import TemplateHandler from "./template/TemplateHandler";
import ApiHandler from "./api/ApiHandler";
// import Api from "../../common/Api";
import AppHan... |
/*
Copyright 2019 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
//All Map functions:
//Initalize Map
/*
Created By <NAME>
MIT LISCENSE
*/
var L = require('leaflet');
window.$ = window.jQuery = require('jquery');
var imagepath = "";
var sfloor = "";
var isSurvey = false;
var isMulti = false;
var isLayoutEdit = false;
var selected_furn;
var selected_marker;
var seat_num;
var floor_... |
// freezr.info - nodejs databsse - sample custom_envioronments.js
// This can be used to create custom environments for accessing a custom db and file system
//
// custom environment for Google App Ending (GAE) COud Datastore
// GAE Quirks
// Because GAE cant do OR queries, OR queries are done MANUALLY
// Because GAE ... |
export function getContestTitle(contestId) {
switch (contestId) {
case "USS":
return "US Senator"
case "USH1":
return "US Representative, District 1"
case "USH2":
return "US Representative, District 2"
case "GLG":
return "Governor and Lieutenant Governor"
case "S1":
return "State Senato... |
var interval = require("./interval.js");
var Interval = interval.Interval;
var interval_cmp = interval.interval_cmp;
var Set = require("./set.js").Set;
function l2(num)
{
return Math.log2(num);
}
function Node(x_center=undefined, s_center=[],left_node=undefined,right_node=undefined)
{
this.x_center = x_c... |
var arrayGritito = ["<NAME>", "Cuak", "qui quiri qui", null];
var arrayNombreGallo = ["Claudio", "Kellogs", "ManelNavarro", "Rafaelito"];
var arrayFuerzaGallo = [5, 8, 4, 7];
var arrayPlayerGallo = ["Rafa", "Jacobo", "JaviProfesor", "Charly"];
var arrayVida = [20, 30, 10, 10];
// Esto t... |
//全局变量config,保存游戏配置
var config = {
"box_width":400, //游戏框宽度,单位px
"box_height":600, //游戏框高度,单位px
"cube_size":20, //小方块的尺寸,单位px
"interval":500, //下落速度;刷新位置时间间隔,单位ms
"half_cube_size":10, //半边长度,单位px
"color":["#FFCC66","#C0C0C0","#FF0000","#FF33CC"],//颜色
center:{ //投放中心点
x:210,
y:50,
}... |
var gameboys = [];
var controlsArray = localStorage["gbControls"];
controlsArray = (typeof controlsArray == "undefined")?[]:JSON.parse(controlsArray)
function addGB(gameboyDiv) {
var gbCanvas = document.createElement("canvas");
gbCanvas.width = 320;
gbCanvas.height = 288;
gbCanvas.className = "gameboy";
var gbCo... |
/*
NEPAL COMMUNITY SURVEY DASHBOARD: -------------------
Here we visualize the Nepal community surveys available
on the Humanitarian Data Exchange website:
-----------------------------------------------------
Author: <NAME> (<EMAIL>)
-----------------------------------------------------
*/
/*
... |
//NPM Install
const fse = require('fs-extra');
//Importando arquivo site-model.js que possui a classe com as funções de consulta
const DB = require('./../listas/selects');
const mysql = require('mysql2');
const config = require('./../../database/config');
const conn = mysql.createConnection(config);
//Importando o mó... |
//csrf 토큰 넣기. common으로 보내기
//초기화
//warehousing
document.addEventListener("DOMContentLoaded", function () {
// console.log(location.href.indexOf('wms/inbound/warehousing'))
var bodyClass = document.querySelector("body").getAttribute("class");
console.log("bodyClass : " + bodyClass);
// if(location.href.indexO... |
/**
* Created by Khalid on 6/30/2016.
*/
var allTraders = [];
var rowData = [];
var newTrader = new Array();
var arrayOfItems = new Array();
var itemsWithUnits = new Array();
var lastTraderID =0;
var lastInvoiceID = 0;
var itemRules = {
item:
{
required: true
},
amount:
{
required:... |
import React from 'react';
import { Tabs } from 'antd';
import { Tree } from 'hierplane';
import { Button } from 'antd';
import { withRouter } from 'react-router-dom';
import { Collapse } from 'antd';
import Model from '../Model';
import OutputField from '../OutputField';
import HighlightContainer from '../highlight/... |
'use strict';
// Declare app level module which depends on views, and components
var application = angular.module('scenarioEditor', [
'ngRoute',
'scenarioEditor.charView',
'scenarioEditor.convoView',
'scenarioEditor.assetView',
'scenarioEditor.roomView',
'scenarioEditor.... |
var SourceMapConsumer = require( 'source-map' ).SourceMapConsumer;
var path = require( 'path' );
var fs;
try {
fs = require( 'fs' );
if ( !fs.existsSync || !fs.readFileSync ) {
// fs doesn't have all methods we need
fs = null;
}
} catch ( err ) {
/* nop */
}
// Only install once if called mu... |
/*
cti.js
This Javascript library is used to deals with long-polling requests from "https://events.voip.ovh.net" URL. It also contains angularJS
controller for the CTI dashboard and basic javascript timer functions to count live call duration.
License :
MIT
*/
var timer;
function timerFunc() {
timer = setInt... |
// 01. Rectangle
class Rectangle{
constructor(width, height, color){
this.width = width,
this.height = height,
this.color = color
}
calcArea(){
return this.width * this.height;
}
}
// 02. Score to HTML
function scoreToHTML(input){
let arr = JSON.parse(input);
... |
/*************************************************************************
* Copyright(c) 2012-2014 <NAME> <<EMAIL>>
* May be freely distributed under the MIT license.
**************************************************************************/
var fs = require('fs');
var _u = require('underscore');
var dateutil =... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author <NAME> @sokra
*/
"use strict";
const path = require("path");
const NativeModule = require("module");
const crypto = require("crypto");
const SourceMapSource = require("webpack-sources").SourceMapSource;
const OriginalSource = requir... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.RollbackError = undefined;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor =... |
globalThis.verbose = false; // debug option
globalThis.is_danmuku_on = true; // hide all danmuku
globalThis.is_danmuku_player_init = false;
// globalThis.pauseTimes = 20; // pause all danmuku for 10 times in case some are missed
// globalThis.pauseDuration = 50; // pause all danmuku for 10 tim... |
import React, { useEffect, useState } from "react";
import {
StyleSheet,
Modal,
FlatList,
RefreshControl,
View,
Text,
ScrollView,
TouchableOpacity,
SafeAreaView,
useColorScheme,
} from "react-native";
import moment from "moment";
import * as Animatable from "react-native-animatable";
import axios from "axios"... |
import $ from "jquery";
import _ from "lodash";
import generated_emoji_codes from "../generated/emoji/emoji_codes.json";
import generated_pygments_data from "../generated/pygments_data.json";
import * as emoji from "../shared/js/emoji";
import * as fenced_code from "../shared/js/fenced_code";
import render_edit_conten... |
import CONST from "./const.js";
import { compareTurns } from "./utils.js";
/**
* Data structure schema:
* {
* id: id string, // The 16 char (allegedly) unique ID for this alert
* name: string // A human readable, identifier that may be specified for programma... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var workspace = require("./workspace");
var data = require("./data");
var core = require("./core");
var db = require("./db");
var Util = pxt.Util;
var hostCache = new db.Table("hostcache");
var extWeight = {
"ts": 10,
"blocks": 20,
... |
'use strict';
const child_process = require('child_process');
const os = require('os');
const assert = require('assert');
const fs = require('fs');
const path = require('path');
const urllib = require('urllib');
const updater = require('npm-updater');
const mkdirp = require('mkdirp');
const inquirer = require('inquire... |
import React, { Component } from 'react';
import Button from './button';
import FormSuccessFeedback from './contact-form-success';
import FormFailFeedback from './contact-form-fail';
// import { scrollTo } from './../helpers';
import scroll from 'scroll';
import { contactEmail, formBaseURI } from './../config';
import ... |
/* eslint-disable */
import React, { Component } from 'react';
import {
Page, Header, Content, stores, Breadcrumb
} from '@choerodon/boot';
import { Link } from 'react-router-dom';
import {
Table, Button, Icon, Collapse, Tooltip,
} from 'choerodon-ui';
import _ from 'lodash';
import { FormattedMessage } from 'reac... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApolloServerPluginUsageReportingDisabled = exports.makeHTTPRequestHeaders = exports.ApolloServer... |
// Generated by ReScript, PLEASE EDIT WITH CARE
import * as Fs from "fs";
import * as Mdx from "./common/Mdx.js";
import * as Icon from "./components/Icon.js";
import * as Meta from "./components/Meta.js";
import * as Next from "./bindings/Next.js";
import * as Path from "path";
import * as Curry from "bs-platform/lib... |
var fs = require('fs');
var path = require('path');
var CUSTOM_CONFIG_ENUMS = {
DUALSTACK: {
FILE_NAME: 'config_use_dualstack',
INTERFACE: 'UseDualstackConfigOptions'
}
};
function TSGenerator(options) {
this._sdkRootDir = options.SdkRootDirectory || process.cwd();
this._apiRootDir = p... |
var Board = require("../lib/board.js");
var Pins = Board.Pins;
var events = require("events");
var Emitter = require("events").EventEmitter;
var util = require("util");
var __ = require("../lib/fn.js");
var Animation = require("../lib/animation.js");
// Sensor instance private data
var priv = new Map();
var SERVOS = [... |
function motion(element) {
var base = "https://res.cloudinary.com/demo/video/upload/so_0,du_3/vs_30,e_loop:100/w_260,h_105,c_fill/q_50,r_5,b_white/fl_lossy.animated/f_auto/";
var suffix = ".gif";
switchImage(element.getElementsByTagName('img')[0],element.id,base,suffix);
}
function still(element) {
var bas... |
'use strict';
const winston = module.parent.require('winston');
const nconf = module.parent.require('nconf');
const _ = require('lodash');
const meta = require.main.require('./src/meta');
const user = require.main.require('./src/user');
const groups = require.main.require('./src/groups');
const SocketPlugins = requi... |
/*
* Exploit by @_niklasb from phoenhex.
*
* This exploit uses CVE-2018-4233 (by saelo) to get RCE in WebContent.
*/
ITERS = 10000
ALLOCS = 1000
var conversion_buffer = new ArrayBuffer(8)
var f64 = new Float64Array(conversion_buffer)
var i32 = new Uint32Array(conversion_buffer)
var BASE32 = 0x100000000
function ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.PossibleGlobalObjects = exports.CommonInstanceDependencies = exports.StaticProperties = exports.InstanceProperties = exports.BuiltIns = exports.PromiseDependencies = exports.CommonIterators = void 0;
const ArrayNatureIterators = ["e... |
// Copyright 2018 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.
import {ParagraphUtils} from './paragraph_utils.js';
const AutomationNode = chrome.automation.AutomationNode;
const RoleType = chrome.automation.RoleType... |
// Get a reference to the database
var database = firebase.database();
//var pianoRef = database.ref('Piano/0/');
var pianoPath = 'Piano/0/';
var whiteSound0,
whiteSound1,
whiteSound2,
whiteSound3,
whiteSound4,
whiteSound5,
whiteSound6,
whiteSound7,
whiteSound8,
whiteSound9,
whiteSound10,
white... |
settings.senseAutoComplete = "<autoc model='model' placeholder='placeholder' type='sense' text-in-field='textInField'/>";
settings.groupStatistics = [];
var karpLemgramLink = "https://spraakbanken.gu.se/karp/#?mode=DEFAULT&search=extended||and|lemgram|equals|<%= val.replace(/:\\d+/, '') %>";
var liteOptions = {
... |
/**
* @author <NAME> 20180730
* https://script.google.com/d/1GjFxz1LEPehdFDl3BharWCrkY4lzJquKDstbyR8sIp4V6lu5PKVZQ0UI/edit
*
* For test: https://script.google.com/macros/s/AKfycbzurNqCSwJEY6n1tdKSN4KuyCCAlYtOGgtBeURB7y8/dev
* https://script.google.com/macros/s/AKfycbw3A2NjuC6rhEam3AWfxdy04ZuAbyNfJPSTRX9qATh2egwfd... |
/**
* photoFigcaption
*/
$(document).ready(function addPhotoFigcaption(){
const images = $(".post-content img").not(".justified-gallery img");
images.each(function (i, o) {
const $this = $(o);
if ($this.attr("alt")) {
const t = $(
'<div class="img-alt">' + $this.attr("alt") + "</d... |
import m from 'mithril';
import debounce from 'lodash.debounce';
import throttle from 'lodash.throttle';
import Polyfills from 'Polyfills';
import classnames from 'classnames';
import { IS_IOS, IS_MOBILE, KEY_CODES, DEFAULT_TIME_FORMAT, UPSCALE_MODES, FULLSCREEN_EVENT_NAME, TIME_FORMATS } from 'consts';
import TimeForm... |
// Copyright (c) 2019 Uber Technologies, 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 ... |
"use strict";
const util = require("util");
const npath = require("path");
const con = require("@gourmet/console")();
const error = require("@gourmet/error");
const HandledError = require("@gourmet/error/HandledError");
const isPlainObject = require("@gourmet/is-plain-object");
const sortPlugins = require("@gourmet/pl... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
var PropTypes = _interopDefault(require('prop-types'));
var Tag = props => {
const buttonRef = React.useRef(nul... |
function addSVGTextBehaviour(textFabricObject) {
textFabricObject.lockScalingX = true;
textFabricObject.lockScalingY = true;
textFabricObject.lockMovementX = true;
textFabricObject.lockMovementY = true;
textFabricObject.lockRotation = true;
textFabricObject.perPixelTargetFind = false;
textF... |
"use strict";
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { k... |
var map = L.map('map'
, { attributionControl: false }
).setView([13.751569, 100.501634], 10);
CartoDB_Positron = L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href... |
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.hasOwnProperty(p)) d[p] =... |
"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 (Object.protot... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var oas = require('openapi3-ts');
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.... |
class LightingClass {
constructor(screenWidth, screenHeight) {
this.screenWidth = screenWidth;
this.screenHeight = screenHeight;
}
drawLighting(drawingContext, players, cameraClass, objectClass, mapClass) {
//this.sightEffectClass.drawSightEffect(drawingContext, players, cameraClass, objectCla... |
var isStacked = true;
var cp; // current position - used to go back after search is closed
// android browser triggers resize event because address bar dissapears :/
var widthW = 0;
var heightW = 0;
function checkRes() {
var w = window,
d = document,
e = d.documentElement,
g... |
/*
Indigo2 platform shim for HomeBridge
Written by <NAME> (https://github.com/webdeck/homebridge-indigo)
See http://www.indigodomo.com/ for more info on Indigo
Requires HomeKit Bridge Indigo plug-in: https://github.com/Colorado4Wheeler/HomeKit-Bridge
See http://forums.indigodomo.com/viewforum.php?f=201 for installation... |
import {
each as lodashEach,
get as lodashGet,
filter as lodashFilter,
find as lodashFind,
cloneDeep as lodashCloneDeep,
isUndefined as lodashIsUndefined,
findIndex as lodashFindIndex,
memoize as lodashMemoize,
} from 'lodash';
import { createSelector } from 'reselect';
import update from 'immutability-... |
var canvas, ctx, overlay, getParams;
var cfg = {
width: 1280,
height: 544,
bg: {
enabled: true,
square_count: 5,
square_size: 128, // cfg.width / cfg.bg.square_count,
growth_per_second: 128
},
enemy_colors: ['fff', '14E6E6', 'DDDD14', '4CEE49', 'E32525', 'F3147C', '4... |
'use strict';
const moment = require('moment-timezone');
const Iconv = require('iconv-lite');
const SMALL_BUFFER_SIZE = 1024;
const MEDIUM_BUFFER_SIZE = 16384; //16k
const LARGE_BUFFER_SIZE = 131072; //128k
const BIG_BUFFER_SIZE = 1048576; //1M
const MAX_BUFFER_SIZE = 16777219; //16M + 4
/**
* Packet splitter.
*
*... |
"use strict";
// PoiData Control
var PoiCont = (function () {
var PoiData = { geojson: [], targets: [] }; // OvPassの応答(features抜き)と対象Keyの保存
var latlngs = {}; // 緯度経度 osmid: {lat,lng}
var geoidx = {}; // osmidからgeojsonのindexリスト
return {
... |
/*
* Copyright 2018 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
import React, { useState, useEffect, useRef } from "react";
import { Button, Divider } from "@material-ui/core";
import { makeStyles } from "@material-ui/core/styles";
import Typography from "@material-ui/core/Typography";
import DataAleatoria from "../Components/DataAleatoria";
import Paper from "@material-ui/core/Pa... |
function addClassButtons(){
ClearClassButtons()
chrome.storage.sync.get( [ '__GMA_ClassLists', 'Current-Class-Code' ], function (r) {
let currentClassCode = sessionStorage.getItem( '_Class4ThisMeet' )||r[ 'Current-Class-Code' ]||'Class-List'
let rs=[]
let cl=!r['__GMA_ClassLists' ][ currentClassCode ]?{}:r['__G... |
'use strict';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import {BlurView} from 'react-native-blur';
import LoadingOverlay from '../LoadingOverlay';
import AwesomeButton from 'react-native-awesome-button';
import { Image, View, Dimensions, Platform, StatusBar, Switch, Slider, D... |
'use strict';
var Utils = require('./utils.js').Utils;
var Accessory = require('./accessory.js').Accessory;
var Model = require('./model.js').Model;
var config, plugin_name, plugin_version, platform_name;
var api, HapAccessory, Service, Characteristic, UUIDGen;
var accessory_parameters;
module.exports = {
Control... |
let canvas
let imports = [
null,
null,
`import EntityType from '../../../world/entity/EntityType'`,
]
let mapObject = {
name: 'new_map',
tileset: {
src: null,
tileWidth: 32,
tileHeight: 32,
},
layout: [],
solid: [],
overlay: [],
spawn: {
x: 0,
... |
var clickX = -1;
var clickY = -1;
var pause = false;
var hScale = 0;
var vScale = 0;
var origWidth = 1200;
var origHeight = 800;
function checkClick(x, y, width, height) {
if(clickX <= x + width && clickX >= x) {
if(clickY >= y && clickY <= y + height) {
clickX = -1;
clickY = -1;
return true;... |
"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];
... |
/*
openHAB nodes for IBM's Node-Red
https://github.com/pdmangel/node-red-contrib-openhab2
(c) 2017, <NAME> <<EMAIL>>
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://... |
import React, { useCallback, useState } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Widget from "../../components/Widget/Widget";
import { FormGroup, Tabs, Tab, InputAdornment, Checkbox, FormControlLabel, Radio, RadioGroup, Button, Stepper, Step, StepLabel, TextField, Typography } from '... |
const asn1 = require('./asn1')
const OID = require('./OID')
const utils = require('./utils')
// NOTES
// This file contains the necessary functions to convert parsed TLV tokens into a Certificate.
function bytesToHex(bytes) {
const hex = []
bytes.slice(1).forEach(b => hex.push(("0" + b.toString(16)).slice(-2... |
class EpisodeInfo
{
constructor()
{
this.globalStep = 0;
this.episodeUpdateSteps = 0;
this.episodeNStep = 0;
this.episodeRewards = [];
this.episodeActions = [];
this.episodeStates = [];
this.episodeStateValues = [];
//this.episodeConcatStates = [... |
var UserAnswers = [];
var RandomNumbers = [];
var ArrayEmpty = 1;
var CorrectCount = 0;
/***************************************Variables that can be changed from here****************************************************** */
var TotalContainer = -1;
var title = "";
/***************************************Variables tha... |
var lat = -9.318990;
var lon = -75.234375;
var escAncho = screen.width;
var escAlto = screen.height;
var escala = 12;
if (escAncho == 1920 && escAlto == 1080)
var escala = 12;
if (escAncho == 1680 && escAlto == 1050)
var escala = 12;
if (escAncho == 1600 && escAlto == 900)
var escala = 12;
if (escAncho == 1440 && e... |
let canvas;
let ctx;
let gBArrayHeight = 20; // Number of cells in array height
let gBArrayWidth = 12; // Number of cells in array width
let startX = 4; // Starting X position for Tetromino
let startY = 0; // Starting Y position for Tetromino
let score = 0; // Tracks the score
let level = 1; // Tracks current level
let... |
/**
* --------------------------------------------------------------------------
* ChiChi (v0.1.0-alpha2): slider.ts
* Licensed under MIT
* --------------------------------------------------------------------------
*/
import { TRANSITION_END, emulateTransitionEnd, getElementFromSelector, getTransitionDurationFrom... |
import { flattenDataKeys } from '../helpers/util'
import { CreateHashtags } from './../queries/hashtags'
import { AddRateLimiting } from './../queries/rate-limiting'
const faunadb = require('faunadb')
const q = faunadb.query
const {
Call,
Create,
Collection,
CurrentIdentity,
Paginate,
Documents,
Lambda,
... |
import * as THREE from 'three/build/three.module.js'
import { CSS2DObject } from 'three/examples/jsm/renderers/CSS2DRenderer.js'
import { jsPlumb } from 'jsplumb'
import { v4 as uuid } from 'uuid'
import * as Cesium from 'cesium'
import World from './World.js'
import Resource from './Resource.js'
class BaseObjectData... |
//https://threejs.org/examples/webgl_physics_convex_break.html
import Expo from 'expo';
import React from 'react';
import ExpoTHREE from 'expo-three';
import Touches from '../window/Touches';
import Files from '../Files';
import { Dimensions } from 'react-native';
import { ThreeView } from './index';
import THREE fro... |
import Ember from 'ember';
import LabelTrimmer from '../utils/label-trimmer';
// Calculates maximum width of label in a row, before it gets truncated by label trimmer.
// If labelWidth < average width per label (totalAvailableWidthForLabels/label count), then do not truncate
// Else if labelWidth > average, then trunc... |
// ==UserScript==
// @name www.Libragar.pw 💡🤵 Libra - Agario YT Public BetaTest Server V1.5 💡
// @namespace www.youtube.com/Libraa
// @homepage https://www.Libragar.pw
// @version 1.5 💡
// @Discord www.discord.com/invite/UuVHSZR || Sign in to follow updates and events
// @match ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.