text stringlengths 8.5k 48.7k |
|---|
function init() {
set_progress();
set_question();
document.getElementById("results_button").disabled = true;
document.getElementById("results_button").style.visibility = 'hidden';
}
function skip() {
scores += "-1";
if (index < length) {
index++;
set_progress();
... |
import React, {Component} from 'react'
import classnames from 'classnames'
import _ from 'lodash'
import Grid from '@material-ui/core/Grid'
import GridList from '@material-ui/core/GridList'
import GridListTile from '@material-ui/core/GridListTile'
import Menu from '@material-ui/core/Menu'
import MenuItem from '@mater... |
var __assign = this && this.__assign || function () {
__assign = Object.assign || function (t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) {
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
}
return t;
};
return... |
var window_height = $(window).height(),
testMobile,
loadingError = '<p class="error">The Content cannot be loaded.</p>',
nameError = '<div class="alert alert-error">Please enter your name.</div>',
emailError = '<div class="alert alert-error">Please enter your e-mail address.</div>',
invalidEmailEr... |
import * as Restaurante from './Configuracion.js';
var SelecMesa = document.getElementsByName('CartaMesa');
var SelecMesero = document.getElementsByName('Meseros');
var SelecAsiento = document.getElementsByName('AsientoQR');
var SelecCliente = document.getElementsByClassName('cliente');
var ClienteSeleccionado =... |
/*
* Copyright (C) 2017 Orange.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Ver... |
/*
* Comments for GitHub Pages via Liquid/Jekyll
*
* Copyright 2015 <NAME>
* Released under the Apache 2.0 license.
*
* Learn more at https://github.com/wireddown/ghpages-ghcomments
*
*/
/* Globals */
var ShortMonthForIndex = { 0: "Jan", 1: "Feb", 2: "Mar", 3: "Apr", 4: "May", 5: "Jun", 6: "Jul", 7: "Aug", 8:... |
// Aurelia
import {
inject, // eslint-disable-line
LogManager
} from 'aurelia-framework';
import { EventAggregator } from 'aurelia-event-aggregator'; // eslint-disable-line
// Third party
import { color as d3Color, json } from 'd3';
// Injectables
import ChromInfo from 'services/chrom-info'; // eslint-disable-... |
import { Box3, BufferAttribute } from 'three';
import MeshBVHNode from './MeshBVHNode.js';
import { arrayToBox, boxToArray, getLongestEdgeIndex } from './Utils/ArrayBoxUtilities.js';
import { CENTER, AVERAGE, SAH } from './Constants.js';
// https://en.wikipedia.org/wiki/Machine_epsilon#Values_for_standard_hardware_flo... |
// ==UserScript==
// @name [dmzj]record
// @description 自动更新浏览记录,获取书签
// @include https://manhua.dmzj.com/*
// @include https://i.dmzj.com/subscribe
// @version 1.0.102
// @modified 2019-8-27 15:27:09
// @author dodying
// @namespace https://github.com/dodying/UserJs
// @supportURL... |
//Ref: http://nesdev.com/NESDoc.pdf Page.34 Appendix B
/**
* CPU ADDRESS MAP
*
* RAM : 2048 Bytes = 0x0800 = 0x0100 0page + 0x0100 stack + 0x0600 ram
* IO : 40 Bytes = 0x0028 = 0x0008 ppu io + 0x0020 apu(except ODMA) io
* External : 49120 Bytes = 0xBFE0 = 0x1FE0 exrom + 0x2000 sram + 0x8000 ... |
/* 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... |
// # Patterns
// Just as regex are composed from patterns that match strings, datex are composed from patterns that match data structures. Some of these patterns match the data directly, while others -- much like the `|`, `+` and `*` in regular expressions, are used to combine these patterns.
// Datex are implemented a... |
const fs = require('fs');
const SimpleBar = require('simplebar');
const M = require('materialize-css');
const qrcode = require('qrcode-generator');
const Handlebars = require('handlebars');
const bip39 = require('bip39');
const bch = require('bitcore-lib-cash');
const explorer = requ... |
//MooTools More, <http://mootools.net/more>. Copyright (c) 2006-2009 <NAME> <http://clientcide.com/>, <NAME> <http://mad4milk.net> & the MooTools team <http://mootools.net/developers>, MIT Style License.
/*
---
script: More.js
description: MooTools More
license: MIT-style license
authors:
- <NAME>
- <NAME>
- <NAME... |
var latitude = 13.120506778876507
var longitude = 100.91823663448366
var username = process.env.PGO_USERNAME || '';
var password = process.env.PGO_PASSWORD || '';
var provider = process.env.PGO_PROVIDER || '';
// var username = process.env.PGO_USERNAME || '<EMAIL>';
// var password = process.env.PGO_PASSWORD || 'passwo... |
"use strict";
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && fu... |
'use strict';
class Mandelbrot {
// sleep every so often during scan
static WAIT_MS = 100;
// used to color
static LOG2_LOG2_2 = Math.log2(Math.log2(2.0));
static LOG_BIG_NUM = Math.log(1000000);
// color function ids
static COLOR_CHECKERED = 0;
static COLOR_CHECKERED_BW = 1;
co... |
function createTascItem(tascObject, x, y, width, height) {
var topOffset = 0;
if(tascObject.name === undefined || tascObject.name.length === 0)
topOffset = tascItemNamelessOffset;
var group = document.createElementNS( svgURI, 'g');
group.setAttribute('id',tascObject['id']);
group.setAttribu... |
function refresh(){
window.location.reload(false);
}
function init(){
document.getElementById("startBotton").onclick=function(){startSess()};
document.getElementById("enter_img").onclick=function(){startSess()};
// document.getElementById("BtnMovieBlink").onclick=function(){ShowMovie()};
}
fun... |
/**
* DevExtreme (cjs/ui/form/ui.form.layout_manager.js)
* Version: 21.2.5
* Build date: Mon Jan 17 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
exports.default = void 0;
var _... |
/* ==========================================================
* FLAT KIT v1.2.0
* common.js
*
* http://www.mosaicpro.biz
* Copyright MosaicPro
*
* Built exclusively for sale @Envato Marketplaces
* ========================================================== */
/* Utility functions */
// generate a random numb... |
var templateFill = 'rgba(245,245,245,0.6)';
var templateFillOver = 'rgba(193,190,162,0.6)';
var templateFillActive = 'rgba(225,225,225,0.6)';
var minImageSize = 100; // min size of image when resize
var fflivesEditor = new FFlivesEditor({
canvasID: 'main-canvas',
templateFill: templateFill,
templateFillOv... |
/**
* Main client-side script
*/
'use strict';
const testing = !1,
testURL = 'ws://127.0.0.1:8080' + location.pathname,
nativeURL = 'ws://kraftwerk28.pp.ua:8090',
$ = (s) => document.getElementById(s);
let
socket = null,
player = {
x: 0,
y: 0,
vector: [0, 0],
speed: 0,
size: 10,
id... |
var SlipdfParser = Jaabro.makeParser(function() {
//
// parse
function eol(i) { return rex(null, i, /\n+/); }
function equal(i) { return rex(null, i, /[ \t]*=[ \t]*/); }
function space(i) { return rex('space', i, /[ \t]+/); }
function spacestar(i) { return rex('space', i, /[ \t]*/); }
function wsStar(i... |
var source = [] , dataset = [] , teamsets = [], players = [] , daily = [] , weekly = [] , users = [] ;
var y , x , tooltip ;
var total_pie = 0 ;
var myDay = new Date();
var today = { 'day' : myDay.getUTCDate() , 'month' : myDay.getMonth() + 1 }
var numDayToday = 0 ;
var timelines = [
{
'name' : ... |
// some random hates found on the internets
var other = ['Přece nám nebudou říkat jestli máme mít právo šaria , pivo a klobásku bych jim povině dal všem snízt. ',
' Asi normálni lednové počasí!Kdysi mrzlo až praštělo, ale nyní vše do noty migrantů,potažmo obtěžovatelů a vrahů......nový svět povstává!!! ',
' to by... |
// 6502 assembler
// <NAME>, mass:werk / electronic tradion 2005; e-tradion.net
// lookup tables
var hextab= ['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'];
var instrtab = {
ADC:[ -1, -1,0x69,0x6d,0x7d,0x79,0x65,0x75, -1, -1,0x61,0x71, -1],
AND:[ -1, -1,0x29,0x2d,0x3d,0x39,0x25,0x35, -1, ... |
/* -*- mode: js; indent-tabs-mode: nil -*-
Copyright 2013 <NAME>, Opera Software ASA
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 req... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
var _articleId= buijs_geturl('articleId'); //文章ID
var _pageNo= 1;
var ImgIdA= 0; //记录照片位置
var i=0;
var pictUrlArray=[];
var deleteImgArray= [];
var textareaHistory = ""; //记录发表的文字内容
var imgHtml = ""; //记录发表的图片
var currentUser = '自己'; //当前用户名字
var currentHeadImgUrl = ""; //当前用户头像
var currentHevelPic... |
"use strict";
const vscode = require("vscode");
const fs = require("fs");
const path = require("path");
const root = require("./root");
const cache = require("./cache");
const PAT = require("./patterns");
const DTB = require("./database");
const STS = require("./settings");
const PLG = require("./... |
var _ = require('lodash');
var async = require('async-chainable');
var asyncExec = require('async-chainable-exec');
var boxSizing = require('box-sizing');
var colors = require('colors');
var conkieStats = require('conkie-stats');
var ejs = require('ejs');
var electron = require('electron');
var fs = require('fs');
var ... |
import * as format from './format.js';
export const RenderMode = {
AA_EN: 0x0008,
Z_CMP: 0x0010,
Z_UPD: 0x0020,
IM_RD: 0x0040,
CLR_ON_CVG: 0x0080,
CVG_DST_CLAMP: 0,
CVG_DST_WRAP: 0x0100,
CVG_DST_FULL: 0x0200,
CVG_DST... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Arra... |
import { aframeHelper, attribute, rgbcolor, threeHelper } from "harlyq-helpers"
AFRAME.registerSystem("procedural-texture", {
init() {
this.renderer = undefined
this.proceduralTextureComponents = []
},
registerComponent(component) {
this.proceduralTextureComponents.push(component)
if (!this... |
var START_TIME = '2020-10-25 16:00:00';
// var START_TIME = '2020-10-24 15:23:00'; // TODO: FIX
var RANGLISTE = {
"D10": [
"1122-D10",
"1134-D10",
"1130-D10",
"1126-D10",
"1114-D10",
"1110-D10",
],
"H10": [
"1148-H10",
"1144-H10",
"114... |
const fs = require('fs');
const path = require('path');
const os = require("os");
const clc = require('chalk');
const https = require('https');
const http = require('http');
var commandExistsSync = require('command-exists').sync;
var fileExistsSync = require('fs').existsSync;
const ROOT = __dirname + "/..";
... |
function prom() {
var name = prompt("请输入你的姓名或姓名字母缩写(给每个人的祝福不同)", ""); //将输入的内容赋给变量 name ,
//这里需要注意的是,prompt有两个参数,前面是提示的话,后面是当对话框出来后,在对话框里的默认值
if (name)//如果返回的有内容
{
alert("欢迎您:" + name)
}
}
prom();
var wordIndex=0;
console.log(document.getElementById("fullContent"));
var word=document.getElem... |
/**
* This class handles user inputs concerning the creation of decision trees, executes the steps and organizes the necessary data.
*/
var allResults = [];
var allItems = [];
var ids = [];
var splitAttributes = [{number: "", splitAttr: "", splitValue: "", splitId: 0}];
var splits = [];
var pieChart;
var count = 0;
... |
$(document).ready(function() {
//初始化页面
initPageUI();
//绑定事件
bindEvents();
});
//初始化页面
function initPageUI() {
$("#holderCertType").css("width", "200px");
$("#holderSex").css("width", "200px");
$("#holderNation").css("width", "200px");
$("#insuredCertType").css("width", "200px");
$(... |
var grid;
var dirtyRows;
var prevNameColumn = {};
var columnUpdated = false;
function isEmptyRow(rowEntry){
var emptyRow = true;
$.each( rowEntry, function( key, value ) {
if(value != "" && value != undefined && value != null) {
emptyRow = false;
}
});
return emptyRow;
}
/*... |
/*
* 表单插件
* 根据自定义标签自动渲染固定的html格式
*/
(function($){
$.fn.reRenderForm = function(){
var options = $.extend({
layout: (this.data('layout')!=undefined&&this.data('layout')!=''?this.data('layout'):'default'),
zIndex: this.children().length
},
options);
for(var i=0;i<this.... |
/*
* From http://www.redblobgames.com/maps/mapgen4/
* Copyright 2018 <NAME> <<EMAIL>>
* License: Apache v2.0 <http://www.apache.org/licenses/LICENSE-2.0.html>
*
* This module uses webgl+regl to render the generated maps
*/
'use strict';
const {vec4, mat4} = require('gl-matrix');
const colormap = require('./colo... |
const fs = require('fs')
const fsp = fs.promises
const path = require('path')
const os = require('os')
const vm = require('vm')
const util = require('util')
// eslint-disable-next-line no-unused-vars
const sysUtil = util
async function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms))
}
const tempD... |
(function($) {
if (!$.setCookie) {
$.extend({
setCookie: function(c_name, value, exdays) {
try {
if (!c_name) return false;
var exdate = new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_v... |
// Performa Server Component
// Copyright (c) 2019 <NAME>
// Released under the MIT License
var assert = require("assert");
var fs = require("fs");
var os = require("os");
var Path = require("path");
var cp = require("child_process");
var zlib = require('zlib');
var mkdirp = require('mkdirp');
var async = require('asy... |
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o... |
window.onload=function(){
setTimeout(function() {
window.scrollTo(0, 1)
}, 0);
};
//初始化mui
mui.init();
//调整canvas的大小
$("#myCanvas").attr("width", $(window).width());
$("#myCanvas").attr("height", $(window).height() - 43);
var offset = $("#myCanvasDiv").offset();
//一堆全局变量
//记录此移动设备一些信息deviceInfo.screen.... |
// version 0.0.1 - oct 2020
/* global chrome, screen, history */ // from system
/* global toggleCollapse, addToListAsUniqueItems, removeFromlist */ // from utils
/* global dg */ // from dgelements.js
/* global showWarning, currentLog, tabinfo, marks, COLOR_MAP, thisTab */ // from popup.js
const SEARCH_COUNT = 40
co... |
/* Astronomical Algorithms Second Edition by <NAME>, ©1998, published by Willmann-Bell. Earth perihelion and aphelion times determined using JPL DE405 by <NAME> */
export function convertUTCtoJD(a) {
var t = a.getUTCFullYear(), e = a.getUTCMonth(), r = a.getUTCDate(), n = a.getUTCHours(), o = a.getUTCMinutes(), c =... |
const def = require('../structure/defineStructure.js');
const getOid = require('../utils/getOid.js');
const getModelFromStandard = require('../utils/getModelFromStandard.js');
const {
removeNamespace,
populateValueListSources,
convertAttrsToLCC,
getListOfSourceIds,
populateItemGroupOidInWhereClause,... |
import { $ } from './jquery';
import { Matrix } from './matrix';
import { partsAll, PartsCollection } from './collection';
// Internal structure of a component
const partInternal = {
/**
* For the internal structure of a component, we have the following parameters:
* - Iterative function(iterative)
... |
/**
* @file Matrix Utils
* @private
* @author <NAME> <<EMAIL>>
*
* svd methods from Eugene Zatepyakin / http://inspirit.github.io/jsfeat/
*/
import { v3new, v3cross } from './vector-utils';
export class Matrix {
constructor(cols, rows) {
this.cols = cols;
this.rows = rows;
this.size = ... |
var http = require('http');
var https = require('https');
var crypto = require('crypto');
var querystring = require("querystring");
var dao = require("./../dao/dao")
var log = require("./loginfo").getInstand;
var gameInfo = require('./../class/game').getInstand;
var updateConfig = require('./updateConfig').getInstand;
... |
// import $ from 'jquery';
import wx from 'weixin-js-sdk'
import store from '../store/store';
let util = {};
util.$webStorage = {
type: '',
setItem(name, payload) {
// console.log(this.type);
switch (this.type) {
case 'localStorage':
localStorage.setItem(name, payload);
break;
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireWildcard(require("react"));
var _raf = _interopRequireDefault(require("raf"));
var _tween = _interopRequireDefault(require("./tween.js"));
var _Loading = _interopRequireDefault(requi... |
import { LitElement, html } from '../../vendor/lit-element/lit-element.js'
import { repeat } from '../../vendor/lit-element/lit-html/directives/repeat.js'
import * as session from '../lib/session.js'
import * as images from '../lib/images.js'
import { slugify, encodeBase64, decodeBase64 } from '../lib/strings.js'
impor... |
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --harmony-intl-relative-time-format
// The following test are not part of the comformance. Just some output in
// English to verify the forma... |
import Origo from 'Origo';
import Overlay from 'ol/overlay';
import Feature from 'ol/Feature';
import VectorSource from 'ol/source/Vector';
import VectorLayer from 'ol/layer/Vector';
import Point from 'ol/geom/Point';
import Polygon from 'ol/geom/Polygon';
import MultiPolygon from 'ol/geom/MultiPolygon';
import GeoJSON... |
const wasm = import("../pkg/index.js");
var accessToken = null;
const Converter = (function () {
var queue = {};
var fileNames = [];
var generation = 0;
const LATEX_LISTS = {
"bullet": "itemize",
"number": "enumerate",
"quote": "quote",
"task": "itemize",
"taskd... |
/*
* ebus adapter für iobroker
*
* Created: 15.09.2016 21:31:28
* Author: Rene
*/
/* jshint -W097 */// jshint strict:false
/*jslint node: true */
"use strict";
const utils = require("@iobroker/adapter-core");
const ebusdMinVersion = [21, 2];
let ebusdVersion = [0, 0];
let ebusdUpdateVersion = [0, 0];
let ada... |
/* jshint node: true */
'use strict';
var dateUtil = require('../date-util');
var events = require('../events');
/** Return a domainModel tags array from the given vm tags array.
*
* domainModel.tags and vm.form.tags use different formats. This
* function returns a domainModel.tags-formatted copy of the given
* ... |
var Immutable = require("immutable");
var alt = require("../alt-instance");
var MarketsActions = require("../actions/MarketsActions");
var SettingsActions = require("../actions/SettingsActions");
var market_utils = require("../common/market_utils");
import ls from "common/localStorage";
import ChainStore from "api/Chai... |
// var assert = require('assert')
var async = require('async')
var util = require('util')
var events = require('events')
var bitcoin = require('bitcoinjs-lib')
var BlockExplorerRpc = require('blockexplorer-rpc')
var crypto = require('crypto')
var CoinKey = require('coinkey')
var Bip38 = require('bip38')
var cs = requir... |
const fs = require('fs');
const data = require('./_data/simple-icons.json');
const { htmlFriendlyToTitle } = require('./scripts/utils.js');
const htmlNamedEntities = require('named-html-entities-json');
const svgpath = require('svgpath');
const svgPathBbox = require('svg-path-bbox');
const parsePath = require('svg-pat... |
import React from "react";
import Layout from "../../../layout/Layout";
import { Checkbox, Pagination, Select} from "antd";
const Option = Select.Option;
import moment from 'moment';
import echarts from "echarts";
import { observer } from "mobx-react";
import GeneralizeManageStore from "../../../mobx/generalizeSupport/... |
'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);
var UAParser = require('ua-parser-js/dist/ua-pars... |
function getPrevalenceScore(ocurrency, damage) {
var json_matrix = {
"-101,-101": { "-101,-101": -100, "-76,-100": -90, "-51,-75": -80, "-26,-50": -70, "-1,-25": -60, "0,0": -50, "1,25": -40, "26,50": -30, "51,75": -20, "76,100": -10, "101,101": 0 },
"-76,-100": { "-101,-101": -90, "-76,-100": -80, "-51,-75": -70,... |
function mmWebflow(js) {
utils = mm.utils;
function mmListView(js) {
var summary_year = js.summary_year
var title = $(".page-heading").text();
$(".page-heading").text(title + " " + summary_year);
function ProjectTypeBarChart(el) {
this.barchart = new mm.BarChart();
... |
import { render, html, svg } from "../uhtml.js";
import { pixelStyles } from "./pixel-styles.js";
const hexToRGBA = (hex) => {
let [r, g, b, a = 255] = hex.match(/\w\w/g).map((x) => parseInt(x, 16));
return [r, g, b, a];
};
function RGBA_to_hex([r, g, b, a]) {
r = r.toString(16);
g = g.toString(16);
b = b.t... |
//target number of rooms per island, in practice will vary
const roomsPerIsland = 40
const breakOffThreshold = 20
class ClusterHandler {
layout = "islands"
islands = []
crossIslandLinks = []
macroSimulation = null
_frameUpdateEnabled = true
constructor(data) {
this.data = data
}
update()... |
const url = require(`url`);
const htmlEscape = require(`html-escape`);
const svg = require(`../includes/svg.js`);
const plugins = require(`../../plugins/plugins.json`);
const {
Channel,
FineChannel,
MatrixChannel,
NullChannel,
SwitchingChannel,
fixtureFromRepository
} = require(`../../lib/model.js`);
req... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
import assert from 'assertion-soft';
import assert_soft from 'assertion-soft';
import timerlog from 'timerlog';
import Thing from './thing';
import Resource from './resource';
import text_search from '../util/text_search';
import NeedsAndLibsPage from '../components/pages/needs-and-libs';
const cache__childs = {};
co... |
//"use strict";
// Created by Modi
// sliding motion, based on screen coordinates
var rotationSpeedX = 0; // X rotation
var startSlideX;
var alpha = 0, beta = 0;
var rotationSpeedY = 0; // Y rotation
var startSlideY;
var mouseIsDown = false;
// parts template and settings
var outerBlock = [ ];
var parts = [ ];
va... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
// Portions Copyright 2019 <NAME> (https://github.com/Jimbly/)
// Released under MIT License: https://opensource.org/licenses/MIT
/*eslint no-bitwise:off */
const glov_engine = require('./engine.js');
const glov_font = require('./font.js');
const glov_ui = require('./ui.js');
const glov_input = require('./input.js');
... |
String.prototype.replaceAll = function (oldStr,newStr){
var index = 0;
var str = new String(this);
if (newStr==undefined || newStr==null) newStr="";
while(index >=0 ){
str = str.replace(oldStr, newStr);
index = str.indexOf(oldStr);
}
return str;
};
Date.prototype.format = functio... |
var pdf = require('pdfkit');
var fs = require('fs');
module.exports.exportCarePlan = function(data) {
var doc = new pdf;
var fileName = data.firstName + ' ' + data.lastName + '.pdf';
doc.pipe(fs.createWriteStream(fileName));
// date config
var residentBirthDate = new Date(data.birthDa... |
var $ = require('jquery');
var _ = require('underscore');
var humanize = require('humanize');
var config = require('./config');
var downloadjs = require('downloadjs');
var csvUtils = require('./csv-utils');
var utils = {
getCentilesAndYAxisExtent: function(globalData, options, centiles) {
/*
If there is a s... |
export { default as Accessibility } from './Accessibility';
export { default as Achievement } from './Achievement';
export { default as Action } from './Action';
export { default as Actions } from './Actions';
export { default as Ad } from './Ad';
export { default as AddCircle } from './AddCircle';
export { default as ... |
function Cube (element_id) {
var DOM = {};
DOM.cube = document.getElementById(element_id);
DOM.side = {}
DOM.value = {}
DOM.score = document.getElementById('score');
DOM.max = document.getElementsByClassName('max');
this.DOM = DOM;
var axis = ['x','y','z','-x','-y','-z'];
var side = {};
this.side ... |
/* @license
* Copyright 2019 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
// Step1 Class definition
var Step2 = function() {
// Private functions
var valid = function() {
// date format
$("#dosar_an").inputmask("9999", {
"placeholder": "yyyy",
autoUnmask: true
});
// Datepicker
$('input[name=data_poprire], .dela, .pan... |
const { _TypedDataEncoder } = require("@ethersproject/hash");
const Web3 = require("web3");
const ethers = require('ethers');
const axios = require('axios');
const abiDecoder = require('abi-decoder');
const config = require('../src/config/local');
const ABIs = require("../src/config/abis");
const Order = require('../sr... |
'use strict';
/**
* @file [haya_map_editor.js -> Haya - Sprite Editor]
* @description This is a editor in-game for the sprites
* =====================================================================
* @author <NAME> | Kvothe <www.dax-soft.weebly.com> / <<EMAIL>>
* @thanks to Jonforum!
* @version 0.1.1
* @license... |
import _ from "lodash";
import "bootstrap/dist/css/bootstrap.min.css";
import css from "./assets/sass/basic.scss";
require("angular");
var moment = require("moment");
let app = angular.module("ara", [require("angular-route")]);
var chrono = require("chrono-node");
app.config(function($routeProvider) {
$routeProvide... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// uuid: ff759cf5-29fb-4cb9-a460-8b70e6bec95a
// ------------------------------------------------------------------------
// Copyright (c) 2018 <NAME>. All rights reserved.
// Licensed under the MIT License+uuid License. See License.txt for de... |
'use strict';
var Alexa = require('alexa-sdk');
var APP_ID = "amzn1.ask.skill.3bcc3809-e574-4304-b169-a5affade5d19";
var SKILL_NAME = 'Crazy State Laws';
/**
* Array containing state law facts.
*/
var FACTS = [
"In Utah, it is illegal to hire trombone players to play on the street to advertise an auction.",
... |
const _ = require('lodash');
const objectHash = require('ocore/object_hash.js');
const eventBus = require('ocore/event_bus.js');
const network = require('ocore/network.js');
const db = require('ocore/db.js');
const mutex = require('ocore/mutex.js');
const conf = require('ocore/conf.js');
const mongo = require('./mongo... |
/* bubbleChart creation function. Returns a function that will
* instantiate a new bubble chart given a DOM element to display
* it in and a dataset to visualize.
*
* Organization and style inspired by:
* https://bost.ocks.org/mike/chart/
*
*/
function bubbleChart() {
// Constants for sizing
var width = 12... |
import { Item } from './item'
import { provideGetter, numericSort, isNumber } from './asArray'
import { parse } from 'csv-parse'
import FS from 'fs'
import Path from 'path'
import { promisify } from 'util'
import { string } from 'yargs'
/**
* Random is quick class that expertly handles weighted randoms in your code
... |
//============================================================================
// This file defines three variables for creating alerts, prompts, confirms.
//
// E.g. Alert.show("This is a title", "This is the body")
//
// Author: <NAME> <<EMAIL>>
//======================================================================... |
function heatmap(element, chartData, settings) {
var interval = settings.interval;
var min = parseInt(settings.min);
var max = parseInt(settings.max) + interval;
var onTimeChange = settings.onTimeChange;
var onSourceChange = settings.onSourceChange;
var formatTooltip = settings.formatTooltip;
var showTool... |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* Copyright 2012 Mozilla Foundation
*
* 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.... |
/**
* Tencent is pleased to support the open source community by making 蓝鲸 available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License a... |
/*
Nirman(js): HTML Static site generator.
*/
"use strict";
var fs = require('fs');
var path = require("path");
//var markdown = require("markdown").markdown;
var showdown = require("showdown");
var showdownConverter = new showdown.converter();
var _ = require("underscore");
var nunjucks = require('nun... |
const degrees = rad => rad * 180 / Math.PI;
const radians = deg => (deg * Math.PI) / 180;
function WorldEditor(data) {
let renderer, mouse = { drag: false, button: 0, x: 0, y: 0 }, keys = {},
stats, scene, skyboxBackground, pageBackground, ground, clock, camera, sprites = [], wireframe;
const meshes = ... |
/*jslint node: true */ /*eslint-env node*/
'use strict';
var Verify = require('./verify'),
utils = require('../misc/utils'),
cloneObject = utils.cloneObject,
createObject = utils.createObject,
arrayIntersection = utils.arrayIntersection,
Consts = require('../consts'),
debug = require('debug')('router_utils... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.