text stringlengths 5.97k 41.2k |
|---|
import filesize from 'filesize'
import _ from 'lodash/fp'
import { Fragment, useEffect, useImperativeHandle, useState } from 'react'
import { div, h } from 'react-hyperscript-helpers'
import { AutoSizer } from 'react-virtualized'
import * as breadcrumbs from 'src/components/breadcrumbs'
import { requesterPaysWrapper, w... |
var vpsc = require('./vpsc');
var shortestpaths = require('./shortestpaths');
var LongestCommonSubsequence = require('./longest-common-subsequence');
var NodeWrapper = require('./node-wrapper');
var NodeAccessor = require('./node-accessor');
var Vert = require('./vert');
var Rectangle = require('./rectangle');
var Long... |
/* eslint-disable max-params, max-lines */
import { degreesToRadians, radiansToDegrees, unwindAngle, normalizeToScale, quadrantShiftAngle } from './MathUtils';
import { dateByAddingSeconds } from './DateUtils';
const Astronomical = {
/* The geometric mean longitude of the sun in degrees. */
meanSolarLongitude... |
var cols;
var rows;
var ts = 24; // tile size
var zoomDefault = ts;
var display; // graphical display tiles
var displayDir; // direction graphical display tiles are facing
// (0 = none, 1 = left, 2 = up, 3 = right, 4 = down)
var grid; // (0 = empty, 1... |
var Unit10_UIScene = cc.Scene.extend({
onEnter:function () {
this._super();
var layer = new Unit10_UILayer();
this.addChild(layer);
}
});
// ==================================================================
// --------------------------- UI模块 -----------------------------
// ========... |
var logger = require('../logger');
const twitterSchema = require("../../schema/twitter");
var path = require('path');
var OAuth2 = require('oauth').OAuth2;
var https = require('https');
const notify = require("../../lib/notify");
var fs = require('fs');
const cheerio = require('cheerio');
const request = require('re... |
const fs = require("fs");
const path = require("path");
const eol = require('eol');
const util = require("./util");
const handleError = require("./errors").handleError;
const config = require("./config").config;
var abbrevTemplate = {
filename: "REPLACE_ME",
name: "REPLACE_ME",
version: "REPLACE_ME",
xdata: {
... |
window.onscroll = function() {myFunction()};
var navbar = document.getElementById("navbar");
var sticky = navbar.offsetTop;
var justOpened = 1;
$(document).ready(function(){
firebase.auth().onAuthStateChanged(user => {
if(user){
$("#exampleModal").modal('hide');
console.log(user.email + " is logged ... |
// Inputs
const XCODE_PATH = process.env.path_to_xcode + '/';
const XCODE_PROJECT = process.env.xcode_project;
const SHARDS = process.env.shards;
const TEST_PLAN = process.env.test_plan;
const TARGET = process.env.target;
const TEST_PATH = process.env.test_path;
const SCHEME = process.env.scheme;
const DEBUG = process.... |
/*
* A number of helper functions used for managing events.
* Many of the ideas behind this code orignated from
* <NAME>' addEvent library.
*/
jQuery.event = {
// Bind an event to an element
// Original by <NAME>
add: function(elem, types, handler, data) {
if ( elem.nodeType == 3 || elem.nodeType == 8 )
r... |
const DEFAULT_VERSION = "2.0";
const DEFAULT_PRODID = "-//TypeScript/Node.js//SCAU Course Exporter v1.0//CN";
const CRLF = "\r\n";
const SPACE = " ";
const iframe = document.querySelector("#iframeautoheight");
console.log("<NAME>");
const PAGE = {
"main": /xs_main.aspx/,
"course_table": /xskbcx.aspx/,
... |
var playlists = new function() {
this.tracks = [];
this.clickedButtonsQueue = [];
this.access_token = '';
this.audio_features_url = '';
this.count = 0;
this.features = ['acousticness', 'danceability', 'duration_ms', 'energy',
'instrumentalness', 'key', 'liveness', 'loudness', 'mode',
... |
/*
* Module to make requests to server for data and display visualisations
*/
//const toGeoJSON = require("./js/esri2geo");
/*
*Global variables
*/
var populationEstimates; //This will eventually be globally available array of population estimates
var ageSexProportions; //This will eventually be globally available a... |
// @flow
var packageInfo = require("../package.json");
var pipeFilename = require("./pipe-filename.js");
var dns = require("dns");
var processTitle = "elm-test";
process.title = processTitle;
process.on("uncaughtException", function(error) {
if (/ an argument in Javascript/.test(error)) {
// Handle arg mismatc... |
String.prototype.chars = function () {
'use strict';
return this.split('');
};
String.prototype.multiply = function (count) {
'use strict';
return new Array(count + 1).join(this);
};
// Extending the array prototype like this seems to tack this function
// on to all arrays in Chrome. Seems strange...
// Ar... |
"use strict";
var _excluded = ["asset"];
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to... |
(async () => {
async function isCanvasReady() {
return new Promise(resolve => {
Hooks.once('canvasReady', resolve);
});
}
class PF2eActorSchema {
static get worldVersion() {
return 0.356;
}
static get allActorsVersion() {
let version = []
for (let actor of game.actors.entiti... |
import _ from 'lodash';
import { test_chunk, test_compact, test_concat, test_difference, test_differenceBy, test_differenceWith, test_drop, test_dropRight, test_dropRightWhile, test_dropWhile } from './Test_Array';
import { test_after } from './test_Function';
import { test_chain } from './Test_Seq';
import { t... |
/* kazoku */
/* -- vars */
navigatorAjax = false; // override global ajax
var socketIOserver = '//' + server + ':8182/';
var socket;
var kazokuNotifyGranted = false;
var kazokuNotifyAvailable = false;
var kazokuJSHookActive = false;
var kazokuEventHookActive = false;
var kazokuPingPongInterval;
var kazokuRoomStatInte... |
/* eslint consistent-this: ["error", "vm"] */
'use strict';
var annotationMetadata = require('../annotation-metadata');
var events = require('../events');
var memoize = require('../util/memoize');
var persona = require('../filter/persona');
var isNew = annotationMetadata.isNew;
var isReply = annotationMetadata.isRep... |
/*
Copyright (c) 2020 <NAME>. All rights reserved.
Corefarm v0.1.0-alpha - zlib license
=======================================
COREFARM - CLIENT
The client receives tasks from the server and executes them.
It works by periodically sending a http request to server with
its current status, which server's re... |
let packageName = "excel-killer";
let fs = require('fire-fs');
let path = require('fire-path');
let CfgUtil = Editor.require('packages://' + packageName + '/core/CfgUtil.js');
let excelItem = Editor.require('packages://' + packageName + '/panel/item/excelItem.js');
let nodeXlsx = Editor.require('packages://' + packageN... |
wenku8_progress = $('#wenku8-progress');
function myIsNaN(value) {
return !isNaN(value);
}
async function ajax(url) {
return new Promise(function (resolve, reject) {
var ajaxSetting = {
url: url,
success: function (response) {
resolve(response);
},
... |
const Generator = require('yeoman-generator')
const chalk = require('chalk')
const clear = require('clear-terminal')
const random = require('randomstring')
const commandExists = require('command-exists')
const os = require('os')
const gradient = require('gradient-string')
// Importing modules
const promptsFunction = r... |
/**
* This file is modified heavily from a source code of the tutorial on tensorflow.js
* The original license was as following:
* Copyright 2018 Google LLC. 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.
* ... |
/* JS for GEOG 575 Final Project by <NAME> */
//function to instantiate the Leaflet map
function createMap(){
//create the map
var map = L.map('mapid', {
center: [39.3293674, -95.8038467],
zoom: 5
});
//add dark tileset from Carto
L.tileLayer('http://{s}.basemaps.carto... |
import Vue from 'vue';
// This alphabet uses a-z A-Z 0-9 _- symbols.
// Symbols are generated for smaller size.
// -_zyxwvutsrqponmlkjihgfedcba9876543210ZYXWVUTSRQPONMLKJIHGFEDCBA
var url = '-_';
// Loop from 36 to 0 (from z to a and 9 to 0 in Base36).
var i = 36;
while (i--) {
// 36 is radix. Number.prototype.toStr... |
var n,
l,
u,
t,
i,
o,
r,
f,
e = {},
c = [],
s = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;
function a(n, l) {
for (var u in l) n[u] = l[u];
return n;
}
function p(n) {
var l = n.parentNode;
l && l.removeChild(n);
}
function v(n, l, u) {
var t,
i = arguments,
o = {};
for (t in l) ... |
/* eslint-disable require-jsdoc */
const Konva = window.Konva;
const width = window.innerWidth;
const height = window.innerHeight;
const ZOOM_SCALES_BY = 1.05;
const MAX_ROWS = 250;
const MAX_COLS = 250;
const GRID_STROKE_COLOR = '#4d2d52dd';
const ROW_FILL_COLOR = 'rgba(200, 200, 200, .05)';
const ROW_STROKE_COLOR ... |
// Copyright 2013 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
/**
* Handles alert list and filter settings
* @module manage/alerts/controller
* @exports alerts controller
*/
import _ from 'lodash';
import {
set,
get,
computed,
getProperties,
setProperties
} from '@ember/object';
import { inject as service } from '@ember/service';
import { isPresent, isEmpty } from '... |
let Fs = require('fs')
let Path = require('path')
let Sass = require('node-sass')
let Prompt = require('inquirer').prompt
let Debug = require('../../../lib/debug')
let Common = require('../../../lib/common')
let CONST = require('../../../lib/const')
const SCSS_IGNORED_CHARS = [' ', '\n', '\t']
const SCSS_END_CHARS = [... |
/* eslint-disable max-len */
/* eslint-disable no-throw-literal */
import DipBrowser from './DipBrowser';
const X2JS = require('x2js');
const Url = require('url');
const Querystring = require('querystring');
const _ = require('lodash');
const Entities = require('html-entities').AllHtmlEntities;
const x2j = new X2JS(... |
// get DOM elements
const allImg = document.querySelectorAll('img')
//homepage
const homePage = document.querySelector('.home')
const startBtn = homePage.querySelector('.scrollbtn')
const clickBtn = homePage.querySelector('.clickbtn')
const loader = document.querySelector('.loader')
//slider
const mainSlider = document... |
const cfg = require('./config.json')
const bluebird = require('bluebird')
const os = require('os')
const fs = bluebird.promisifyAll(require('fs'))
const child_process = bluebird.promisifyAll(require('child_process'))
const crypto = require('crypto')
const spawn = require('child_process').spawn
const docopt = req... |
/**
* Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
import { __awaiter, __generator } from "tslib";
import { SortedArray } from '../../../mol-data/int';
import { EquivalenceClasses } from '../../../m... |
"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... |
/**
* Copyright (c) 2016, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* db/model/subject.js
*/
'use strict'; // eslint-disable-line strict
const Pro... |
/*
* Make the interactive sunburst. Input is all data and chosen foodname.
* Source: https://beta.observablehq.com/@mbostock/d3-zoomable-sunburst
*/
function makeSunburst(dataX, tempFoodname){
var data = sunburstData(dataX, tempFoodname)[0]
color = d3.scaleOrdinal(d3.interpolateReds).range(d3.quantize(
... |
const Bottleneck = require(`bottleneck`);
const fetch = require('node-fetch');
const limiter = new Bottleneck({
reservoir: 350,
reservoirRefreshAmount: 350,
reservoirRefreshInterval: 1000 * 60,
minTime: 25
});
limiter.on("failed", async (error, jobInfo) => {
const id = jobInfo.options.id;
con... |
//ajax评论
var ajaxcomments = function(){
var
$body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $('html') : $('body')) : $('html,body');
var
comments_order = 'DESC',
comment_list = '.comment-list',
comments = '.noticom',
comment_reply = '.comment-reply-link',
comment_form... |
import { to_array, get_or_default, has_meta_keys } from '../utils.js';
import { CONSTANTS } from '../constants.js';
// 15. animation, play/pause, speed, clips...
function register_controls_animation( THREEBRAIN_PRESETS ){
THREEBRAIN_PRESETS.prototype.set_animation_time = function(v){
if(this._ani_time){
... |
var StatisticsWindow = function(id, parent, data) {
var
header = $('<div class="window-header"><span class="window-title i18n" data-i18n="[html]windows.stats.label"></span></div>').appendTo(parent.node),
main = $('<div class="window-main">' +
//'<div class="statistics-header"></div>' +
'<div class="stat... |
var projectionMatrix;
var shaderProgram, shaderVertexPositionAttribute, shaderVertexColorAttribute,
shaderProjectionMatrixUniform, shaderModelViewMatrixUniform;
var duration = 5000; // ms
// Attributes: Input variables used in the vertex shader. Since the vertex shader is called on each vertex, these will be dif... |
const fullscreenVert = `
attribute vec3 position;
attribute vec2 st;
varying vec2 textureCoordinate;
void main() {
textureCoordinate = st;
gl_Position = vec4(position, 1.0);
}
`
const getWindFrag = `
// the size of UV textures: width = lon, height = lat*lev
uniform sampler2D U; // eastward wind
uniform sampl... |
var net = require('net');
var util = require('util');
var Stream = require('stream').Stream;
var EventEmitter = require('events').EventEmitter;
function _concatenateUint8Arrays(header_buf, buf) {
if (header_buf) {
var new_buf = new Uint8Array(header_buf.length + buf.length);
new_buf.set(header_buf);
ne... |
import React from 'react';
import ReactDOM from 'react-dom';
import { TimeProgress, StepProgress } from '../src';
import moment from 'moment';
import marked from 'marked';
import ParallaxWrap from './Parallax';
import LazyImage from './LazyImage';
import styleProps from './style_props';
import { TimeProgress as rawTim... |
/********************************************************************************************
* ADONIS CHEATSHEET
* https://adonisjs.com/
********************************************************************************************/
/***********************************************************************************... |
function Card(id, owner, version, summary, description, severity, priority, priorityCode, reproducibility, updateTime, status,
showOwner,
/** @type {CardTransferHandler} */cardTransferHandler, /** @type {ColumnHandler} */columnHandler, /** @type {Page} */page) {
var H_OFFSET = 10;
var V_OFFSET = 10;
var TEXT... |
// Copyright 2019 Esri
// 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
... |
/**
* Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
import { __assign, __awaiter, __generator } from "tslib";
import { PluginStateObject as SO, PluginStateTransform } from '../../../../mol-plugin-stat... |
//Flow of program
//Starts with creation of the snake array when the webpage loads
//update_game() function makes the random positions and numbers required, and gives a setInterval with the required initial speed and the looping function as move()
//move() function displays the food, borders, snake, obstruction rock... |
/*============== Ajax helper csrf_token generate ajax methods =============*/
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie !== '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
// Doe... |
import $ from 'jquery'
import * as d3 from 'd3'
import F_ from '../Formulae_/Formulae_'
import L_ from '../Layers_/Layers_'
import OpenSeadragon from 'openseadragon'
import * as THREE from '../../../external/THREE/three118'
import Photosphere from './Photosphere'
import ModelViewer from './ModelViewer'
im... |
/**
Copyright 2012-2019 MarkLogic Corporation
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 wri... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _noop2 = require('lodash/noop');
var _noop3 = _interopRequireDefault(_noop2);
var _isEqual2 = require('lodash/isEqual');
var _isEqual3 = _interopRequireDefault(_isEqual2);
var _find2 = require('lodash/find');
var _find3 = _interop... |
const colors = require('colors');
const fs = require('fs');
var objArray = [];
var matArray = [];
var groupArray = [];
var currentMaterial;
//var currentGroup;
var materialGroupLen = 0;
var startPos = 0;
var currentObj;
var currentObjName;
var group_string = "";
var last_material_end = 0;
function log_error(error_st... |
// The contents of this file will be executed before any of
// your view controllers are ever executed, including the index.
// You have access to all functionality on the `Alloy` namespace.
//
// This is a great place to do any initialization for your app
// or create any global variables/functions that you'd like to
... |
//3dPlotter.js
/*TODO
allow user to plot multiple 3dsurfaces
allow user to find intersection points
allow user to find roots, etc
TODO WAY WAY TOO SLOW FOR ROTATION, must save verts!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! TODO
*/
//globals
var gl = null;
var cam = null;
var verts = null;
//function holder for... |
var fs = require('fs'),
config = require('./config'),
webdriver = require('selenium-webdriver'),
dateFormat = require('dateformat'),
deasync = require('deasync');
var showContents = config.showContents,
outputType = config.outputType,
brand = config.brand,
products = config.products,
si... |
/*
*
* EntitiesListView
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Map, List } from 'immutable';
import { Box, Text } from 'grommet';
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
import {
ROUTES,
API,
ACTORTYPES,
ACTIONTYPE_ACTORTYPES,
ACTIONTYPE... |
// global variables
var inputPrompt = 'the quick brown fox jumps over the lazy dog';
var decimalAccuracy = 2;
// stores all measures by category
var m = {
gen: {
id: 'general-measures',
title: 'General',
measures: {
transcribed: {
id: 'transcribed',
title: 'Transcribed String (T)',
... |
import React from "react"
import { graphql } from "gatsby"
import { Link } from "gatsby"
import Layout from '../layouts/blog'
import { theme } from "../utilis/theme"
import styled from 'styled-components'
import Helmet from 'react-helmet'
const Article = styled.article`
max-width: 100%;
.thumbnail {
max-width: calc(10... |
// ==UserScript==
// @name Password Composer
// @namespace http://joe.lapoutre.com/BoT/Javascript/
// @description Generate site specific password, based on a single Master Password.
// @include *
// @exclude
// @require md5.js
// @require sha1.js
// @resource pwdfieldbg img/pwd... |
const app = getApp();
const myApi = require('../../utils/myApi')
const imgUrl = require('../../utils/imgUrl')
const config = require('../../config')
// 引入SDK核心类
var QQMapWX = require('../../utils/qqmap-wx-jssdk');
// 实例化API核心类
var qqmapsdk = new QQMapWX({
key: config.mapSubKey // 必填
});
//TODO 自己写标签?自定义个性图标?
var ta... |
/**
* @quale/dev-i18n
*
* Copyright (C) 2021 <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, mod... |
// ==UserScript==
// @name Canvas All Info
// @namespace https://theusaf.github.io
// @version 1.2.5
// @icon https://canvas.instructure.com/favicon.ico
// @copyright 2020-2021, <NAME>
// @description Place all information on a single page (https://canvas.example.com/all or https://example.i... |
import { ref, computed, nextTick, watch, defineComponent, openBlock, createElementBlock, Fragment, createCommentVNode, createElementVNode, normalizeStyle, renderList, renderSlot, toDisplayString } from 'vue';
var Validator = {
validPhone: /^1[3456789]\d{9}$/,
validPwd: /^(?!_+$)(?!\d+$)(?!\D+$)[A-Za-z0-9]{6,12... |
/*jshint
esversion: 6,
node: true
*/
const fs = require('fs')
let ytPlayer
let data = {
vidQueue: [],
currentVid: {
id: 'XIMLoLxmTDw',
title: 'xAmp',
},
currentTime: '00:00',
duration: '00:00',
vidInput: '',
blockScrub: false,
blockVol: false,
selected: null,
el: {
video_ad: undefined,
scrub: undef... |
///<reference path="../typings/jquery/jquery.d.ts" />
///<reference path="../typings/signalr/signalr.d.ts" />
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; ... |
var trolls = [];
var troll_doors = [];
var troll_sp;
var troll_st_mod_loc;
var troll_pos_offset_loc;
var troll_dir_loc;
var troll_door_sp;
var troll_door_pos_offset_loc;
var troll_door_scale_loc;
var troll_tex;
var troll_door_tex;
var troll_x_speed = 0.6;
var troll_y_speed = 0.4;
var troll_brown_respawn_time = 20.0;... |
/* #AJAX
================================================== */
// jQuery(document).ready(function($) {
$.fn.inView = function(){
//Window Object
var win = $(window);
//Object to Check
obj = $(this);
//the top Scroll Position in the page
var scrollPosition = win.scrollTop();
//the end of the visible are... |
var courses = require('../json/courses.json');
var illFormatedCourses = require('../json/illFormattedCourses.json');
var nonObjectCourses =require('../json/nonObjectCourses.json');
var cGPACalculator = new CGPACalculator();
//Testing without Fixtures
describe('Testing that the json file is not empty', function () {
... |
var break_word_index=0;
window.onload=init;
function init(){
document.onclick = closeDialog;
document.getElementById("lock").onclick=enble_Editing;
document.getElementById("save").onclick=e_html_save;
//document.getElementById("close").onclick=word_edit;
document.getElementById("refresh").onclick=word_reload;
e... |
/*
Licensed per https://github.com/privacy-tech-lab/gpc-optmeowt/blob/main/LICENSE.md
privacy-tech-lab, https://www.privacytechlab.org/
*/
/*
analysis.js
================================================================================
analysis.js
Overall we have one goal with this script: Run an analysis on a page... |
import { ENTER, EXIT, UPDATE } from '../../const/d3';
import { AxesChart } from './AxesChart';
import { MonteOptionError } from '../../support/MonteOptionError';
import { commonEventNames } from '../../tools/commonEventNames';
import { defaultDataKey } from '../Chart';
import { extentBalanced } from '../../util/extents... |
var mongoose = require('mongoose');
var moment = require('../public/js/libs/moment/moment');
var CapacityHandler = require('./capacity');
var CONSTANTS = require('../constants/mainConstants');
var Module = function (event, models) {
'use strict';
var capacityHandler = new CapacityHandler(models);
var obje... |
let model;
var tamilCharacters = ['க','ச','ட','த','ப','ற','ங','ஞ','ண','ந','ம','ன','ய','ர','ல','வ','ழ','ள'];
var totalDataSizeForEachChar = 100;
var totalDataSize = totalDataSizeForEachChar * tamilCharacters.length;
var trainDataSizeForEachChar = (totalDataSizeForEachChar * 80) / 100;
var trainDataSize = tamilCharacte... |
// Presentor by 7kasper (<NAME>)
// Version 3.0
const SpecialReport = new Uint8Array([
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x02, // USAGE (Mouse)
0xa1, 0x01, // COLLECTION (Application)
0x85, 0x01, // REPORT_ID (1)
0x09, 0x01, // USAGE (Pointer)
0xa1, 0x00, // COLLECTION (Ph... |
var async = require('../dist/js/async.js');
////////////////////
//DB
//DB common
function errorHandler(tx, error) {
console.log("Error: " + error.message);
if (debug)
alert("Error: " + error.message);
}
function successHandler(tx, result) {
console.log("Success: " + result);
if (debug)
aler... |
import React, { useState, useEffect } from 'react'
import Recaptcha from 'react-recaptcha'
import Header from '~/components/header'
import Footer from '~/components/footer'
import {
Container,
Row,
Col,
Alert,
UncontrolledPopover,
PopoverBody,
} from 'reactstrap'
import { graphql } from 'gatsby'
import SEO ... |
// Import model configurations from config.json
var MODEL_CONFIGS = config_data;
console.log(MODEL_CONFIGS)
console.log(MODEL_CONFIGS.RGB_COLORMAP)
// Get diseases that we wish to display. Here we have chosen 7 out of the model's original 14
// outputs, based on clinical relevance and prevalence in reports.
let diseas... |
/*
------------------------------------------------------------
Config
------------------------------------------------------------
*/
// Number of particles
var PARTICLE_COUNT = Math.pow( 1024, 2 );
// Particle count must be power of 2
var PARTICLE_COUNT_SQRT = Math.sqrt( PARTICLE_COUNT );
// How many texture sl... |
window.awe = window.awe || {};
awe.init = function () {
awe.showPopup();
awe.hidePopup();
};
$(document).ready(function ($) {
"use strict";
awe_backtotop();
awe_category();
awe_lazyloadImage();
awe_tab();
$('.line-item-property__fields .input-groups span.input-group-addons').click(function (e) {
$('.line-item... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Connection = void 0;
const jsbinaryutils_1 = __importDefault(require("@jsprismarine/jsbinaryutil... |
let drawInterval;
let storedSnapshots;
let storedDetails;
let lastSnapshotIndex = 0;
let previousSelectedTimelineItem;
let vertexSnapshots = [];
const playText = 'Play';
const pauseText = 'Pause';
const BASE_URL = 'http://localhost:3000';
const distributionsData = {
info: [],
prevUnicastVertices: 0,
prevBroadcast... |
const cloudinary = require('cloudinary').v2;
const jwt = require('jsonwebtoken');
const {
AuthenticationError
} = require('apollo-server');
const User = require('../../Models/User.js');
const Admin = require('../../Models/Admin.js');
const Emotion = require('../../Models/Emotion.js');
const Descriptor = require('../.... |
//lgid to city name lookup
function citylookup(city){
var cname;
if(city=='09555'){cname='Brush';}
if(city=='36610'){cname='Hillrose';}
if(city=='45695'){cname='Log Lane Village';}
if(city=='84770'){cname='Wiggins';}
if(city=='33310'){cname='Grover';}
if(city=='13460'){cname='Cheraw';}
if(city=='48500'){cname='Manza... |
import {
attachEvents,
connectTrigger,
execCommand,
} from "./terminalEvents.mjs";
import { debounce } from "/shared/modules/utilities.mjs";
import motd from "./motd.mjs";
//DEPRECATE
import { templateJSX, templateSVC3, transform } from "./Templates.mjs";
const iframeSandboxPermissions = [
"allow-same-origin",
"... |
const util = require('util');
var express = require('express');
var HID = require('node-hid');
var BufferReader = require('buffer-reader');
var devices = HID.devices();
var FuseDevice = require('./FuseDevice.js');
var FuseModule = require('./FuseModule.js');
var FusePatch = require('./FusePatch.js');
var MessageProcess... |
function degToRad(degrees) {
return degrees * Math.PI / 180;
}
function getMousePos(evt) {
return {
X: evt.clientX,
Y: evt.clientY
};
}
function DiffusionGLCanvas(audio_obj) {
this.audio_obj = audio_obj;
this.glcontainer = document.getElementById("DiffusionGLContainer");
this.... |
var div, mousedrag = false, debug = false, woff = -innerWidth/2, hoff = -innerHeight/2, innerMin = Math.min(innerWidth,innerHeight);
var kick, snare, hihat, dlooper, mixer = [], master, plucky, metro, bpm = 100, t, n = 1, splitter, wave = [], sig, sigmult = 4;
var animate = false, elem, params, two, circle, rect, group... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.UALProvider = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _i18n = _interopRequireDefault(require("../../i18n"));
require("../../types");
va... |
const pool = require("../database");
import { INITIAL_GAMESTATE } from "../../client/src/redux/actions/actionTypes";
const { POS_BATTLE_EVENT_TYPE, COL_BATTLE_EVENT_TYPE, REFUEL_EVENT_TYPE } = require("../actions/eventConstants");
import { AIR_REFUELING_SQUADRON_ID, CAPTURE_TYPES, BLUE_TEAM_ID, RED_TEAM_ID, NEWS_PHASE_... |
'use strict';
gl.functions.showPizzeriaInfo = function (pizzeriaId) {
var framePizzeriaForm = $('#frame-pizzeria-info');
setTimeout(function () {
framePizzeriaForm.attr('src', '/vendor/pizzeria-info?id=' + pizzeriaId);
setTimeout(function () {
$('#popup-pizzeria-info').moda... |
var settings = require("../config/settings")
var u = {
getsetd: function (object, prop, defaultValue) {
if (object[prop] === undefined) {
object[prop] = defaultValue
}
return object[prop]
},
getRoomCache: function(roomName) {
const roomsCache = u.getsetd(Cache, ... |
mapboxgl.accessToken =
"<KEY>";
const map = new mapboxgl.Map({
container: "map",
style: "mapbox://styles/mapbox/satellite-streets-v11",
center: [24.053, 37.7385],
// bearing: 5,
zoom: 15.5
});
map.scrollZoom.disable();
map.addControl(new mapboxgl.NavigationControl());
const container = map.getCanvasConta... |
/* eslint-disable max-depth */
/* eslint-disable no-sync */
/* eslint-disable camelcase */
// 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.... |
var ManicureMarks= function(map){
this.map=map;
this.markers = [];
this.addMarker = function(location) {
var that=this;
var marker = new google.maps.Marker({
position: location,
map: that.map,
icon: {url:'images/pin-nailnow.png',anchor:{x:14,y:36}},... |
/***
* KMComBLE.js
* version 0.1.0 alpha
* Created by <NAME> on 2017/12/07.
*
* Copyright (c) 2017 Keigan Inc. https://keigan-motor.com/
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
'use strict';
let KMUtl = require('./KMUtl');
let KMComBase = require('.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.