text stringlengths 5.97k 41.2k |
|---|
/*jshint node:true*/
"use strict";
const cp = require("child_process");
const utils = require("./utils");
const { EventEmitter } = require("events");
const path = require("path");
const caps = require("./capabilities");
class FFmpegError extends Error {
constructor(proc, err, log) {
const isError = err instance... |
$(function () {
var id_help = extract_url(1),
$modal = $("#modal-help"),
$form = $modal.find("#modalHelp");
$.post('ws/help/get', {id: id_help}, function (data) {
//console.log(data);
if (data.error) {
alert_box(data);
} else {
var help = data.hel... |
$(function () {
var struct = {};
var nAjaxSuccesses = 0;
// launch a callback to the server to render the javascript used
// to display the left hand navigation, since this seems to take a long time
$.ajax({
url: $("#clientmeta-submit").val(),
timeout: 60000000,
type: 'GET',... |
import React, { Component } from "react";
import { UncontrolledAlert, Alert } from "reactstrap";
import SweetAlert from "react-bootstrap-sweetalert";
import CircularProgress from "@material-ui/core/CircularProgress";
import UserGroupMultipeDropdown from "../../../../../../../components/common/UserGroupMultipeDropdown";... |
var URL = require('url');
var errors = require('../models/errors');
var Users = require('./users');
var User = require('../models/user');
var Venues = require('./venues');
var Tag = require('../models/tag');
var Event = require('../models/event');
var EventSQL = require('../models/eventSQL');
var VenueSQL = require('.... |
var es_config = {};
es_config['host'] = ES_URL;
es_config['requestTimeout'] = 100000;
var client = new $.es.Client(es_config);
client.ping({
requestTimeout: 30000,
}, function (error) {
if (error) {
console.error('elasticsearch cluster is down!');
} else {
console.log('All is well');
}
});
var icons =... |
/*global CodeMirror*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ApiClient from './ApiClient';
import './Editor.css'
class Editor extends Component {
constructor(props) {
super(props);
this.onChanges = this.onChanges.bind(this);
this.onKeyUp = this.onKeyUp.bind(... |
// =============================================================================
const { twitch_event_list } = require('./event_list');
const { getTokenInfo, revokeToken } = require('@twurple/auth');
const axios = require('axios');
const { v4: uuidv4 } = require('uuid');
// =======================================... |
// Copyright 2015 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.
/**
* @fileoverview
* 'settings-site-settings-page' is the settings page containing privacy and
* security site settings.
*/
import 'chrome://resourc... |
/*******************
* Utility Functions
* ******************/
/* FIXME:
* Requires lodash as depedency since it is using the map function from lodash
*/
var sha256 = (function(){
// Eratosthenes seive to find primes up to 311 for magic constants. This is why SHA256 is better than SHA1
var i = 1,
... |
/* LICENSE
_This file is Copyright 2018 by the Image Processing and Analysis Group (BioImage Suite Team). Dept. of Radiology & Biomedical Imaging, Yale School of Medicine._
BioImage Suite Web is licensed under the Apache License, Version 2.0 (the "License");
- you may not use this software except in com... |
import Scope from "./Scope"
import Error from "./Error"
import PrimitiveType from "./PrimitiveType"
import TypeFlag from "./TypeFlag"
let fetchMethod = null
let rootModule = null
let topScope = null
let module = null
let scope = null
const globalContext = {
objectIndex: 0,
objectInline: false
}
const run = (rootMo... |
/*
* NameFmt.js - Format person names for display
*
* Copyright © 2013-2015, 2018-2019, 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/license... |
function gItem(x) {
this.all = x;
}
g = function(x) {
if (typeof x !== 'undefined') {
if(typeof x === 'object') return new gItem([x]);
all = document.querySelectorAll(x);
return new gItem(all);
}
}
g.click_q = new Array();
g.swipe_q = {up:[], down:[], left:[], right:[]};
g.el = function(id) {
ret... |
import { walk, isVoidElement } from './node-walker';
import { enrichWithRdfaProperties, rdfaAttributesToTriples } from './rdfa-helpers';
import RdfaBlock from './rdfa-block';
import RichNode from './rich-node';
/**
* Scanner of the RDFa context of DOM nodes
*
* @module editor-core
* @class RdfaContextScanner
* @c... |
addEventListener("fetch", event => {
event.respondWith(blockPops(event.request));
});
/*
Create a list of PoPs in the Cloudflare network
which should not respond to requests, serving a
HTTP 403 instead.
*/
/*
Map of PoPs which should not respond
This example allows only EU countries
*/
const pops = ne... |
import React from 'react';
import { connect } from "react-redux";
import {
Text,
View,
Image,
TouchableOpacity,
FlatList,
Platform,
TouchableWithoutFeedback,
BackHandler,
} from 'react-native';
import moment from "moment";
import { SwipeRow } from 'native-base';
import { Icon } from "react-native-eleme... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
//backyard 1
/*!
* coloursave v3 (130919)
*/
/**
* Posílátko pro libovolný element, který umožňuje držet uživatelem zadávaný obsah.
* Pošle při defocus/změně jeho obsah s´případně s kontextem na definované API URL.
* S tím, že automaticky mění barvu podle stavu odesílání.
*
* All class="coloursave" must have `n... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; 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 ... |
import React, { useState, useEffect } from "react"
import { navigate } from "gatsby"
import styled from "styled-components"
import cookie from "react-cookies"
import userApi from "../apis/user/user"
import socialApi from "../apis/social/social"
import emailApi from "../apis/email/email"
import Layout from "../componen... |
'use strict';
var gulp = require('gulp');
// Client includes
var browserify = require('browserify');
var babelify = require('babelify');
var coffeeify = require('coffeeify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var sourcemaps = require('gulp-sourcemaps');
var nodeResolve... |
"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)... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Broad Institute
*
* 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 u... |
import * as utils from "base/utils";
import DataConnected from "models/dataconnected";
import EventSource from "base/events";
/*!
* HOOK MODEL
*/
const Hook = DataConnected.extend({
//some hooks can be important. like axis x and y
//that means, if X or Y doesn't have data at some point, we can't show markers
... |
const fs = require("fs");
const Xonomy = require("./third_party/xonomy-3.5.0/xonomy.js");
const path = require("path");
const { remote } = require("electron");
const gxpage = require("./gxpage");
const gxStrFileParse = require("./utils/gx_str_file_parse");
let gxeditor = {};
gxeditor.writeTmplToFile = function (filen... |
/**
*
*/
//订单状态
var ORDER_NEW = 1;//新增订单、待支付
var ORDER_PAID = 2;//已付款、待发货
var ORDER_REQUEST_CANCEL = 3;//申请取消
var ORDER_CANCELED = 4;//已取消(付款后,未发货,客户要求取消)
var ORDER_PRINTED = 5;//已打印(打印快递单)
var ORDER_SENDING = 6;//配送中、待收货
var ORDER_RECEIVED = 7;//已收货(确认收货)
var ORDER_APPLY_RAM = 8;//申请退货
var ORDER_HAVE_TO_RETURN = 9;/... |
"use strict";
/** Builds a level object
*/
function Level(plan){
this.width = plan[0].length;
this.height = plan.length;
this.grid = []; // 2D grid of static elements: empty/wall/lava
this.actors = []; // array of moving actors
this.player = null;
// build the level grid
for(let y = 0; y < this.height; +... |
// created 2018-02-19
//
// Attempt to add an a-frame <laser-control> to the existing three.js scene
//
console.log(`vrize_cntrl: now adding body vrize-init event`);
// document.querySelector('a-scene').addEventListener('loaded', function () {...})
// let canvas = document.querySelector('canvas');
// canvas.addEventLis... |
// 保留 console.log 代码段是方便调试
let config = {
timer: 1000,// 延迟 ms
delay: 300
};
let players = [];
let player_config = {
state: {
"fly": "飞行中",
"stop": "已停止"
},
cost: {
5: "最慢(高空轨道)",
7: "中等(中层轨道)",
9: "最快(低空轨道)"
},
recover: {
2: "原始(2%)",
3: "增强(3%)",
4: "极限(4%)"
}
};
let ... |
/* ---- CONFIGURATION ----- */
var DOMAIN = 'https://databox.me';
var ACCOUNT_ENDPOINT = ',account/new';
var CERT_ENDPOINT = ',account/cert';
/* ---- DON'T EDIT BELOW ---- */
var webid = '';
var accURL = {};
var queryVals = (function(a) {
if (a == "") return {};
var b = {};
for (var i = 0; i < a.length; ++... |
function capitalizeTerm(sentence, b, e) {
var res = sentence.trim().split(" ");
var newSen = "";
//alert(res);
for (var i = 0; i < res.length; i++) {
if (b <= i && i < e) {
newSen += res[i].toUpperCase();
}
else {
newSen += res[i];
}
if (i != res.length - 1) newSen +=... |
(function () {
var ABBREV = "Sun Mon Tue Wed Thu Fri Sat".split(/\s/);
function actualize (entry, rule, year, saved) {
time = rule.time * 6e4;
var date = /^(?:(\d+)|last(\w+)|(\w+)>=(\d+))|(\w+)<=(\d+)$/.exec(rule.day);
var fields;
if (date[1]) {
fields = new Date(Date.UTC(year, rule.month, p... |
import get from 'lodash/get'
const RECEIVE_SHARINGS = 'RECEIVE_SHARINGS'
const ADD_SHARING = 'ADD_SHARING'
const UPDATE_SHARING = 'UPDATE_SHARING'
const REVOKE_RECIPIENT = 'REVOKE_RECIPIENT'
const REVOKE_SELF = 'REVOKE_SELF'
const ADD_SHARING_LINK = 'ADD_SHARING_LINK'
const UPDATE_SHARING_LINK = 'UPDATE_SHARING_LINK'
... |
// The root URL for the RESTful services
//var rootURL = "http://192.168.1.136:8080/webcuidpers/services/agenda";
//var rootURL = "http://localhost:8080/webcuidpers/services/agenda";
var rootURL = "http://les009584:8080/webcuidpers/services/agenda";
var mTipusServeisTam; // Número de botons de grups funcionals (tipu... |
"use strict";
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
v... |
const postcss = require('postcss');
const fs = require('fs-extra');
const hexToRgba = require('hex-to-rgba');
const rgb2hex = require('rgb2hex');
const chokidar = require('chokidar');
const { BoltCache, getFileHash } = require('@bolt/build-tools/utils/cache');
const { minifyCSS } = require('./helpers/css.util');
const... |
require( '../assets/css/split.css');
require( '../assets/css/viewport.css');
require('./findindex-polyfill')();
const node = require('./narytree');
const Split = require('split.js');
const simulate = require('./event-simulator');
const VIEWPORT_CONTENT_CLASS = 'viewport-content';
const HANDLE_CLASS = 'split-drag... |
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
/*
<NAME>
Common functions used across the extension commands
*/
const vscode = require('vscode');
const resultClass = require('./ExtractFieldResult.js');
//----------------------------------------------------
// Parse the delimiters for the currently opened HL7 message. If more than one message per file
/... |
const wordFetcher = (quant, flm) => {
var result = [];
//if flm === false
if (!flm) {
//generate QUANT number of random integers
for (var i = 0; i < quant; i++) {
const index = Math.floor(Math.random() * Math.floor(words.length))
// console.log('random index value', index);
result.push(... |
/* eslint-disable use-isnan */
import React from 'react'
import { translate } from 'react-i18next'
import { connect } from 'redux-bundler-react'
import Button from '../components/button/Button'
import Tick from '../icons/GlyphSmallTick'
import { invoiceBgBs64 } from './types/001map'
import { filesToStreams } from '../l... |
const Home = Vue.extend({ //文档信息
template: '#homes',
data: function() {
return {
luyou:false,
indexs:null,
item:[],
tcr_add:1,
whole_opts:0,
change_phone:false,
nowfilename:'',
searching:false,
fileIndex:null,
fileName:'',
fileType:'',
fileState:'',
searchPather:[],
fileDi... |
'use strict';
var p5 = require('../core/core');
var shader = require('./shader');
require('../core/p5.Renderer');
require('./p5.Matrix');
var uMVMatrixStack = [];
var RESOLUTION = 1000;
//@TODO should implement public method
//to override these attributes
var attributes = {
alpha: true,
depth: true,
stencil: tr... |
'use strict';
const loggingUtils = require('./logger');
const logger = loggingUtils.getLogger('/Subscription');
const urlUtils = require('../utils/url-utils');
const vcapUtils = require('../utils/vcap-utils');
const configUtils = require('../utils/configuration-utils');
const headerUtils = require('../utils/header-uti... |
var jsc = JSCocoaController.sharedController
var bundle = NSBundle.mainBundle
// Load class construction kit
jsc.evalJSFile(bundle.pathForResource_ofType('encodings', 'js'))
jsc.evalJSFile(bundle.pathForResource_ofType('jsclass', 'js'))
function log(str) { JSCocoaController.log(''+str) }
// Load Core Animatio... |
'use strict';
var data = { title: "ChernivtsiJS",
titleMinJS: "chernivtsi.min.js",
description: "Let's talk about JavaScript?",
date: "June 22, 2019",
action: { link: "https://2event.com/en/events/1662800",
title: "Buy Tickets" },
speakesAction: { link: "#speakers",
ankor: "speakers",
title: "Our... |
/*eslint-disable*/
import React, { Component } from 'react';
import { connect } from 'dva';
import {Row,Col,Select,Badge } from 'antd';
import CardView from '../common/cardView';
import styles from './craneSideViewTwo.less';
import {translateDecare} from '@/utils/utils'
import * as PIXI from 'pixi.js'
import Animation ... |
var app = angular.module('SilveradoApp', []);
var activeMovie = "AC"; /* Keep track of which movie the user is currently 'viewing' */
var movies = {};
app.controller('moviesController', function($scope, $http) {
$http.get("https://jupiter.csit.rmit.edu.au/~e54061/wp/moviesJSON.php")
.success(function(data) {
/*... |
const BigNumber = require("bignumber.js");
var TM = artifacts.require("./transfer-layer/transfer-module/TransferModule.sol");
var WL = artifacts.require("./request-verification-layer/transfer-verification-system/verification-service/WhiteList.sol");
var CAT20V = artifacts.require("./request-verification-layer/transfer... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var VRS;
(function (VRS) {
VRS.globalOptions = VRS.... |
var id = 1;
var data = {
id: id++,
data: null,
parent: null,
children: []
};
var changeRoot = false;
// Find tree's height
var findHeight = function(node) {
if (node.data === null || !node) return 0;
else {
var left = node.children[0] ? findHeight(node.children[0]) : 0;
var right = node.children[1] ? f... |
/*
* FEATURE EDITOR
*/
var oDefaults = {
sName: '',
sLabel: '',
oClasses: {
sFieldClass: 'field-technical-data-editor',
sFieldSpanClass: 'field',
sPrefixClass: 'prefix',
sSuffixClass: 'suffix',
sFocusedClass: 'focus',
sInvalidClass: 'invalid',
sDisa... |
import {
Color,
Vec3,
Quat,
Xfo,
TreeItem,
GeomItem,
Material,
Lines,
Plane,
Disc,
Cuboid,
Camera,
LDRImage,
Label,
VideoStreamImage2D,
VLAAsset,
} from '@zeainc/zea-engine'
/**
* The Avatar is used to display a 3d representation of remote users in a 3d scene.
*/
class Avatar {
/**
... |
/**
* Copyright 2013 the PM2 project authors. All rights reserved.
* Use of this source code is governed by a license that
* can be found in the LICENSE file.
*/
/**
* Dependencies
*/
var cst = require('../../constants.js');
var log = require('debug')('pm2:aggregator');
var async = require('async');
va... |
// import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.118/build/three.module.js';
import {FBXLoader} from 'https://cdn.jsdelivr.net/npm/three@0.118.1/examples/jsm/loaders/FBXLoader.js';
import {GLTFLoader} from 'https://cdn.jsdelivr.net/npm/three@0.118.1/examples/jsm/loaders/GLTFLoader.js';
var noise = new S... |
//=============================================================================
// File: bequiesce/examples/05-sphericoords/test/cases/sphericoords2.test.js
// Language: Bequiesce
// Copyright: <NAME> © 2015
// License: CC-BY-NC-ND 4.0
// Initial date: Sep 12, 2015
//==========================... |
var preamble = `precision highp float;
attribute vec3 tileCoords;
uniform vec4 mapCoords; // x, y, z, extent of tileset[0]
uniform vec3 mapShift; // translate and scale of tileset[0]
uniform vec4 screenScale; // 2 / width, -2 / height, pixRatio, cameraScale
vec2 tileToMap(vec2 tilePos) {
// Find distance of ... |
// DOM continuação
// Seleção de elementos
// por ID
const animais = document.getElementById('animais');
console.log(animais);
const aleatorio = document.getElementById('aleatorio');
console.log(aleatorio); //null
// por Classe e Tag (seleciona lista de todos elementos com ... |
// {{{ Single user
var u1 = Douban.user(user_1);
console.debug(u1);
fireunit.compare('http:\/\/api.douban.com\/people\/1867466', u1.id, "用户ID");
fireunit.compare('eugne', u1.uid, "用户名");
fireunit.compare('广东汕头', u1.location, "居住城市");
fireunit.compare('尋找阿波羅', u1.name, "用户昵称");
fireunit.compare('Be your personal best!',... |
var Hash = function() {
this.h = { };
};
Hash.__name__ = true;
Hash.prototype = {
toString: function() {
var s = new StringBuf();
s.b += Std.string("{");
var it = this.keys();
while( it.hasNext() ) {
var i = it.next();
s.b += Std.string(i);
s.b += Std.string(" => ");
s.b += Std.string(Std.string(t... |
let fileInput = document.querySelector('#file-input');
let dataLabel = document.querySelector('.if-button');
let info = document.querySelector('.info-button');
let listFile = document.querySelector('.file-h');
let listLink = document.querySelector('.link-list');
let listLink2 = document.querySelector('.link-list2');
le... |
import 'babel-polyfill'
import 'bootstrap'
import $ from 'jquery'
import experiences from './db/experiences.json'
import presets from './db/preset'
import expUnits from './db/exp_units'
/* eslint-disable no-console */
/* eslint-disable no-unused-vars */
const rarityMap = {
1: 'iron',
2: 'bronze',
3: 'silver',
... |
var GameScene = cc.Scene.extend({
ctor: function (args) {
this._super();
cc.spriteFrameCache.addSpriteFrames(res.common_plist, res.common_png);
cc.spriteFrameCache.addSpriteFrames(res.game_plist, res.game_png);
cc.spriteFrameCache.addSpriteFrames(res.card_plist, res.card_png);
... |
var websocketAddress = "ws://10.10.2.136:9000/";
var display = Vue.extend({
props: ["image", "test", "view", "timeSendToRecieve"],
template: `
<div>{{view.horPixels}}
<canvas id="canvas" ref="canvas" width="1920px" height="1080px"></canvas>
<div id="displayInfo">Time taken to... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const LOG = 0;
const SEPARATOR = 1;
const SETTINGS_OR_DEVICE = 2;
const TYPE_VPN_STATE = 1;
const TYPE_CONTROLLER... |
//--------------------------------------------------------
//-- LastPass
//--------------------------------------------------------
'use strict';
const { execSync } = require('child_process');
const dargs = require('dargs');
const ow = require('ow');
const { terminal } = require('@absolunet/terminal')... |
import React, { useCallback, useContext, useEffect, useState } from 'react';
import {
Button,
Card,
Frame,
Toast,
Collapsible,
Page,
Layout,
Stack,
List,
PageActions,
TextField,
TextStyle,
} from '@shopify/polaris';
import flatten from 'flat';
import papa from 'papaparse';
import convertTagsToQu... |
$(document).ready(function() {
if(window.innerWidth > 786) {
$('#slider-id').liquidSlider({
autoSlide:false,
autoHeight:false
});
}
if(! Detector.webgl) {
$('.anaglyph_toggle').hide();
hasWebgl = false;
} else {
hasWebgl = true;
// adjustAnaglyphToggle();
}
});
// function adjustAnaglyphTog... |
"use strict";
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 === "function") r = Refl... |
// UI for making/editing a plot configuration
import m from 'mithril';
import Button from "../../common/views/Button";
import Table from "../../common/views/Table";
import TextFieldSuggestion from "../../common/views/TextFieldSuggestion";
import Dropdown from "../../common/views/Dropdown";
import Icon from "../../com... |
var fs = require('fs');
const url=require('url');
var path = require('path');
var JSON5 = require('json5');
var typeis = require('type-is');
var coForm = require('koa-formpart');
let itCountpath = null;//itCount.json 指定输出接口访问统计文件
let interFaceRoot = null;//接口文档根目录
let upfileRoot = path.join(__dirname,'/uploads/');;/... |
/* eslint-disable react/display-name */
import React, { useCallback, useState, useMemo } from 'react';
import { View, StyleSheet, TouchableOpacity, ScrollView, TouchableWithoutFeedback } from 'react-native';
import PropTypes from 'prop-types';
import { GAS_ESTIMATE_TYPES } from '@metamask/controllers';
import BigNumber... |
$(document).ready(function () {
tablaTrabajadores();
obtenerHorarios();
// ACTIVAR TITULOS
$("body").tooltip({ selector: '[data-toggle="tooltip"]' });
});
// VARIABLES GLOBALES
var idsTodos = [];
var idsMañana = [];
var idsTarde = [];
var idsHoraExtra = [];
var idsFaltas = [];
var ... |
"use strict";
exports.__esModule = true;
var util_1 = require("../util/util");
var UNASSIGNED = -1, GB18030_CODE = -2, SEQ_START = -10, NODE_START = -1000, UNASSIGNED_NODE = new Array(0x100), DEF_CHAR = -1;
for (var i = 0; i < 0x100; i++)
UNASSIGNED_NODE[i] = UNASSIGNED;
var DBCSCodec = (function () {
function ... |
export let federalTaxRate = 0.23;
export let averageCostOfLiving = [{"city": "San Antonio", "living_cost": 32587, "state_tax": 0.00},
{"city": "Columbus", "living_cost": 32632, "state_tax": 0.03},
{"city": "Jacksonville", "living_cost": 33104, "state_tax": 0.00 },
{"city": "Indianapolis", "living_cost": 33530,... |
//// =============================
//// IMPORTING THE DATABASE SENDERS
// this going to be the exports for sending stuff to the sever!!
//var analTool = require("game-report-handler.js");
//import { * } from 'game-report-handler.js';
// Import option-select menus
var options = [
document.getElementsByClassName(... |
$(function() {
var today = new Date();
$("#data").datepicker({
monthNames: [ "Janeiro", "Fevereiro", "Março", "Abril",
"Maio", "Junho", "Julho", "Agosto", "Setembro",
"Outubro", "Novembro", "Dezembro" ],
dateFormat: "dd/mm/yy",
minDate: validaMinDate(),
maxDate: today
}... |
// // speech to text
// // wss://stream.watsonplatform.net/speech-to-text/api/v1/recognize
//
// // get token
// // token=$(curl -u $username:$password "https://stream.watsonplatform.net/authorization/api/v1/token?url=https://stream.watsonplatform.net/speech-to-text/api")
//
// var wsURI = "wss://stream.watsonplatform.... |
'use strict';
/**
* The `kss/builder/base/handlebars` module loads the KssBuilderBaseHandlebars
* class, a `{@link KssBuilderBase}` sub-class using Handlebars templating.
* ```
* const KssBuilderBaseHandlebars = require('kss/builder/base/handlebars');
* ```
* @module kss/builder/base/handlebars
*/
const KssBui... |
"use strict";
// const getAllInsertionsInSeqReads = require("./getAllInsertionsInSeqReads.js");
var insertGapsIntoRefSeq = require("./insertGapsIntoRefSeq.js");
var _require = require("lodash"),
cloneDeep = _require.cloneDeep;
// bam.seq: NTGTAAGTCGTGAAAAAANCNNNCATATTNCGGAGGTAAAAATGAAAA...
// bam.pos: 43
// bam.... |
/*
MIT License
Copyright (c) 2019 Steffest - <EMAIL>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... |
module.exports.evaluateAct = (definitions, state) => {
const newState = JSON.parse(JSON.stringify(state));
newState.transports.forEach(transport => startTransport(newState.auditLog, transport, newState.regions));
newState.regions.forEach(region => evaluateRegion(newState.auditLog, definitions, region, new... |
// define the size of the svg
var margin = {top: 50, right: 50, bottom: 50, left: 100},
width = 300;// - margin.left - margin.right,
height = 400;// - margin.top - margin.bottom;
var mass_rat;
var spri_rat;
var pi = Math.PI;
var colorMap = d3.scaleSequential(d3.interpolateReds).domain([0, 0.5]);
var minArea;
functio... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var rxcomp_1 = require("rxcomp");
var rxjs_1 = require("rxjs");
var operators_1 = require("rxjs/operators");
var location_strategy_1 = require("../location/location.strategy");
var route_1 = require("../route/ro... |
/**
* @file Alignment
* @author <NAME> <<EMAIL>>
* @private
*/
import { Debug, Log } from '../globals.js'
// const nucleotides = 'ACTG';
const aminoacidsX = 'ACDEFGHIKLMNPQRSTVWY'
const aminoacids = 'ARNDCQEGHILKMFPSTWYVBZ?'
const blosum62x = [
[4, 0, -2, -1, -2, 0, -2, -1, -1, -1, -1, -2, -1, -1, -1, 1, 0, 0,... |
/**
* dotprobe-practice
**/
var practice_acc = []; //accuracy list for each trial
var cue_images;
var prac_avg;
jsPsych.plugins["dotprobe-practice"] = (function () {
var plugin = {};
jsPsych.pluginAPI.registerPreload('dotprobe-practice', 'stimulus', 'image', function (t) {
return !t.is_html || t.is_h... |
import React from 'react';
import { Stage, Layer, Line, Text } from "react-konva";
import Portal from '../Components/Portal/Portal'
//Material-UI
import { withStyles } from '@material-ui/core/styles';
import { Slider,Tooltip,Typography,Dialog,DialogActions,Button,DialogTitle,IconButton} from '@material-ui/core';
impor... |
export { drawBlips, translate, hideBubble, showBubble }
// this function shows the text balloon with contents and determines its size
// here we can add content to the text balloon, such as rationale, logo, description,
const showBubble = function (d) {
if (d.active || getCurrentConfiguration().print_layout) {
... |
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import moment from 'moment'
import DropDownList from './commons/DropDownList'
import Notification from '../components/commons/Notification';
import * as Const from '../constants/Constants';
import { eachArea, eachCompany, eachB... |
/*
* biojs-vis-yugene-graph
* https://github.com/rowlandm/biojs-vis-rohart-msc-test
*
* Copyright (c) 2015 rowlandm
* Licensed under the Apache 2 license.
*/
/**
@class biojsvisyugenegraph
*/
/*
Copyright 2015 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use th... |
// CHART X AND Y AXIS TOOLS
// ------------------------
// Y-axis figures
class YScale {
// Initialisation
constructor(data, keys, minOverride, maxOverride) {
this.verticalScaleArray = [];
this.calculateAxisMinMax(data, keys, minOverride, maxOverride);
let verticalInterval = this.calcul... |
'use strict';
const fs = require('fs');
const readline = require('readline');
const {google} = require('googleapis');
const SCOPES = ['https://www.googleapis.com/auth/drive'];
const TOKEN_PATH = 'token.json';
var util = require('util');
const fontList = ['Arial', 'M PLUS Rounded 1c'];
module.exports = (robot) => {
... |
var Gesso = require('gesso');
var helpers = require('./helpers');
var game = new Gesso();
var gravity = 0.3;
var seaLevel = 80;
var player = null;
var rocks = [];
var burstItem = null;
var burstItemSeen = false;
var burstSpeed = 2;
var burstCount = 0;
var burstMode = false;
var burstModeCount = 0;
var burstModeMaxCoun... |
import React, { useState, useEffect, useRef, Component } from "react";
import { Fab, Icon, Toast } from "native-base";
import { Dimensions, ScrollView, Platform } from "react-native";
import { useSelector } from "react-redux";
import Modal from "react-native-modal";
import { firestore } from "../../firebase/config";
im... |
xMark=[];
function ScatterPlotChart(element,filename0,filename1) {
var xScale;
var yScale;
var minx=0,maxx=0,miny=0,maxy=0;
var rawdata= new Array();
var chart={};
var width = 900, height = 900,
margins = {top: 30, le... |
/***************************************************************************************************************
|||||||||||||||||||||||||||| CUSTOM SCRIPT FOR RepairPlus ||||||||||||||||||||||||||||||||||||||
******************************************************************************************... |
var chems = [0, 0, 0, 0, 0, 0, 0];
function doColor(emotion) {
document.getElementById("array").innerHTML = chems.toString();
var finalEmotion = getEmotion()
console.log("I do color")
if (typeof emotion != "undefined") {
finalEmotion = emotion
}
document.getElementById("mainT... |
/*=============================================================================
* Orange - Lighting
* By Hudell - www.hudell.com
* OrangeLighting.js
* Version: 1.4
* Free for commercial and non commercial use.
*=============================================================================*/
/*:
* @plugindesc Ligh... |
Object.defineProperty(exports, "__esModule", { value: true });
const electron_1 = require("electron");
const ipcMain_1 = require("../communication/ipcMain");
const programState_1 = require("../state/programState");
const extendedObject_1 = require("../utils/extendedObject");
const serialize_1 = require("../utils/s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.