text stringlengths 8.5k 48.7k |
|---|
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] =... |
var original_data = new Array();
var NOTHINIG = 0, REDIRECT_TO_FORMLIST_PAGE = 1;
$(document).ready(function () {
$(function () {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
window.prettyPri... |
import {
LitElement,
html
} from 'lit-element';
import componentStyle from './style.scss';
const url = new URL(document.location);
const posterParams = new URLSearchParams(url.search);
export class PlanetClockElement extends LitElement {
static get styles() {
return [componentStyle];
}
static get pro... |
$("#loadingFeedback").html("Loading support functions...");
function timer() {
"use strict";
if (localStorage.clock === "running") {
// Update the count down every 1 second
// Get todays date and time
var matchRunningTime = moment().diff(matchStartTime, 'seconds')
if (matchRunn... |
/* global artifacts describe */
const Web3 = require('web3')
const RelayClient = require('./TmpLegacyRelayClient')
const RelayServer = require('../src/relayserver/RelayServer')
const TxStoreManager = require('../src/relayserver/TxStoreManager').TxStoreManager
const RelayHub = artifacts.require('./RelayHub.sol')
const T... |
/******************************************************************************
*
* Copyright (c) 2017, the Perspective Authors.
*
* This file is part of the Perspective library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
import {Gr... |
/*-
* ============LICENSE_START=======================================================
* ONAP CLAMP
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* ============================================================... |
import './style.css';
import * as EventEmitter from 'events';
const VALID_FACTORS = {
"1/10": 1 / 10,
"1/9": 1 / 9,
"1/8": 1 / 8,
"1/7": 1 / 7,
"1/6": 1 / 6,
"1/5": 1 / 5,
"1/4": 1 / 4,
"1/3": 1 / 3,
"1/2": 1 / 2,
"0.1": .1,
"0.2": .2,
"0.3": .3,
"0.4": .4,
"0.5"... |
import miniPages from './miniPages';
import {singleAnswerQuestion, multipleAnswerQuestion, dropdownQuestion} from './questions';
import miniSelect from './miniSelect';
import modal from './modal';
import {winningLogic, coupon} from './winningLogic';
import user from './userDemo';
import '../stylesheets/miniSelect.css';... |
(function($) {
$.extend($.fx.step,{
backgroundPosition: function(fx) {
if (fx.pos === 0 && typeof fx.end == 'string') {
var start = $.css(fx.elem,'backgroundPosition');
start = toArray(start);
fx.start = [start[0],start[2]];
... |
import $ from 'jquery';
import _ from 'underscore';
import Backbone from 'backbone';
import events from '@girder/core/events';
import { wrap } from '@girder/core/utilities/PluginUtils';
import { restRequest } from '@girder/core/rest';
import convertAnnotation from '../../annotations/geojs/convert';
/**
* Generate a... |
import {symbol} from 'd3-shape';
import {select} from 'd3-selection';
import {brush} from 'd3-brush';
import {ascending} from 'd3-array'
import {CoordinateGridMixin} from '../base/coordinate-grid-mixin';
import {optionalTransition, transition} from '../core/core';
import {filters} from '../core/filters';
import {const... |
$(document).ready(function() {
$.validator.setDefaults({
errorClass: 'help-block',
highlight: function (element) {
$(element)
.closest('.form-group')
.addClass('has-error');
},
unhighlight: function ... |
var fs = require('fs');
var path = require('path');
var Future = require('fibers/future');
var _ = require('underscore');
var auth = require('./auth.js');
var config = require('./config.js');
var httpHelpers = require('./http-helpers.js');
var release = require('./release.js');
var files = require('./files.js');
var Se... |
"use strict";
/* globals JSCAGD */
/* globals THREE */
/* globals dat */
// General control net handler for curves and surfaces
var is2D = true;
var is3D = !is2D;
function handleColorChange ( color ) {
return function ( value ){
if (typeof value === "string") {
value = value.replace('#', '0x');
}
col... |
/*
Main Rule Engine Object
*/
/*jshint multistr: true ,node: true*/
"use strict";
var
/* NODE internal */
UTIL = require('util'),
PATH = require('path'),
CRYPTO = require('crypto'),
/* NPM Third Party */
_ = require('lodash'),
... |
var extend = window.braceryWeb.extend;
var escapeHTML = window.braceryWeb.escapeHTML;
var expandMarkdown = window.braceryWeb.expandMarkdown;
var digestText = window.braceryWeb.digestText;
var clickHandlerName = window.braceryWeb.clickHandlerName; // handleBraceryLink
var makeInternalLink = window.braceryWeb.makeIntern... |
import React from 'react';
import {decorate, observable, action} from "mobx";
import {SlashrUtils} from '../Utils';
const utils = new SlashrUtils();
export class SlashrUiGrid {
constructor(slashrUi, idx, props) {
this._metadata = {
ui: slashrUi,
idx: idx,
hasInitialized: false,
loadin... |
// Generated by ReScript, PLEASE EDIT WITH CARE
import * as List from "./List.bs.js";
import * as Curry from "bs-platform/lib/es6/curry.js";
import * as List_like from "./list_like.bs.js";
import * as Caml_int32 from "bs-platform/lib/es6/caml_int32.js";
import * as Pervasives from "bs-platform/lib/es6/pervasives.js";
... |
import Vue from 'vue'
import VueRouter from 'vue-router'
import { Layout, Menu, Icon, Input, Button, Form, Dropdown, Avatar, Modal, Message, Table, Breadcrumb, Upload, Row, Col, Drawer, Radio, Tooltip, Notification, DatePicker, Select, Card, Switch, Tag, List, Checkbox, Divider, Cascader, Tabs, InputNumber, Descriptio... |
// globals
window._globals = {
allRepos: undefined,
sortFilterSearchRepos: undefined,
ignoreNextHashChange: undefined
};
let allIssues = [];
let openIssues = [];
let closedIssues = [];
const orgList = ["arkime", "AthenZ", "denali-design", "yahoo", "screwdriver-cd", "vespa-engine", "VerizonDigita... |
//Import library and loaders easiest way: link to unpkg website
import * as THREE from 'https://unpkg.com/three@0.118.3/build/three.module.js';
import { PointerLockControls } from 'https://unpkg.com/three@0.118.3/examples/jsm/controls/PointerLockControls.js';
import {onKeyUp, onKeyDown, load_world_gl... |
//展开更多筛选
var begin_hidden = "2";
function Show_More_Attrgroup() {
if("2" == 0){
$(".attr-group-more").hide();
}
if (begin_hidden == 0) {
$("[name='attr-group-dl']").each(function(i){
$(this).show();
});
$('#attr-group-more-text').html("收起");
begin_hidden = "2";
}else{
var more_text = ... |
//FOR TESTING / EXPERIMENTAL / DEVELOPMENT
/*
//EXAMPLE HARDWARE INSTANTIATION
svo_c = new five.Servo.Continuous({pin:#, board:this.byId("XXXX")});
svo_i = new five.Servo({pin:#, board:this.byId("XXXX")});
led = new five.Led({pin:#, board:this.byId("XXXX")});
strip = new pixel.Strip({
board: this.byId("XXXX"),... |
/*
To push to github:
git status // tells current status of files
git add // Adds changed files to record. -A will add all files
git commit -m "message" // commits changes to be pushed
git push // pushes all changes to github
*/
const PLAYER_NUMBER = 4; //Keep this as 4.
const GAME_SPEED = 75; //Reccomended: 50-70 f... |
import angular from 'angular';
import _ from 'underscore';
angular.module('dimApp')
.factory('dimSearchService', SearchService)
.directive('dimSearchFilter', SearchFilter);
function SearchService(dimSettingsService, dimFeatureFlags) {
const categoryFilters = {
pulserifle: ['CATEGORY_PULSE_RIFLE'],
scout... |
#!/usr/bin/env node
const Web3 = require("web3");
const fs = require("fs");
const RLP = require('rlp');
const BN = Web3.utils.BN;
let output;
process.on('unhandledRejection', console.error.bind(console))
const { configPath, gasPriceGwei, printPrivateKey, rpcUrl, signedTxOutput, dontSendTx, chainId: chainIdInput } = ... |
'use strict';
/**
* A Media Library class.
*
* When you call the function this module exports, it gives you a "MediaFile"
* class.
* It's a `Class` for a MediaFile, but the class itself is a `MediaLibrary`
* (I know this is confusing, it'll be changing soon)
*
* This class will be in the final product, but in... |
const app = getApp()
const globalData = getApp().globalData
const log = console.log.bind(console)
const group = console.group.bind(console)
const groupEnd = console.groupEnd.bind(console)
const error = console.error.bind(console)
const db = wx.cloud.database()
const _ = db.command
const apiLists = require('../../config... |
/*
* @licstart The following is the entire license notice for the JavaScript code in this page.
*
* MIT License
* Copyright (c) 2016 <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 Soft... |
/**
* JSON-WS API definition module
* Allows implementors to expose their APIs over some transport mechanism.
*/
'use strict';
const co = require('co');
const fs = require('fs');
const EventEmitter = require('events');
const semver = require('semver');
const types = require('./types');
class Service extends Event... |
/*
* Handling for particle animations. Unlike elements, which are
* represented by colored pixels on the canvas, particles are
* backed by an actual object. This means that we can store state
* for each particle, in order to do things such as complex movement.
* However, this also means that particles are more exp... |
/*
It all started when I read a youtube comment, in a maths video where the answer to the given problem was 24:
"Actually the answer is 96 - 69 - gcd(6,9)"
To which I thought "Nice. Wait a minute, gcd(6,9) = 3... You can write that just by doing (-6+9), no need for gcd!"
And this is where it all started.
Suppose we... |
var bj = false;
var y1 = '1.18';
var L1 = 'https://www.one-tab.com';
var nK = false;
var mK = false;
var bX = "onmousemove";
var ij = "onmousedown";
var $j = "onmouseover";
var J = "onmouseup";
var v1 = "onmouseout";
var LK = "onclick";
var F1 = "ondblclick";
var JX = "onmouseleave";
var Aj = "mousemove";
var dX = "mou... |
import React from 'react';
import Http from './../../../utils/http';
import '../style/messages.scss';
import { Spin, Modal } from 'antd';
import Often from './oftenText';
import Emoji from './Emoji';
import { expression, Toast } from '../../../components/common/comn';
import { SERVER_BASE_PATH } from '../../../global.c... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014, <NAME>, <NAME>, <NAME>, <NAME>, <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 limit... |
/**
* Generates the data for save in file,temp,etc
*
*
* @param {object} `parent` - the parent, can be null
* @param {number} `x` - the x position of the panel, relative to parent
* @param {number} `y` - the y
* @param {number} `width` - the width of the panel
* @param {number} `height` - the height of the p... |
/**
* For use with MagicFramework
* http://www.jeffmcfadden.com/magicframework
* This work by <NAME> is licensed under a Creative Commons Attribution 3.0 United States License.
*
*/
var MagicFramework = function( params ){
//Store arbitrary params
for( var i in params ){
this[i] = params[i];
}
th... |
var path = require('path');
var express = require('express');
var bodyParser = require('body-parser');
var qs = require('qs');
var RSVP = require('rsvp');
var _ = require('lodash');
var inflect = require('i')();
var validate = require('validate.js');
var Adapter = require('./adapter');
var route = require('./route')... |
import { getArea, getLength } from 'ol/sphere';
import VectorSource from 'ol/source/Vector';
import VectorLayer from 'ol/layer/Vector';
import DrawInteraction from 'ol/interaction/Draw';
import Overlay from 'ol/Overlay';
import Polygon from 'ol/geom/Polygon';
import LineString from 'ol/geom/LineString';
import Point fr... |
function redirectLang() {
var baseLang = qs("lang");
if (!baseLang) {
var userLang = navigator.language || navigator.userLanguage;
switch(userLang.split('-')[0]) {
case "it": baseLang = "ita"; break;
case "fr": baseLang = "fre"; break;
case "de": baseLang = "ger"; break;
case "es": baseLang = "spa"; ... |
const log = console.log;
let app = new PIXI.Application();
const camera = new PIXI.Container(); // cosas a las que aplicar zoom, naves
const fondoImg = new PIXI.Container(); // stage de imagen de fondo
const paralax1 = new PIXI.Container();
const paralax2 = new PIXI.Container();
const paralax3 = new PIXI.Container();... |
//======================Global Variables============================//
//==================================================================//
var numOfIngredients = 0;
var ingredientList;
var finalIngredientList = [];
var counter=0;
var counteroutside = 0;
var counterinside = 0;
var counterToAddData = 0; // t... |
import isPrimitive from 'is-primitive-x';
import isFunction from 'is-function-x';
import isNil from 'is-nil-x';
import toObject from 'to-object-x';
import isArguments from 'is-arguments';
import $iterator$ from 'symbol-iterator-x';
import $species$ from 'symbol-species-x';
import toBoolean from 'to-boolean-x';
import c... |
// constants for default settings if keyword arguments are not defined
const UNIQUE_DEFAULT_SETTING = true;
const MUTATION_DEFAULT_SETTING = true;
/**
* A class that allows a user to create a number of elements to manipulate cards.
*/
class CardOrganizer {
/**
* Create a CardOrganizer object.
* @param ... |
// SCALE FINDER
// Copyright (c) 2018 azuma51
// interval : 0~11
// degree : R, b2, 2....
// note : C, C#/Db, D....
var MAX_INTERVAL = 12;
var Settings = {};
Settings.key = 0;
Settings.fret = 15+1;
Settings.lang = 'ja'
Settings.level = 'beg' //or 'adv'
Settings.ghost = false;
var Data = {};
var Scaels = {};
... |
/*
MIT License
Copyright (c) 2019-2021 <NAME> <<EMAIL>>
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, p... |
/* As far as it stays reasonable, we stay functional
* in this unit. This means that a matching is considered immutable.
* Changes to a matching produce another, modified matching with the
* old one staying unmodified and valid.
* This does not apply to plumbing, which is mutable for performance reasons.
* The dec... |
// Copyright (c) 2009 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.
// TODO
// - spacial partitioning of the data so that we don't have to scan the
// entire scene every time we render.
// - properly clip the S... |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2014, OpenNebula Project (OpenNebula.org), C12G Labs */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... |
var score = 0;
var scoreText;
var highscore = 0;
var isPlayer = false;
var isPlayer1 = false;
var isPlayer2 = false;
var canScore = true;
var gameMusic;
var boundaryX;
var boundaryY;
var mapTrois;
var tilesetTrois;
var backgroundLayerTrois;
var backgroundLayer1Trois;
var wallLayerTrois;
var cameraMain;
var p1healthTex... |
import React, { Component } from 'react';
import moment from 'moment';
import { CancelToken, isCancel } from 'axios';
import RCSlider from 'rc-slider';
import { isAuthTokenSet, setAuthToken } from '@sentinel-hub/sentinelhub-js';
import AlertContainer from 'react-alert';
import gifshot from 'gifshot';
import FileSaver ... |
/*
* ConversationBar
*
*
*/
import React from 'react';
import Guid from 'guid';
import PropTypes from 'prop-types';
import { compose } from 'redux';
import { injectIntl, intlShape } from 'react-intl';
import {
Grid,
Typography,
TextField,
MenuItem,
Button,
Select,
Tooltip,
} from '@material-ui/core'... |
/*
* Copyright 2012 LinkedIn Corp.
*
* 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 ag... |
// Copyright 2014 Cognitect. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
'use strict';
/* For ESLint: List any global identifiers used in this file below */
/* global browser, onReady, DOMPurify, translate */
/*
This content script, when injected into tab that is on YouTube, it will:
- wait for a message to add two different types of icons to the
'https://www.youtube.com/fee... |
import React, { Component } from 'react';
import * as BABYLON from 'babylonjs';
import 'babylonjs-loaders';
import BabylonScene from './SceneComponent'; // import the component above linking to file we just created.
/****************************Variables************************************************/
var thet... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
function _defineProperty(obj, key, value) {
if ... |
var TWEEN = require("tween.js");
var animitter = require('animitter');
var mathext = require("../MathExt.js");
var settings = require('./../Settings.js');
var guihelper = require('./../GuiHelper.js');
var background = require('./Background.js');
var signal = require('./Signal.js');
var audiogen = require('./AudioGen.j... |
let urid = 'user';
$("#usr1").hide()
$("#usr2").hide()
$("#tbdata").hide();
var L61 = 'https://eec-onep.online/geoserver/eec/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=eec%3Aa__61_sea_eec&maxFeatures=50&outputFormat=application%2Fjson'
$(document).ready(() => {
loadTable()
layermark(L61, 61)
}... |
var PageSpanner = Class.create();
PageSpanner.prototype = {
curpage: 0,
table: 0,
bid: 0,
rid: 0,
delay_id: 0,
pagenum: 0,
curpage: 0,
config: 0,
container: 0,
base: './',
initialize: function( options, config ) {
this.pagenum = 0;
this.curpage = 0;
this.page_tpl_func = options.page_tp... |
import classNames from 'classnames';
import React from 'react';
import AutoAffix from 'react-overlays/lib/AutoAffix';
import {g, helpers} from '../../common';
import {setTitle} from '../util';
import {PlayerNameLabels} from '../components';
class PlayerRow extends React.Component {
shouldComponentUpdate(nextProps)... |
const assert = require("assert")
const glfw = require("./glfw3.js")
const { vec2, vec3, vec4, quat, mat2, mat2d, mat3, mat4} = require("gl-matrix")
const gl = require('./gles3.js')
const glutils = require('./glutils.js');
if (!glfw.init()) {
console.log("Failed to initialize GLFW");
process.exit(-1);
}
let version ... |
import React, {Component} from 'react';
import {
View,
StyleSheet,
Navigator,
TouchableOpacity,
TouchableNativeFeedback,
Text,
DatePickerAndroid,
TimePickerAndroid,
ScrollView,
ToastAndroid,
TextInput,
Animated,
ActivityIndicator,
WebView,
Dimensions,
Modal,
InteractionManager,
BackAndroid,
Pla... |
import * as R from "ramda"
import React from "react"
import { Button, Spin, Upload, Table, Radio, Checkbox, Tooltip, Modal, Input, message, Select } from "antd"
import SelectFile, { VirtualFile } from "./components/SelectFile"
import {
PlusCircleOutlined,
InboxOutlined,
BarcodeOutlined,
DeleteOutlined,
MinusC... |
goog.module('soccersub.Plan');
const Assignment = goog.require('soccersub.Assignment2');
const Drag = goog.require('soccersub.Drag');
const Lineup = goog.require('soccersub.Lineup');
const PlanCalculator = goog.require('soccersub.PlanCalculator');
const googDom = goog.require('goog.dom');
const util = goog.require('soc... |
const Discord = require('discord.js');
const Util = require('discord.js');
const GOOGLE_API_KEY = "<KEY>"
const getYoutubeID = require('get-youtube-id');
const Canvas = require("canvas");
const jimp = require("jimp");
const convert = require("hh-mm-ss");
const dateFormat = require('dateformat');
const fetchVid... |
/**
* DevExtreme (ui/diagram/ui.diagram.toolbar.js)
* Version: 20.2.6
* Build date: Tue Mar 16 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
exports.default = void 0;
var _rende... |
/* Copyright (c) 2012 Sven "FuzzYspo0N" Bergström,
2013 <NAME>
written by : http://underscorediscovery.com
written for : http://buildnewgames.com/real-time-multiplayer/
substantially modified for collective behavior experiments on the web
MIT Licensed.
*/
/*
The main ga... |
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
music = new Audio('assets/main2.wav');
empSound0 = new Audio('assets/emp.wav');
empSound1 = new Audio('assets/emp.wav');
empSound2 = new Audio('assets/emp.wav');
empSound3 = new Audio('assets/emp.wav');
empSound4 = new Audio('assets/em... |
// <?php
//include("commonSlider.inc");
//$sliderValue=lookUp("subjects","ppnr='$ppnr'","sValue");
//updateTableOne("subjects","ppnr=$ppnr","currentpage",$_SERVER['PHP_SELF']);
//$blocked=lookUp("subjects","ppnr='$ppnr' AND trial='$trial' ","blocked");
// ?>
//<script>
// var mysql = require('/usr/local/node_mod... |
var widgets = require('@jupyter-widgets/base');
var _ = require('underscore');
var d3 = require('d3');
// Custom Model. Custom widgets models must at least provide default values
// for model attributes, including
//
// - `_view_name`
// - `_view_module`
// - `_view_module_version`
//
// - `_model_name`
// - `_mo... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Piece from './../plugins/Piece';
import PicModal from './../plugins/PicModal'; //remember to reset this thing back to the single piece, or just add the single piece
import MultiplePicModal from './../plugins/MultiplePicModal';
import l... |
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
// **Github:** https://github.com/fidm/quic
//
// **License:** MIT
const util_1 = require("util");
const events_1 = require("events");
const constant_1 = require("./internal/constant");
const protocol_1 = require("./internal/protocol");
const ... |
ms_zoom = 0;
max_ms_zoom = 60;
ms_scaling = 1.2;
origin_x = 0;
last_x = 0;
left_border = 0;
right_border = 0;
top_border = 0;
bottom_border = 0;
spectrum_loaded = false;
x_tics = [200, 100, 50, 25, 10, 5, 2, 1, 0.5, 0.25, 0.125, 0.0625, 0.03125, 0.015625, 0.0078125];
y_tics = [0.2, 0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, ... |
/*
The MIT License
Copyright (c) 2011 <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, publis... |
/* jshint undef: true, unused: true, undef: true */
/* global global, require, console, MODULE_LOADER, MODULE_CHROME, createDeviceSelectorViewGenerator, module_manager */
/* exported activeModule */
// console.log('in device_selector, controller.js');
var EventEmitter = require('events').EventEmitter;
var util = req... |
// This file implements functions to look up a character's basic information, the number of Auraxium medals they have, and their top weapon
// All three platforms are supported, but must be specified in the "platform" parameter
const Discord = require('discord.js');
const weapons = require('./static/weapons.json')... |
(function (doc, win) {
// 分辨率Resolution适配
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
// alert("clientWidth:"+clientWidth);
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createStream = exports.RotatingFileStream = void 0;
const child_process_1 = require("child_process");
const zlib_1 = require("zlib");
const stream_1 = require("stream");
const fs_1 = require("fs");
const path_1 = require("path");
const... |
/*
MooFx
*/"use strict"
// requires
var color = require("./color"),
frame = require("./frame")
var cancelFrame = frame.cancel,
requestFrame = frame.request
var prime = require("prime/prime"),
array = require("prime/es5/array"),
string = require("prime/types/string")
var camelize = string.came... |
'use strict';
/*!
* nodist
* A Node version manager for the windows folks out there.
* Copyright 2012 by <NAME> <<EMAIL>>
*
* (MIT LICENSE)
* 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 Soft... |
/*
* @Author: sharpxiajun
* @Date: 2021-02-03 18:27:20
* @Last Modified by: sharpxiajun
* @Last Modified time: 2021-02-03 18:27:20
*/
import Message from 'ant-design-vue/lib/message'
import config from '@/config'
export const loop = _ => { }
/* String 方法开始 */
// 线转驼峰 foo-bar => fooBar
export const lineTo... |
import Component from "@egjs/component";
import Axes, {PinchInput, MoveKeyInput, WheelInput} from "@egjs/axes";
import {vec2, glMatrix} from "gl-matrix";
import {getComputedStyle, SUPPORT_TOUCH, SUPPORT_DEVICEMOTION} from "../utils/browserFeature";
import TiltMotionInput from "./input/TiltMotionInput";
import RotationP... |
/*
Syntax highlighting with language autodetection.
https://highlightjs.org/
*/
import deepFreeze from './vendor/deep_freeze.js';
import Response from './lib/response.js';
import TokenTreeEmitter from './lib/token_tree.js';
import * as regex from './lib/regex.js';
import * as utils from './lib/utils.js';
import * as M... |
/*
* Copyright 2009 The Sakai Foundation
*
* Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php
*
* Unless required by applica... |
/**
* [task_local]
0 9,12,18 * * * https://raw.githubusercontent.com/jxmyh99/wlvue/master/src/store.js, tag=互助码提交, img-url=https://raw.githubusercontent.com/58xinian/icon/master/jxnc.png, enabled=true
*/
const $ = new Env('互助码提交');
// 京喜工厂
const jdFactoryUrl = 'http://api.turinglabs.net/api/v1/jd/jxfactory/create/互助... |
import { ShaderChunk, MathUtils, UniformsUtils, MeshDepthMaterial, RGBADepthPacking, MeshDistanceMaterial, ShaderLib, Matrix4, Vector3, Mesh, CylinderBufferGeometry, Vector2, MeshStandardMaterial, DoubleSide } from 'three';
/**
* Regular expression for matching the `void main() {` opener line in GLSL.
* @type {RegEx... |
'use strict'
class WebVR {
/**
* @class
* render scenes to webvr devices, following toji's room-scale example:
* @link https://github.com/toji/webvr.info/blob/master/samples/05-room-scale.html
* Note: there is some WebVR code in the Shader (shader.es6) parent object (it sets left and right e... |
"use strict";
function getWindowsTempDir() {
return new ActiveXObject("Scripting.FileSystemObject").GetSpecialFolder(2);
}
function mkdir_r(dir) {
var fso = new ActiveXObject("Scripting.FileSystemObject");
var bits = dir.split("\\");
var bit;
var i, l;
var s;
l = bits.length;
s = bits[0];
for (i =... |
"use strict";
/* this value used to be 4294967295. Interestingly this doesn't work on
* javascript. the reason as to why this happens is that the unsigned longs get
* "promoted" to bigger variables on if checks. I'd call this a bug in the
* original implementation
*/
const XDL_LINE_MAX = 2147483647;
const XDL_SNAK... |
const types = {
// credits go to https://www.ryadel.com/en/get-file-content-mime-type-from-extension-asp-net-mvc-core/
"323": "text/h323",
"3g2": "video/3gpp2",
"3gp": "video/3gpp",
"3gp2": "video/3gpp2",
"3gpp": "video/3gpp",
"7z": "application/x-7z-compressed",
"aa": "audio/audible",
"AAC": "audio/a... |
/*
* Copyright 2018 DoubleDutch, 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 agre... |
// wink-nlp
//
// Copyright (C) GRAYPE Systems Private Limited
//
// This file is part of “wink-nlp”.
//
// 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 with... |
/**
* Kunena Component
* @package Kunena.Template.Blue_Eagle
*
* @copyright (C) 2008 - 2014 Kunena Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.kunena.org
**/
/*
* Fix some Mootools bugs
*
* provides: [Element.Forms]
*/
Element.implement({
tidy: fun... |
'use strict';
//animation stuff
const fadeInTime = .3; //(seconds)
const fadeOutTime = .2;
let introDelay = .5; //all animations will get this delay when the html loads (use this so it times with your transition)
//max text sizes (used when resizing back)
const introSize = "85px";
const nameSize = "24px";
const tagSi... |
/*
* This file belongs to Hoist, an application development toolkit
* developed by Extremely Heavy Industries (www.xh.io | <EMAIL>)
*
* Copyright © 2021 Extremely Heavy Industries Inc.
*/
import {div} from '@xh/hoist/cmp/layout';
import {throwIf} from '@xh/hoist/utils/js';
import classNames from 'classnames';
impo... |
const Task = require('./task');
const makeTask = require('./make_task');
const {
CallStatus,
CallDirection,
TaskName,
TaskPreconditions,
MAX_SIMRINGS,
KillReason
} = require('../utils/constants');
const assert = require('assert');
const placeCall = require('../utils/place-outdial');
const sessionTracker = r... |
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] =... |
import { start_sql, query, sql_first,
sql_all, download, has_database, db_version } from "./sql.js"
import { log, log_h, show_error } from "./log.js"
import { esc, modal, get_input } from "./util.js"
function database_app() {
$('html').css('overflowY','hidden');
$('#log').parent().prepend($('#errormsg'))
$(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.