text stringlengths 5.97k 41.2k |
|---|
import React, { Component } from 'react';
import styled from 'styled-components';
import HeadIcon from './headSvg/HeadIcon';
import HrefSvgView from './HrefSvgView';
import ClassifySvgView from './ClassifySvgView';
export default class Head extends Component {
constructor(props) {
super(props);
this.state = {
... |
// TODO: Fix this documentation, options is incorrect
/**
* Parse the reply for additional tags, this is called once we have a reply candidate filtered out.
*
* @param {Object} replyObj - The Reply Object
* @param {string} replyObj.id - This is the 8 digit id mapping back to the ss parsed json
* @param {array} rep... |
// $Id: fingerservice.js,v 1.48 2020/01/12 00:46:45 rswindell Exp $
// vi: tabstop=4
// Synchronet Service for the Finger protocol (RFC 1288)
// and/or the Active Users (SYSTAT) protocol (RFC 866)
// Example configurations (in ctrl/services.ini)
//
// [Finger]
// Port=79
// Command=fingerservice.js
//
// [ActiveUser-... |
var json;
var id;
$(document).ready(function() {
$('#date1').datetimepicker({
format: 'YYYY-MM-DD',
locale: 'hu',
maxDate: new Date(),
icons: {
time: "ti-alarm-clock",
date: "ti-calendar",
up: "ti-angle-up",
down: "ti-angle-down",
... |
import React, {Component} from 'react';
import styled from 'styled-components';
import TimerInfo from './TimerInfo';
import PointsInfo from './PointsInfo';
import RoleInfo from './RoleInfo';
import Table from './Table';
import {BaseContainer, GameContainer} from '../../helpers/layout';
import AllPlayerBoxes from './All... |
/**
* @preserve
*
* .,,,;;,'''..
* .'','... ..',,,.
* .,,,,,,',,',;;:;,. .,l,
* .,',. ... ,;, :l.
* ':;. .'.:do;;. .c ol;'.
* ';;... |
// wwtlib.Imageset
import ss from './scriptsharp/ss';
import {Util} from './Util';
import {Matrix3d} from './Double3d';
let ToastTile,MercatorTile,EquirectangularTile,SkyImageTile,PlotTile,TangentTile;
let allTiles = ['ToastTile','MercatorTile','EquirectangularTile','SkyImageTile','PlotTile','TangentTile'];
let allIm... |
/**
@Js-name:upgrade-merchants.js
@Zh-name:升级为商家
*/
var moblieReg =/^((\(\d{3}\))|(\d{3}\-))?1(3|4|5|7|8)\d{9}$/;
var name = "", dataMsg = "",memberPhone,memberCarId;
$(function(){
// 加载省份列表
getArea(0,'province');
// 加载城市列表
$("#province").change(function(){
var val = $(this).val();
$("#city").empty().appe... |
// Creating Objects
// Cylinder for the Sea
Sea = function () {
// create the geometry (shape) of the cylinder;
// the parameters are:
// radius top, radius bottom, height, number of segments on the radius, number of segments vertically
let geom = new THREE.CylinderGeometry(600, 600, 800, 40, 10);
geom.appl... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Macrome = void 0;
const path_1 = require("path");
const promises_1 = require("fs/promises");
con... |
const FILE_VERSION = 1;
const Application = require('./application');
const examples = require('./examples');
const zhegalkin = require('./zhegalkin');
const parser = require('./parser');
const Circuit = require('./circuit');
const Gate = require('./gate');
const displayAmplitudes = (nqubits, amplitudes) => {
con... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread"));
var _regenerator = _interopRequi... |
/*
* LiskHQ/lisk-service
* Copyright © 2021 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, ... |
'use strict';
var Q = require('../bower_components/q/q.js');
var createQuadtree = require('../bower_components/giant-quadtree/dist/GiantQuadtree.js').create,
Surface = require('../bower_components/big-surface/dist/BigSurface.js');
var BoundingBox = require('./BoundingBox.js'),
Tag = require('./Tag.js');
var Collag... |
import { Profile, Sounds } from "/profiles/profile.js"
import * as sounds from './audio.js'
import * as Three from '/src/three.js'
import { GAME } from './script.js'
import { FARM } from './modes/farm.js'
import { TextGeometry } from "/src/TextGeometry.js"
$("#music").on('click', function() {
Sounds.music ? $("#musi... |
const progressBarElement = $("#revtest-progress");
var chartsToExport = [];
function bootstrapRevtest(plot_stereo) {
/*
Conduct a reversal test using bootstrap statistics (Tauxe, 2010) to
determine whether two populations of directions could be from an antipodal
common mean.
Parameters
----------
dec: l... |
/**
* The MIT License
*
* Copyright (c) 2018 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... |
var fs = require('fs');
var path = require('path');
var titles = {
ca: {
cv: 'Curriculum Vitae',
main: 'Inici',
'not-found': 'Error',
'not-ready': 'En construcció',
projects: 'Projectes'
},
es: {
cv: 'Curriculum Vitae',
main: 'Inicio',
'not-found': 'Error',
'not-ready': 'En construcción',
projec... |
// ag-grid-enterprise v4.1.4
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "func... |
// V1.2.3 vom 1.4.2020
//Script um offene Fenster pro Raum und insgesamt zu zählen. Legt pro Raum zwei Datenpunkte an, sowie zwei Datenpunkte fürs gesamte.
//Möglichkeit eine Ansage nach x Minuten einmalig oder zyklisch bis Fensterschließung anzugeben
//Dynamische erzeugung einer HTML Übersichtstabelle
//WICHTIG!!!
//V... |
/*global $serverSide, createErrorMessage, inheritVars */
var loadStart = 'load:start',
loadEnd = 'load:end',
rootObject;
Thorax.setRootObject = function(obj) {
rootObject = obj;
};
Thorax.loadHandler = function(start, end, context) {
var loadCounter = _.uniqueId('load');
return function(message, backgr... |
/*
This module allows to change the tool used by the mouse when interacting with the viewport.
properties:
- name, description: info
- icon: image
- module: this will be the one receiving all the events, if no module is supplied the tool is used as the module
- onEnable: callback when the tool is enabled
... |
"use strict";
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];
... |
"use strict";
require("requirish")._(module);
var opcua = require("index.js");
var AttributeIds = opcua.AttributeIds;
//xx var AttributeNameById = opcua.AttributeNameById;
var BrowseDirection = opcua.browse_service.BrowseDirection;
var BrowseDescription = opcua.browse_service.BrowseDescription;
var async = require("as... |
// Simpatico main Interactive Front-End (simpatico-ife.js)
//-----------------------------------------------------------------------------
// This JavaScript is the main entry point to the Interactive Front-End
// component of the Simpatico Project (http://www.simpatico-project.eu/)
//
//-----------------------------... |
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
if (window.ActiveXObject)
Sys.ie = ua.match( /msie ([\d.]+)/ )[1];
else if (document.getBoxObjectFor)
Sys.firefox = ua.match( /firefox\/([\d.]+)/ )[1];
else if (window.MessageEvent && !document.getBoxObjectFor)
Sys.chrome = ua.match( /chrome\/([\d.]... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
'use strict'
var getContext = require('get-canvas-context')
var glExt = require("webglew")
var createFBO = require("gl-fbo")
var createShader = require('gl-shader')
var createBuffer = require("gl-buffer")
var createVAO = require("gl-vao")
var createTexture = require("gl-texture2d")
// GPU Computing on top... |
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*-------------------------------------------------... |
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* @emails oncall+internationalization
* @flow
*/
/*eslint max-len: ["error", 100]*/
'use strict';
/*::
import type {
FbtCallSiteOptions,
FbtOptionValue,
JSModuleNameType,
ValidPronounUsagesKey,
} from '../FbtConstants';
import type {
ParamSe... |
/**
* dc.js 2.0
* */
var _DC_Constant = {
isFlashLoaded: false,
rurl: 'http://dc.100bt.com/dc?',
startTime: new Date().getTime(),
btdomain: '100bt.com',
flashName: '_dcFlash',
uidKey: 'DC_UUID',
imgckey: 'DCIMGKEY_',
isOpenSpeedStatic: true,
timeInterval: 25 * 60 * 1000... |
import { Mutex as asyncMutex } from 'async-mutex';
import Constants from '@thzero/metaltitans-library_client_app_game/constants';
import LibraryConstants from '@thzero/library_client/constants';
import CommonUtility from '@thzero/metaltitans-library_common/utility';
import GlobalUtility from '@thzero/library_client/u... |
import { Error, strerror } from 'std';
import { read, write, close, setReadHandler, setWriteHandler } from 'os';
import { O_NONBLOCK, F_GETFL, F_SETFL, fcntl } from './fcntl.js';
import { debug, dlopen, define, dlerror, dlclose, dlsym, call, toString, toArrayBuffer, errno, JSContext, RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, R... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var RH = {
"menu": {
"getRadioButton": function (name, id) {
var i = document.createElement('input');
... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _reactDom = require("react-dom");
var _reactLifecyclesCompat = require("react-lifecycles-compat");
var _propTypes = _interopRequireDefault(require("prop-types"));
var _classnames = _intero... |
import {
Call,
PipeDec,
VariableObj,
PrototypeObj,
FunctionObj,
TypeParameterPairObj,
AttributeObj,
MethodObj,
PipeObj,
ListPrototypeObj,
MapPrototypeObj,
Token,
error,
} from "./core.js"
import * as stdlib from "./stdlib.js"
function check(condition, message, entity... |
/*!
ImageBox.js
Copyright (c) 2016 <NAME> <<EMAIL>> and <NAME> <<EMAIL>>
Released under the 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 Software
without restr... |
import cx from 'classnames'
import { FORM_ERROR } from 'final-form'
import pLimit from 'p-limit'
import * as R from 'ramda'
import * as React from 'react'
import { useDropzone } from 'react-dropzone'
import * as RF from 'react-final-form'
import { Link } from 'react-router-dom'
import * as redux from 'react-redux'
impo... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var util_1 = require("@antv/util");
var matrix_1 = require("../util/matrix");
var state_1 = require("../util/state");
var theme_1 = require("../util/theme");
var base_1 = require("./base");
var Category = /** @c... |
import React from 'react';
import { connect } from 'react-redux';
import Layout from './Layout';
import Admin from './admin/Admin';
import * as util from '../common/utility';
import Loader from '../common/Loader';
import ModalRoute from '../modal/ModalRoute';
import { getResource, sendResource } from '../api/helpers';
... |
import { useEffect, useState, useRef } from "react";
import uuid from "react-uuid";
import Moment from "react-moment";
import "moment-timezone";
import moment from "moment-timezone";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import "./style.css";
import API from "../utils/API";
import ExpandBut... |
let Livro, script, txt, listaGarimpada, versiculosTexto, textoFinal
if (localStorage.getItem("listaVersiculos") == null || !localStorage.listaVersiculos) {
localStorage.setItem("listaVersiculos", "[]")
}
let listaVersiculos = JSON.parse(localStorage.getItem("listaVersiculos"))
function mudaNomes() {
txt = do... |
import React, { createRef, Component } from 'react';
import { ObjectUtils, classNames } from 'primereact/utils';
import { tip } from 'primereact/tooltip';
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) {
arr2[i... |
import React, { useEffect } from "react";
import * as d3 from "d3";
import * as topojson from "topojson-client";
import usCounties from "./data/us.json";
import ffz from "./data/fips_fred_zillow.csv";
import "./App.css";
import _ from "lodash";
//https://gist.github.com/rgdonohue/9280446
var width,
height,
project... |
/*
* HanDate.js - Represent a date in the Han algorithmic calendar
*
* Copyright © 2014-2015, JEDLSoft
*
* 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/... |
/**
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var isNumeric = require('fast-isnumeric');
var svgSdf = require('svg-path-sdf');
var rgba = require('color-norma... |
'use strict'
const {ao} = require('./1.test-common')
exports.ao = ao
const debug = ao.logger.debug
const realPort = ao.port
ao.skipSample = true
const Emitter = require('events').EventEmitter
const extend = require('util')._extend
const BSON = require('bson')
const dgram = require('dgram')
const https = require('http... |
/*============================================================================
Ajax the add to cart experience by revealing it in a side drawer
Plugin Documentation - http://shopify.github.io/Timber/#ajax-cart
(c) Copyright 2015 Shopify Inc. Author: <NAME> (@cshold). All Rights Reserved.
This file includes:
... |
import React from "react";
import Grid from "@material-ui/core/Grid";
import MaterialIconSelector from "./MaterialIconSelector";
import HelpIcon from "@material-ui/icons/Help";
import TextField from "@material-ui/core/TextField";
import Tooltip from "@material-ui/core/Tooltip";
import ModalDialog from "./ModalDialog";
... |
/**
* CSSS javascript code
* @author <NAME> (http://lea.verou.me)
* @version 2.1
*/
/**
* Make the environment a bit friendlier
*/
function $(expr, con) { return typeof expr === 'string'? (con || document).querySelector(expr) : expr; }
function $$(expr, con) { return [].slice.call((con || document).querySelector... |
/**
* name : assessments.js
* author : Akash
* created-date : 22-Nov-2018
* Description : Institutional Assessments.
*/
// Dependencies.
const assessmentsHelper = require(MODULES_BASE_PATH + "/assessments/helper");
const submissionsHelper = require(MODULES_BASE_PATH + "/submissions/helper");
/**
* Assessmen... |
/* globals d3,SpadeSettings,GetAttributeValueList,DownloadTextFile,ReadSelectValues,html2canvas,DownloadImageFile,
CreateDomElement, Globals, GetPanel */
SpadeSettings.Visualizations.push({
name: "Table",
Functions: {
DrawFunc: TableDraw,
DrawInitFunc: TableDrawInit
},
Settings: {
RedrawOnV... |
(function($){
activateNotificationAndTasksScroll();
var origin = window.location.origin;
var url = window.location;
$('.list a').filter(function() {
$(".list").find(".active").removeClass("active");
return this.href == url;
}).parent().addClass('active');
$('#aniimated-thumbnials... |
/** Copyright (c) 2018 Uber Technologies, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
/* eslint-env node */
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const Terse... |
// Copyright (c) 2020 Uber Technologies, Inc.
//
// 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... |
/*
* A Titanium Mobile commonJS module for interacting with Amazon S3
*
* Obtain S3 credentials here:
* https://aws-portal.amazon.com/gp/aws/developer/account/index.html?action=access-key
*
* Author: <NAME>
* Copyright: Semantic Press, Inc.
*
* Libraries used:
* - Date.js: http://www.mattkruse.com
* - sha-aw... |
// Copyright (c) 2020 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.
export const escapeCharacters = (inputString, charsToEscape) => {
let foundChar = false;
for (let i = 0; i < charsToEscape.length; ++i) {
... |
const fs = require("fs");
const { expect } = require("chai");
const { ethers } = require("hardhat");
const { utils } = require("ethers");
const {
loadFixture,
increaseBlock,
fixtureDefault,
getiTokenCurrentData,
} = require("./helpers/fixtures.js");
const {
parseTokenAmount,
formatTokenAmount,
verifyAll... |
/*
* 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 ... |
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
/**
Copyright (c) 2015, 2022, Oracle and/or its affiliates.
Licensed under The Universal Permissive License (UPL), Version 1.0
as shown at https://oss.oracle.com/licenses/upl/
*/
'use strict';
const path = require('path');
const util = require('./util');
const CONSTANTS = require('./constants');
const conf... |
//=======//
// Setup //
//=======//
let ATOM_ID = 0
const makeAtom = ({
width = 50,
height = 50,
x = WORLD_WIDTH/2 - width/2,
y = WORLD_HEIGHT/2 - height/2,
dx = 0,
dy = 0,
draw = DRAW_RECTANGLE,
update = UPDATE_STATIC,
grab = GRAB_DRAG,
turns = 0,
cutTop = 0,
cutBottom = 0,
cutRight = 0,
cutLeft = 0,
au... |
import React, { useState, useEffect } from "react"
import useCommons from "../../../lib/hooks/useCommons"
import { Modal, Button } from "react-bootstrap"
import usePool from "../../../lib/hooks/usePool"
import ErrorPage from "../ErrorPage"
import { Form } from "lib/elektra-form"
import SelectInput from "../shared/Selec... |
// ---------------------------------------------------------
// Global
// ---------------------------------------------------------
var keys = Object.keys(fieldName);
var annotations = {};
var values = {};
... |
// TODO: Sound feedback
// TODO: Intro screen
// TODO: finish file case switches
// TODO: Preview images
// TODO: Admin Panel (fonts, etc.)
// TODO: fix color issue
// TODO: Authentication
// Boilerplate
var camera = new THREE.PerspectiveCamera(90, 1, 0.001, 6000),
scene = new THREE.Scene(),
renderer = new THR... |
// show list of suppliers when 'supplier' clicked
$(document).on('click', '#supplier', function(){
// bind supplier events
// pagination controls click event
$(document).off('click', '.pagination li');
$(document).on('click', '.pagination li', function(){
// get json url
var json_url=$... |
"use strict";
exports.__esModule = true;
var ack_node_1 = require("ack-node");
var reqresRes = require("ack-node/js/modules/reqres/res");
var vhost = require("vhost");
var https = require("https");
var webapp_1 = require("./webapp");
var tls = require("tls");
var express = require("express");
var routers = ack_node_1.a... |
'use strict'
const uuid = require('uuid')
const path = require('path')
const ActionHero = require(path.join(__dirname, '/../../index.js'))
const actionhero = new ActionHero.Process()
let api
const net = require('net')
let client
let client2
let client3
let client2Details = {}
const makeSocketRequest = async (thisCl... |
/**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="es"`
* Copyright JS Foundation and other contributors <https://js.foundation/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright <... |
import React, { useState, useEffect, useContext } from 'react';
// import { fecthDataBE } from '../../utils/logger';
import { check, encode, decode, formatDateTime, fecthDataRequest, getStoredField } from '../../utils/helpers';
import Socketbee from '../../components/BeeChat/socketBee';
//testing to get context from s... |
import { createContext, Component, createElement as h, unstable_deferredUpdates, forwardRef, Children, cloneElement, PureComponent } from "./react.js"
/* eslint-disable no-shadow */
const createNamedContext = (name, defaultValue) => {
const { Consumer, Provider } = createContext (defaultValue)
Consumer.displayNa... |
const Fs = require('fs');
const CSS = 'widgets.css';
const JS = 'widgets.js';
const JSEDITOR = 'editor.js';
const INSTALLED = {};
const WARNING = { type: 'warning' };
MAIN.widgets = {};
function WidgetInstace() {
}
WidgetInstace.prototype.globals = WidgetInstace.prototype.variables = WidgetInstace.prototype.variable... |
import React, { Fragment, useEffect, useState } from 'react';
import clsx from 'clsx';
import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';
import CardActions from '@material-ui/core/CardActions';
import Drawer from '@material-ui/core/Drawer';
import AppBar from '@material... |
const DIR_NOTICES = '../../notice/';
const fs = require("fs");
const fsPromises = require("fs/promises");
const path = require("path");
const sqlite = require("sqlite3");
const util = require("util");
const request = require("request");
const progress = require("progress-stream");
sqlite.Database.prototype.EA... |
// Intialize height and width for map svg element.
var width = 600;
var height = 400;
// Initialize min and max colors for chloropleth color scale.
var lowColor = '#5DADE2'
var highColor = '#1B4F72'
// Create SVG element for map projection.
var svg = d3.select("#map-container")
.append("svg")
.attr("id", "map-svg")... |
/**
* CONTRIBUTE : contribute.js
*/
/**
* VARIABLES
*/
var modalPage = 0;
var modalName = "";
var dropzone;
var shelter_id;
var countries = {};
var layerGroup, marker, locationpicker, bounds;
var pictureUploaded = false;
/**
* FUNCTIONS
*/
var modalOpen = function modalOpen(mo... |
"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 React from 'react';
import { Chart } from 'react-google-charts';
import { constants } from './reportConstants.js';
var i = 0;
var j = 0;
var k = 0;
var rawScatterChartData = [];
var rawThroughputData = [];
function openIssueInJIRA(Chart, point){
var issueID = rawScatterChartData[point].name;
var url = con... |
import Scroll from './Cosmolia/Renderers/Scroll.js';
import ScrollThumb from './Cosmolia/Renderers/ScrollThumb.js';
import POSITIONS from './Cosmolia/Positions.js';
import DIRECTIONS from './Cosmolia/Directions.js';
class Cosmolia {
/* @PRAGMA Initialization =============================================== */
... |
"use strict";
//Import Node Modules.
//----------------------
const express = require("express");
const router = express.Router();
const gSystemConfig = require("../config-application.js"); //System configuration.
const SyncSystemNS = require("../" + gSystemConfig.configDirectoryComponents + "/syncsystem-ns.js");
co... |
const MAX_SAFE_INTEGER = BigInt(Number.MAX_SAFE_INTEGER);
//TODO: https://en.wikipedia.org/wiki/Euclidean_algorithm#Method_of_least_absolute_remainders
function numbersGCD(a, b) {
while (b > 0) {
const q = Math.floor(a / b);
const r = a - q * b;
a = b;
b = r;
}
return a;
}
// https://webassembl... |
//this function will use the answers to create a grid of boxes and highlight the correct values
//TO DO
// -- I need to get the measurements to scale (not sure what this means)
// -- add tooltips
// -- is this better than the boxes?
params.haveBars = true;
//version options
d3.select('#paraVersionOptions').selectAll... |
// Main Div
var devtools = document.createElement("div")
devtools.setAttribute("class", "avodevtools")
devtools.setAttribute("id", "avodevtools")
devtools.setAttribute("contenteditable", "false")
document.getElementsByTagName("body")[0].appendChild(devtools)
var devtools = document.getElementById("avodevtools")
// Na... |
var config = new Config();
var db = new Database(config.config, initializeControl);
var robot = null;
var currentRobot = 0;
var face;
var belly;
var robotAPI = null;
var customAPI = null;
var motorState = null;
var animations = [];
var currAnimation = [];
function initializeControl() {
var robotParam = Config.getUR... |
jQuery(window).on('load', function() {
// Page Preloader
jQuery('#status').fadeOut();
jQuery('#preloader').delay(350).fadeOut(function(){
jQuery('body').delay(350).css({'overflow':'visible'});
});
});
jQuery(document).ready(function() {
// Toggle Left Menu
jQuery('.nav-par... |
function organisationUnitSelected(orgUnits, orgUnitNames) {
showById('selectDiv');
showById('searchDiv');
showById("programLoader");
disable('program');
showById('mainLinkLbl');
hideById('listEntityInstanceDiv');
hideById('editEntityInstanceDiv');
hideById('enrollmentDiv');
hideById('listRelationshipDiv');
h... |
// import assets
import skyTextureImage from "../../static/img/sky.jpg";
import floorTextureImage from "../../static/img/wood.jpg";
import wallTextureImage from "../../static/img/metal.jpg";
import ui_hint_normal from "../../static/img/hint-normal.png";
import ui_hint_hover from "../../static/img/hint-hover.png";
imp... |
/**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import React, { useState, useEffect } from 'react';
import './CartPage.scss';
import { allPagesEvent } from '../../components/shared/dataLayer/index';
import { connect } from 'react-redux';
import { useLazyQuery } from '@apollo/client';
import { Link } from 'gatsby';
import LineItems from './LineItems';
import { qtyCou... |
'use strict';
var mysql = require('mysql');
var Promise = require('promise');
var con = mysql.createConnection({
host:"m4k-database.c947krbzy1fm.us-west-1.rds.amazonaws.com",
user: "databois",
password: "<PASSWORD>",
database: "m4k_database"
});
var getQueries = [
/*queryNum = 0: GET All Donors*/ "S... |
/*
* liveview FileServer
*/
'use strict';
const http = require('http'),
net = require('net'),
url = require('url'),
path = require('path'),
join = path.join,
fs = require('fs-extra'),
colors = require('coloring'), // eslint-disable-line no-unused-vars
fsWatcher = require('chokidar'),
debug = require('debug')(... |
initialization();
function initialization() {
chrome.storage.sync.get(['r_status'], function(result) {
if(result.r_status){
init();
setContentEditable();
floatingButton();
setScript();
}
});
console.warn(`©Copyright ${ (new Date().getFullYea... |
var PAPI = PAPIBase.extend({
init: function() {
this.user_authentication = null;
this._super();
},
api_domain: function() {
return config.OCEAN_API_URL;
},
api_version: function(key) {
switch(key) {
case "texts_version":
return config.API_VERSIONS.texts || config.API_VERSIONS._d... |
function SelectCustomize(t) {
$("#" + t + ">.selectCityList").css("display", "none"), $("#" + t + ">.selectCity").bind("click", function() {
var e = $(".selectCityList").css("display");
"none" == e ? ($(".selectCityList").show(), $("#" + t + ">.selectCityList>a").each(function() {
$(this... |
//==============================================================================
// Author: Nergal
// Date: 2014-06-12
//==============================================================================
"use strict";
function Object3D() {
// THREE.Mesh.apply(this, arguments); inherite from mesh
this.mesh;
thi... |
import * as THREE from 'https://threejsfundamentals.org/threejs/resources/threejs/r127/build/three.module.js';
import * as UA from 'https://cdnjs.cloudflare.com/ajax/libs/UAParser.js/0.7.28/ua-parser.min.js';
function init_matrix_hq() {
const canvas = document.querySelector('#c');
const renderer = new THREE.We... |
/**
* 日期对象转换为指定格式的字符串
* @param {string} formatStr 日期格式,格式定义如下 yyyy-MM-dd HH:mm:ss
* @param {Date|string|number} date Date日期对象或者时间戳或者带毫秒的时间戳, 如果缺省,则为当前时间
* YYYY/yyyy/YY/yy 表示年份
* MM/M 月份
* W/w 星期
* dd/DD/d/D 日期
* hh/HH/h/H 时间
* mm/m 分钟
* ss/SS/s/S 秒
* @return string 指定格式的时间字符串
*/
const dateToSt... |
/*
* This is the main file where we program the application JS. This code is then
* processed through Browserify to protect namespace.
*/
// Require some libs.
var $ = require('jquery'),
crossfilter = require('crossfilter'),
console = require('console'),
categoryFilter = require("./CategoryFilter"),
... |
'use strict';
function medicalIntakeController($scope, $log, $filter, $state, catServicesHolder) {
$scope.cat = {
// Items stored in rescuegroups fields
animalAltered: false,
animalName: "",
animalBirthdate: "",
animalSex: "",
animalColor: "",
animalBreed: ""... |
import { chances } from "../../utils/chances";
const human = [
{ id: 1, name: "Apothecary", pct: 1 },
{ id: 2, name: "Engineer", pct: 1 },
{ id: 3, name: "Lawyer", pct: 1 },
{ id: 4, name: "Nun", pct: 2 },
{ id: 5, name: "Physician", pct: 1 },
{ id: 6, name: "Priest", pct: 5 },
{ id: 7, name: "Scholar", ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.