text stringlengths 5.97k 41.2k |
|---|
import {
getXmlAttibute,
getcellrange,
getPxByEMUs,
generateRandomIndex,
escapeCharacter,
getColor,
isChinese,
isJapanese,
isKoera,
getlineStringAttr
} from "../tools/func";
const ST_CellType = {
Boolean: "b",
Date: "d",
Error: "e",
InlineString: "inlineStr",
Number: "n",
SharedString: ... |
// These should be okay being global variables
var lbryUrl = document.URL.match(new RegExp(/lbry:\/\/.*/))[0];
lbryUrl = decodeURIComponent(lbryUrl);
var claim_id = lbryUrl.match(new RegExp(/[a-f|0-9]*$/))[0];
var localStorage = window.localStorage;
function createContentView() {
doACall("get", {uri: lbryUrl, save_fi... |
var state = {
onlineADOT: false,
onlineIPFS: false,
walletOpen: false,
decentralized: false,
toolbarState: "hidden",
useInterceptedSearch: true,
selectedOperation: "send",
notifTimer: null, // handler of notification timeout
rpcUser: "user",
rpcPass: "<PASSWORD>",
... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------... |
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnPro... |
'use strict';
const debug = require('debug-proxy')('app:chat-item-view');
const $ = require('jquery');
const _ = require('lodash');
const classnames = require('classnames');
const moment = require('moment');
const Marionette = require('backbone.marionette');
const cocktail = require('backbone.cocktail');
const urlJoin... |
import RBush from 'rbush';
import { dispatch as d3_dispatch } from 'd3-dispatch';
import { json as d3_json } from 'd3-fetch';
import { unescape } from 'lodash-es';
import { fileFetcher } from '../core/file_fetcher';
import { geoExtent, geoVecAdd } from '../geo';
import { QAItem } from '../osm';
import { t } from '../... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
/* global alert */
import React, { useContext, useRef, useState, useCallback } from 'react';
import {
ActivityIndicator,
Alert,
FlatList,
InteractionManager,
Keyboard,
KeyboardAvoidingView,
LayoutAnimation,
Platform,
StatusBar,
StyleSheet,
Text,
View,
} from 'react-native';
import { Icon } from ... |
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 __());
};
function __export(m) {
for (var p in m) if (!exports.hasOw... |
/*
Copyright 2016-2017, <NAME>
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 writi... |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import _ from 'lodash';
//
import IconButton from '@material-ui/core/IconButton';
import InvertColors from '@material-ui/icons/InvertColors';
//
import * as Basic from '../../components/basic';
import * as Advanced fro... |
$("#enviarFormulario").click(function(){
var res;
if(confirm("¿Seguro de realizar la inscripción?")){
$("#formInscripcion").find("input:disabled").prop('disabled',false);
$("#formInscripcion").find("input:disabled").val('--');
$("#formInscripcion").submit();
res=true;
}else{
... |
/*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
'use strict'
require('dotenv').config()
const fs = require('fs');
const https = require('follow-redirects').https;
const request = require('sync-request');
const exitHook = require('exit-hook');
const chalk = require('chalk');
const regex = require('./regexModule');
const descriptionParser = require('./descriptionParse... |
/*global System,WeakMap*/
import vdom from "virtual-dom";
import { promise, arr, tree, obj, string } from "lively.lang";
import { addOrChangeCSSDeclaration, addOrChangeLinkedCSS } from "./dom-helper.js";
import {
defaultStyle,
renderGradient,
defaultAttributes,
defaultCSS,
pathAttributes,
svgAttributes,
r... |
/** Class for checking if parameters are present in a conf object and are of the expected
structure and type. This is not meant for usage from outside the package, but you can
use it when you are building your own constraints and want to specify the required parameters.
@example
* // Add this above your constraint cla... |
import React from "react";
import SplitPane from "react-split-pane";
import TextOutput from "./TextOutput/";
import TextInput from "./TextInput/";
import ToolBar from "./ToolBar/";
import Loading from "../Loading/";
import PubNub from "pubnub";
import axios from "axios";
import Sk from "skulpt";
import "skulpt/dist/sku... |
/*global beforeEach, afterEach, describe, it, setInterval, clearInterval, setTimeout,System*/
import { expect } from "mocha-es6";
import { isObject, newKeyIn, sortKeysWithBeforeAndAfterConstraints, select, extend, inspect, equals, keys, isRegExp, isFunction, extract, isEmpty, deepCopy, inherit, values, merge, clone, i... |
import React, { Component } from 'react';
import UserIcon from './UserIcon';
import ShareDocumentModal from './ShareDocumentModal';
import {SketchPicker} from 'react-color';
import userContext from './UserContext'
import logo from '../img/fittedLogo.png';
import {
Grid,
Icon,
Container,
Divider,
Inp... |
import coolorsToHex from 'coolors-to-hex';
import headerLogo from 'themes/media/headerLogo.png';
import headerLogo2x from 'themes/media/headerLogo@2x.png';
import graphicHome from 'themes/media/homeGraphic.png';
import graphicHome2x from 'themes/media/homeGraphic@2x.png';
import titleHome from 'themes/media/homeTitle... |
const start = document.querySelectorAll(".list-music-item");
if (start.length == 0) {
document.getElementById('control-player').classList.add("hidden");
}
else {
window.onload = async () => {
getSong();
}
}
/*--Variable--*/
const resetLyrics = document.querySelector('.lyricwrap');
const btnPlay = do... |
// 系统、人、环境相融合
/** 模块名 */
var modulename = "通箱库位";
/** 一览数据对象 */
var listdata = {};
/** 服务器处理路径 */
var servicePath = "turnover_case.do";
var lOptions = {};
var ocmOptions = {};
var selwip = "";
var findit = function() {
var data = {
"omr_notifi_no" : $("#cond_omr_notifi_no").data("post"),
"model_id" : $("#cond_... |
"use strict";
const pig = require('@ocogeclub/pigpio');
const sleep = sec =>
new Promise(r => setTimeout(r, sec * 1000));
const GES_REACTION_TIME = .100; // default:0.5 // You can adjust the reaction time according to the actual circumstance.
const GES_ENTRY_TIME = .050; // default:0.8 // When you want to ... |
const fhir_json_schema_validator = await import('@asymmetrik/fhir-json-schema-validator');
const JSONSchemaValidator = fhir_json_schema_validator.default;
const validator = new JSONSchemaValidator();
import { Worker } from 'worker_threads';
import { initialzieCqlWorker } from 'cql-worker';
import { getIncrementalId, p... |
'use strict';
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ... |
var InlineWorker = require('cordova-plugin-googlemaps.InlineWorker');
function PluginKmlOverlay(pluginMap) {
// stub
}
PluginKmlOverlay.prototype._create = function(onSuccess, onError, args) {
var self = this,
pluginOptions = args[1];
if (!/^https?:/.test(location.protocol)) {
return onError('KmlOverl... |
var currentLocation;
var apiFilter = "allAPIs";
var statsEnabled = isDataPublishingEnabled();
//setting default date
var to = new Date();
var from = new Date(to.getTime() - 1000 * 60 * 60 * 24 * 30);
currentLocation = window.location.pathname;
jagg.post("/site/blocks/stats/api-usage-user/ajax/stats.jag", { ... |
import React, { useState } from 'react';
import { Button, Modal, Form, Row } from 'react-bootstrap';
import { validatePremiumMember } from './validateMemApplications';
import "../partnership/Partnership.css";
import Navbar from '../Navbar/Navbar';
import Footer from '../Footer/Footer';
const PremiumMember = () => {
... |
/****************************************************************************
** @license
** This demo file is part of yFiles for HTML 2.2.
** Copyright (c) 2000-2019 by yWorks GmbH, Vor dem Kreuzberg 28,
** 72070 Tuebingen, Germany. All rights reserved.
**
** yFiles demo files exhibit yFiles for HTML functionali... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
// Bezier Tool Canvas Commands Generator
//
// history:
// - 01/01/2017: lol wow people use this thing. uploaded to github:
// https://github.com/vrk/beziertool
// - 04/03/2011: born!
//
// @author <NAME>
///////////////////////////////////////////////////////////////////////////////
// Globals
/////////... |
// USAGE:
// 1. npm install csv
// 2. Put the csv file into this folder.
// 3. Update constants below
// 4. (Optional) Export production env to run on production.
// 5. Run script with node. (You may need to use node 6.)
// To test use any combination:
// * run on local db
// * return after the first change is found ... |
import React, {Component} from 'react';
import {BrowserRouter, NavLink, Route} from 'react-router-dom';
import BrowserDetection from 'react-browser-detection';
import { message } from 'antd';
import Home from "./components/Home"
import Lobby from "./components/Lobby"
import SignUp from "./components/SignUp"
import Si... |
(function(l, r) { if (l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (window.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(window.document);
import ... |
/*
* RESTfull API: Project Resources
*
*
*/
import {Router} from 'express';
import {Dashboard, Project} from 'lib/models';
import multer from 'multer';
import bus from 'lib/bus';
import {maxQueryLimit,maxUploadSize} from 'config/config';
import statuses from 'lib/settings/statuses';
import _ from 'underscore';
im... |
var greekLetterNames = [ 'Alpha', 'Beta', 'Gamma', 'Delta', 'Epsilon', 'Zeta', 'Eta', 'Theta', 'Iota', 'Kappa', 'Lambda', 'Mu', 'Nu', 'Xi', 'Omicron', 'Pi', 'Rho', 'Sigma', 'Tau', 'Upsilon', 'Phi', 'Chi', 'Psi', 'Omega' ];
/*
Return true if the user has directed edges on, false otherwise.
*/
function checkDirec... |
//
// This controls the contents of the Vomnibar iframe. We use an iframe to avoid changing the selection on the
// page (useful for bookmarklets), ensure that the Vomnibar style is unaffected by the page, and simplify key
// handling in vimium_frontend.coffee
//
const Vomnibar = {
vomnibarUI: null, // the dialog ins... |
/*
sortEnglishDateTime
-------------------
This function sorts English dateTime vaues such as:
1st January 2003, 23:32:01
23/03/1972 à 10:22:22
1970/13/03 at 23:22:01
The function is "safe" i.e. non-dateTime data (like the word "Unknown") can be passed in and is sorted properly.
... |
import { emptyArray, emptyArray_forLoading, IsNaN, CE, Assert } from "js-vextensions";
import { GetDoc, SlicePath, SplitStringBySlash_Cached, StoreAccessor } from "mobx-firelink";
import { GetNodeRevisionsByTitle } from "./nodeRevisions";
import { AsNodeL1, GetNodeL2, GetNodeL3, IsPremiseOfSinglePremiseArgument, IsSing... |
/*
* Windows Utilities Tests
*
* Copyright 2018 Raising the Floor - International
*
* Licensed under the New BSD license. You may not use this file except in
* compliance with this License.
*
* You may obtain a copy of the License at
* https://github.com/GPII/universal/blob/master/LICENSE.txt
*/
"use strict"... |
/*
* Copyright 2017 Red Hat 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... |
/* *
*
* (c) 2010-2021 <NAME>
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setProtot... |
import ApiModule from './apiModule';
const collectionAchievements = [
2875, // The Super Adventure (blue)
2880, // The Kind Toad (green)
2860, // The Storm Wizard (yellow)
2867, // The Kaiser (orange)
3393 // The Crimson Assassin (red)
];
const sabItems = {
2875: [ // Blue weapons
4651... |
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
/*--------------------
* Universal Form Builder
* @version 2.4
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* Using Reveal: jQuery Modals Made Easy
-------------------------*/
if(!window.dsC) {
if(window.jQuery && !compareVersionjQuery('1.7') || !window.jQuery) {
console.error('Version jQuery < 1.7 or jQuer... |
// Normalises a vector (3D only)
function normalise(vector)
{
// Get length of the vector
var length = Math.sqrt( vector[0] * vector[0] + vector[1] * vector[1] + vector[2] * vector[2] );
// Divide all parts by length
var normalised = [ ( vector[0] / length ), ( vector[1] / length ), ( vector[2] / ... |
import React, { Component } from 'react';
import { View, Text, TouchableHighlight, TouchableWithoutFeedback, StyleSheet, Image, Alert, AsyncStorage, TouchableOpacity } from 'react-native';
import { PRIMARY, SECONDARY, BLACK, TITLE, GRAY_MEDIUM } from '../../styles/colors';
import { BarraLateral } from '_organisms'
impo... |
function GraphData(file, onloaddb) {
this.dbfile = file;
this.actorsById = {};
this.linksByBid = {};
var __this = this;
this.onloaddb = onloaddb
this.init = function () {
var fr = new FileReader();
fr.onload = function () {
var Uints = new Uint8Array(fr.result);
... |
// @ts-check
/* eslint-disable no-use-before-define */
import { assert, details as X } from '@agoric/assert';
import { getInterfaceOf } from '@endo/marshal';
// import { kdebug } from './kdebug.js';
const initializationsInProgress = new WeakSet();
/**
* Make a simple LRU cache of virtual object inner selves.
*
* ... |
import { __decorate } from 'tslib';
import { Injectable, Input, Component, ViewEncapsulation, TemplateRef, ComponentRef, ComponentFactoryResolver, ChangeDetectorRef, ViewChild, ViewContainerRef, Renderer2, Directive, InjectionToken, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import... |
// Module core/webidl
// Highlights and links WebIDL marked up inside <pre class="idl">.
// TODO:
// - It could be useful to report parsed IDL items as events
// - don't use generated content in the CSS!
import { normalizePadding, reindent } from "./utils";
import css from "../deps/text!core/css/webidl.css";
import... |
import React, { PureComponent } from 'react';
import ReactDOM from 'react-dom';
import { select, pointer } from 'd3-selection';
import { transition } from 'd3-transition';
import { scaleTime, scaleLinear, scaleOrdinal } from 'd3-scale';
import { max, min, sum } from 'd3-array';
import { axisBottom, axisRight } from 'd3... |
"use strict";
var assert = require("assert");
var error = require("./../lib/error");
var core = require("./core");
function findSpreadArgument(node) {
var spreadIndex = -1;
var elements;
if( node && Array.isArray(elements = (node.elements || node["arguments"])) ) {
elements.forEach(function(arg, i) {
if( spre... |
import React from 'react';
import PropTypes from 'prop-types';
import {
Button,
Dropdown,
DropdownItem,
Stack,
StackItem,
Tabs,
TabsItem,
Icon,
navigation,
Table,
TableHeader,
TableHeaderCell,
TableRow,
TableRowCell,
EntityTitleTableRowCell,
AccountStorageMutation,
AccountStorageQuery... |
let got = require('got')
let icy = require('icy')
let ytdl = require('ytdl-core')
let Event = require('events')
let apiGoogle = process.env.API_GOOGLE
let apiSoundCloud = process.env.API_SOUNDCLOUD
class MusicPlayer extends Event {
constructor (msg, color) {
super()
this.color = color || null
this.msg = ... |
import parseDate from './parseDate'
const namespaces = {
a: 'http://schemas.openxmlformats.org/spreadsheetml/2006/main',
// This one seems to be for `r:id` attributes on `<sheet>`s.
r: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships',
// This one seems to be for `<Relationships/>` file.
... |
'use strict';
var jQuery = (typeof (window) != 'undefined') ? window.jQuery : require('jquery');
// Sphinx theme nav state
function ThemeNav() {
var nav = {
navBar: null,
win: null,
winScroll: false,
winResize: false,
linkScroll: false,
winPosition: 0,
winH... |
export const forEach = (arr, fn) => {
if (!arr.length || !fn) return;
let i = -1;
let len = arr.length;
while (++i < len) {
let item = arr[i];
fn(item, i, arr);
}
};
/**
* @param {Array} arr1
* @param {Array} arr2
* @description 得到两个数组的交集, 两个数组的元素为数值或字符串
*/
export const getIntersection = (arr1, a... |
import {
Color,
DoubleSide,
Matrix4,
Mesh,
MeshBasicMaterial,
PlaneBufferGeometry,
Vector3
} from 'three'
import { GlyphsGeometry } from './GlyphsGeometry.js'
import { createTextDerivedMaterial } from './TextDerivedMaterial.js'
import { layoutText } from './TextBuilder.js'
const Text = /*#__PURE__*/(() =... |
import _ from "../imports/lodash.js"
import { createSilentAudio, create_recorder } from "../common/AudioRecording.js"
import { html, useEffect, useState, useRef, useCallback, useLayoutEffect, useMemo } from "../imports/Preact.js"
import { AudioPlayer } from "./AudioPlayer.js"
import immer from "../imports/immer.js"
imp... |
import {Html, Text, Events, Domain} from 'chorda-core'
import {Layouts, Tabs, IconBox, Box, Button, Buttons, Notification} from 'chorda-bulma'
import { ShowAndHide } from '../effects'
import 'animate.css'
const LOREM_IPSUM = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices elei... |
import * as dom from 'd3-selection';
import * as scale from 'd3-scale';
import { ascending, extent, max } from 'd3-array';
import { nest } from 'd3-collection';
import { isoParse, timeFormat as d3TimeFormat, timeParse as d3TimeParse } from 'd3-time-format';
import api from './_api';
const cssPrefix = 'milestones';
con... |
#!/usr/bin/env node
/*
build.js
- Description : Node.js-hosted build script for SugarCube
- Author : <NAME> <<EMAIL>>
- Copyright : Copyright © 2014–2016 <NAME>. All rights reserved.
- Version : 1.3.4, 2016-09-12
*/
/* eslint-env node, es6 */
/* eslint-disable camelcase, object-shorthand, prefer... |
/**
* @license
* Copyright 2020 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
// 0x0700BCD8 - 0x0700BCE0
import {
gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex,
gsSP2Triangles, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode,
gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayList, gsSPSetGeometry... |
import {
observable, action, computed, toJS,
} from 'mobx';
import axios from 'axios';
import _ from 'lodash';
import { store, stores } from 'choerodon-front-boot';
const { AppState } = stores;
@store('UserMapStore')
class UserMapStore {
@observable epics = [];
@observable showDoneEpic = false;
@observable ... |
;
$(document).ready(function () {
renderInfo();
hideGraph();
visualizeAllInputFromGetParams();
getDataListing();
});
function renderInfo() {
$('body > div.container.mt-3 > ul > li:nth-child(1) > a').click();
}
(function removeDataTableEvent() {
$('#hide_dataTable').click(() => {
... |
/* jshint node:true */
/* eslint-env es6 */
const urllib = require('url');
const utils = require('./utils.js');
/* Bits of this adapted from https://dxr.mozilla.org/mozilla-central/source/dom/manifest/ManifestProcessor.jsm */
const displayModes = new Set([
'fullscreen',
'standalone',
'minimal-ui',
'browser'
... |
$(document).on('ready', function () {
get_lista_taller_semestre($('#talleres_semestre_div .panel-heading h3.actual').data('id'));
$('#calendar_actividades').fullCalendar({
header: {
left: 'prev,next',
center: '',
right: 'agendaWeek,agendaDay'
},
defaul... |
var screenWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0) * (screen.width <= 420 ? 0.9 : 0.85)
var screenHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0) * 10
var canvasDim = { width: screenWidth, height: screenHeight}
var data, edges_new, entity_new
var ... |
var circleImg = "img/circle.png";
var crossImg = "img/cross.png";
var contract_address = "contract_address";
var private_key = "private_key";
var account_balance = "account_balance";
var contract_abi = "contract_abi"
// ABI MIGRATED TO SEPARATE FILE DIRECTORY
// var abi_preset = [{"constant":true,"inputs":[],"name":"ro... |
/*
* Copyright 2020 Poly Forest, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
// JScript File
function colors_val_screencolor() {
if (!neosys_val_color()) return neosysinvalid()
neosys_set_style('screencolor', gvalue)
return true
}
function colors_val_screenfont() {
if (!neosys_val_font()) return neosysinvalid()
neosys_set_style('screenfont', gvalue, gds.getx('SC... |
"use strict";
var Fs = require('fs'),
Path = require('path'),
UglifyJS = require('uglify-es');
/**
* Checks if a path exists and is a file (not a directory), without throwing any error
* @param {String} path
* @returns {Boolean}
*/
var isFileSync = function (path) {
var stat = null;
try {
... |
'use strict';
import {select, selectAll, event} from 'd3-selection';
import 'd3-transition';
import Labelizer from './labelizer.js';
var WIDTH = 1000;
var HEIGHT = 500;
var X_ORIG = 100;
var Y_ORIG = 20;
var PADDING = 20;
var CELL_W = 250;
var CELL_H = 75;
var MULTI_OFFSET = 3;
var BORDER_PADDING = 4;
var ANIM_DURATIO... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.FileComponent = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; desc... |
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 = Reflect.decorate(d... |
// naprr_ui.js
// helper routines for the main ui
//
// gets schoolinfo 1-line summary for given acaraid
//
function getSchoolInfoSummaryLine(acaraid) {
var sinfo = schoolinfoData;
return $("<p>" +
"School: " + sinfo.SchoolName +
", Sector: " + sinfo.SchoolSector +
", Type: " + s... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
var ReactDom = _interopDefault(require('react-dom'... |
import React, { Component } from "react";
import Utils from "../../utils";
import contractAddress from "../Contract";
import cons from "../../cons.js";
import TronWeb2 from 'tronweb';
import ccxt from 'ccxt';
const exchange = new ccxt.bithumb({
nonce () { return this.milliseconds () }
});
excha... |
function imgglobe( path, radius ) {
var geometry = new THREE.SphereGeometry( radius, 60, 40 );
geometry.applyMatrix( new THREE.Matrix4().makeScale( -1, 1, 1 ) );
var texture = THREE.ImageUtils.loadTexture( path );
var material = new THREE.MeshBasicMaterial( { map: texture } );
var mesh = new THREE.M... |
/*
Copyright 2020 Croquet Corporation.
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, sof... |
'use strict';
/*
new function() {
var parser = new EasySAXParser();
parser.ns('rss', { // or false
'http://search.yahoo.com/mrss/': 'media',
'http://www.w3.org/1999/xhtml': 'xhtml',
'http://www.w3.org/2005/Atom': 'atom',
'http://purl.org/rss/1.0/': 'rss',
});
parser.on... |
//Determines whether there is new content available
var NEW_CONTENT_AVAILABLE = false;
//Number of times the update content popup has been rendered
var NEW_CONTENT_POPUP_COUNTER = 0;
//Number of times we will let the user decline the update
var NEW_CONTENT_POPUP_MAX_DECLINES_ALLOWED = 3;
//UI components
var updaterPop... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may no... |
var _ = require('lodash');
var Q = require('q');
var frontMatter = require("front-matter");
var path = require("path");
var fs = require("fs-extra");
var parsers = require('gitbook-parsers');
var extend = require('extend');
var cheerio = require('cheerio');
var domSerializer = require('dom-serializer');
var url = requi... |
/****************************
* Vector2 math functions
***************************/
function forceAtlas2Worker() {
var vec2 = {
create: function() {
return new Float32Array(2);
},
dist: function(a, b) {
var x = b[0] - a[0];
var y = b[1] - a[1];
... |
/* eslint-disable */
import React from 'react';
import {
Box,
Container,
withStyles,
createStyles,
Grid,
Card,
CardHeader,
CardContent,
Button,
Divider,
CardActions,
Typography,
TextField,
MenuItem,
IconButton,
CircularProgress,
Accordion,
AccordionDetails,
AccordionSummary
} from ... |
const StatusCodes = require('http-status-codes');
const Org = require('../src/orgs');
const OrgUnit = require('../src/orgUnits');
const Err = require('../controllers/err500_controller');
module.exports = {
//register(req, res, next) {
async register(req, res) {
var ouProps = new OrgUnit(Object.assign({},req.body)... |
let V_SPECIAL_PROPS = {
input: [G_VALUE, 'checked'],
textarea: [G_VALUE],
option: ['selected']
};
let V_TEXT_NODE = G_COUNTER;
if (DEBUG) {
V_TEXT_NODE = '#text';
}
let V_UnmountVframs = (vf, n) => {
if (n.nodeType == 1) {
let id = IdIt(n);
if (vf['@{vframe#children}'][id]) {
... |
const Command = require('../struct/Command');
class Rp extends Command {
constructor() {
super('rp', { // id
aliases: ['rp'],
args: [
{
id: 'all',
type: 'string',
match: 'separate'
}
... |
// packageA/pages/mapPro/mapPro.js
// 引入外部json
var markersList = require('../../../utils/markers').default;
// 引入高德微信小程序SDK
var amapFile = require('../../../libs/amap-wx.130'); //如:../../libs/amap-wx.js
// 创建SDK实例
var myAmapFun = new amapFile.AMapWX({
key: '<KEY>'
});
// 引入百度语音识别
var Voice = require("../../../libs/... |
gtm_importinvoiceview();
function gtm_importinvoiceview() {
var data = eos.app[eos.isappnow].chd.gdInvoice.getSelect();
if (data.length>0) {
data = eos.app[eos.isappnow].chd.gdInvoice.datasource[data[0]];
gtm_importinvoiceview0(data);
}
}
function gtm_importinvoiceview0(data) {
eos.newapp(-1, 0, 'importinvoicevi... |
var EPSILON = 0.00001;
/**
* Return true if the vertices in array A are pairwise strictly equal to those
* in array B.
*/
function sameVerts(a, b) {
if (a.length !== b.length) {
return false;
}
for (var iVert = 0; iVert < a.length; iVert++) {
if (!a[iVert].equals(b[iVert])) {
return false;
... |
import {Component} from "react";
import React from "react";
import {
Alert,
StyleSheet,
Text,
View,
ScrollView,
TouchableOpacity,
ActivityIndicator} from "react-native";
import Icon from "react-native-vector-icons/FontAwesome5";
import {Address, ArrivalDate, LicensePlates, LoadDetailText, My... |
import d3 from'd3'
import $ from 'jquery'
import _ from 'lodash'
var self;
var edgeLength = 120;
var edgeRandom = 80;
var node, link, nodeLabel, linkLabel;
class CorpusDiagram {
constructor(app) {
self = this
self.anchor = $(`<div id="global-view" class="well" style="position:fixed; z-index:1000;"... |
var mathjs = require("mathjs");
var Equations = require("../src/Equations");
var Example = require('../index').Example;
var Layer = require("../src/Layer");
var Variable = require("../src/Variable");
var MapLayer = require("../src/MapLayer");
var should = require("should");
var Network = require("../src/Network");
var ... |
var hotcitys=new Array();
/**
hotcitys[0]=new Array('bj','北京','beijing','bj','16930','beijing','北京','','');
hotcitys[1]=new Array('sh','上海','shanghai','sh','8288','shanghai','上海','','');
hotcitys[2]=new Array('gz','广州','guangzhou','gz','2713','guangdong','广东','','');
hotcitys[3]=new Array('sz','深圳','shenzhen... |
import React, { Component } from "react";
import { globalData } from "../globals.js";
import { Passage } from "./Passage.js";
import { Hebrew } from "./Hebrew.js";
import Tipsy from 'react-tipsy'
import sprocket_icon from '../img/interface/sprocket.png';
import play_icon from '../img/interface/play.png';
import playing... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.