text stringlengths 5.97k 41.2k |
|---|
//https://aspenmesh.io/2019/03/using-d3-in-react-a-pattern-for-using-data-visualization-at-scale/
import React, { useRef, useEffect, useState } from 'react';
import './App.css';
//import MuiTreeView from 'material-ui-treeview';
import Paper from '@material-ui/core/Paper';
import Grid from '@material-ui/core/Grid';
impo... |
// Drag and drop
$( "#sortable" ).sortable({
revert: true,
handel: '.cb_move_btn',
cancel: '.no-drag',
});
// $( "#sortable" ).disableSelection();
// Elements
var __col_btn = $('.col_btn');
var __mr_btn = $('.main_row_btn');
var __mr_box = $('.main_row_append_box');
var __mr_btn_mini = $('.main_row_minimize');
var ... |
import * as utils from '../common/utils';
import Rect from '../geometry/Rect';
import Handler from '../handlers/Handler';
const defaults = {
multi: true,
movement: true,
areaSelect: true,
areaSelectKey: 'shift',
scrollDelay: 40,
scrollSense: 18
};
const classNames = {
cursorMove: 'pane-cursor-... |
export let BETA_SYMBOL = "β";
export let SIGNUP_FO_FREE = "Sign Up for FREE";
export let SIGNUP = "Sign Up";
export let LOGIN = "Log In";
export let THE_PLACE_WHERE_PEOPLE = "The place where people can come to find and discover anything they might want to buy online.";
export let LOADING = "Loading";
/** signup */
exp... |
/* eslint-disable no-console */
import React, { Component, useEffect } from 'react'
import moment from 'moment'
import Timeline, {
TimelineMarkers,
TimelineHeaders,
TodayMarker,
CustomMarker,
CursorMarker,
CustomHeader,
SidebarHeader,
DateHeader,
RowColumns,
RowItems,
GroupRow,
HelpersContext
}... |
const Joi = require('joi');
const Activity = require('../models/activity.model');
const Activityview = require('../views/activity.view');
const Jobactivityview = require('../views/jobactivity.view');
const Crmappview = require('../views/crmapp.view');
const Enquiry = require('../models/enquiry.model');
const activityS... |
/**
* Copyright 2019 Google Inc. 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 applicable law ... |
// Generated by ReScript, PLEASE EDIT WITH CARE
import * as Curry from "bs-platform/lib/es6/curry.js";
import * as React from "react";
import * as Belt_Int from "bs-platform/lib/es6/belt_Int.js";
import * as Belt_Array from "bs-platform/lib/es6/belt_Array.js";
import * as Codemirror from "codemirror";
import * as Belt... |
"use strict";
let db = require('./pghelper');
let escape = s => s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
let findAll = (req, res, next) => {
let pageSize = req.query.pageSize ? parseInt(req.query.pageSize) : 12,
page = req.query.page ? parseInt(req.query.page) : 1,
search = req.query.search,... |
/*!
* 从vue v1.0.25 里面复制出来的方法
*/
/**
* order by
*/
function orderBy(arr) {
var comparator = null;
var sortKeys = undefined;
arr = convertArray(arr);
// determine order (last argument)
var args = toArray(arguments, 1);
var order = args[args.length - 1];
if (typeof order === 'number') {
order = ord... |
/*
Copyright (c) 2010 <NAME>, http://www.tilltheis.de
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub... |
const axios = require('axios')
const config = require("./util/config")
const fs = require("fs")
class Proxy {
constructor(line) {
this.name = line.split('=')[0].trim()
this.line = line
}
}
class Group {
constructor(name) {
this.name = name
this.proxies = []
... |
PdfComposer = {};
PdfComposer.pt2mm = 25.4 / 72; // point to millimeter ratio
PdfComposer.pt2mm
PdfComposer.fontFace = "helvetica";
PdfComposer.fontFaceMono = "courier";
// returns object: {name: string; row: string; column: string}
function blockNameL(row, col, numBlocksHeight) {
let letter = String.fromCharCode(... |
import {min,max,group,flatGroup} from "d3";
import moment from 'moment';
import clone from 'just-clone';
import { data } from "jquery";
export function ParseData(data, options) {
//*********************
// create regions
//*********************
data.regions = [
{sort: 5, 'code': 'AF', cumulati... |
/*
Copyright 2020 <NAME> <<EMAIL>>
Copyright 2020, 2021 The Matrix.org Foundation C.I.C.
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 requi... |
const PLAYER_1 = "wt";
const HUMAN = "human";
const BOT = "robot";
const PLAYER_2 = "bl";
const START_DELAY_TIME = 5;
const CAMERA_ANIMATION_TIME = 3;
const MOVEMENT_ANIMATION_VELOCITY = 0.3;
let animationID = 0;
class MyGameOrchestrator extends CGFobject {
/**
* @method constructor
* @param {object} sc... |
/* eslint-disable new-cap, max-len, no-var, key-spacing, quotes, no-invalid-this, no-multiple-empty-lines */
'use strict'; // use function form for better control
/**
* Main module for Socket - Middlewares. This is how it works
* Scenario-1: Client logs in & no admin is in.
* --> Client should get message like 'Tha... |
var express = require('express');
var router = express.Router();
const fs = require("fs")
const fsEx = require('fs-extra')
const AdmZip = require('adm-zip')
const archiver = require('archiver');
const axios = require('axios')
const isReachable = require('is-reachable');
var execSync = require('child_process').execSync;... |
// map peer usernames to corresponding RTCPeerConnections
// as key value pairs
var mapPeers = {};
// peers that stream own screen
// to remote peers
var mapScreenPeers = {};
// true if screen is being shared
// false otherwise
var screenShared = false;
const localVideo = document.querySelector('#local-video');
//... |
import 'whatwg-fetch';
import Promise from 'promise-polyfill';
import {Fragmen} from './fragmen.js';
import {Onomat} from './onomat.js';
let canvas = null; // スクリーン
let editor = null; // Ace editor のインスタンス
let lineout = null; // ステータスバー DOM
let counter = null; // 文字数カウンター DOM
let message = null; // メ... |
$(document).ready(function () {
"use strict";
$('.ad-menu ul li a.mact').siblings().slideDown();
$('.ad-menu ul li a').on('click', function () {
if($(this).hasClass("mact")){
$(".ad-menu ul li div").slideUp();
$('.ad-menu ul li a').removeClass('mact');
}
else{
$(".ad-menu ul li div")... |
//Create global variables
var lastDate;
var dates = [];
var data;
var token;
var rowPosition = 1;
const rowsHistory = [
["User ID", "Message ID", "Direction", "Date", "Type", "Content"]
];
let csvHistory;
var firstRowHistory = rowsHistory[0].join(",");
var botId;
var zip = new JSZip();
var objJson = [];
var prevBut... |
var filter, mainCore = {},
detailRequired = [];
var deleteMemberDetails = [];
var departmentData = new kendo.data.DataSource({
transport: {
read: {
url: "/api/member/department/list",
dataType: "json"
}
},
schema: {
data: function (data) {
return data.response
}
}
});
var com... |
let levelling = require('../lib/levelling')
let fs = require('fs')
let path = require('path')
let fetch = require('node-fetch')
let moment = require('moment-timezone')
let jimp = require('jimp')
let PhoneNumber = require('awesome-phonenumber')
const defaultMenu = {
before: `
┌─〔 %me 〕
├ *${ucapan()} %name*
│
├ Tersis... |
"use strict";
const mosca = require("mosca");
const tls = require("tls");
const fs = require('fs');
const defaultConfig = require("./config");
const logger = require("@dojot/dojot-module-logger").logger;
const util = require("util");
const Certificates = require("./certificates");
const TAG = { filename: "mqtt-backend... |
var DEBUG = false;
var withAI = true;
const imgs = [null, new Image(), new Image(), new Image(), new Image()];
imgs[1].src = 'r.png';
imgs[2].src = 'y.png';
imgs[3].src = 'r_super.png';
imgs[4].src = 'y_super.png';
const PLAYER = {P1: 1, P2: 2};
const PIECE_TYPE = {
NO_PIECE: 0,
RED_PIECE: 1,
... |
// Copyright 2019 <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 writin... |
// alert("test");
var canvas = document.getElementById("Board");
var cxt = canvas.getContext("2d");
cxt.rotate(90 * Math.PI/180)
// hexagon
function drawHex(size, xcenter, ycenter) {
var numberOfSides = 6,
size = size,
Xcenter = xcenter,
Ycenter = ycenter;
cxt.beginPath();
cxt.moveTo (Xcent... |
'use strict';
/************************************************/
/* never, ever, never use a code formatter here */
/************************************************/
var GAMENAME; // ULARN /* are we playing larn or ularn? */
var MAXLEVEL; // ULARN /* max # levels in the dungeon */
var MAXVLEVEL; // ULARN /... |
import React, { Component } from 'react';
import Page from 'components/Page';
import { Card, CardHeader, Table, Input, Col, Row, Button } from 'reactstrap';
import { TextField, CardContent, Grid, CircularProgress } from '@material-ui/core'
import Media from 'reactstrap/es/Media';
import Dropzone from 'react-dropzone';
... |
var stl = "background-color: black;color: white;font-size: 30pt;font-family: Microsoft Yahei;";
console.log("%cY B L U I - E", stl);
var gameover = false, tile = 2, tem, fxi = ["top", "right", "down", "left"], win = false, jm = false, i;
var get = (gev) => document.getElementsByClassName(gev)[0];
var dch = (dcv) =>... |
import React, { Component } from "react";
// import { BrowserRouter as Router } from 'react-router-dom'
// import * as firebase from 'firebase';
// import PropTypes from "prop-types";
import fbase from "../../firebase";
import styles from "./Home.scss";
import { DisplayImage } from "..";
import Loading from "../../ass... |
// Init overpass
overpass.init();
var settings = {
osmUser: "",
osmPass: "",
osmURL: "http://api.openstreetmap.org",
heightToEyes: 1.6,
heightToFloor: 0,
code:{},
server: "http://overpass-api.de/api/",
// tileServer: "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
// tileServer: "http://otile1.m... |
var VTS_GROUP_Obometer;
var VTS_GROUP_Gauge_Speed;
var VTS_GROUP_Gauge_Fule;
$(document).ready(function() {
// $('#myTab a:last').tab('show');
$('#myTab a').click(function(e) {
e.preventDefault();
$(this).tab('show');
});
// $("input[data-chart=knob]").knob();
//$(".knob").knob();
$('#d-tracker-list a.ll').... |
import $S from '../../interface/stack.js';
// import TemplateHelper from '../../common/TemplateHelper';
import Api from '../../common/Api';
import Config from "./Config";
import AccountHelper from "./AccountHelper";
import AccountHelper2 from "./AccountHelper2";
import Template from "./Template";
import TemplateHandle... |
//makes a plain cartogram
function simpleCartogram(visID,mapcolor){
var c = new makecartogram(visID,GEODATA,POPULATION,POPULATION_COL,POPULATION_LABEL,"","","",mapcolor);
}
function customCartogram(visID,customDataSource,customColumn,customLabel,mapcolor){
makecartogram(visID,GEODATA,customDataSource,cus... |
const Discord = require('discord.js');
const nconf = require('nconf');
const {Game} = require('../game/game.js');
const {Team} = require('../game/team.js');
console.log(Team);
const {GameLocation, EndLocation} = require('../game/location.js');
console.log(GameLocation);
console.log(EndLocation);
const {Code} = require(... |
/**
* markdown解析器
* @author yutent<<EMAIL>>
* @date 2020/02/07 17:14:19
*/
const HR_LIST = ['=', '-', '_', '*']
const LIST_RE = /^(([\+\-\*])|(\d+\.))\s/
const TODO_RE = /^[\+\-\*]\s\[(x|\s)\]\s/
const ESCAPE_RE = /\\([-+*_`\]\[\(\)])/g
const QLINK_RE = /^\[(\d+)\]: ([\S]+)\s*?((['"])[\s\S]*?\4)?\s*?$/
const TAG_R... |
/* cpreXcelGen.js - present the statistics in an Excel sheet */
/*
Copyright 2018, Certible OG
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... |
/*
Scripts for creating SVG apps, converting clientX/Y to viewBox coordinates
and for displaying tooltips
Copyright (C) <2006> <<NAME>>
Version 1.2, 2006-10-06
<EMAIL>
http://www.carto.net/
http://www.carto.net/neumann/
Credits:
* thanks to <NAME> for his many examples and providing the ViewBox class
----
Document... |
/**
* Package: mb_owsproxy_csv
*
* Description:
*
* Files:
*
* SQL:
*
* Help:
*
* Maintainer:
*
* License:
* Copyright (c) 2009, Open Source Geospatial Foundation
* This program is dual licensed under the GNU General Public License
* and Simplified BSD license.
* http://svn.osgeo.org/mapbender/trunk/m... |
var uinfo = {
id: service_id,
username: uname,
avatar: avatar,
group: group
};
var socket_server = '127.0.0.1:8282'
var socket = new WebSocket('ws://' + socket_server);
// 打开Socket
socket.onopen = function (res) {
toastr.success('连接成功')
// 登录
var login_data = '{"message_type":"init", "se... |
import { ethers } from "ethers";
import { deployConfig, defaultNetwork, loadContracts } from "~/networkConfig";
export const state = () => {
return {
accounts: {},
activeAccount: '',
ads: [],
adsPixels: 0,
ownedAds: {},
halfWrapped: {},
pixelsOwned: 0,
grid: null, // lazy load
pr... |
const logger = require('logger');
const requestPromise = require('request-promise');
const config = require('config');
const ctRegisterMicroservice = require('ct-register-microservice-node');
const CheckData = require('./check-csv-data');
const asyncForEach = async (array, callback) => {
for (let index = 0; index... |
import { Ball } from './ball.js?v=1.5';
import { Path } from './path.js?v=1.8';
import { PathNode } from './path-node.js?v=1.1';
import { Vector } from './vector.js?v=1.1';
import { Spark } from './spark.js';
let c;
let ctx;
let cRect;
let bgSlider;
let secondsPassed;
let oldTimestamp;
let fps;
let bgValue;
let anti... |
/*
* @package jsDAV
* @subpackage DAV
* @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax DOT org>
* @author <NAME> <info AT mikedeboer DOT nl>
* @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License
*/
"use strict";
var jsDAV = require("./../../jsdav");
var jsDAV_Server = require(".... |
var canvas_container = document.querySelector(".canvas-container");
var slider_population = document.getElementById("slider_population");
var slider_games_visible = document.getElementById("slider_games_visible");
var slider_grid_size = document.getElementById("slider_grid_size");
var slider_hidden_layers = document.g... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Modules = undefined;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Sym... |
import * as AWS from 'aws-sdk';
import winston from 'winston';
import moment from 'moment';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
let LOGGER = null;
let s3 = new AWS.S3();
const s3ConfigBucket = process.env.S3_CONFIG_BUCKET;
const environmentName = process.env.ENV_NAME;
const MAIN... |
var steem = require('dsteem');
var steemState = require('steem-state');
var steemTransact = require('steem-transact');
var fs = require('fs');
const cors = require('cors');
const express = require('express')
const ENV = process.env;
const IPFS = require('ipfs-api');
const ipfs = new IPFS({ host: 'ipfs.infura.io', port:... |
"use strict";
function CDiscoveryQueue( eQueueType, rgDiscoveryQueue, Settings, params )
{
this.m_rgItems = [];
this.m_iActiveItem = 0;
this.m_eQueueType = eQueueType;
this.m_Settings = Settings;
if ( this.m_Settings && !this.m_Settings.os_win && !this.m_Settings.os_mac && !this.m_Settings.os_linux )
... |
// Brunch automatically concatenates all files in your
// watched paths. Those paths can be configured at
// config.paths.watched in "brunch-config.js".
//
// However, those files will only be executed if
// explicitly imported. The only exception are files
// in vendor, which are never wrapped in imports and
// theref... |
function loadFile (event) {
var reader = new FileReader();
reader.onload = function(){
var preview = document.getElementById('preview');
preview.src = reader.result;
};
reader.readAsDataURL(event.target.files[0]);
};
$(document).ready(function() {
//popolo il menu via include sul div p... |
'use strict';
import React from 'react';
import Draft from 'draft-js';
import {stateToHTML} from 'draft-js-export-html';
import {Map} from 'immutable';
import TexBlock from './TeXBlock';
import ResourcesList from './resourcesList';
import Resource from './Resource';
const {
EditorState,
Editor,
RichUtils,
Com... |
let audioCtx;
let buffer;
let analyzer;
let source;
// let request;
let songLength;
var playing = false;
var file;
var player;
let interval = 100;
let canvas_width = 4 // canvas will be 1/4 of screen width
var frequencyData;
var loopInterval;
var canvas;
var canvas_ctx;
var freq_canvas;
var freq_ctx;
var freq_bars... |
// Based on <NAME>'s ElizaBot (http://www.masswerk.at/elizabot/)
// ported to node.js by tar 2015.
/**
elizabot.js v.1.1 - ELIZA JS library (N.Landsteiner 2005)
Eliza is a mock Rogerian psychotherapist.
Original program by <NAME> in MAD-SLIP for "Project MAC" at MIT.
cf: Weizenbaum, Joseph "ELIZA - A Computer ... |
function updateScrJrefs() {
scrJrefPre = retrieveSi(srcdoc, "StatShrBrlyConRec", "scrJrefPre");
scrJrefDetail = retrieveSi(srcdoc, "StatShrBrlyConRec", "scrJrefDetail");
scrJrefMap = retrieveSi(srcdoc, "StatShrBrlyConRec", "scrJrefMap");
scrJref1NRelay = retrieveSi(srcdoc, "StatShrBrlyConRec", "scrJref1NRelay");
s... |
/* eslint-disable no-empty */
import { generateUrlWithQueryParams, getBaseUrlAndQueryParams } from '../../network/URLUtilities'
import isNil from 'lodash/isNil'
import isEmpty from 'lodash/isEmpty'
import keys from 'lodash/keys'
import axios from 'axios'
const WMS_VERSIONS = {
V1_3_0: '1.3.0',
V1_1_1: '1.1.1'
}
co... |
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: haykal;
const settings = {
assetsBaseUrl: "https://damongolding.github.io/heartstone-meta-scriptable",
tierFloors: {
T1: 55,
T2: 50,
T3: 45,
T4: 0,
},
... |
const {exec} = require('child_process');
const {expect} = require('chai');
const chalk = require('chalk');
const fs = require('fs');
const path = require('path');
const os = require('os');
let commandPrefix = 'node ./node_modules/.bin/cypress';
if (process.platform === 'win32') {
commandPrefix = 'npx cypress';
}
c... |
var CollInfos = class {
/**
* OO wrapper around the response of db.getCollectionInfos() to avoid calling it multiple times.
* This class stores information about all collections but its methods typically apply to a
* single collection, so a collName is typically required to be passed in as a paramete... |
const isChromium = (typeof browser === "undefined");
const context = {
g_ck: ""
}
/**
* Changes field labels to technical names and the other way round
*/
function switchFieldNames() {
// this is *very* DOM dependent and could break anyday if ServiceNow changes the structure of their pages
let doc = (docu... |
'use strict'
const {
safeParseInt
, safeParseFloat
, safeFirstUpper
, safeTrim
, dateInfoFromString
} = require('hhp-util/string')
const {
identifyPokerType
, identifyLimit
, identifyPost
, identifyActionType
} = require('hhp-util/identifiers')
const {
currency
, blinds
, type
, limit... |
import React, {Component} from 'react';
import {
ScrollView,
KeyboardAvoidingView,
Platform,
View,
SafeAreaView,
} from 'react-native';
import AsyncStorage from '@react-native-community/async-storage';
import Permissions from 'react-native-permissions'
import { connect } from 'react-redux';
import uuidv1 from... |
// Copyright 2017 <NAME>, <NAME>, <NAME>, and <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 appl... |
//COLORS
var Colors = {
red:0xf25346,
white:0xd8d0d1,
brown:0x59332e,
brownDark:0x23190f,
pink:0xF5986E,
yellow:0xf4ce93,
blue:0x4876FF,
green:0x76ff03,
purple:0x7c4dff,
grey:0x212121,
};
//SKINS
var MainColors = [Colors.red, Colors.yellow, Colors.green, Colors.purple, Colors.gr... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _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]; } } }... |
// Set-up canvas
const $canvas = document.querySelector('canvas')
const context = $canvas.getContext('2d')
const center = {x: $canvas.width * 0.5, y: $canvas.height * 0.5} // Center of canvas
const $score = document.querySelector('.score')
const $scoreValue = $score.querySelector('.value')
const $restartPopup = documen... |
// https://www.td.gov.hk/filemanager/en/content_1408/opendata/franchised_and_licensed_ferry_time_and_fare_tables_dataspec_eng.pdf
const cmn = require("../../common");
const moment = require("../../moment");
const UnitValue = require("../../_class").UnitValue;
const BASE_URL = "https://www.td.gov.hk/filemanager/{lang}/c... |
import React from 'react';
import {withRouter} from "react-router-dom";
import {BaseContainer, ButtonContainer, FormContainer, PokeCodeContainer, PlayerContainer, SimpleContainer} from "../../../../helpers/layout";
import Header from "../../../../views/Header";
import styled from "styled-components";
import {
Butto... |
/*
*
* MaterialsView
*
*/
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { injectIntl, FormattedMessage } from 'react-intl'
import muiThemeable from 'material-ui/styles/muiThemeable'
import View from 'components/View'
import { Helmet } fr... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _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.hasOwnPrope... |
import { dispatch as d3_dispatch } from 'd3-dispatch';
import { select as d3_select } from 'd3-selection';
import { drag as d3_drag } from 'd3-drag';
import * as countryCoder from '@ideditor/country-coder';
import { fileFetcher } from '../../core/file_fetcher';
import { osmEntity } from '../../osm/entity';
import { t ... |
/**
* Created by ABC on 2019/9/11.
*/
let location_href_font, location_href_lineH;
let level = {
lineheight: 1,
fontsize: 1
};
let fadeIn_dur = 300;
EPUBJS.reader.LayoutController = function () {
var reader = this;
var rendition = this.rendition;
var $layoutSettingPage = $("#layout-settings-moda... |
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o... |
var OwlDisjointWith = require("./elements/properties/implementations/OwlDisjointWith");
var attributeParser = require("./parsing/attributeParser")();
var equivalentPropertyMerger = require("./parsing/equivalentPropertyMerger")();
var nodePrototypeMap = require("./elements/nodes/nodeMap")();
var propertyPrototypeMap = r... |
'use strict';
const path = require('path');
const os = require('os');
const Terser = require('terser');
const Convert = require('./convert-source-map');
const fs = require('../file-system');
const SourceInclusion = require('./source-inclusion').SourceInclusion;
const DependencyInclusion = require('./dependency-inclusio... |
/*!
* hardware.js
* Copyright (c) 2018-2019, bcoin developers (MIT License)
* https://github.com/bcoin-org/bsigner
*/
'use strict';
const EventEmitter = require('events');
const bledger = require('bledger');
const {LedgerBcoin,LedgerTXInput} = bledger;
const {Device} = bledger.HID;
const assert = require('bsert')... |
import Utils from "../core/Utils.js";
import Manager from "./Manager.js";
import HTMLCategory from "./HTMLCategory.js";
import HTMLOperation from "./HTMLOperation.js";
import Split from "split.js";
/**
* HTML view for CyberChef responsible for building the web page and dealing with all user
* interactions.
*
* @a... |
"use strict";
const Events = require("events"),
stanamelist = require("./stalist.json"),
fuils = {
lpad: (str, len) => {
while (str.length < len) str = "0" + str;
return str;
},
headerLen: 4,
maxEqkStrLen: 60,
maxEqkInfoLen: 120,
binarytime... |
import React, { Suspense, useMemo, useEffect, useState } from 'react';
import { Helmet } from 'react-helmet';
import { useParams, Navigate, Link } from 'react-router-dom';
import Tippy from '@tippyjs/react';
import 'tippy.js/dist/tippy.css'; // optional
import { useSelector, useDispatch } from 'react-redux';
import Ico... |
// HOTELDRUID
// Copyright (C) 2001-2011 by <NAME> (<EMAIL>)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// any later versi... |
/**
* Copyright 2015 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... |
import * as basic from "../scripts/basics.js";
import * as search from "../scripts/search.js";
import * as notify from "../scripts/notify.js";
let VideoDownloadDetailsInterval, show_current_downloads_clicked;
// try to fetch for current-video-downloads if successful send data to currentVideoDownloads function else sh... |
const assert = chai.assert;
const _ = R;
describe('Curry', () => {
it('can be used to partially apply function calls', () => {
function curry(fn) {
const slice = Array.prototype.slice;
/**
* get the passed arguments excluding the function itself
*/
... |
const crypto = require('crypto');
const upgradeFileIdentifier = Buffer.from([0x1E, 0xF1, 0xEE, 0x0B]);
const HttpsProxyAgent = require('https-proxy-agent');
const assert = require('assert');
const crc32 = require('buffer-crc32');
const maxTimeout = 2147483647; // +- 24 days
const imageBlockResponseDelay = 250;
const en... |
const domain = [
"open.meet.switch.ch",
"meet.jit.si",
"www.kuketz-meet.de",
"together.lambda-it.ch",
][0];
let options = {
roomName: 'pandemia-covernment',
// width: 700,
// height: 500,
parentNode: document.querySelector('#meet'),
configOverwrite: {
requireDisplayName: false,
s... |
function BranchData() {
this.position = -1;
this.nodeLength = -1;
this.src = null;
this.evalFalse = 0;
this.evalTrue = 0;
this.init = function(position, nodeLength, src) {
this.position = position;
this.nodeLength = nodeLength;
this.src = src;
return this;
}
... |
/**
* Constructor.
*
* GridScale translates between the indices of cells in the Game Of Life
* matrix and the coordinates of the squares and lines representing cells
* on the board.
*
* @param screenWidth {number} : width, pixels
* @param screenHeight {number} : height, pixels
* @param unitWidth {number} : num... |
/*
* Copyright (c) 2020, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import {DockerError, _} from '../common/index.js';
import DockerUtil from 'dockerode/lib/util.js'... |
import React, {useCallback, useEffect, useState} from 'react';
import Grid from "@material-ui/core/Grid";
import {makeStyles} from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
import CssBaseline from '@material-ui/core/CssBaseline';
import List from '@material-ui/core/List';
import Divide... |
import superagent from 'superagent';
import { matchPath } from 'react-router-dom';
import PropTypes from 'prop-types';
import uuidv1 from 'uuid/v1';
import decode from 'jwt-decode';
import qs from 'querystring';
import moment from 'moment';
import React from 'react';
import BMF from './bmf';
import { toast as $toast }... |
import React, { useState, useContext, useRef } from "react";
import { UserContext } from "../../contexts/user-autenticate";
/*Estilos*/
import "antd/dist/antd.css";
import {
Button,
Form,
Card,
Avatar,
message,
DatePicker,
Input,
Popover,
Empty,
InputNumber,
Popconfirm,
} from "antd";
import {
... |
/*!
* Copyright 2017 - Swiss Data Science Center (SDSC)
* A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
* Eidgenössische Technische Hochschule Zürich (ETHZ).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
Object.defineProperty(exports, "__... |
/* eslint-disable import/no-cycle */
import chalk from 'chalk';
import fs from 'fs';
import path from 'path';
import detectPort from 'detect-port';
import ora from 'ora';
import ip from 'ip';
import axios from 'axios';
import inquirer from 'inquirer';
import {
cleanFolder, copyFolderRecursiveSync, copyFolderConten... |
/********************************************
* Cursor and Selection "singleton" classes
*******************************************/
/* The main thing that manipulates the Math DOM. Makes sure to manipulate the
HTML DOM to match. */
/* Sort of singletons, since there should only be one per editable math
textbox, b... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
'use strict';
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const mkdirp = require('mkdirp');
const {
rootPath,
distPath,
roosterJsDistPath,
mainPackageJson,
nodeModulesPath,
runNode,
err,
packages,
roosterJsUiDistPath,
packagesUI,
get... |
jQuery.fn.centerHorizontally = function () {
this.css("position","absolute");
this.css("top", Math.max(0, $(window).scrollTop() + 80) + "px");
this.css("left", Math.max(0, (($(window).width() - $(this).outerWidth()) / 2) +
$(window).scrollLeft()) + "px");
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.