text stringlengths 5.97k 41.2k |
|---|
/*
用于调度HttpDownloader和RTCDownloader
config:{
initialDownloaders: [], //初始的httpdownloader数组,必须
chunkSize: number, //每个chunk的大小,默认1M
fileSize: number, //下载文件的总大小,必须
interval: number, //滑动窗口的时间间隔,单位毫秒,默认10s
auto: boolean, //true为连续下载buffer,false则是只有当前播放时间与已缓冲时间小于slideInterval时下载buf... |
'use strict';
var image = [], featured = [], collection = [];
configApp.factory("CollectionService", function($http) {
return {
save : function(sendData)
{
var urlConfig = [baseUrl, 'admin','collection_save'].join('/');
return $http({
method: 'POST',
url: urlConfig,
data: $... |
var uri = null;
function StartLayer(datatarget, url, title) {
$('div#loader').fadeOut("fast");
if (url == '#') return;
switch (datatarget) {
case "Normal":
$.colorbox({ href: url, title: title, iframe: true, fixed: true, width: "864px", height: "614px", transition: "none", scrolling: t... |
$(function(){
// 日期插件
$(".datetimepicker3").on("click",function(e){
e.stopPropagation();
$(this).lqdatetimepicker({
css : 'datetime-day',
dateType : 'D',
selectback : function(){
}
});
});
var newDate = new Date();
var str = new... |
// The javascript that makes the interface do its magic
// In this file you can find:
// - Loading showing and hiding (and animating) pages
// - Language switching
// - The sidebar controls
// - The footer sharing menu
// - Statistics page functions (will put this in seperate file some time soon)
// - ...
// functions... |
/**
* Created by Toure on 09/12/14.
*/
function searchAjax(keySearch){
if(typeof keySearch == "undefined")
{
keySearch = "";
}
function done(data){
var resultat = $.parseJSON(data);
resultat = resultat._results;
if(typeof resultat == "undefined" || resultat.length==0){... |
$Ready(function () {
$(document).off('click', '[data-toggle="event_rsvp"]').on('click', '[data-toggle="event_rsvp"]', function () {
var element = $(this),
event_id = element.data('event-id'),
parent = $('#js_event_rsvp_action_' + event_id),
bIsPublic = element.data('public'),
container = (... |
// Default settings
let that = this;
this.currentDataDes = 'MNIST';
console.log('Tensorflow Backend: ' + tf.getBackend());
// Paths to models
const dim2InfPath = './models/cvae-mnist-dim2/infModel/model.json';
const dim2GenPath = './models/cvae-mnist-dim2/genModel/model.json';
const dim10InfPath = './models/cvae-mnist... |
import Factory from '../../sources/Factory'
import AbstractHandler from '../../sources/AbstractHandler'
import {AdvertiserFactory} from "./Factory";
import {FileService, HTTPService} from "../../services";
import Promise from "bluebird";
import {wrapSeries, delay} from "../helpers";
import {isEmpty, toDecimal, toIntege... |
// At the moment Code 128 supports 128-B well, with basic support for 128-A
// (shifting for each character which lives in A but not B). Most of the
// building blocks for 128-C are included, but it's not implemented yet.
//
// There is also no ISO-8859-1 support (which would use FNC4).
const CODE_128_VAL = 0;
const ... |
"use strict";
/**
* TreeLayout helper class. Can layout an hierarchical tree to be both space conserving and pretty.
*
* based on "Node-Positioning for General Trees", by <NAME>
*/
var defaultOptions = {
NODE_WIDTH : 50, /* Width of a node? */
NODE_HEIGHT : 20, /* Height of a node? ... |
// / <reference no-default-lib="true"/>
/// <reference lib="webworker"/>
/* eslint-env worker */
importScripts('acorn-min.js', 'interpreter-min.js');
/* global Interpreter */
Interpreter.PARSE_OPTIONS = {
ecmaVersion: 5,
locations: true,
};
/**
* @namespace Wegas utilities
*/
var Wegas = {
// ... |
// @ts-check
//TODO: support canvas?
//TODO: support WebGL?
/** @typedef {Partial<{ flex?: number | CSSStyleDeclaration["flex"] } & Omit<CSSStyleDeclaration, "flex">>} BodyObjectStyle */
/** @typedef {Record<string, any>} BodyObjectAttributes */
/** @typedef {Partial<{ ns: string, tag: string, attributes: BodyObject... |
//1
const pokemonName1 = document.getElementById('pokemon-name1');
const pokemonHeight1 = document.getElementById('pokemon-height1');
const pokemonFrontImg1 = document.getElementById('pokemon-img-front1');
const pokemonNumber1 = document.getElementById('pokemon-number1');
const pokemonWeight1 = document.getElementById(... |
var React = require('react');
var ReactDOM = require('react-dom');
var $ = require('jquery');
var reader = require('properties-reader');
var ProgressBar = require('./progress-bar.js');
var Vector = require('./vector.js');
var Color = require('./color.js');
var Scene = React.createClass({
componentWillMount: func... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
/**
* SfxrParams
*
* Copyright 2010 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { ExchangeError, AuthenticationError, OrderNotFound, InsufficientFunds, DDoSProtection, PermissionDenied } = require ('./base/errors');
// -------------------------------... |
/*jshint curly:true, debug:true esversion:6 strict:true undef:true unused:true varstmt:true mocha:true node:true */
require("mocha");
const should = require("should");
var alasqlUtils = require("../src/alasql-utils.js");
describe("alasql-utils", function() {
describe("#createNewDatabase_()", function() {
it(... |
function BranchData() {
this.position = -1;
this.nodeLength = -1;
this.src = null;
this.evalFalse = 0;
this.evalTrue = 0;
this.init = function(position, nodeLength, src) {
this.position = position;
this.nodeLength = nodeLength;
this.src = src;
return this;
}
... |
import gotDefault from 'got';
import pg from 'pg';
import DiscordOauth2 from 'discord-oauth2';
import { oauthSites } from '../util/wiki.js';
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const slashCommands = require('../interactions/commands.json');
globalThis.isDebug = ( pro... |
$(function () {
$('#right .user dt').click(function(){
alert($(this).attr('uid'));
})
/**
* 头部选项移入效果
*/
//左侧选项
$('.top_left li').hover(function () {
$(this).addClass('cur_bg');
}, function () {
$(this).removeClass('cur_bg');
});
//用户名
$('.user').hover(function () {
$(this).addClass('cu... |
/**
* Copyright 2016, Sourcepole AG.
* 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.
*/
/*eslint no-console: 0, vars-on-top: 0, camelcase: 0*/
const urlUtil = require('url');
const axios = require('axios')... |
"use strict"
const assert = require(`assert`)
let { app, BrowserWindow, ipcMain } = require(`electron`)
let fs = require(`fs-extra`)
const https = require(`https`)
let { join, relative } = require(`path`)
let childProcess = require(`child_process`)
let semver = require(`semver`)
let Raven = require(`raven`)
const read... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = phonetic;
var _deburr = require('lodash/deburr');
var _deburr2 = _interopRequireDefault(_deburr);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Helpers.
*/
// ... |
/* BVH (Bounding Volume Hierarchy) Iterative Builder */
/*
Inspired by: <NAME> (ttsiodras on GitHub)
https://github.com/ttsiodras/renderer-cuda/blob/master/src/BVH.cpp
Edited and Ported from C++ to Javascript by: <NAME> (erichlof on GitHub)
https://github.com/erichlof/THREE.js-PathTracing-Renderer
*/
var stackptr = ... |
var base_url = window.location.toString();
var tabUrl = base_url.split("public");
//BOITE DE DIALOG POUR LA CONFIRMATION DE SUPPRESSION
function confirmation(id){
$( "#confirmation" ).dialog({
resizable: false,
height:170,
width:405,
autoOpen: false,
modal: true,
buttons: ... |
/*
A hodgepodge of random scripts to aid in rendering Minecraft skins
Latest code should be available at https://github.com/earthiverse/3D-Minecraft-Skin-Viewer
The MIT License
Copyright (c) 2014-2018 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and a... |
const express = require('express');
const app = express();
const db = require("./Model/Db");
const nodemailer = require('nodemailer');
const bodyParser = require('body-parser');//Body Parser
const path = require('path');
const csv = require('./Model/schema/Csv');
const produtos = require('./Model/schema/Produtos... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createSimpleFunctional = createSimpleFunctional;
exports.directiveConfig = directiveConfig;
exports.addOnceEventListener = addOnceEventListener;
exports.addPassiveEventListener = addPassiveEventListener;
exports.getNestedValue = get... |
/* global Module, MMM-FeedDisplay */
/* Magic Mirror
* Module: node_helper
*
* By <NAME>
* MIT Licensed.
*/
var NodeHelper = require("node_helper");
//this.name String The name of the module
//global Var
var isprofanity = require("isprofanity");
//pseudo structures for commonality across all... |
import _ from 'lodash';
import { util } from 'appium-support';
import { validators } from './validators';
import {
errors, isErrorType, getResponseForW3CError, getResponseForJsonwpError,
errorFromMJSONWPStatusCode, errorFromW3CJsonCode,
} from './errors';
import { METHOD_MAP, NO_SESSION_ID_COMMANDS } from './routes... |
import React from "react";
import TextField from "@material-ui/core/TextField";
import Autocomplete from "@material-ui/lab/Autocomplete";
export default function CountryCodePicker(props) {
const [value, setValue] = React.useState(countryCodes[102]);
React.useEffect(() => {
if (props.disabled == fals... |
import { mapboxgl } from "@mapgis/mapbox-gl";
import { Zondy } from "../../service/common/Base";
import { extend } from "../../service/common/Util";
/**
* @class Theme3DLayer
* @classdesc 三维专题图基类,不能直接实例化
* @param id -{string} 专题图图层id
* @param layerOptions -{Object} 专题图图层配置项<br>
* opacity -{number} 图... |
/*
Copyright 2014 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed ... |
import React, { PropTypes } from 'react'
import autobind from 'autobind-decorator'
import * as d3 from 'd3'
import ViewportMercator from 'viewport-mercator-project'
import { lerp, parseDate } from '../utils'
import WebGLOverlay from './WebGLOverlay'
import MapGL from 'react-map-gl'
import THREE from 'three'
class Back... |
window.$id = function (id){
return document.getElementById(id);
};
function checkBrowser(){
if (hi5.browser.isChromeApp) return;
var msg = '';
try {
document.createElement('canvas').getContext('2d');
} catch (e) {
msg = 'This browser does not support Canvas.\n\n';
};
var ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setThreadStackRangeNames = exports.showNativeExecption = exports.traceExecBlockByStalkerAt = exports.showDiasm = exports.showCpuContext = exports.showThread = exports.showThreads = exports.cprintf = exports.readStdString = exports.tr... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module node-opcua-address-space.Private
*/
const node_opcua_assert_1 = require("node-opcua-assert");
const _ = require("underscore");
const util = require("util");
const node_opcua_data_model_1 = require("node-opcua-data-model... |
//////////////////////////////////////////////////////////////////////////////////////////////////////
class Card extends Phaser.GameObjects.Sprite {
constructor(scene, x, y, number) {
super(scene, x, y, `card${number}`);
this.number = number;
this.setScale(0.75);
scene.add.existing... |
/*
Copyright (c) 2009-2010 <NAME> <EMAIL>
Recast4J Copyright (c) 2015 <NAME> <EMAIL>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for a... |
// ChatRooms webpart object
function ChatRooms(opt) {
// Variables
var defaults = {
templateListItem: "",
groupID: -1,
clientID: -1,
pnlChatRoomsList: "",
btnChatRoomsPromptSubmit: "",
pnlChatRoomsPrompt: "",
txtChatRoomsPromptInput: "",
... |
import Cookies from 'js-cookie'
// cookie保存的天数
import config from '@/config'
import { forEach, hasOneOf, objEqual } from '@/libs/tools'
import Vue from 'vue'
import JWT from 'jsonwebtoken'
import moment from 'dayjs'
const {
title,
cookieExpires,
useI18n
} = config
export const TOKEN_KEY = 'token'
export const ... |
$(document).ready(function () {
/* TAB ON CLICK CHANGE */
$(".nav-tabs > li > a").click(function (e) {
var sTarget = $(this).attr("aria-controls");
if (sTarget == "divPerInfo") {
$("button[data-div]").fadeOut();
} else {
$("button[data-div]").fadeIn();
... |
import React, { useState, useEffect, useRef } from 'react';
import axios from 'axios';
import styled from "styled-components"
import InputLabel from '@material-ui/core/InputLabel';
import MenuItem from '@material-ui/core/MenuItem';
import Select from '@material-ui/core/Select';
import TextField from '@material-ui/core/... |
const Discord = require('discord.js');
const { prefix } = require('../config/config.json');
const { randomSth } = require('../helping-functions/randomize-func');
const OMEGA_COIN_EMOJI_ID = "<:omegacoin:755084512370622464>";
// All message prefix emoji
const errorPrefix = ':no_entry: ';
const infoPrefix = ':informati... |
const STATE_GAME_NONE = 0;
const STATE_GAME_LOADING = 1;
const STATE_GAME_PLAYING = 2;
const STATE_GAME_GAMEOVER = 3;
const STATE_GAME_WIN = 4;
const NUMBER_LEVELS = 5;
const STEP = 38;
const ADDED_POINTS = 100;
const BAR_VELOCITY = -0.5;
const SPEEDS = [60,75,65,85,80,60];
const MEMES = ["sparta", "peluchito", "xoripa... |
//
// Serial port for a2m8 based on
// android-rtc serial
//
// Hoang
//
const SerialPort = require('serialport');
/* ======= LIDAR command flag ======= */
const _cmd = {
STOP: 0x25, // exit current state and enter idle state
RESET: 0x40, // reset LIDAR core
SCAN: 0x20, // enter slow scanning state of... |
///////////////////////
// RESOURCES HELPER //
///////////////////////
// o2
// co2
// h2o
// glucose
// pyruvate
// protein - should these be separated into exocytosed, cytoplasmic, and surface/embedded?
// atp
// nadh
// fadh2
// rna
//Unsure/ideas:
//fatty acids? converted from citrate in the mitochondria, sent t... |
const NewTaipeiDistricts = {
全區: 1,
萬里區: 207,
金山區: 208,
板橋區: 220,
汐止區: 221,
深坑區: 222,
石碇區: 223,
瑞芳區: 224,
平溪區: 226,
雙溪區: 227,
貢寮區: 228,
新店區: 231,
坪林區: 232,
烏來區: 233,
永和區: 234,
中和區: 235,
土城區: 236,
三峽區: 237,
樹林區: 238,
鶯歌區: 239,
三重區: 241,
新莊區: 242,
泰山區: 243,
林口區: 244,
蘆洲區:... |
const SCROLL_SENSITIVITY = 1.2;
const DEFAULT_ZOOM = 0.01;
const canvas = document.getElementById("canvas");
const gl = canvas.getContext("webgl");
let params = [];
let shaders = {};
let zoom = DEFAULT_ZOOM;
let center = [0, 0];
let mouseDown = false;
let shiftMouseDown = false;
let shiftMousePos = [0, 0];
const ge... |
import WebSocket, {Server} from 'ws';
import _ from 'lodash';
import config from '../core/config/config';
import database from '../database/database';
import eventBus from '../core/event-bus';
import crypto from 'crypto';
import async from 'async';
import peer from './peer';
import walletUtils from '../core/wallet/wall... |
const TYPE_window_info = "MAKE_window_info_name"
function MAKE_window_info(data) {
let obj = {}
obj.type = TYPE_window_info
if(!data.hasOwnProperty('id')) throw new Error("object 'window_info' is missing property 'id' ")
if(data.id === undefined) throw new Error("object 'window_info has undefined proper... |
#!/usr/bin/env node
const program = require('commander');
const fs = require("fs");
const path = require("path");
const chalk = require('chalk');
const clear = require('clear');
const figlet = require('figlet');
const inquirer = require("inquirer");
const ora = require('ora');
const moment = require("moment");
const ... |
String.prototype.format = function() {
var args = arguments;
return this.replace(/{(\d+)}/g, function(match, number) {
return typeof args[number] != 'undefined' ? args[number] : match;
});
}
//funções para usar com reduce, map, etc
const maximum = (accumulator, currentValue) => Math.max(ac... |
import Phaser from "phaser";
import {screenable} from './screenable';
import photonYellow from "./assets/images/photon-yellow.png";
import iceblock from "./assets/images/ice.png";
import cloudimage from "./assets/images/cloud.png";
import photonRedIMG from "./assets/images/photon-red.png";
import hottnes from "./assets... |
var Notification = {
Show: ShowNotification,
Html: "",
Object: null,
Close: CloseNotification,
IsOpen: false
}
var currentSiteState = -1;
var playerPopover = {
object: null,
moveToTarget: MovePlayerPopoverToTarget,
target: null,
hovered: false
};
var playerDetails = {};
var ownDet... |
/* Create global 'GW' object, if need be.
*/
if (typeof window.GW == "undefined")
window.GW = { };
/*****************/
/* MEDIA QUERIES */
/*****************/
GW.mediaQueries = {
mobileWidth: matchMedia("(max-width: 650px)"),
systemDarkModeActive: matchMedia("(prefers-color-scheme: dark)")... |
const question = document.querySelector('#question');
const choices = Array.from(document.querySelectorAll('.choice-text'));
const progressText = document.querySelector('#progressText');
const scoreText = document.querySelector('#score');
const progressBarFull = document.querySelector('#progressBarFull');
let currentQ... |
/*
The <media-chrome> can contain the control elements
and the media element. Features:
* Auto-set the `media` attribute on child media chrome elements
* Uses the element with slot="media"
* Take custom controls to fullscreen
* Position controls at the bottom
* Auto-hide controls on inactivity while pla... |
/**
* Created by Aaron on 2018/7/18.
*/
/**
* Created by Aaron on 2018/7/17.
*/
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import {Link} from 'react-router';
import {Glyphicon, Row, Col} from 'react-bootstrap';
import {browserHistory} from 'react-r... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
require('@babel/polyfill');
var AWS = require('aws-sdk');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var AWS__default = /*#__PURE__*/_interopDefaultLegacy(AWS);
funct... |
import React from 'react'
import { StyleSheet, View, FlatList, TouchableOpacity, ActivityIndicator, Text } from 'react-native'
import { connect } from 'react-redux'
import * as PublicationFeedActions from '../../../../redux/FeedPublications/actions'
import * as StoriesActions from '../../../../redux/Stories/actions'
im... |
function GetPluginSettings()
{
return {
"name": "Photon Chat", // as appears in 'insert object' dialog, can be changed as long as "id" stays the same
"id": "PhotonChat", // this is used to identify this plugin and is saved to the project; never change it
"version": "1.0", // (float in x.y format... |
// ==UserScript==
// @name Duolingo Stats
// @namespace http://code-poet.net
// @version 1.0.0
// @description Shows stats on Duolingo
// @match http://www.duolingo.com/*
// @match https://www.duolingo.com/*
// @copyright 2017, <NAME>, MIT License
// ==/UserScript==
function inject(f... |
'use strict';
/**
* Author: <NAME>
* Email: <EMAIL>
* Date: 01/01/15.
* Contributors:
*/
var width = window.innerWidth,
height = window.innerHeight,
container,
consoleBox,
outputBox,
gestureBox,
gBox;
var renderStatus = 1;
var joints = {},
jointNames = [],
handTrackingJoints = ["RIGHT", "LEFT"],
skel... |
/**
* 异常工时数据信息管理
*/
var pageCurr;
$(function() {
layui
.use(
[ 'form', 'tableSelect', 'table', 'laydate' ],
function() {
var table = layui.table, form = layui.form, tableSelect = layui.tableSelect, laydate = layui.laydate;
tableIns = table
.render({
elem : '#cardList',
... |
function overlay_loader_show(){
shownat = Date.now();
$('.overlay_loader').show();
}
function overlay_loader_hide(){
$('.overlay_loader').hide();
var text = "Loading took: " + (Date.now() - shownat) + " ms";
if (debugmode) {
$("#p-footer").append(text);
log(text);
}
}
//duplica... |
// Loads NavMeshSet from https://github.com/recastnavigation/recastnavigation
var FileLoader = require('io/FileLoader');
var jBinary = require('jbinary');
var _ = require('util/util');
function Mask(nbits, shift) {
this.nbits = nbits;
this.shift = shift || 0;
this.mask = (1 << this.nbits) -1;
}
Mask.prototype.d... |
onload = init;
const ORBIT_STEP = 1;
const ANIMATION_STEP = 1;
const TRANSLATION_FACTOR = 200;
const BACKGROUND_COLOR = [0.3921, 0.5843, 0.9294, 1.0];
class Animation {
fileNames;
isLoaded;
models;
keyframe1Index;
keyframe2Index;
constructor(fileNames) {
this.fileNames = fileNames;
this.isL... |
'use strict'
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path
const ffprobePath = require('@ffprobe-installer/ffprobe').path
const ffmpeg = require('fluent-ffmpeg')
ffmpeg.setFfmpegPath(ffmpegPath)
ffmpeg.setFfprobePath(ffprobePath)
const process = require('child_process')
const path = require('path')
const... |
/*
* Start Employee Script
*
*/
// setting mobile number when employee is selected
$('.list-employee').on('change', function(){
$('#employee_mobile').val($(this).find('option:selected').data('mobile'));
});
// adding of employees
$('#add-employee').on('click', function(){
var employee = {};
... |
// The Api module is designed to handle all interactions with the server
var map;
var lat, long, endereco;
var Api = (function() {
var requestPayload;
var responsePayload;
var messageEndpoint = '/api/message';
// Publicly accessible methods defined
return {
sendRequest: sendRequest,
... |
/*!
* Copyright 2013 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... |
const countries = [
{ label: "Afghanistan", ISO3: "AFG", code: "004" },
{ label: "Albania", ISO3: "ALB", code: "008" },
{ label: "Algeria", ISO3: "DZA", code: "012" },
{ label: "Andorra", ISO3: "AND", code: "020" },
{ label: "Angola", ISO3: "AGO", code: "024" },
{ label: "Antigua and Barbuda", ISO3: "ATG", ... |
import React from 'react';
import TopSection from './components/TopSection/TopSection';
import DmmToolbar from './components/toolbar/DmmToolbar.js';
import Swapper from './components/swapper/Swapper';
import Footer from './components/Footer/Footer';
import styles from './App.module.scss';
import DmmWeb3Service from ... |
// app.js
"use strict";
const { ipcRenderer, shell } = require('electron');
const { app, dialog } = require('electron').remote;
const path = require('path');
const Framework7 = require('framework7'),
Template7 = require('template7');
const $$ = Dom7;
const { ResLoader, ResBundle, NewlineMode } = require('./resload... |
/* jshint node: true */
/* jslint node: true */
/* jshint strict:false */
/* jslint browser: true */
/* jslint asi: true */
'use strict'
var glClear = require('gl-clear')
var createContext = require('gl-context')
var fit = require('canvas-fit')
var glShader = require('gl-shader')
var glslify = require('glslify')
var ... |
var SVGPath = require('../path');
// This constant is used to approximate a symmetrical arc using a cubic
// Bezier curve.
var KAPPA = 4.0 * ((Math.sqrt(2) - 1.0) / 3.0);
module.exports = {
initVector: function() {
this._vectors = [];
this._lineWidth = 0.3;
this._ctm = [1, 0, 0, 1, 0, 0];
this._ctmS... |
const moment = require('moment');
const io = require('socket.io-client');
//独自モジュール読み込み
const workDir = process.cwd();
const Strategy = require(workDir + '/bot/vixrsi/strategy');
//const CwUtil = require(workDir + '/cryptowatch/cwutil');
const CwUtil = require(`${workDir}/api/chartUtil`);
const VIXConfig = req... |
"use strict";
function getUrlVar(key){
// https://gist.github.com/1771618
var result = new RegExp(key + "=([^&]*)", "i").exec(window.location.search);
return result && unescape(result[1]) || "";
}
function startsWith(s, pattern) {
return s.lastIndexOf(pattern, 0) === 0;
}
function degrees(radians) {
... |
/* *
*
* Experimental Highcharts module which enables visualization of a Venn
* diagram.
*
* (c) 2016-2021 Highsoft AS
* Authors: <NAME>
*
* Layout algorithm by <NAME>:
* https://www.benfrederickson.com/better-venn-diagrams/
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED... |
let activeBulletinId;
let walletAddress;
let infoActive = false;
let recipientAdded = false;
let bulletins = new bulletinsObj();
let myIntro = introJs();
$(document).ready(function () {
$("#saveBtn").click(function () {
$('#bottomHelpBannerText').fadeIn('fast');
transactionFeedbackHandler('Saving')... |
/* Copyright© 2018 <NAME>, All Rights Reserved. */
'use strict';
const tau = Math.PI * 2;
//-------------------------------------------------------------------------------
// http://www.javascripter.net/faq/browsern.htm
function detectBrowser ()
//--------------------------------------------------------------... |
"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";
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... |
var AWS = require('aws-sdk')
var defaults = require('merge-defaults')
var assert = require('assert')
var util = require('util')
var path = require('path')
var url = require('url')
var cloudfront = require('cloudfront-tls')
var diff = require('deep-diff').diff
var assign = require('object-assign')
var fs = require('grac... |
const DCOrig = artifacts.require("./SVDelegation.sol");
const DCv11 = artifacts.require("./SVDelegationV0101.sol");
const R = require('ramda');
require("./testUtils")();
const AsyncPar = require("async-parallel");
const {create, env} = require("sanctuary");
const S = create({checkTypes: true, env});
const bytes32ze... |
import React, { useEffect, useState } from 'react';
import { StyleSheet, Text, View, ScrollView, Image, Dimensions, TouchableOpacity, Modal, Pressable, Vibration, Linking } from 'react-native';
import { Button, Icon, Divider } from 'react-native-elements';
// API
import { Audio } from 'expo-av';
// Animations
import ... |
/*
This is where the magic happens
*/
var WidevineCrypto = {};
// Convert a hex string to a byte array
function hexToBytes(hex) {
for (var bytes = [], c = 0; c < hex.length; c += 2)
bytes.push(parseInt(hex.substr(c, 2), 16));
return bytes;
}
// Convert a byte array to a hex string
function byte... |
import $ from "jquery";
import _ from "underscore";
import { View } from 'backbone';
import Backbone from 'backbone';
import { Node } from "../models/node";
import { Tags } from "../models/tags";
import { TagsModalView } from "../views/tags_modal";
import {DgPageScroll} from "../document_form/page_scroll";
import {DgT... |
// Setting debug to true will turn on console.log messages used for debugging.
let debug = false
// Variables for handling throttling DOM searches.
const THROTTLE_MS = 100
let hasUnseenMutations = false
let isThrottled = false
// A cache to store video ratings, to limit API calls and improve performance.
let videoCac... |
var mapData,ALL_MARKERS=[],MARKERS_LAYER;
var HIRERS_LAYER, CARS_LAYER;
var HIRERS_MARKERS=[], CARS_MARKERS=[];
var filter_hirers_range;
function showAllHirers(){
if (!map.hasLayer(HIRERS_LAYER))
map.addLayer(HIRERS_LAYER);
HIRERS_LAYER.clearLayers();
for(var i=0;i<HIRERS_MARKERS.length;i++){
let m = HIRE... |
const http = require('http');
const fs = require('fs');
var WebSocketServer = require('ws').Server;
const express = require('express');
const serveIndex = require('serve-index')
const app = express();
const bodyParser = require('body-parser');
//large limit lets us send pictures
app.use(bodyParser.text({ type: "*/*... |
var wxfaqListUrl = host + "/wechat-customer-services"; //微信客服列表
var billDetailUrl = host + "/user-bills"; //账单明细列表
var ranksUrl = host + "/ranks"; //英雄榜
var baseHost = window.location.host;
$(function(){
addEventBack();
function addEventBack(){
pushHistory();
window.addEventListener("popstate",addBackKey, fals... |
'use strict';
import { Globe } from '../../src/og/Globe.js';
import { GlobusTerrain } from '../../src/og/terrain/GlobusTerrain.js';
import { BilTerrain } from '../../src/og/terrain/BilTerrain.js';
import { MapboxTerrain } from '../../src/og/terrain/MapboxTerrain.js';
import { XYZ } from '../../src/og/layer/XYZ.j... |
// 0x0700A340 - 0x0700A358
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsDPSetTile,
gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList,
G_IM_FMT_RGBA, G_IM_SIZ_16b, CALC_... |
/*
Paella HTML 5 Multistream Player
Copyright (C) 2017 Universitat Politècnica de València 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://www.osedu.org/licenses/ECL-2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.