text stringlengths 5.97k 41.2k |
|---|
import EventEmitter from 'event-emitter'
import Merge from 'deepmerge'
import Parser from './parse'
import Buffer from './fmp4/buffer'
import FMP4 from './fmp4/mp4'
import Task from './media/task'
import Download from './util/download'
import util from './util'
import Player from 'royplayer'
import Errors from './error... |
"use strict";
var context = require_core("server/context");
var config = require_core("server/config");
var template = require_core("server/template");
var bridge = require_core("server/bridge");
var page = require_core("server/page");
var rbac = require_app("server/rbac");
var backend = require_app("server/backend"... |
function appAlert(message, title) {
toastr.error(title, message,
{
'timeOut': 10000,
'closeButton': true,
'progressBar': true
}
);
}
function appInfo(mensagem, titulo, timeout) {
if (!timeout)
timeout = 10000;
toastr.info(titulo, mensagem,
{
'timeOut': timeout,
'closeButton': true,
'pro... |
// 文档地址前缀
// 界面标题描述统一管理
const pageDetail = {
status_custom_home_title: 'Custom status of project "{name}"',
status_custom_home_description: 'The table below shows the available test execution status, test step status.',
// 报表
report_content_title: 'Reports of project "{name}"',
report_content_description: 'T... |
/**
* Mocha tests for the UcumLhcUtils class.
*
* Run from the command line with 'mocha testUcumLhcUtils.js' or
* 'grunt test'Intern
*/
var assert = require('assert');
var Ucum = require('../source-cjs/config.js').Ucum;
var {ucumJsonDefs} = require('../source-cjs/ucumJsonDefs.js');
var UTables = require("../sourc... |
// Only for Development
//var serverRoot = 'http://localhost/Mejili/public';
//==================================================
var serverRoot = '';
//var serverRoot = 'http://192.168.0.100/Mejili/public';
var self;
window.Mejili = {
initialize : function(){
self = this;
self.setPreferredContai... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const cli_framework_1 = require("@ionic/cli-framework");
const process_1 = require("@ionic/cli-framework/utils/process");
const string_1 = require("@ionic/cli-framework/utils/string");
const utils_fs_1 = requi... |
const Leaderboard = require('../database/models/leaderboards');
const Discord = require('discord.js');
async function addLeaderboard(message, args) {
// Get the full tournament name
const tournamentName = args.join(' ');
// Create a tournament object to store in DB
const tournamentObject = {
name: tournamentName... |
//! To VIEW PROPERLY DOWNLOAD BETTER COMMENTS EXTENSION AND INSERT THE FOLLOWING TAGS IN PACKAGE.JSON:
/*
"better-comments.tags": [
{
"tag": "!",
"color": "#FF0000",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": true,
"itali... |
/*
*
* strocke : [width:Number] [color:Color]; //compact version
* strocke-color : [color:Color];
* strocke-opacity : [opacity:Number];
* strocke-width : [width:Number];
*
* fill : [color:Color]; //compact version
* fill-color : [color:Color];
* fill-opacity : [opac... |
import { MultiDimensionalData } from './base.js'
import stringToFunction from '../expression.js'
const exprUsage = `
Variables:
x: x-axis value
y: y-axis value (if the dimension is greater than 1)
z: z-axis value (if the dimension is greater than 2)
t: Index of the data
n: Total number of the data
Constants:... |
// Initialize Firebase
var config = {
apiKey: "<KEY>",
authDomain: "tacl-79682.firebaseapp.com",
databaseURL: "https://tacl-79682.firebaseio.com",
storageBucket: "tacl-79682.appspot.com",
};
firebase.initializeApp(config);
var database = firebase.database();
var game = { season: '' };
// Calculate width of text... |
var Clayer = function (layer) {
layer.status = 'loading';
var map = document.getElementById(layer.map._container.id);
layer.dim = {'width': map.offsetWidth, 'height': map.offsetHeight};
layer.setcanvas = setcanvas;
layer.loadimage = loadimage;
layer.drawimage = drawimage;
layer.switchimage =... |
/*
* Copyright IBM Corp. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
'use strict';
/**
* A test application to show state based endorsements operations with a running
* asset-transfer-sbe chaincode with discovery.
* -- How to submit a transaction
* -- How to query
* -- How to limit ... |
/**
* @file help function for html TuningDetails page
*
* Copyright (c) 2020 Huawei Technologies Co., Ltd.
* A-Tune is licensed under the Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.cos... |
const path = require('path');
const util = require('util');
const glob = require('glob');
const Loader = require('./loader');
const ExitHandler = require('./exit_handler');
const ConsoleSpecFilter = require('./filters/console_spec_filter');
module.exports = Jasmine;
module.exports.ConsoleReporter = require('./reporter... |
'use strict';
/* Produces level renders from Kirby's Dreamland 2's ROM. */
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value"... |
function this_is_me(e,eve){
if(!$(e).hasClass( "do_not_show_my_menu") && !$(e).hasClass( "hover_disable") && !$(e).hasClass("modal_close_btn") && drag_running == false && $(e)[0].type != 'checkbox'){
var me = e;
eve.stopPropagation();
remove_editor_hover_conf();//gloval_val.js
$(e).addClass('hover_show_my_bord... |
var ctx="";
$(function(){
var table = $('#dataTables-share').DataTable({
"fnInitComplete": function(oSettings, json) {//fnInitComplete:datatables初始化完毕后会调用这个方法
$("table tbody tr:first").addClass('selected');//添加一个选中的class
},
"lengthChange": false, //改变每页显示数据数量
"filter": false, //过滤功能... |
"use strict";
import { init as initCountryPicker } from "./view/countryPicker.js";
import { draw as drawChart } from "./view/drawSVG.js";
import { Legend } from "./view/legend.js";
import { init as initModel } from "./model/data.js";
import { parseParams } from "./model/queryStringParser.js";
import { buildPermalink }... |
/*+***********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Dev... |
var fs = require('fs');
var getOptions = require('loader-utils').getOptions;
var path = require('path');
var validateOptions = require('schema-utils');
var ts = require('typescript');
var util = require('util');
var async = require('async');
var crypto = require('crypto');
var _a = require('./diagnostics'), getDiagnost... |
/**
* @author bhouston / http://exocortex.com
*/
QUnit.module( "Matrix3" );
var matrixEquals3 = function( a, b, tolerance ) {
tolerance = tolerance || 0.0001;
if( a.elements.length != b.elements.length ) {
return false;
}
for( var i = 0, il = a.elements.length; i < il; i ++ ) {
var delta = a.elements[i] - b... |
var tuneables = {
'acousticness':{
'min':0.0,
'max':1.0,
'type':'float',
'display':'Acousticness'
},
'danceability':{
'min':0.0,
'max':1.0,
'type':'float',
'display':'Danceability'
},
'duration_ms':{
'type':'int',
'display':'Duration (m... |
'using strict';
////////////////////////////////////////////////////////////////////////////////
var stats;
var gui;
var settings = {
target_fps: 60,
environment_brightness: 1.5
};
var sceneSettings = {
ambientColor: new Float32Array([0.15, 0.15, 0.15, 1.0]),
};
/////////////////////////////////////////////////... |
var KWA = window.KWA = window.KWA || {};
var isFF = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
(KWA.STATES = KWA.STATES || {})['datingsim'] = {
INPUT_MODE: {ADVANCING: 'advancing', WAITING: 'waiting', STOPPED: 'stopped', CHOICE: 'choice', FASTFORWARD: 'fastforward'},
NAMEBOX_YOFFSET: 410,
... |
const FIXED_POINT = 1e18
const LP_TOKEN_POINT = 1e18
const PRICE_POINT = 1e8
const DOL_POINT = 1e8
const RDS_POINT = 1e8
const BLOCKS_PER_YEAR = 2102400 * 5
const INITIAL_SUPPLY = 2e7
const INITIAL_REWARD = 8e7 / 2 / BLOCKS_PER_YEAR
const MAX_UINT256 = '0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF... |
import Tool from "../core/modelList/tool/model";
const TreeFilter = Tool.extend({
defaults: _.extend({}, Tool.prototype.defaults, {
filter: "",
filterHits: "", // Filtertreffer
isFilter: false,
errors: "",
treeCategory: "", // Baumgattung
treeType: "", // Baumart
... |
import { createHTML } from '../../../components/createHTML.js';
import { createSTYLE } from '../../../components/createSTYLE.js';
import { alignmentFlex } from '../../../components/alignmentElement.js';
import { listenerElement } from "../listenerButtons.js";
import { setColorMode } from "../../home.js";
e... |
/*
Copyright 2015, 2016 OpenMarket 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, sof... |
import React, { Component } from 'react';
import overlap from './overlap';
import mergeHighlights from './mergeHighlights';
import HandleEnd from './Handles/HandleEnd';
import HandleStart from './Handles/HandleStart';
function getStyledText(key, subtext, styles) {
switch (styles) {
case 'ib':
case 'bi':
... |
const Find = require("./find.js");
const { print, on, off, move } = require("./utils.js");
const INPUT_INTERVAL_THRESHOLD = 360;
const findBox = "findBox";
const findInput = "findInput";
const findMatches = "findMatches";
const findCase = "findCase";
const findBack = "findBack";
const findForward = "findFor... |
import * as path from "path";
import { gql } from "apollo-server";
import { loadAssetManifest } from "../neopets-assets";
const typeDefs = gql`
enum LayerImageSize {
SIZE_600
SIZE_300
SIZE_150
}
enum LayerType {
PET_LAYER
ITEM_LAYER
}
# Cache for 1 week (unlikely to change)
type Appe... |
const sql = require('sqlite');
const settings = require('../settings.json');
sql.open(`../${settings.sqlitefilename}.sqlite`);
exports.run = async client => {
const Discord = require('discord.js');
const chalk = require('chalk');
client.guildconfs.defer.then(() => {
console.log(chalk.green(`${client.guildconfs.si... |
var GlideListElement = Class.create({
initialize: function (name, table) {
this.name = name;
this.table = table;
},
setValue: function (newValue, newDisplayValue) {
var isArbitraryEmail = false;
var hiddenElement = gel(this.name);
var visibleElement = gel("select_0" ... |
import * as d3 from 'd3';
import boxmodelD3 from 'boxmodel-layout-for-d3';
import chartFactory, { fitChart, textSize, textSubscript, circleLabel } from './common/d3-helper';
import * as styles from './styles.js';
export default class D3Form {
// -----------------------------------------------------------
// ... |
const path = require("path");
const mongoose = require("mongoose");
const discord = require("discord.js");
const config = require("../../config.json");
const {
log: {
info,
warn,
error
},
Sandbox,
loadGuild,
loadGuilds,
loadLocalScripts,
loadGuildScripts,
loadUser,
matchScript,
evalPer... |
'use strict';
let gameSpeed = 1;
let baseManaPerSecond = 50;
let curTime = new Date();
let gameTicksLeft = 0;
let radarUpdateTime = 0;
let timeCounter = 0;
function getSpeedMult(zone) {
if (isNaN(zone)) zone = curTown;
var speedMult = 1;
//dark ritual
if (zone === 0 && getBuffLevel("Ritual") > 0) sp... |
'use strict';
/*eslint no-undef: "error"*/
/*eslint-env browser*/
let familymembers = [];
let whitelist = [];
let arr;
let dlgMembers;
let dlgWl;
let secret;
let active = false;
if (typeof _ !== 'function') _ = translateWord;
function encrypt(key, value) {
let result = '';
for (let i = 0; i < value.length; +... |
const DEFAULT_DURATION = "P1D";
const SeismogramDisplayData = seisplotjs.seismogram.SeismogramDisplayData;
const HelicorderConfig = seisplotjs.helicorder.HelicorderConfig;
const Helicorder = seisplotjs.helicorder.Helicorder;
const MINMAX_URL = "http://eeyore.seis.sc.edu/minmax";
const MSEED_URL = "http://eeyore.seis.... |
import * as React from 'react';
import {
View,
Image,
CheckboxGroup,
Checkbox,
Label,
Input,
Text,
navigateTo,
onLocalServiceResolveFail,
hideLoading,
} from 'remax/wechat';
import clsx from 'clsx';
import useUserInfo from '../../hooks/useUserInfo';
import AddButton from '@/components/ShineButton';... |
'use strict';
//Source Data
var wizardAbilities = [
'arcane recovery',
'spell mastery',
'signature spells',
'acid splash',
'blade ward',
'chill touch',
'dancing lights',
'fire bolts',
'friends',
'light',
'mage hand',
'mending',
'message',
'minor illusion',
'poison spray',
'prestidigita... |
var version = "dev 0.24";
var fps_time = 0;
var fps_wait = 0;
var loop_time = 0;
var debug = false;
var PI = Math.PI;
var map;
var keys = {
up : false,
right : false,
down : false,
left : false
};
var me = false;
var others = [];
var STEP = 0.1;
var clockRatio = 6000;
var clock = 0*clockRatio;
var color = [
... |
var Conversations = (function(){
var username = "";
var userGroups = [];
var conversationTemplate = {};
var conversationsListing = undefined;
var importTemplate = {};
var importListing = undefined;
var currentQuery = "";
var currentSearchResults = [];
var currentImports = [];
va... |
import React, { useState, useEffect, useRef } from "react";
import AnnotationsVis from "./components/annotationsVis";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
faArrowLeft,
faArrowRight,
faWindowClose,
} from "@fortawesome/free-solid-svg-icons";
import AnnotationEditForm from "./c... |
/**
* Created by yozo on 2017/8/18.
*/
"use strict";
/* -----------------------common function -----------------------*/
//上传文件检测step1
function upLoadFileCheck(option) {
var file = option.file;
var types = $(option.types); //容许的类型
var size = option.size; //容许的大小
var filetype, filesize, uploadtype, fi... |
// Used to replace <img> src links that don't have a file extension
// If the image src doesn't have a file type:
// 1. Create a dummy link
// 2. Detect image type from the binary data & create new links
// 3. Replace all the dummy links in tmpGlobalContent with the new links
var tmpGlobalContent = null
var allImages... |
function show_special()
{
var o = document.getElementById('special_perms');
if (document.getElementById('blog_perms_1').checked===true)
o.style.display='block';
else
o.style.display='none';
}
function changeDate()
{
document.getElementById('date-publ').style.display = 'block';
document.getElementById('date-pu... |
// 参考: https://qiita.com/qiita_mona/items/e58943cf74c40678050a
// getUserMedia が使えないとき
if (typeof navigator.mediaDevices.getUserMedia !== 'function') {
const err = new Error('getUserMedia()が使用できません');
alert(`${err.name} ${err.message}`);
throw err;
}
// select要素のoptionをクリアする
function clearSelect(select) {
whil... |
import React, { Component } from "react";
import { connect } from "react-redux";
import StepZilla from "react-stepzilla";
import { SelectGoal, CustumizeGoal, Questionnaire, FundAccount } from "./steps";
import { subscribeAccountClear, accountPortfolioHoldingClear } from "../store/actions/accounts";
import SpinnerCompo... |
/* solicitudes/deldup/GET - borra duplicadas en base de datos */
'use strict';
var express = require('express');
var url = require('url'), qs = require('querystring'), _ = require('lodash'), http = require('http'), https = require('https');
var bst = require('better-stack-traces').install();
var globales = require('../... |
///<reference path="./definitions/three.d.ts"/>
///<reference path="./definitions/detector.d.ts"/>
///<reference path="./definitions/stats.d.ts"/>
///<reference path="./definitions/ammo.d.ts"/>
var Engine = (function () {
function Engine(element, clearColor) {
this.clock = new THREE.Clock();
this.ri... |
const os = require('os');
const fs = require('fs');
const cp = require('child_process');
const glob = require('glob');
const path = require('path');
const rimraf = require('rimraf');
const express = require('express');
const realWebpack = require('webpack');
const proxy = require('express-http-proxy');
const webpackMid... |
var {generate} = require("../bebras-modules/pemFioi/sentences_2");
var seedrandom = require("seedrandom");
var {shuffle} = require("shuffle");
var {range} = require("range");
/**
* Default constants
*/
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
const symbols = "^@&#{}[]()|-°+=$£%¨*µ!€:/;.,?abcdefghijklmnopqrstu... |
// Import all these modules
const fs = require("fs");
const path = require("path");
const arg = require("arg");
const chalk = require("chalk");
const plist = require("plist");
const sharp = require("sharp");
const trash = require("trash");
// Elapsed seconds
let elapsed = 0;
// Task is finished
let finished = false;
/... |
/**
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/* globals Globalize */
import _ from 'underscore';
const begin = /^ */.source;
const end = /[*']* *$/.source;
const s0 = /[ \-/.]?/.source; // optional separator
const s1 = /[ \-/.]/.source; // mandatory separator
const s2 = /[ \-/.;]/.source; // mandatory separator
const s3 = /[ \-|T]/.source; // mandatory separator... |
// https://raw.githubusercontent.com/IDPF/epub-revision/master/src/samples/cfi/epubcfi.js
//http://stackoverflow.com/questions/16792578/how-to-create-a-epub-annotation-with-save-option-within-the-epub
//http://matt.garrish.ca/2013/03/navigating-cfis-part-1/
//http://matt.garrish.ca/2013/03/navigating-cfis-part-1/
'use ... |
'use strict';
function repo_drawlogic(){
canvas_buffer.save();
canvas_buffer.translate(
canvas_properties['width-half'],
canvas_properties['height-half']
);
canvas_setproperties({
'properties': {
'fillStyle': '#000',
},
});
canvas_buffer.fillRect(
-core_st... |
/******************************************************************************
* Copyright © 2017 XIN Community *
* *
* See the DEVELOPER-AGREEMENT.txt and LICENSE.txt files at the top-level *
... |
/*
* UI
*/
var Ui = function() {
this.dropboxEnabled = true;
this.gridRendered = false;
this.tabs = {}; //[name] -> id , code
this.activeTab = null;
this.tabId = 0;
this.init();
}
Ui.prototype.init = function() {
var that = this;
$('#layout').w2layout({
name: 'layout',
panels: [
{ ... |
// Interval used for redrawing the visualization regularly.
var interval = null;
// Flag indicating whether sunrise and sunset times should be updated.
var updateSun = true;
// The most recent sunrise and sunset times.
var sunriseTime = null;
var sunsetTime = null;
// Flag indicating whether drawing of a frame is on... |
'use strict';
const fs = require('fs').promises;
const path = require('path');
const utils = require('./utils');
const maxBlockSize = 1024*1024;//bytes
const minFileDumpSize = 100*1024;//bytes
const maxFileDumpSize = 50*1024*1024;//bytes
const defragAfter = 10;
const defragBlockCountAtOnce = 10;//better >= defragAft... |
export const departmentLookUp = {
"01": "Ain",
"02": "Aisne",
"03": "Allier",
"04": "Alpes-de-Haute-Provence",
"05": "Hautes-Alpes",
"06": "Alpes-Maritimes",
"07": "Ardèche",
"08": "Ardennes",
"09": "Ariège",
10: "Aube",
11: "Aude",
12: "Aveyron",
13: "Bouches-du-Rhône",
14: "Calvados",
15... |
// 使用惰性思想(js高阶编程技巧之一),来封装常用的方法库,第一次赋值的时候,就把兼容处理好了,把最后的结果放在flag里,以后的每一个方法直接用即可不需再判断
var utils = (function () {
// listToArray formatJSON getCss offset win children
var flag = "getComputedStyle" in window;
// flag true是现代浏览器 不是是ie6-8的低级浏览器
// 方法可以在外面写 里面有返回值即可
function zfindAndReplace(str, reg, oldarr, newarr... |
ObjC.import('Foundation')
const USER_HOME_FOLDER = ObjC.unwrap($.NSHomeDirectory())
const WORKFLOW_CONFIG_FOLDER = `${USER_HOME_FOLDER}/.config/bs-alfredworkflow`
const DEFAULT_BROWSERS = {
safari: ['Safari'],
chrome: ['Google Chrome']
}
let USER_DFEAULTS = null
let BROWSERS = null
const SystemEvents = Appl... |
const spoilerReg = new RegExp(/^spoiler\s+(.*)$/);
const md = new markdownit({
html: true,
linkify: true, // Automatically convert URLs to links.
typographer: true // Automatically convert some tokens, like (C) to the copyright symbol.
}).use(markdownitContainer, 'spoiler', {
validate: function(params) {
... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
var select = $('.selectpicker')
var switcher = $('.bootstrap-switch')
var page = 1
$(function () {
getOrders()
})
select.selectpicker()
switcher.each(function () {
$this = $(this)
data_on_label = $this.data('on-label') || ''
data_off_label = $this.data('off-label') || ''
$this.bootstrapSwitch({
... |
// Ending Modal
var ending_btn_colse = $('.ending-close');
var ending_modal = $('.ending-modal');
ending_btn_colse.on('click', function () {
ending_modal.addClass('hiding-modal');
setTimeout(function () {
ending_modal.remove();
}, 1100);
});
$(document).ready(function () {
// glitch 文字雜訊效果
... |
var currentProfilePicture = "";
var drivers = [];
var currentDriver;
var currentDriverName;
var adminID;
var adminName;
var currentReferralCode;
var currentPhone;
var currentEmail;
var currentProfilePictureURL = null;
var currentProfilePictureFile = null;
$(document).ready(function () {
$.ajax({
type: 'GET... |
"use strict";
function _typeof(t) {
return (_typeof =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function (t) {
return typeof t;
}
: function (t) {
return t &&
"function" == typeof Symbol &&
t.constructor === Symbol &&
... |
var _validatorProto = {
// Helper functions
_makeAlternatives: function() {
var nonNull = [];
for (var idx in arguments) {
var arg = arguments[idx];
if (arg !== undefined && arg !== null) {
nonNull.push(arg);
}
}
return '(' + n... |
/*Copyright 2018 <NAME>
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, publish, distribute, sublicense, an... |
/**
* author:yangbobin date:2015-10-28 description: 恢复存储业务控制器
*/
Ext.define('acesure.recovery.controller.RecoveryController', {
extend : 'Ext.app.Controller',
alias : "widget.recoveryController",
views : [ 'MountList', 'RecoveryList', 'StorageNode','Recovery','MountWinShow','Mount','FileView','ClusterVmimgView','... |
require('dotenv').config();
const express = require('express');
const request = require('request');
const http = require('http');
const wechat = require('wechat'); // Github: https://github.com/node-webot/wechat
const uuidv1 = require('uuid/v1');
const app = express();
const router = express.Router();
const confi... |
import _ from 'underscore'
import {
Errors,
IMAPErrors,
SendmailClient,
MetricsReporter,
IMAPConnectionPool,
ExponentialBackoffScheduler,
} from 'isomorphic-core';
import {
Actions,
Account,
IdentityStore,
BatteryStatusManager,
} from 'nylas-exports'
import Interruptible from '../shared/interruptibl... |
/**
* @author <NAME> / www.kaisalmen.de
*/
'use strict';
var MeshSpray = (function () {
var Validator = THREE.LoaderSupport.Validator;
function MeshSpray( manager ) {
this.manager = Validator.verifyInput( manager, THREE.DefaultLoadingManager );
this.logging = {
enabled: true,
debug: false
};
this... |
let Web3 = require("web3");
let web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
let timeutils = new (require("./timeutils.js"))(web3);
let utils = new (require("./utils.js"))(web3);
let storage;
let escrowStorage;
let escrowProvider;
let affStorage;
let factory;
let users;
const DefaultFeeP... |
/*
Licensed to Jasig under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Jasig licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file
except in com... |
function createGroundSurface(dimensionX, dimensionY, textureIMG, anisotropy){
var geometry = new THREE.PlaneGeometry( dimensionX, dimensionY);
var texture = new THREE.ImageUtils.loadTexture( textureIMG );
texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
texture.repeat.set(50,50);
texture.anisotropy = aniso... |
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Draggable, Droppable } from 'react-beautiful-dnd';
import { useDispatch, useSelector } from 'react-redux';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
addItem,
changeContent... |
"use strict";
var program = null;
/**
*
* @param context
* @returns {WorkingWebGLProgram}
*/
function getProgram (context) {
if (program === null) {
program = context.createProgram(`#version 300 es
precision highp float;
precision highp int;
precision highp sampler2D;
layout(locati... |
'use strict';
// Global variables
var allWines = [];
var allMealPlans = [];
var mealArray = [];
var wineSelection = document.getElementById('redWineList');
var submitButton = document.createElement('button');
var foodForm = document.getElementById('food-parent');
var submitButtonTwoElectricBoogaloo = document.getEleme... |
console.log("message manager");
var now = new Date();
var date = (now.getFullYear() + '/' + (now.getMonth() + 1) + '/' + now.getDate() );
var connected = false;
var initBtnStr ="#pir";
var host ,port;
var cal1,cal2;
var index = 0;limit = 1000;
var isNeedTotal = true;
var date1 ,date2 , deviceList;
var range;
var allSen... |
// This file relates to plugin list on the right side panel
//See The Brain Documentation
var PLUGIN_STATE = "State",
PLUGIN_DESIRED_STATE = "DesiredState",
PLUGIN_OS = "OS",
PLUGIN_EXTRA = "Extra",
PLUGIN_NAME = "Name",
PLUGIN_INTERFACE = "Interface",
PLUGIN_ENVIRONMENT = "Environment",
P... |
import { Link } from "@reach/router";
import React, { useEffect, useState } from "react";
import germany from "Assets/germany.png";
import unitedstates from "Assets/unitedstates.png";
import onClickOutside from "react-onclickoutside";
import Avatar from "Components/Avatar";
import NotificationPanel from "./Notification... |
// WebGL setup parameters
let canvas;
let gl;
let program;
// Texture to send
let texture;
// LookAt parameters - Camera location
//let eye = vec4(radius*Math.sin(theta)*Math.cos(phi),
// radius*Math.sin(theta)*Math.sin(phi), radius*Math.cos(theta), 1.0);
let eye = vec3(0.5, 0.0,-2.0);
// Grid dimensions for the ... |
/*
Copyright 2008 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 writing, software
... |
import React from 'react';
import { connect } from 'react-redux';
import ReactTooltip from 'react-tooltip';
import translate from '../../../translate/translate';
import Config from '../../../config';
import {
getAppConfig,
getAppInfo,
resetAppConfig,
resetSPVCache,
saveAppConfig,
skipFullDashboardUpdate,
... |
$('#formAcInput').val( $('#formAc').html() );
$('#formAc').remove();
$('#formAcInput2').val( $('#formAc2').html() );
$('#formAc2').remove();
$('#formServiceAcInput').val( $('#serviceAc').html() );
$('#serviceAc').remove();
$('#formServiceAcInput2').val( $('#serviceAc2').html() );
$('#serviceAc2').remov... |
const express = require.main.require('express')
const path = require('path')
const os = require('os')
const PaperUtils = require('./view/paperutils')
const CIESubjects = require('./view/CIESubjects.js')
const sspdf = require('./lib/sspdf')
const fs = require('fs')
const cheerio = require('cheerio')
const crypto = requi... |
var proArray = new Array();//把项目id顺序存入数组
var timeShow;
var beginDormitoryShow;
var beginNoonShow;
var globalIndex = 1;// 全局序号
var orderNosList;//集合
var endNoonShow;
var detailsShowLate;//迟到列表详情
var detallsShowLeave;//请假列表详情
var areaTable;
$(function () {
addRowToTimeList("a");
findAllgGade();
... |
/* Document for testing transpose logic */
// Variables
const song = new Song();
// Utils
let currentFunc;
const superTrim = (s) => {
const lineList = s.split('\n');
do {
if (lineList[0].trim()) break;
lineList.shift();
} while (lineList.length);
const line = lineList[0];
const chars = line.split... |
/*!
* Copyright (c) 2016-2020 <NAME>
* https://www.litejs.com/MIT-LICENSE.txt
*/
var css, next, opts
, chrome = this.chrome || this.browser
, storage = chrome.storage && (chrome.storage.sync || chrome.storage.local)
, editor = !!this.pre
, defOpts = {
theme: "",
font: "13px Menlo,monospace",
bg: "#fff",
color... |
import React, { useState, useEffect, useCallback } from 'react'
import { useTranslation } from 'react-i18next'
import ReactGA from 'react-ga'
import { useWeb3Context } from 'web3-react'
import { ethers } from 'ethers'
import styled from 'styled-components'
import { transparentize } from 'polished'
import { Button } fr... |
import * as d3 from 'd3';
import { BaseSimpleGroupAxis } from './baseClass.js';
/**
* A Bar class for a horizontal simple or grouped bar graph (y represents continuous value).
*/
class Bar extends BaseSimpleGroupAxis {
/**
* @param {array} data A 2d array data in the format of `[['columnXName', 'columnYName... |
import React, { useState, useEffect, memo, useRef, useCallback } from 'react';
/** @jsx jsx */
import { jsx } from '@emotion/react';
import ErrorBoundary from '@cdc/core/components/ErrorBoundary';
import { geoCentroid, geoPath } from 'd3-geo';
import { feature, mesh } from 'topojson-client';
import { CustomProjection }... |
/*
Script: mootree.js
My Object Oriented Tree
- Developed by <NAME>, <http://www.mindplay.dk>
- Tested with MooTools release 1.2, under Firefox 2, Opera 9 and Internet Explorer 6 and 7.
License:
MIT-style license.
*/
/**
* Standard class to handle HtmlTreeView on the client side.
* @requires mootools 1.2
*
* ... |
// Aplica display none para todos os Quest de 2 a 15
for (let i = 2; i <= 15; i++) {
document.getElementById(`Quest${i}`).style.display = 'none'
}
// Funções que pega o que for colocado nos inputs numa variável global e verifica se todos os campos estão como checked
function checkQuest1(){
try{
window.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.