text stringlengths 3.22k 29.5k |
|---|
const TESTNAME = "random-offer-bot";
// const test = require('tape');
const assert = require("assert");
const Step = require('step');
const DbUtil = require("../lib/db-util.js");
const dbOpts = require("./dbOpts.js");
const GenericExchange = require("../lib");
const gex = new GenericExchange({
dbOpts,
debugLevel: ... |
function getPlayerColor(player){
if (player == "agent"){
return "#8080F0";
}
return "#F08080";
}
var treeData = {
container: document.getElementById('cy'),
boxSelectionEnabled: false,
autounselectify: true,
layout: ... |
'use strict';
import { Color3, Color4 } from '@babylonjs/core/Maths/math.color'
import { Vector3, Quaternion } from '@babylonjs/core/Maths/math.vector'
import { Space } from '@babylonjs/core/Maths/math.axis'
import {StandardMaterial } from '@babylonjs/core/Materials/standardMaterial'
import { HighlightLayer } from '@b... |
document.writeln("<!--[if lte IE 7]>");
document.writeln("<div style=\"color: #474747;padding: 8px 35px 8px 14px;background-color: #FCF8E3;border: 1px solid #FBEED5;line-height: 1.5;text-align: center;\">");
document.writeln(" <strong>注意!</strong>");
document.writeln(" 本网站不支持IE8以下的浏览器,为了获得更快、更安全的浏览体验,我们建议您使用");
d... |
/**
* Firebase JavaScript | Cannlytics Console
* Created: 12/22/2020
* Updated: 7/11/2021
*/
// Initialize Firebase
firebase.initializeApp({
apiKey: process.env.FIREBASE_API_KEY,
authDomain: process.env.FIREBASE_AUTH_DOMAIN,
databaseURL: process.env.FIREBASE_DATABASE_URL,
projectId: process.env.FIREBASE_PR... |
var config = {
type: Phaser.AUTO,
width: 800,
height: 600,
backgroundColor: '#000000',
parent: 'phaser-example',
physics: {
default: 'matter',
matter: {
gravity: { y: 1 },
enableSleep: false
}
},
scene: {
key: 'main',
preloa... |
/*
Project Name: bes-threejs
Link:https://github.com/Lightnet/bes-threejs
Created By: Lightnet
License: cc (creative commons)
Information: Please read the readme.md file for more information.
*/
var version = "1.0.0";
var fs = require('fs');
var configpath = __dirname + '/app/config.json';
//conso... |
import { useCallback, useEffect, useState, useRef } from 'preact/hooks'
import {
useFoundation,
closest,
emptyClientRect,
raf
} from '@pmwcs/base'
import {
MDCMenuSurfaceFoundation,
util
} from '@material/menu-surface'
const toUpperSnake = (str = '') => str.replace(/([A-Z])/, '_$1').toUpperCase()
const g... |
/**
* Updates the google drive document with the new transcript data received through the SRT stream
* called by the time based trigger launch in init
* (defaults to 1 minute which is the minimum allowed by google)
* via: https://developers.google.com/apps-script/guides/triggers/installable#time-driven_triggers
*/
func... |
'use strict';
const React = require('react');
const Ons = require('react-onsenui');
const config = require('../data_components/config.json');
const contactLinks = require('./contactLinks.js');
const confirmDialog = require('./confirmDialog.js');
/**
* Offer form where the user can list items they are giving away.
... |
const getDefaultConfig = (randomizer, window) => {
const document = window.document;
const body = document.body;
const defaultTouchTypes = [
'tap',
'tap',
'tap',
'doubletap',
'gesture',
'gesture',
'gesture',
'multitouch',
'multitouch',... |
"use strict";
function listen_for_events(timestamp) { // timestamp e undefined dintrun motiv
$.ajax("/programares/pull/"+timestamp, { success: //adaugare in lista doar daca programarea e din ziua respectiva
function(data, code, xhr) {
for (var i=0; i< data.programari.length; i++) {
... |
const test = require('ava')
let { sro2syllabics, syllabics2sro } = require('./cree-sro-syllabics')
const COMBINING_CIRCUMFLEX = '\u0302'
/* Create automatic titles for some test cases. */
let createMacroTitle = (operator) => (comment, a, b) =>
`“${a}” ${operator} “${b}”` + (comment ? ` (${comment})` : '')
convertS... |
var WebSocket = require('ws');
var wss = new WebSocket.Server({ port: process.env.PORT || 8080 });
function rand (min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; }
function broadcast(message) {
wss.clients.forEach(function (client) {
if (client.readyState == WebSocket.OPEN) {
... |
/**
* Cocoon Blocks
* @author: yhira
* @link: https://wp-cocoon.com/
* @license: http://www.gnu.org/licenses/gpl-2.0.html GPL v2 or later
*/
import { THEME_NAME, ShortcodeToolbarButton } from '../helpers.js';
const { Fragment } = wp.element;
const { __ } = wp.i18n;
const { registerFormatType, insert } = wp.richTe... |
'use strict';
var imgSection = document.getElementById('pictureSection');
var surveySection = document.getElementById('surveySection');
var resultSection = document.getElementById('result');
var resultList = document.getElementById('resultsList');
var welcomeSection = document.getElementById('welcome');
var takeQuiz =... |
import {
getDefaultLocale,
setDefaultLocale,
getLocaleData,
addLocaleData
} from './LocaleDataStore'
import resolveLocale from './resolveLocale'
import PluralRules from './PluralRules'
// Importing `PluralRule` polyfill from a separate package
// results in a bundle that is larger by 1kB for some reason.
// im... |
#!/usr/bin/env node
/* eslint-disable no-console */
const admin = require('firebase-admin');
const { Client } = require('@googlemaps/google-maps-services-js');
const { GeoFirestore } = require('geofirestore');
let geofirestore = null;
let usersPublicGeofirestoreCollection = null;
let requestsPublicGeofirestoreCollecti... |
import { csrfFetch } from 'utils/CSRF';
import { arrayIsSubset, arrayShuffle, fromEntries } from 'utils/Util';
import { COLOR_COMBINATIONS } from 'utils/Card';
let draft = null;
const fetchLands = {
'Arid Mesa': ['W', 'R'],
'Bloodstained Mire': ['B', 'R'],
'Flooded Strand': ['W', 'U'],
'Marsh Flats': ['W', 'B... |
#!/usr/bin/env node
const program = require('commander');
const fs = require('fs');
const fsPath = require('path');
const yaml = require('js-yaml');
const eol = require('eol');
const asciidoctor = require(`asciidoctor`)();
const { stripHtml } = require("string-strip-html");
const base = require.resolve('dictionary-en'... |
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... |
'use strict';
const NodeHelper = require('node_helper');
const radar = require('flightradar24-client/lib/radar');
const flight = require('flightradar24-client/lib/flight');
const geoutils = require('geolocation-utils');
const parse = require('csv-parse');
const fs = require('fs');
const path = require('path');
module... |
const container = document.createElement('div'),
mainArea = document.createElement('div'),
postCreateArea = document.createElement('div'),
postArea = document.createElement('div'),
postCommentArea = document.createElement('div');
distinctPost = document.createElement('div');
container.className = 'container';
mainAre... |
import './App.css'
import 'bootstrap/dist/css/bootstrap.min.css'
import React, { useState, useEffect, useRef } from 'react'
import { ButtonGroup, ToggleButton } from 'react-bootstrap'
import Voting from './contracts/Voting.json'
import getWeb3 from './getWeb3'
import TheNavbar from './components/TheNavbar'
import Aut... |
import React, {useEffect, useState} from 'react';
import { View, Text, StyleSheet, TextInput, Alert, Keyboard } from 'react-native';
import {Dropdown, MultiSelect} from 'react-native-element-dropdown';
import { Button } from 'react-native-paper';
import LoadingActionContainer from '../../Components/LoadingActionContain... |
/*
* resources.getEntityManagerContainer() // 实体管理容器.
* resources.getContext() //上下文根.
* resources.getOrganization() //组织访问接口.
* requestText //请求内容.
* request //请求对象.
*/
print("运行渠道任务工单任务同步实时接口");
var File = Java.type('java.io.File');
var Root_Dir_Record = "D:"+File.separator+'FTPFile'+ File.separator + "Chann... |
var rings = document.getElementById('rings'),
dataset = rings.getAttribute('dataset'),
circles = rings.getAttribute('circles'),
focus = rings.getAttribute('focus'),
filters = rings.getAttribute('filters'),
baseTitle = rings.getAttribute('graph-title'),
baseSubtitle = rings.getAttribute('graph-su... |
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { TouchableOpacity, StyleSheet, Text, View } from 'react-native';
import { colors, fontStyles, baseStyles } from '../../../../styles/common';
import { strings } from '../../../../../locales/i18n';
import NetworkList, {
getNetworkT... |
'use strict';
const $ = require("lodash");
module.exports = {
/**
* 激活标签
* @url user/pub/test1 前端调用的url参数地址
* @description 此函数描述
* @params {Object} data 请求参数
* @params {String} uniIdToken 用户token
* @params {String} userInfo 当前登录用户信息(可信任,仅kh目录下的函数有此值)
* pub目录下请求参数需要带上 need_user_info = true
* ... |
var xtend = require('xtend')
var inherits = require('util').inherits
var queue = require('async-depth-first')
var abs = require('abstract-leveldown')
var streamIterate = require('stream-iterate')
var createRBT = require('functional-red-black-tree')
var END = '\uffff'
var BATCH_TTL = 20 * 1000
// ltgt.compare
function... |
var _ = require('lodash'),
chalk = require('chalk'),
fs = require('fs-extra'),
path = require('path'),
Table = require('cli-table'),
sprintf = require('sprintf-js').sprintf,
wrench = require('wrench'),
CONST = require('alloy/Alloy/common/constants'),
STYLER = require('alloy/Alloy/commands/compile/styler');
mod... |
'use strict';
var List = require("bs-platform/lib/js/list.js");
var Curry = require("bs-platform/lib/js/curry.js");
var React = require("react");
var Caml_obj = require("bs-platform/lib/js/caml_obj.js");
var Button$JabroniWebClient = require("./Button.bs.js");
var RegistrationService$JabroniWebClient = require("../../... |
contProductos = 1;
subArray = [];
subProductos = 0;
descProductos = 0;
totalProductos = 0;
cantArray = [];
arrayStock = [];
swIng = false;
$(document).ready(function() {
fgetCategorias();
if ( $('#readyUl').length ){
var mesa_id = $('input[name="mesa_id"]').val();
axios.get(`/comandas/getVentaComanda/${mesa_id}`... |
import express from 'express';
import socket from 'socket.io';
import path from 'path';
// import config from '../webpack.config.dev.js';
import cors from 'cors';
import bodyParser from 'body-parser';
import * as ContractActions from './contract';
// ContractActions.addPlayer('shubham5', 10, 300).then((data) => {
// ... |
//////////////////////////////////////////////////////////////////////
// Importaciones de otros JS //
//////////////////////////////////////////////////////////////////////
import { game } from '../../init.js';
import { controller } from '../../gameController.js';
import { user }... |
/*
* EEA transfer
* Author: <NAME>
*/
const express = require('express');
const session = require('express-session');
const bodyParser = require('body-parser');
const redis = require('redis');
const redisStore = require('connect-redis')(session);
const ldapjs = require('ldapjs');
const path = require('path');
const {... |
const fs = require('fs')
const bsv = require('bsv')
const crypto = require("crypto")
const API = require('./api.js')
const txutil = require("./txUtil.js")
const MimeLookup = require('mime-lookup');
const MIME = new MimeLookup(require('mime-db'))
const CHUNK_SIZE = 64000
const BASE_TX = 400
const FEE_PER_KB = 1536
co... |
"use strict";
const { Translate }= require('@google-cloud/translate').v2;
const farmhash = require('farmhash');
const log = require('../utils/logger');
module.exports = (sequelize, DataTypes) => {
let AcTranslationCache = sequelize.define("AcTranslationCache", {
index_key: { type: DataTypes.STRING, allowNull: f... |
import React, { useState, useRef } from 'react';
import MapView from './map/MapView';
import Meta from './editor/Meta';
import Editor from './editor/Editor';
import Convert from '../convert';
import * as MapStyles from '../constants/mapstyles';
import * as Defaults from '../constants/defaults';
import { owmBuild } from... |
/*
Ref : https://spicyyoghurt.com/tutorials/html5-javascript-game-development/develop-a-html5-javascript-game
*/
//import {trackTransforms } from './Zoom'
export class GameObject {
// engine : H5Canvas;
// x : number = 0;
// y : number = 0;
// vx : number = 0;
// vy : number = 0;
// isColliding : boolean... |
const EventEmitter = require("events");
const cluster = require("cluster");
const os = require("os");
const path = require("path");
const { performance } = require("perf_hooks");
const MessageType = require("../message-type.js");
const SysCall = require("../syscall.js");
const SegmentInterface = require("./segment-in... |
if (Number(process.version.slice(1).split(".")[0]) < 10) throw new Error("Node 10.0.0 or higher is required. Update Node on your system.");
const os = require('os')
if (!os) console.warn("Some commands may not work properly if you don't install the 'os' package! To correct this problem, install this package.");
cons... |
var UKEventType = {
FileUploaded: 'UKFileUploaded',
UploadComplete: 'UKUploadComplete',
UploadError: 'UKUploadError'
};
var UploadKit = function(input) {
if (!window['plupload']) {
console.error('Unable to initialize UploadKit; Plupload dependency not found');
return null;
}
var $input = $(input... |
import marked from 'marked'
import {
renderHTML
} from './render/htmlWrapper'
import {
renderPath
} from './render/pathUtil'
import {
renderMarkdown
} from './render/mdRenderer'
import {
preview,
extensions
} from './render/fileExtension'
/**
* Render code blocks with the help of marked and Markdown gramm... |
import React, { useEffect, useState } from 'react'
import {
CBadge,
CButton,
CCard,
CCardBody,
CCardHeader,
CCol,
CDataTable,
CRow,
CModal,
CModalBody,
CModalFooter,
CModalHeader,
CModalTitle,
CInput,
CFormGroup,
CSelect,
CCardFooter,
CPagination,
CTextarea,
CLabel
} from '@coreu... |
#!/usr/local/bin/node
'use strict';
/**
# [application-log-winston-interface.js](source/application-log-winston-interface.js)
> A wrapper around initialising Winston with Application-Log Standard levels, colours, and specific formats.
Internal module name: `ApplicationLogWinstonInterface`
Author: Anadian
Code licens... |
import React from 'react'
import styled from 'styled-components'
import { Flex, Image, Text, SubHighlightNavLink } from 'ui/common'
import { NavLink } from 'react-router-dom'
import colors from 'ui/colors'
import ClickOutSide from 'react-click-outside'
import Triangle from 'images/triangle.svg'
import DataLogInactive f... |
/*
*All functions in this file are related with drawing elements
in the table.
*It's important to know that "drawing" refers to create
DOM elements and then append this documents into the table.
*Most important variable here is DroppedElements an array that
has all logic of dropped elements. ... |
/*
* Elfer_Dev 2014-09-14
**/
var getXHR = function(){
var xhr = null;
try{
xhr = new XMLHttpRequest();
}catch(e){
try{
xhr = new ActiveXObject("MSXML2.XMLHTTP");
}catch(e){
try{
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}catch(e){
xhr = null;
}
}
}
if(xhr != null){
xhr.sendHTTP ... |
// Copyright (c) 2018, Shellyl_N and Authors
// license: ISC
// https://github.com/shellyln
const fs = require('fs');
const path = require('path');
const child_process = require('child_process');
const liyad = require('liyad');
const io = require('./io');
const help = require('./help').help;
// dummy handler
requi... |
$(document).ready(function () {
$(".selectexptype").select2({
placeholder: "إختر نوع المصروف",
allowClear: true
});
$(".selectcurr").select2({
placeholder: "إختر العملة",
allowClear: true
});
$(".selectbranch").select2({
placeholder: "إخنر الفرع",
all... |
const optimiser = require("./optimiser");
const { fact, shuffle, garp, draw, checkForMulligan, mulligan, sampleCards, show, garpwInput } = optimiser;
test("Test suite running", () => {
expect(true).toBeTruthy();
});
test("Factorials are calculated correctly",() => {
expect(fact(0)).toEqual(1);
expect(fact... |
function Party() {
this.translation_tpl= $('#translation_tpl').html();
this.quip_tpl= $('#quip_tpl').html();
this.$results = $('#results');
this.$translator = $('#translator');
this.phrase_queue = [];
this.last_displayed_phrase = 0;
this.party_status = 'partying';
this.id = null;
}
Party.prototype = {
qui... |
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
//funções presentes no cliente.adicionar/editar.blade
//trocar entre campos cpf e cnpj segundo opção da radio
$(".radio").on("click", function () {
var cpf = $("#cpf_radio").is(":checked");
var cnpj = $("... |
const fs = require("fs");
const path = require("path");
const shell = require("shelljs");
const prompt = require("inquirer").prompt;
const template = require("es6-template-strings");
const frontMatter = require("yaml-front-matter");
const findUp = require("find-up");
const globalTemplatesPath = require("./globalPath");... |
// /**
// * Implement Gatsby's Node APIs in this file.
// *
// * See: https://www.gatsbyjs.org/docs/node-apis/
// */
// const fs = require('fs');
// const readline = require('readline');
// const {google} = require('googleapis');
// const os = require('os');
// const uuid = require('uuid');
// const path = require(... |
import React, {Component} from 'react'
import {withStyles} from 'material-ui/styles'
import AppBar from 'material-ui/AppBar'
import PropTypes from 'prop-types'
import Toolbar from 'material-ui/Toolbar'
import Typography from 'material-ui/Typography'
import Icon from 'material-ui/Icon'
import IconButton from 'material-u... |
import {
WEEK,
MONTH, LANR_ARR,
BASIS, LUNAR_MONTH,
LUNAR_DAY, SHENGXIAO,
TIANGAN, DIZHI, SOLAR_TERMS_MIN,
SOLAR_TERMS_CN, LUNAR_FESTIVAL,
} from './config'
// 阴历js
class Lunar {
constructor() {
this.SOLAR_TERMS = [] // 24节气 对应时间表
this.months = MONTH // 阳历月份
this.weeks = WEEK // 周
this.is... |
//state variables
cellTypes = {
1:'obstacle',
2:'start',
3:'end',
4:'bfs'
}
positions = {
1: [],
2: [],
3: []
}
start = [];
end = [];
currentStage = 1;
startFlag = false;
endFlag = false;
grid = [
[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,... |
$(document).ready(function() {
if($('.main_header').length > 0){
setTimeout(function(){
$('.main_header--fon').css({transform: 'scale(1)'});
}, 100);
/*$(window).scroll(function(){
if($(window).scrollTop() > 1)
$('.main_header--fon').css({transform: 's... |
/**
* using chrome dev area with angular
* https://www.youtube.com/watch?feature=player_embedded&v=Klqn73uzQao
*
* @param $routeProvider
*/
var serverNodePoolConfig = function($routeProvider, $httpProvider){
$routeProvider
.when('/', {
controller: 'ServerNodePoolController',
... |
/*
REQUIRED FIELDS CHECK
ONFIELD CHANGE EFFECTS MARKET PRICES
*/
var iteration = 0;
var marketprices = "";
var marketprice = ["","","","","","","","","",""];
var quantity = 1;
var currentOffset = 1100;
var oldQuantity = 1;
function load(){
document.getElementById("stix").addEventListener("click",selltix);
document.... |
/*
* Aotoo-hub
* 多项目大前端脚手架
* 作者:天天修改
* home-url: http://www.agzgz.com
* github: https: //github.com/webkixi
*/
const co = require('co')
const fs = require('fs')
const path = require('path')
const chalk = require('chalk')
const webpack = require('webpack')
const _ = require('lodash')
const log = console.log
// re... |
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
var updateTime;
var players = [],
nbrPlayers;
var bubbles = [];
var laser1, laser2;
var imagePlayer1 = document.getElementById('imagePlayer1');
var imagePlayer2 = document.getElementById('imagePlayer2');
var bottom, levelTop;
var l... |
// app.js
// JavaScript for Assignment
"use strict";
// 1. Function max() to find largest among two numbers.
// /*
// console.log("Question-1: Max of Two");
alert("Question-1: Max of Two Numbers");
let num1, num2, num3;
num1 = parseFloat(prompt("Enter First Number: "));
num2 = parseFloat(prompt("Enter Second Number: "... |
import Marionette from 'backbone.marionette';
import _ from 'underscore';
import $ from 'jquery';
import i18next from 'i18next';
import { isRecordDownloadable } from '../../download';
import SearchResultListView from './SearchResultListView';
import './SearchResultView.css';
import template from './SearchResultView.... |
import React from 'react'
import { connect } from 'react-redux'
import Form from 'react-jsonschema-form'
import applyNav from 'react-jsonschema-form-pagination'
import classNames from 'classnames'
import EditorSchemaModal from '../editorBaseTools/EditorSchemaModal'
import PartialConfigLoader from '../editorBaseTools/... |
import styled from 'styled-components';
export const StyledBanner=styled.header`
box-sizing:border-box;
.jumbotron{
background: linear-gradient(rgba(150,150, 150,.7), rgba(15,15,15,.7)), url("/static/assets/background-image.jpg");
background-repeat: no-repeat;
background-position: 50% center ;
backg... |
$( document ).ready(function() {
console.log( "ready!" );
load(entidadFinanciera);
//document.getElementById("banco").style.display = "none";
//$('#banco').hide();
//$('.banco').hide()
});
graf = d3.select('#graf')
ancho_total = graf.style('width').slice(0, -2)
alto_total = ... |
/* jshint expr:true */
/* eslint-disable no-unused-expressions */
import {setupRenderingTest} from 'ember-mocha';
import {expect} from 'chai';
import {it, describe, beforeEach} from 'mocha';
import hbs from 'htmlbars-inline-precompile';
import {make, makeList} from 'ember-data-factory-guy';
import sinon from 'sinon';
i... |
import { createRequire } from 'module';
import httpClient from './connection/http.js';
import deviceHeater from './device/heater.js';
import eveService from './fakegato/fakegato-history.js';
import platformConsts from './utils/constants.js';
import { parseError } from './utils/functions.js';
import platformLang from '.... |
import React from 'react';
import {findDOMNode} from 'react-dom';
import {Input} from '../react-text-input/src/main/Input';
import PropTypes from "prop-types";
const {any, array, string, bool, oneOfType, instanceOf, func,arrayOf} = PropTypes;
const
HIGHLIGHT_CLASS = 'tag-list__item--highlighted',
NO_TRANSITION_CL... |
import React, { Component } from "react";
import TextField from "@material-ui/core/TextField";
import Input from "@material-ui/core/Input";
import InputLabel from "@material-ui/core/InputLabel";
import FormHelperText from "@material-ui/core/FormHelperText";
import FormControl from "@material-ui/core/FormControl";
impor... |
/**
* Copyright (c) 2015-present, Zippy Technologies
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import cleanP... |
const DocumentWord = require('../models/document-words');
const Post = require('../models/post');
const cwi_module = require('../cwi_module/cwi_model');
const documentManager = require('../cwi_module/documentMangager');
const _ = require("underscore");
const CWI = new cwi_module();
const infrequentWords20 = [];
const i... |
var userController = require('../../controllers/shared/user'),
logController = require('../../controllers/shared/log'),
laraController = require('../../controllers/shared/lara'),
SubmitButton, Popup;
var listenForUnknownValues = function (numCircuits, enterUnknowns, callback) {
var usersRef = userControl... |
/*!
=========================================================
* Argon Dashboard React - v1.2.0
==========================================================
* Product Page: https://www.creative-tim.com/product/argon-dashboard-react
* Copyright 2021 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https:... |
var base_url = window.location.origin + '/rpfp/';
var XLSX = XLSX;
var XW = {
msg: 'xlsx',
worker: base_url + 'assets/js/xlsxworker.js'
};
var global_wb;
var process_wb = (function() {
var OUT = document.getElementById('out');
var HTMLOUT = document.getElementById('htmlout');
var get_format = (function() {
va... |
import React, { Component } from 'react';
/*
Screen:LoginScreen
Loginscreen is the main screen which the user is shown on first visit to page and after
hitting logout
*/
import './../App.css';
/*
Module:Material-UI
Material-UI is used for designing ui of the app
*/
import injectTapEventPlugin from 'react-tap-event-plug... |
/******************** list init *******************************/
var map_autocomplete_instance = null;
var minLengthTypeAhead = 3;
var item_data = null;
var isSuccess = false;
/** init the lists for selecting problems, diagnoses etc.*/
$(function() {
function log( message ) {
$( "<div>" ).text( message... |
/* eslint-disable */
/**
* @license
* Copyright 2012 <NAME> (<EMAIL>)
* MIT-licensed (http://opensource.org/licenses/MIT)
*/
/* global Dygraph:false */
/*
Bits of jankiness:
- Direct layout access
- Direct area access
- Should include calculation of ticks, not just the drawing.
Options left to make axis-friend... |
/* eslint-env es6 */
/* eslint no-global-assign: 0 */
"use strict";
const mock = require('mock-require');
const { requireUncached, serialize } = require('./TestTools');
const consoleOriginal = global.console;
const runExample = options => {
const {
Matter,
logs,
frameCallbacks
} = prepareEnvironment(... |
import isElectron from 'is-electron';
import path from 'path';
import get from 'lodash/get';
import set from 'lodash/set';
import includes from 'lodash/includes';
import uniq from 'lodash/uniq';
import difference from 'lodash/difference';
import merge from 'lodash/merge';
import semver from 'semver';
import ensureArray... |
class Gallery {
constructor() {
this.currentIndex = 0
// script tracks data length for rendering iframe arrows based on index
this.dataLength = parseFloat($('#length').text());
// script tracks doc ids for unique file naming
this.docIDs = $('#docIDs').text().split(',');
// tracks ... |
//@EliasHasle
//All inputs are numbers. The axes are given by a single coordinate.
function steiner(I, A, sourceAxis, targetAxis) {
return I + A * (sourceAxis - targetAxis) ** 2;
}
//Calculate area, center, Ix, Iy.
function trapezoidCalculation(xbase0, xbase1, xtop0, xtop1, ybase, ytop) {
let a = xbase1 - xbase0;
... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
const getHashArrayData = (array) => {
return new Promise((resolve) => {
//Verificamos que sea un array
if(Array.isArray(array)){
const newArray = array.reduce((acc, cv) => {
//Separamos las fechas en un arreglo
const [year,... |
const AWS = require('aws-sdk');
const uuidV4 = require("uuidv4");
const moment = require('moment');
const configModule = require('../libs/config-helper.js');
var configuration = configModule.configure(process.env.stage);
const DynamoDBHelper = require('../libs/dynamodb-helper.js');
const cognitoUsers = require('../li... |
import randomInt from 'random-int';
import screensManager from '../managers/screensManager';
import dataManager from '../managers/dataManager';
import Background from '../display/Background';
import Hero from '../display/Hero';
import Spike from '../display/Spike';
import ShadowOverlay from '../display/ShadowOverlay';
... |
/*
The SerGIS Project - sergis-server
Copyright (c) 2015, SerGIS Project Contributors. All rights reserved.
Use of this source code is governed by the MIT License, which can be found
in the LICENSE.txt file.
*/
// This file handles everything having to do with login, account permissions,
// and other... |
//The Chat 3D's server module
// creates a new environment for entities and map data
function createEnvironment(name){
return {
name: name, //optional name, more decorational than anything
serverEntities: [], //all entities in the scene
// REQUEST HANDLE METHODS //
//Callback for "serv... |
// Pacloud project
// CustomResource SpotFleet Lambda function
// https://github.com/OlivierBP/Pacloud
// Created 2018-03-27 by <NAME>
// License MIT
// Best practices CustomResource in CloudFormation
// https://aws.amazon.com/premiumsupport/knowledge-center/best-practices-custom-cf-lambda/
'use strict';
// The hand... |
let Stream = function (vm, id) {
let self = this;
self.parent = vm;
self.id = id;
self._CP = ko.observable(0);
self._supplyTemp = ko.observable(0);
self._targetTemp = ko.observable(0);
self.CP = () => parseFloat(self._CP());
self.supplyTemp = () => parseFloat(self._supplyTemp());
self.targetTemp = ... |
'use strict';
const util = require('util');
const EventEmitter = require('events');
const express = require('express');
var extend = require('backbone-extend-standalone');
var forms = require('forms');
var cloudinary = require('cloudinary');
cloudinary.config({
cloud_name: 'dgyo1x1hb',
api_key: '272385375964931... |
"use strict";
const error = require("@gourmet/error");
const deepClone = require("@gourmet/deep-clone");
const promiseMap = require("@gourmet/promise-map");
const promiseDeepClone = require("@gourmet/promise-deep-clone");
const promiseDeepProp = require("@gourmet/promise-deep-prop");
const Self = require("./sources/Se... |
Vue.use(VueBaiduMap.default, {
ak: 'MTMdfHzZv4SVWqauWpmqOwKjUEysvKpd'
});
let app = new Vue({
el: "#app",
data: {
default_active: "1",
login_user: {
name: "",
username: "",
location: {lng: 114.372042, lat: 30.544861}
... |
import '../scss/reset.scss';
import '../scss/main.scss';
import swal from 'sweetalert2'
import firebase from "firebase"
import ImageEditor from "./ImageEditor"
var canvas;
var context;
var image, originalImage;
init();
function init(){
var config = {
apiKey: "<KEY>",
authDomain: "imageditor-54955.firebas... |
import {trimStart} from 'lodash-es';
import {parseWorld} from 'bitsy-parser';
import {prepareWorldInformation} from './world';
import {toConstantDeclaration, toMatrixDeclaration, toConstantArrayDeclaration, toEnumDeclaration,
toArrayLiteral, toStringLiteral} from './c-generator';
/**
* Returns a transposed ... |
// ==================================
// 小马渲染
// by z0gSh1u
// ==================================
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P ... |
const dotenv = require("dotenv");
dotenv.config();
class APIError {
constructor({
name,
code,
status,
message,
response,
explanation,
errorArgs,
stackTrace,
}) {
this.name = name;
this.code = code;
this.status = status... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.