text stringlengths 5.97k 41.2k |
|---|
import React, { Component } from 'react';
import { Container, Row, Col, Image } from 'react-bootstrap';
import { Firebase, Database, Storage } from 'components';
import { PositionableContainer } from 're-position';
import * as htmlToImage from 'html-to-image';
import Modal from 'react-modal';
import StackGrid from 'rea... |
'use strict';
/*
* Utility methods
*/
//var bn = require('bignum');
var bnjs = require('bn.js');
var raku = [
3077398253,
3995603712,
2243735041,
1261992695
];
var prefix = "dozmarbinwansamlitsighidfidlissogdirwacsabwissibrigsoldopmodfoglidhopdardorlorhodfolrintogsilmirholpaslacrovlivdalsatlibtabhanticpid... |
const puppeteer = require('puppeteer');
const fs = require('fs');
const path = require('path');
const shell = require('shelljs');
const argv = require('yargs').argv;
const readline = require("readline");
const { resolve } = require('path');
let currentWorkDir = process.cwd();
let command;
let pageName;
let port;
let... |
////////////////////////////////////////////////
////////////////////////////////////////////////
// AUTH / STARTUP
////////////////////////////////////////////////
////////////////////////////////////////////////
authenticate(function(user){
// LOGGED IN
}, function(){
// NOT LOGGED IN
location.href = "/... |
/*global console,FileReader,md5*/
/**
* 文件上传SDK
* 1、兼容性说明:
* 仅兼容IE10+、Firefox、Chrome等支持slice和localStorage的浏览器。
* 2、SDK依赖于jQuery和md5插件,请提前引入。
* 3、初始化前需要先调用鉴权接口(应用服务器自行实现):http://vcloud.163.com/docs/api.html(API token校验)。
* 4、获取鉴权信息后,将鉴权信息作为参数初始化上传对象。
* 5、调用方法:let uploader = Uploader({
... |
import CategoryAxis from './category-axis';
import AxisLabel from './axis-label';
import { DEFAULT_PRECISION, MAX_VALUE, OBJECT, DATE, X, Y } from '../common/constants';
import { deepExtend, defined, inArray, last, limitValue, round, setDefaultOptions, sparseArrayLimits } from '../common';
import { MILLISECONDS, SECO... |
/* Animated rectangle chart ------------------------------------------------ */
/* Imports ----------------------------------------------------------------- */
import {
checkNegativeNumber,
checkPositiveNumber,
checkKeyLocation,
checkValueLocation,
hasOwnProperty
} from "./utils.js";
import { d3 ... |
import React, { Component } from 'react';
import propTypes from 'prop-types';
import codeMirror from './codemirror-wrapper';
import debounce from 'lodash.debounce';
import ReactMarkedView from './marked-view';
import ScrollHelper from './util/scroll-helper';
import Replacer from './util/text-replacer';
import ToolBar f... |
var request = require('request'),
querystring = require('querystring'),
http = require('http'),
builtins = require('./lib/builtins'),
async = require('async');
function SimpleRiak(options) {
this.base_url = 'http://' + options.host + ':' + options.port;
if (options.bucket) this.bucket = options... |
const { RSocketClient } = require('rsocket-core');
const { Duration } = require('google-protobuf/google/protobuf/duration_pb');
const { Timestamp } = require('google-protobuf/google/protobuf/timestamp_pb');
const { StringValue, Int32Value } = require('google-protobuf/google/protobuf/wrappers_pb');
const pkg = require(... |
/*
* https://github.com/5orenso
*
* Copyright (c) 2020 <NAME>
* Licensed under the MIT license.
*/
'use strict';
const marked = require('marked');
const util = require('./util');
const renderer = new marked.Renderer();
const highlight = function highlight(code) {
// eslint-disable-next-line
return requi... |
const Table = require('cli-table3')
const dayjs = require('dayjs')
const axios = require('@viegg/axios')
const HttpsProxyAgent = require('https-proxy-agent')
const { db } = require('../db')
const { gen_count_body, validate_fid, real_copy, get_name_by_id, get_info_by_id, copy_file } = require('./gd')
const { AUTH, DEFA... |
'use strict';
const fs = require('fs');
const VG = require('napi_openvg');
function toULong(x) {
return x >>> 0; // The >>> operator does ToUint32
}
function toLong(x) {
return x & 0xFFFFFFFF; // This should do ToInt32
}
function toUShort(x) {
return (x >>> 0) & 0xFFFF; // Convert to uint32, and then ... |
//third party library dependencies
import React from 'react';
import PropTypes from 'prop-types';
import {v4} from 'uuid';
import {withStyles} from '@material-ui/core/styles';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/Table... |
//------------World Map Object Function -------------------------------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------------------------------------------------
Wo... |
//
import traverse from '@babel/traverse';
import * as t from '@babel/types';
const assert = require ('assert');
// tracker names (default: "_state" and "_state_pre")
var _state = null;
var _state_pre = null;
// generate pre/post nodes
function gen_conditions (guards, name)
{
const guard = guards.find ((elt) => ... |
var frameModule = require("ui/frame");
var buttonModule = require("ui/button");
var view = require("ui/core/view");
var observable = require("data/observable");
const layout = require("tns-core-modules/ui/layouts/grid-layout");
const ScrollView = require("tns-core-modules/ui/scroll-view/").ScrollView;
const Label = req... |
/*!
* glob-base <https://github.com/jonschlinkert/glob-base>
*
* Copyright (c) 2015, <NAME>.
* Licensed under the MIT License.
*/
'use strict';
/* deps:mocha */
var should = require('should');
var globBase = require('./');
describe('glob-base:', function () {
it('typical globs:', function () {
globBase('!... |
var control_edges = ['ACAACCTACCTGCTA', 'TCAAAACGGAGTGTT', 'TATATTGAACTTTAC', 'GTTGGGCGCTTAAAG', 'CGATGATGATGATGA'];
var qtl_colors = ["#fffc99", "#99d3ff", "white"];
var qtl_colors2 = ["0%", "50%", "50%"];
var my_red = "#F13"
var s_domain = [-0.15, 0.1];
var x_domain = [-0.15, 0.1];
var graph_h = 170;
var graph_w =... |
var ooSearch = {
markers: [],
map: {},
records: [],
init: function () {
// add IE8 and below support for indexOf function
if (!Array.prototype.indexOf)
{
Array.prototype.indexOf = function(elt /*, from*/)
{
var len = this.length >>> 0;
var from = Number(arguments[1]) || 0;
from = (f... |
var campaignTable;
var categories = [];
function launch() {
console.log($("#start_time").val());
swal({
title: "Are you sure?",
text: "This will schedule the campaign to be launched.",
type: "question",
animation: !1,
showCancelButton: !0,
confirmButtonText: "Launch",
confirmButtonColor... |
// Initializes the `importtodb` service on path `/importtodb`
const createService = require('./importtodb.class.js');
const hooks = require('./importtodb.hooks');
const filters = require('./importtodb.filters');
const socketio = require('feathers-socketio');
let shell = require('shelljs');
let elasticsearch = require('... |
/* jshint browser:true */
/* jshint -W086 */
/* global jQuery:false */
/* global console:false */
//Settings for the object that contains the presentation
var slideMasterOptions = [
{
key: "letterbox",
type: "boolean",
default: false
},
{
key: "aspect-ratio",
type: f... |
/**
* @file video.js
*/
import document from 'global/document';
import * as setup from './setup';
import * as stylesheet from './utils/stylesheet.js';
import Component from './component';
import EventTarget from './event-target';
import * as Events from './utils/events.js';
import Player from './player';
import plugi... |
const crypto = require('crypto')
const { config } = require('../../app')
const axios = require('axios')
const cheerio = require('cheerio')
const pubdb = require('../../database/publicity')
module.exports = async (ctx, next) => {
if (ctx.path.indexOf('/adapter-ws2/') !== 0) {
return await next()
}
let origin... |
// see https://developer.apple.com/fonts/TrueType-Reference-Manual/RM09/AppendixF.html
// and /System/Library/Frameworks/CoreText.framework/Versions/A/Headers/SFNTLayoutTypes.h on a Mac
const features = {
allTypographicFeatures: {
code: 0,
exclusive: false,
allTypeFeatures: 0
},
ligatures: {
... |
const __conf = String.raw`
[eval_remote]
// custom remote...
https://raw.githubusercontent.com/yichahucha/surge/master/sub_script.conf
[eval_local]
// custom local...
`
const __emoji = "• "
const __emojiDone = "✔️"
const __emojiTasks = "🕐"
const __emojiFail = "🙃"
const __emojiSuccess = "😀"
const __log = fals... |
var Component = require("montage/ui/component").Component,
application = require("montage/core/application").application,
Promise = require("montage/core/promise").Promise,
MenuModule = require("core/menu"),
MimeTypes = require("core/mime-types"),
Url = require("core/url");
// Can't use flatten() ... |
var role = sessionStorage.getItem('role')
var uid = sessionStorage.getItem('id')
var roomid = sessionStorage.getItem('room')
var wbtoken = sessionStorage.getItem('wbtoken');
var wbuuid = sessionStorage.getItem('wbuuid');
var images = [];
var editState = 0
var img_list = []
var roomplayer = ''
var timer = ''
if(!wbtoke... |
/* eslint-disable max-depth, max-params, no-warning-comments */
const {v4: uuid} = require('uuid');
const moment = require('moment-timezone');
const rrule = require('rrule').RRule;
/** **************
* A tolerant, minimal icalendar parser
* (http://tools.ietf.org/html/rfc5545)
*
* <<EMAIL>>
* ************* */... |
/*
* One Drive API
* 使用官方API挂载
*/
const name = 'OneDriveAPI'
const version = '1.0'
const protocols = ['oda']
const defaultProtocol = 'oda'
const fs = require('fs')
const path = require('path')
const { PassThrough } = require('stream')
const onedrive_max_age_dir = 3600 * 1000 * 0.9
const isSecretUrl = (url... |
import { drawArrow, getBase64Data, windowToCanvas, detectLanguage } from "./utils";
import Dom from "./dom";
import Eve from './event_emitter';
class Draw {
constructor(options) {
const {
container,
bgImg = "",
lineColor = "#f00",
lineWidth = "1",
arrowSize = 15,
eraserSize = 1... |
"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 ... |
// © 2009–2010 EPFL/LAMP
// code by <NAME> with contributions by <NAME>, "spiros" and <NAME>
var topLevelTemplates = undefined;
var topLevelPackages = undefined;
var scheduler = undefined;
var kindFilterState = undefined;
var focusFilterState = undefined;
var title = $(document).attr('title');
var lastFragment = "... |
/* eslint-disable import/named */
/* eslint-disable max-len */
/* eslint-disable react/prop-types */
import React, { useState } from "react";
import clsx from "clsx";
import lodashOrderBy from "lodash/orderBy";
import makeStyles from "dry/utils/makeStyles";
import Grid from "dry/components/grid";
import InputBase from ... |
const Monologue = require('monologue.js');
const connectionFn = require('./connectionFsm.js');
const topologyFn = require('./topology.js');
const postal = require('postal');
const uuid = require('uuid');
const log = require('./log');
const DEFAULT = 'default';
const unhandledStrategies = {
nackOnUnhandled: function... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
/**
* Created by ttomc on 06/01/2017.
*/
var groupids = [];
var projects = [];
$(function()
{
$(".page-title").empty().append("Projet");
var cardStart = "<ul class='stage'><div class='row'>"+
"<div class='col m12 s12 l12'>"+ "<li>"+
"<div class='card card-1'><div class='card-content'>"+
... |
import { select } from "d3-selection"
import { drag } from "d3-drag"
import { addHandles } from "./Handles"
//Note options
import noteAlignment from "./Note/alignment"
import noteVertical from "./Note/lineType-vertical"
import noteHorizontal from "./Note/lineType-horizontal"
//Connector options
import connectorLine f... |
import React from 'react';
import PropTypes from 'prop-types';
import {
View,
Text,
TextInput,
Dimensions,
TouchableOpacity,
TouchableWithoutFeedback,
AsyncStorage
} from 'react-native';
import {
RecyclerListView,
DataProvider,
LayoutProvider
} from 'recyclerlistview';
import Triangle from 'react-na... |
// Copyright 2016-2021, University of Colorado Boulder
/**
* a type that represents a faucet that can be turned on to provide mechanical energy to other energy system elements
*
* @author <NAME>
* @author <NAME>
* @author <NAME> (PhET Interactive Simulations)
*/
import NumberProperty from '../../../../axon/js/N... |
import _ from 'lodash';
import logger from './logger';
import axios from 'axios';
import { util } from '@appium/support';
import { findAPortNotInUse } from 'portscanner';
import LRU from 'lru-cache';
import B from 'bluebird';
import path from 'path';
import os from 'os';
const NATIVE_WIN = 'NATIVE_APP';
const WEBVIEW_... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Image, ImageBackground, Platform, StyleSheet, TouchableOpacity, View, ViewPropTypes} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import Video from 'react-native-video'; // eslint-disable-line
impo... |
import React, { Component } from 'react';
import styled from '@emotion/styled';
import { keyframes } from '@emotion/core';
import PropTypes from 'prop-types';
import {
MdClose,
MdShoppingCart,
MdArrowBack,
MdArrowForward
} from 'react-icons/md';
import { FiShoppingCart } from 'react-icons/fi';
import ShopCon... |
'use strict';
/*!
* FileStreamRotator
* Copyright(c) 2012-2017 Holiday Extras.
* Copyright(c) 2017 <NAME>.
* MIT Licensed
*/
/**
* Module dependencies.
*/
var fs = require('fs');
var path = require('path');
var moment = require('moment');
var crypto = require('crypto');
var EventEmitter = require('events');
... |
// configuration parameters
var token
var apiurl ;
var task ;
var trait ;
var returnURL;
var executions = 3;
var recordings = 4;
var threshold = 50;
var challengeResponse = false;
var challenges = "[]";
var maxHeight = 200;
var skipIntro = false;
// END OF CONFIGURATION
// BWS capture jQuery plugin
var bwsCapture ... |
$(document).ready(function () {
console.log("competition-scripts loaded!");
$('#competition_selector').on('change', competitionChanged);
$('#season_selector').on('change', seasonChanged);
start();
});
var data;
function leftBtnClicked(event) {
var src = $(event.srcElement);
var card = src.pa... |
'use strict';
exports.__esModule = true;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
var _jquery = require('... |
Ext.BLANK_IMAGE_URL = 'js/ext/images/default/s.gif';
var tree;
var testng = Sarissa.getDomDocument();
var dataStore;
var grid;
var toolbar;
var rootXPath = '';
Ext.onReady(function() {
Ext.QuickTips.init();
toolbar = new Ext.Toolbar('toolbar');
//item.on('click', onItemClick);
toolbar.add({
id: 'show-pa... |
// Exports data as any supported format
// take in a format, file key, geojson, and callback
var fs = require('fs')
var mkdirp = require('mkdirp')
var async = require('async')
var crypto = require('crypto')
var mv = require('mv')
var formatSpatialRef = require('format-spatial-ref')
var rm = require('rimraf')
var exec =... |
// Given a dep, a node that depends on it, and the edge representing that
// dependency, place the dep somewhere in the node's tree, and all of its
// peer dependencies.
//
// Handles all of the tree updating needed to place the dep, including
// removing replaced nodes, pruning now-extraneous or invalidated nodes,
// ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
const core_1 = require("@babel/core");
c... |
/**
* This tests a ton of cases for rtl-css-js
* Because there are so many test cases, there's a bit of an abstraction to make authoring/adding/maintaining tests a
* little more ergonomic.
*
* The main idea is the `tests` object. The other arrays ultimately get added to the tests object.
*
* One special thing ab... |
import EventEmitter from "event-emitter";
import {extend, borders, uuid, isNumber, bounds, defer} from "../../utils/core";
import EpubCFI from "../../epubcfi";
import Contents from "../../contents";
class IframeView {
constructor(section, options) {
this.settings = extend({
ignoreClass : "",
axis: "vertical",... |
/**
* 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.
*/
/******************************
* ______ _______ ______
* | __ \ | |__ |
* | __/ | __|
* |___| |__|_|__|______|
*
* ... |
/* globals customElements */
import { ipcRenderer } from 'electron'
import { LitElement, html, css } from '../../vendor/lit-element/lit-element'
import { classMap } from '../../vendor/lit-element/lit-html/directives/class-map'
import prettyHash from 'pretty-hash'
import * as bg from '../bg-process-rpc'
import buttonRes... |
var gwtlog = new gwtlog();
var unread_messages_by_user = {};
function gwtlog() {
var self = this;
self.socket_io;
self.url = '/gwtlog';
self.time = (new Date()).getTime();
self.mtime = 60000; // 60 sec
self.last_c = self.last_c || {};
self.functions = ['mod_messages', 'mod_messenger_aditional_f', 'mod_notificat... |
// <NAME>
// 131075708
// make buttons to call makeMapDonor and makeMapReceive fucntion
var button1 = d3.select("#buttons").append("button")
.attr("class", "button")
.attr("id", "button1")
.on("click", makeMapDonor)
.text("donor countries");
var button2 =... |
"use strict";
/*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Org F... |
// NOTE: Querying Ethereum requires CORS enabled
// Use --rpccorsdomain "http[s]://hostname:port" or set up proxy
const Ethers = require("ethers");
const HttpClient = require("./HttpClient");
/*
// -- Contract javascript files built using build/BuildContracts.js
const ContentSpaceContract = require("./contracts/BaseC... |
#!/usr/bin/env node
const amqp = require('amqp');
const winston = require('winston');
const mongoose = require('mongoose');
const async = require('async');
const request = require('request-promise-native'); //TODO switch to axios
const axios = require('axios');
const rp = require('request-promise-native');
const redi... |
/** --------------------------------------------------------------------
Custom Layout Card
parts based on https://github.com/ofekashery/vertical-stack-in-card
credits to: https://github.com/ofekashery
/** -------------------------------------------------------------------*/
"use strict"
// all about the app... |
/**
* Validates that a value is a valid 3-letter ISO 4217 currency name.
*
* @author <NAME> <<EMAIL>>
*/
'use strict';
//import Validator from './AbstractValidator';
var Validator = require('./AbstractValidator');
class CurrencyValidator extends Validator {
constructor() {
super(arguments);
v... |
//DOUBLE CLICK GLOBAL
var dc_prevent = false;
function double_click_check() {
if ( dc_prevent === false ) {
dc_prevent = true;
return false;
}
return true
}
function set_loading_screen(str,nostate0) {
if ( nostate0 ) {
var prompt_states = {
state0: {
html: str
},
state1: {
html: "Unused"... |
/*
<NAME>
CS 307-Creative Scene
November 12, 2018
Scene inspired by artwork by Heikala, this model may not be used for
commercial purposes.
The origin is at the center of the head, and the hand is on the positive x
axis.
BUILT IN THREE JS VERISON:
http://cs.wellesley.edu/~cs307/threejs/lib/three-r80.js
*/
// SLEE... |
var k = 0;
var filtroGlobal = [];
function removeURLParameter(url, parameter) {
//prefer to use l.search if you have a location/link object
var urlparts= url.split('?');
if (urlparts.length>=2) {
var prefix= encodeURIComponent(parameter)+'=';
var pars= urlparts[1].split(/[&;]/g);
... |
document.addEventListener('DOMContentLoaded', () => {
document.querySelector('.button-infer').onclick = () => {
// Initialize new request
const request = new XMLHttpRequest();
ISVals = retrieveInitialSeries();
request.open('POST', '/api/v1/infer');
request.set... |
define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
$(document).on("fa.event.appendfieldlist", ".btn-append", function(){
Form.events.selectpicker($(".fieldlist"));
});
$('[name="row[type]"]').on('change',function (e) {
var type = $(thi... |
import React, { Component } from "react";
import ReactDOM from "react-dom";
import { ToastsContainer, ToastsStore } from "react-toasts";
import cookie from "react-cookies";
import "./tag.scss";
import { logoutFunction } from "../../DynamicLogout/Logout";
import {
Badge,
Button,
Card,
CardBody,
CardFooter,
... |
function updateYearText(max) {
"use strict";
document.getElementById('year-set').innerHTML = max;
}
function setupColorbar(type, cbar) {
"use strict";
var stops;
if (type === 'rw'){ // "White-Red" Colorbar
stops = [
[cbar[0], '#fafafa'],
[cbar[1], '#fde1a6'],
... |
var el = document.createElement('div')
el.innerHTML = ` <style>
* {
box-sizing: border-box;
}
html, body {
margin: 0;
background: #888;
color: white;
font-family: segoe ui, helvetica neue, helvetica, sans-serif;
}
body {
padding: 15px;
}
a {
color: inherit;
text-decorati... |
// Copyright 2017 Google Inc.
//
// 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 ... |
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
const style = {
graph: {
circle: "cursor: pointer; stroke: #3182bd; fill: #fd8d3c;",
label: "font: 10px sans-serif; pointer-events: none;",
link: "fill: none; stroke: #b9d4e1; stroke-width: 1.5px;"
},
tree: {
node: "cursor: pointer",
circle: "fill: #fff; stroke: steel... |
const CMD_EJECT_PREVIEW = 'eject-preview';
const CMD_EJECT = 'eject';
module.exports = {
$name: require('./package.json').name,
$getters: [
{
prop: 'ejectables',
getter: ejectableGetter,
}
],
cliCommands: [
{
name: CMD_EJECT,
param... |
const model = require('../models/model')
const jwt = require('../models/tokenFn')
const mySqlServer = require("../mysql/index.js")
const { getFile } = require('../models/getfile')
const ShopCart = model.shopCart.ShopCart //获取模型
const MyGoods = model.goodsdetails.MyGoods //获取模型
const MyGoodsListSku = model.goodsdetail... |
const fsPromises = require('fs').promises;
const electron = require('electron');
const { shell } = electron;
const remote = electron.remote;
const storage = require('electron-json-storage');
const path = require('path');
window.onload = function () {
/** ウィンドウの幅 */
const windowWidth = 345;
/** ウィンドウの高さ */... |
function GetPluginSettings()
{
return {
"name": "JSON", // as appears in 'insert object' dialog, can be changed as long as "id" stays the same
"id": "JSON", // this is used to identify this plugin and is saved to the project; never change it
"version": "1.2.1", // (float in x.y format) Plugin ver... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var _ = require("lodash");
var moment = require("moment");
var mathjs = require("mathjs");
var VUtilities = /** @class */ (function () {
function VUtilities() {
}
/*
* String methods
*/
VUtilities.makeString = function... |
$(document).ready(function () {
var dataset_rows = get_dataset_rows(appConfig.user_dataset);
var table_datasets = $('#table_datasets').DataTable({
data: dataset_rows,
columns: [{title: 'Dataset'}, {title: 'Type'}],
searching: true,
'select': 'single',
"lengthChange": fal... |
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("../../../utils/types");
var utils_common_1 = require("../../../utils/utils-common");
var parser = require("../../../css/parser");
var Match;
(function (Match) {
Match.Dynamic = true;
Match.Static = false;
})(Match || (Match = ... |
var TAB_KEY = 'artistShowTab';
//if((navigator.userAgent.match(/Android/i)) == "Android")
if (Meteor.isCordova) {
var prePath = 'file:///android_asset/www';
}
if (Meteor.isServer) {
var prePath = '';
}
if (Meteor.isClient) {
var prePath = '';
}
//if((navigator.userAgent.match(/Android/i)) != "Android") var p... |
/***********************************************************
* A roughly spherical cloud of particles collapsing
* and coalescing under its own gravity to form a star.
*
* I've implemented one of Sal's suggestions, so the
* initial cloud now starts the simulation spinning.
* The system now evolves more slowly, b... |
const async = require('async');
const fs = require('fs');
const path = require('path');
const dialects = require('./dialects');
const _ = require('lodash');
function SequelizeMeta(sequelize, options) {
if (options && options.dialect === 'sqlite') {
options.storage = options.storage || 'sequelize';
}
this.seq... |
import React,{Component} from 'react'
import {connect} from 'react-redux'
import {Router, Route, hashHistory, browserHistory, Link, IndexRoute} from 'react-router';
import * as detailAction from './detailAction'
import { Icon } from 'antd';
import './detailComponent.scss'
import LazyLoad from 'react-lazy-load';
import ... |
/*
* Copyright 2016-2017 Poggit
*
* 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 ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.RecorderSupplement = void 0;
var fs = _interopRequireWildcard(require("fs"));
var _codeGenerator = require("./recorder/codeGenerator");
var _utils = require("./recorder/utils");
var _page = require("../page");
var _frames = req... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.queryReducer = queryReducer;
exports.Query = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _utils = require("./utils");
var _types ... |
/*
* 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 u... |
/*jshint esversion: 6 */
// Mchess.js
import {
COLOR,
MOVE_INPUT_MODE,
INPUT_EVENT_TYPE,
Chessboard
} from "../node_modules/cm-chessboard/src/cm-chessboard/Chessboard.js";
/*
import {
Chart
} from "../node_modules/chart.js/dist/Chart.js"
*/
//var Chart = require("../node_modules/chart.js/dist/Chart.... |
import {InputLabel, MenuItem, Select, Switch} from '@mui/material';
import Box from '@mui/material/Box';
import FormControl from '@mui/material/FormControl';
import withStyles from '@mui/styles/withStyles';
import {scaleLinear} from 'd3-scale';
import React from 'react';
import DotPlotCanvas from './DotPlotCanvas';
imp... |
/*global
$,
ColorProfile,
ExportOptionsSaveForWeb,
Extension,
File,
Folder,
LayerKind,
PNGSaveOptions,
SaveOptions,
app,
*/
"use strict";
var fileutil = require("./xslib/fileutil");
var namers = require("./lib/namers");
var psutil = require("./lib/psutil");
var snapshot = require("./lib/snapshot")... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import './Draggable.css';
// drop area Component
class DropArea extends React.Component {
constructor(props) {
super(props);
this.state = {
field_lists : [],
list: [],
show_field: false,
doc_ke... |
var view = require("ui/core/view"); // per acceder alla pagina web visibile xml
const httpModule = require("tns-core-modules/http");
const httpModule2 = require("tns-core-modules/http");
const createViewModel = require("./showFirstResults-view-model").createViewModel;
const fromObject = require("tns-core-modules/data/o... |
const { FlowLogger } = require('@kaspa/wallet');
const cliProgress = require('cli-progress');
const fs = require('fs');
const path = require('path');
const os = require('os');
const mkdirp = require("mkdirp");
const log = new FlowLogger('Sim', {
display : ['level','time','name'],
color: ['level', 'content']
... |
/*
* This code file belongs to Mantra Framework project (www.mantrajs.com)
* in the scope of MIT license. More info at <EMAIL>. Enjoy :-)
*/
"use strict";
const jsonValidator = require("jsonschema").Validator;
const AccessConditions = global.gimport("accessconditions");
const ActiveServices = global.gimport("act... |
/**
* gameon - Table helper classes
*
* Copyright (C) 2020-2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights... |
var per = require('per');
var characters = require('./characters');
var split = require('./split');
var word = require('./word');
var node = require('./node');
var runs = require('./runs');
var range = require('./range');
var util = require('./util');
var frame = require('./frame');
var codes = require('./codes');
var ... |
'use strict'
let can,cam,space,massLabel,massSlider,LLabel,LSlider,scaleSlider,yScaleSlider,cInput,cButton,fInput,RPNstack,setters,advVal,phi,pDomainSize,pspace,momPDF,tempEl,timeAcc,detailIn,maxN,maxNLabel,maxNSlider,sliderURe,sliderUIm,sliderWRe,sliderWIm,Ulabel,Wlabel,standingBox,showMomBox;
let openHelpPanels=0;
le... |
function newShade(hexColor, magnitude) {
hexColor = hexColor.replace("#", "");
if (hexColor.length === 6) {
const decimalColor = parseInt(hexColor, 16);
let r = (decimalColor >> 16) + magnitude;
r > 255 && (r = 255);
r < 0 && (r = 0);
let g = (decimalColor & 0x0000ff) + magnitude;
g > 255 &&... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.