text stringlengths 3.22k 29.5k |
|---|
var wrtc = window;
//@ts-check
function initEzWebRTC(initiator, config) {
var _this = this;
this.isConnected = false;
this.gotOffer = false;
this.makingOffer = false;
var rtcConfig = { //Default Values
offerOptions: {
offerToReceiveAudio: true, //- depricated - want audio
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var types_1 = require("./types");
var bbox_1 = require("../util/bbox");
var min = Math.min, max = Math.max, round = Math.round;
var Layoutable = /** @class */ (function () {
function Layoutable() {
t... |
import Alpine from "alpinejs/src/index.js";
import { initFrameAndPoll } from "@newswire/frames";
import { onLoad } from "./utils/dom-utils.js";
import { addGAListeners } from "./utils/google-analytics.js";
import * as L from "leaflet";
L.Marker.prototype.options.icon = L.icon({
iconUrl: "/images/marker-icon.png",... |
var fileUtil = new (function() {
this.exportRules = function() {
var gooRules = gooDB.getRules();
var jsonRules = {};
for (var i = 0; i < gooRules.length; i++) {
var gooRule = gooRules[i];
jsonRules[gooRule.getSrcURLLabel()] = gooRule.getValue();
}
var... |
var EventEmitter = require('events');
var events = new EventEmitter();
var nodeCollection = require('../collections/nodes');
var regionsCollection = require('../collections/regions');
var rest = require('../rest');
function loadNetwork(callback) {
api.loading = true;
events.emit('loading');
rest.loadNetwork((d... |
import { Fragment } from 'react'
import h from 'react-hyperscript'
import { connect } from 'react-redux'
import { equals, compose } from 'ramda'
import styled from 'styled-components'
import { OverflowHandler } from './helpers'
const match = (key, opts) => opts[key] ? opts[key]() : h('span', ['UNKNOWN KEY:', key])
co... |
/*
* Extend graph by adding concepts and relations not found in 2nd graph
* @param {graph} target - to be extended
* @param {graph} source - to be taken from
* mutate @param Target
*/
function extendGraph(target, source, rule){
//if in graph ignore
//if not in graph add into graph1
console.log(rule);
console.lo... |
import React from 'react';
import Selection from 'react-ds';
import './Main.css';
import {
CalendarOutlined,
CameraOutlined,
ClockCircleOutlined,
PictureOutlined,
PlusOutlined,
UploadOutlined,
} from '@ant-design/icons';
import { Layout, Menu, Radio, Tree } from 'antd';
import moment from 'moment';
import... |
var req = chrome.extension.getBackgroundPage().req;
var search = chrome.extension.getBackgroundPage().search;
var maxitems = localStorage.getItem("max_results");
function process_results(request) {
var root = request.responseXML.getElementsByTagName('rss')[0];
var channels = root.getElementsByTagName("channel");
... |
import * as form from "./requestForm.js";
import {todoTemplate} from "./todoItemTemplate.js";
const BASE_URL = 'https://js-todo-list-9ca3a.df.r.appspot.com';
const userTitle = document.getElementById("user-title");
const userList = document.getElementById("user-list");
const userCreateButton = document.querySelector("... |
/*
Copyright 2018 OmiseGO Pte Ltd
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, softwar... |
import React, { Component } from "react";
import {toastr} from 'react-redux-toastr';
import {
Badge,
Button,
ButtonDropdown,
Card,
CardBody,
CardFooter,
CardHeader,
Col,
Collapse,
DropdownItem,
DropdownMenu,
DropdownToggle,
Fade,
Form,
FormGroup,
FormText,
FormFeedback,
Input,
Inpu... |
const path = require('path');
const fs = require('fs').promises;
const IdGenerator = require('./idGenerator');
const walk = require('./utils').walk;
const idGenerator = new IdGenerator();
const getRegExpToReplace = (c) => new RegExp(`((?<=(\\s(class|id)(="|:)(.*)))\\b${c}\\b(?=([^?]*)"))|((?<=\\.)\\b${c}\\b)`, 'g');
... |
"use strict";
var prime = require('prime'),
Emitter = require('prime/emitter'),
Bound = require('prime-util/prime/bound'),
Options = require('prime-util/prime/options'),
zen = require('elements/zen'),
$ = require('../utils/elements.utils.js'),
storage = require('prime/map')(),
... |
// import {TreeNode, makeTree} from './basic';
const Basic = require("./basic");
/**
* 542. 01 Matrix
* @param {number[][]} matrix
* @return {number[][]}
*/
var updateMatrix = function(matrix) {
let result = [];
let row = matrix.length;
if (row == 1) {
return matrix;
}
let column = matrix[... |
setInterval(iterateSimulation);
setInterval(updateUI, 100);
const ACTIVATIONS_PER_TICK = 100; // This is the 'throttle' - set this lower for old/mobile cpus
const ANGEL_MAT = 6;
const ANGEL_POW = 14;
const SCYTHEAN_MAT = 6;
const SCYTHEAN_POW = 17;
const JUG_DEF = 10;
const JUG_ARM = 20;
const JUG_HALF_ARM = Math.... |
// #region Modules
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import FAIcon from 'react-fontawesome'
import { withRouter } from 'react-router'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
// #endregion
import { Avatar } from 'components'
import {
... |
const accepts = require('accepts');
const express = require('express');
const promClient = require('prom-client');
const UrlValueParser = require('url-value-parser');
const url = require('url');
const os = require('os');
const onFinished = require('on-finished');
const now = require('performance-now');
const _ = requir... |
/***********************************************************************
* _
* _____ _ ____ _ |_|
* | _ |/ \ ____ ____ __ ___ / ___\/ \ __ _ ____ _
* | |_| || | / __ \/ __ \\... |
'use strict';
const chalk = require('chalk');
const fs = require('fs');
const debug = require('debug')('generator-alfresco:module-add-source');
const path = require('path');
const constants = require('generator-alfresco-common').constants;
const filters = require('generator-alfresco-common').prompt_filters;
const valid... |
// Includes
var util = require('util'),
twitter = require('twitter'),
sentimentAnalysis = require('./sentimentAnalysis'),
db = require('diskdb'),
fs = require('fs');
var stopWordsFile = fs.readFileSync('logic/stopWords.js', 'utf8'),
stopWords = stopWordsFile.split(",");
db = db.connect('logic/db', ['sentiments']... |
import './imdb-bidirectional-lstm.css';
import axios from 'axios';
import debounce from 'lodash/debounce';
import random from 'lodash/random';
import findIndex from 'lodash/findIndex';
import ops from 'ndarray-ops';
import Tensor from '../../../src/Tensor';
const MODEL_FILEPATHS_DEV = {
model: '/demos/data/imdb_bid... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import {
addExtensionsToContext,
createFramebufferInfo,
createTexture,
getContext,
isWebGL2,
resizeFramebufferInfo,
setTextureFromArray,
} from "twgl.js";
import { isArray, isString } from "vega-util";
import { isDiscrete, isDiscretizing, isInterpolating } from "vega-scale";
import {
cr... |
//GESTIONE SINGOLO
// Set up our HTTP request
var xhrDetail = new XMLHttpRequest();
var datiGioco = null, json_datiGioco = null;
// Setup our listener to process completed requests
xhrDetail.onload = function () {
// Process our return data
if (xhrDetail.status >= 200 && xhrDetail.status < 300) {
// ... |
const senha = require('./info2');
const basesenha = require('./info1')
const puppeteer = require("puppeteer");
const sequelize = require('sequelize');
const Sequelize = new sequelize('chatamino', 'root', basesenha(), {
host: 'localhost',
dialect: 'mysql'
});
var mensagens = Sequelize.define('chats', {
usuario: {
... |
import React, { useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { Button, Dropdown, Form, Input, Label, Menu } from 'semantic-ui-react';
import { Link, withRouter } from 'react-router-dom';
import { logout } from '../actions/userActions';
const Header = ({ history }) => {
cons... |
var address, map, infoWindow;
var markers = [];
function clearMarkers() {
for (let i = 0; i < markers.length; i++) {
markers[i].setMap(null);
}
markers = [];
}
/*
* Get the elevation at the coordinates of a latlng object using
* the google maps elevation service. func is a callback function tha... |
function build_menu(tp,opc)
{
var fg_f = new Image;
fg_f.src = figuras[0];
var bm_f = document.getElementById('build-menu');
var dv_f = document.createElement('div');
dv_f.style.position = "relative";
dv_f.setAttribute('id','dv_princ');
var tb_f = document.createElement('table');
tb_f.setAttri... |
const TABLE_NAME = 'wishlistdata',
NOSQL_NAME = 'wishlist';
NEWSCHEMA('PropertyWishlist').make(function(schema) {
schema.define('id', 'UID');
schema.define('useremail', 'Email');
schema.setSave(function($) {
var model = $.clean();
var isUpdate = !!model.id;
var user = $.ip;
var nosql = NOSQ... |
const rx = require('rx');
const _ = require('underscore-plus');
const { RTMClient, WebClient } = require('@slack/client');
const TexasHoldem = require('./texas-holdem');
const MessageHelpers = require('./message-helpers');
const PlayerInteraction = require('./player-interaction');
const WeakBot = require('../ai/weak-... |
/***********************************************************************
* PhidgetsServer Class
* by <NAME>, Outermost Software, LLC, 2019
* NodeJs controller to communicate with Phidgets rover
* Usage in calling script (app.js):
* phidget.phidgetServer();
* It communicates with app.js asynchronously using the pu... |
#!/usr/bin/env node
var xpath = require('xpath');
var dom = require('xmldom').DOMParser;
var http = require('http');
function lgtv(config) {
var host = config.host || '127.0.0.1';
var port = config.port || 8080;
this.agent = null;
this.debug = true;
this.min_volume = 2
this.false_run = false... |
import React, { useState, useEffect, Component } from "react"
import styled from "styled-components"
import { graphql, useStaticQuery, Link } from "gatsby"
import Img from "gatsby-image"
import PhoneInput from 'react-phone-input-2'
import 'react-phone-input-2/lib/material.css'
import { Container } from "../../global"
... |
"use strict";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.pus... |
/*
* Copyright (c) 2017, Two Sigma Open Source
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of... |
// import { createSecureServer } from "http2";
const serverPort = 5000;
const serverAddress = `http://localhost:${serverPort}`;
const basicUrl = `${serverAddress}/chat`;
const userInput = document.querySelector('.msg-input input');
const typeInterval = 1000;
const messageContainer = document.querySelector('.msg... |
/* eslint no-alert: 0 */
'use strict';
var _ = require('lodash');
var StateMachine = require('javascript-state-machine');
var lastPageData;
var navigateCallback;
// Incremented request ID
var requestID = 0;
var fsm = StateMachine.create({
initial: 'IDLE',
error(eventName, from, to, args, errorCode, errorMessag... |
/**
* Created by I076324 on 9/23/2015.
*/
function getSortedTagArray(slicedUniqueTagIdArray,slicedUniqueTagObjectArray){
return Tag
.find({select:['tagID','tagName']})
.where({tagID:slicedUniqueTagIdArray,active:true})
.then(function(tagArray){
//sort tagArray based on userInteractionArray[i].cre... |
import React from 'react';
import InputField from './forms/input_field';
import PredictedExpenses from './forms/predicted_expenses';
import { numberToCurrency, prettyServerErrors } from '../utils/helpers';
import {
createExpense,
updateExpense,
destroyExpense,
predictionsExpense,
} from '../data/BudgetItemExpen... |
import { ParamsParser } from './parsers/params-parser.js';
import { CommentParser } from './parsers/comment-parser.js';
// TODO: Use the @bookshop/helpers package for name normalization
const normalizeName = name => name.replace(/\/[\w-]+\..+$/, '').replace(/\..+$/, '');
const parseParams = params => params ? (new Par... |
const { expectEvent, expectRevert } = require('@openzeppelin/test-helpers')
const utils = require('../utils/utils')
const constants = require('../utils/constants.js')
const timeUtils = require('../utils/time.js')
var namehash = require('eth-ens-namehash')
contract('AuthereumEnsResolver', function (accounts) {
cons... |
var numCellsSquare = 15
var numCellsWide = numCellsSquare;
var numCellsHigh = numCellsSquare;
var cellWidthPx = 32;
var cellHeightPx = 32;
var columnGapPx = 5;
var imgWidth = cellWidthPx - 2;
var imgHeight = cellHeightPx - 2;
var leftX = 0;
var topY = 0;
var numCells = numCellsWide * numCellsHigh;
var numTil... |
const generateScriptBtn = document.getElementById("generateScriptBtn");
generateScriptBtn.addEventListener("click", exportScript);
const downloadScriptBtn = document.getElementById("downloadScriptBtn");
const copyScriptBtn = document.getElementById("copyScriptBtn");
const defaultScriptFormat = "sourceCoder";
let script... |
/*
Copyright 2020 Idemia Identity & Security
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... |
var transformerBase;
var sparqlEndpoint;
var transformerRegistry;
$(document).ready(function () {
setURIParameters(fillInputs);
var resultDiv = $("#resultDiv");
resultDiv.hide();
function getCustomName(){
var customName = $.trim($("#title").val());
return !isEmpty(customName) ? customName : "Lite... |
/* istanbul ignore file */
/**
* @file define dom functions
* @author <EMAIL> (wangyisheng)
*/
import {fn} from '../../util'
import css from '../../util/dom/css'
import platform from '../../util/platform'
import {MIP_IFRAME_CONTAINER} from '../const/index'
import {transitionEndEvent, animationEndEvent} from './fea... |
var React = require('react');
var PropTypes = React.PropTypes;
var Router = require('react-router-ie8');
var ImageListItem = require('./image-item.js');
var Api = require('../config/api.js');
var HallDetail = React.createClass({
mixins: [Router.State], //我们需要知道当前的path params 等等
getInitialState: function() {
... |
import $ from "jquery";
import _ from "lodash";
import React, { Component } from "react";
import moment from "moment";
import "moment/locale/zh-cn";
import classNames from "classnames/bind";
import querystring from "querystring";
import styles from "./styles/navigator.css";
import appLayout from "SharedStyles/appLayout... |
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { useTranslation } from 'react-i18next';
import {
applicationFormService,
} from '../../../services/applicationForm/applicationForm.service';
import Stages, { langObject, } from '../../../pages/createApplicationForm/components/util';
im... |
const printImages = {
frontMatte: 'images/inside.png',
frontGloss: 'images/inside-foil.png',
backMatte: 'images/outside.png',
backGloss: 'images/outside-foil.png',
frontMatteFeel: 'images/inside-foil.png',
frontGlossFeel: 'images/inside-foil.png',
backMatteFeel: 'images/outside-foil.png',
backGlossFeel: 'image... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
/**
* Copyright 2000-2021 Nokia
*
* Licensed under the Apache License 2.0
* SPDX-License-Identifier: Apache-2.0
*
*/
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { entitiesSelectors, entitiesOperations } from '../../../state/d... |
var Promise = require("bluebird");
var uuid = require("uuid");
var AppServiceRegistration = require("matrix-appservice-bridge").AppServiceRegistration;
var Cli = require("matrix-appservice-bridge").Cli;
var Bridge = require("matrix-appservice-bridge").Bridge;
var MatrixUser = require("matrix-appservice-bridge").Matrix... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var calendar_1 = tslib_1.__importDefault(require("@atlaskit/calendar"));
var lodash_pick_1 = tslib_1.__importDefault(require("lodash.pick"));
var calendar_2 = tslib_1.__importDefault(require("@atlaskit/icon/glyp... |
// import ip from "ip";
const {spawn} = require('child_process');
const {log} = require('../log');
const {hap} = require('./hap');
const {BlinkCamera} = require('../blink');
const {CameraController, SRTPCryptoSuites, StreamRequestTypes, ResourceRequestReason} = hap;
const {
// doesFfmpegSupportCodec,
// encode... |
'use strict';
var assert = require('assert'),
app_cfg = require('../config/app'),
entity_cfg = require('../config/entity'),
server = require('../src/server'),
utils = require('../src/utils'),
request = require('request'),
should = require('should'),
request = require('request'),
_ = requ... |
'use strict';
const assert = require('assert');
const { createPublicKey } = require('crypto');
const jwkAllowedAlgorithms = require('jwk-allowed-algorithms');
const jwkToPem = require('jwk-to-pem');
const jws = require('jws');
const request = require('superagent');
const AuthToken = require('brightspace-auth-token')... |
import React, { Component } from "react";
import {
EuiPanel,
EuiPageContent,
EuiPageContentHeader,
EuiPageContentHeaderSection,
EuiPageContentBody,
EuiIcon,
EuiProgress,
EuiTitle,
EuiSpacer,
EuiFlexGrid,
EuiText,
EuiCard,
EuiFlexItem,
EuiFlexGroup,
EuiButton,
EuiFieldText,
EuiCodeBloc... |
'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProp... |
var fetchImpl = require('./adapter/fetch-node')
var Response = require('./adapter/response-node')
var _require = require('./adapter/files-node')
var loadFile = _require.loadFile
var saveFile = _require.saveFile
var VCR_MODE = typeof process !== 'undefined' ? process.env['VCR_MODE'] : null
var DEBUG = typeof process !... |
/* eslint-disable no-sync */
// todo: make optional configs uniform
'use strict';
// core
const nodeFs = require('fs');
// modules
const R = require('ramda');
const { fromCallback } = require('funk-lib/async');
// @async string -> fs -> object
const stat = R.curry((filepath, fs) => fromCallback((cb) => fs.stat(filep... |
'use strict';
const yargs = require( 'yargs' );
const isProductionMode = (yargs.argv.mode === 'production');
if( isProductionMode ) {
console.log( '☢︎🐑 is production mode' );
require( 'dotenv' ).config({
path: `${ __dirname }/credentials/beautifulRiver3/production/.env`
});
process.env.... |
'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 ? "symbol" : typeof obj; };
/**
* 每位工程师都有保持代码优雅的义务
* Each engineer has a duty to keep th... |
/*Copyright 2021 <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 writing, software
distribut... |
'use strict';
const { app, BrowserWindow, ipcMain } = require('electron');
const fs = require('fs');
const express = require('express'); //익스프레스 서버를 위한
const http = require('http');
const path = require('path');
const socketIo = require('socket.io');
const request = require('request');
const qs = require('querystri... |
$(document).ready(function(){
/*$('.teacher_list>li>div').hover(function(){
$(this).css({"border-color":"#D84634","border-width":"2px"});
$(this).find(".gotoNext").removeClass("gotoNext").addClass("");//.attr("src","${cdn}/images/pc-17.jpg");
},function(){
$(this).css({... |
import React, { Component } from 'react';
import { NavLink } from 'react-router-dom';
import { injectIntl, FormattedMessage } from 'react-intl';
import classnames from 'classnames';
import Joi from 'joi';
const PASSWORD_REGEXP = /^(?=(.*[a-z])+)(?=(.*[0-9])+)[0-9a-zA-Z!\"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]{6,}$/;
co... |
/*
* Copyright 2018 - 2021 Swiss Federal Institute of Technology Lausanne (EPFL)
*
* 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.
*
* U... |
import { phishingCheckUrl, getPhishingUrls, setPhishingUrl } from './popup/utils/phishing-detect';
import { checkAeppConnected, removeTxFromStorage, detectBrowser, parseFromStorage, detectConnectionType } from './popup/utils/helper';
import WalletController from './wallet-controller'
import Notification from './notific... |
/**
* The Strider (web) app.
*/
var Backchannel = require('./backchannel')
, common = require('./common')
, express = require('express')
, EventEmitter = require('events').EventEmitter
, everypaas = require('everypaas')
, logging = require('./logging')
, middleware = require('./middleware')
, mongoose... |
/*
* Copyright (c) 2012 Capgemini Technology Services (hereinafter “Capgemini”)
*
* License/Terms of Use
*
* Permission is hereby granted, free of charge and for the term of intellectual property rights on the Software, to any
* person obtaining a copy of this software and associated documentation files (the "So... |
import React from 'react';
// Shoelace components
import '@shoelace-style/shoelace/dist/themes/base.css';
import SlButton from '@shoelace-style/react/dist/button';
import SlSelect from '@shoelace-style/react/dist/select';
import SlMenuItem from '@shoelace-style/react/dist/menu-item';
import SlTooltip from '@shoelace-s... |
"use strict";
/**
* @license
* Copyright 2018 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* =============================================================================
*/
var __extends = (this &... |
const moment = require("moment")
const socket = require("socket.io-client")("https://bug-center.tk")
socket.emit('connect',socket)
socket.on('connected', function(){
});
const talkedRecently = new Set();
module.exports = class {
constructor(client) {
this.client = client;
}
async run(message) {
... |
/*
Copyright (c) 2021 NCC Group Security Services, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditio... |
/**
* Module dependencies.
*/
var passport = require('passport')
, url = require('url')
, util = require('util')
, utils = require('./utils')
, OAuth2 = require('oauth').OAuth2
, InternalOAuthError = require('../errors/internaloautherror');
/**
* `OAuth2Strategy` constructor.
*
* The OAuth 2.0 authenti... |
function addAssetToCanvas(nameModel3D, assetid, path, objPath, objID, mtlPath, mtlID,
categoryName, categoryID, diffImages, diffImageIDs, image1id,
doorName_source, doorName_target, sceneName_target, sceneID_target, archaeology_penalty,
hv_pe... |
// const inputFile = '../inputs/17-input.txt';
const inputFile = '../inputs/17-example.txt';
const processFile = require('../common/file-processor');
/*
AFTERTHOUGHTS: So, here I was trying to merge the dimensions into a one-dimensional string and then I could use math to figure out spacial measurements
--- it didn't ... |
var uid = 0;
function nextUid() {
return ++uid;
}
/**
* Checks if `obj` is a window object.
*
* @private
* @param {*} obj Object to check
* @returns {boolean} True if `obj` is a window obj.
*/
function isWindow(obj) {
return obj && obj.window === obj;
}
/**
* @ngdoc function
* @name angular.isString
* ... |
const fs = require('fs-extra');
const path = require('path');
const webpack = require('webpack');
const DefaultWebpackConfig = require('webpack-config').default;
// const ExtraWatchWebpackPlugin = require('extra-watch-webpack-plugin').default
const KootI18nPlugin = require('../plugins/i18n');
const DevModePlugin = req... |
var asp = require('bluebird').promisify;
var Promise = require('bluebird');
var glob = require('glob');
var path = require('path');
var url = require('url');
var getLoadDependencies = require('./trace').getLoadDependencies;
var fromFileURL = require('./utils').fromFileURL;
var toFileURL = require('./utils').toFileURL... |
import React from "react";
import PropTypes from "prop-types";
const UndrawMapDark = props => (
<svg
style={{height:props.height, width:'100%'}}
className={props.class}
id="26582634-69ec-4123-8434-e4d812f57593"
data-name="Layer 1"
xmlnsXlink="http://www.w3.org/1999/xlink"
viewBox="0 0 1142.05... |
import classnames from 'classnames';
import CustomPropTypes from '../utils/CustomPropTypes/CustomPropTypes';
import GridManager from '../utils/gridManager/gridManager';
import keycode from 'keycode';
import PropTypes from 'prop-types';
import shortid from 'shortid';
import React, { useCallback, useRef, useState } from ... |
import types from '../mutation-types'
import { createHelpers } from 'vuex-map-fields'
// import { getLicenseUsersListFromApi } from '../../api/license'
const getDefaultState = () => {
return {
step: 1,
license_search: {
firstName: null,
lastName: null,
license_no: null,
postCode: nul... |
var _ = require("lodash");
var fs = require("fs");
var path = require("path");
var async = require("async");
var fileUrl = require("file-url");
var leveldown = require("leveldown");
var krl_stdlib = require("krl-stdlib");
var RulesetLoader = require("./RulesetLoader");
var PicoEngineCore = require("pico-engine-core");
... |
function modaldevfaultCtl($timeout, $localStorage, notify, $log, $uibModal,
$uibModalInstance, $scope, meta, $http, $rootScope, DTOptionsBuilder,
DTColumnBuilder, $compile) {
$scope.item = {};
$scope.data = {};
$scope.data.mark = "";
$scope.data.reason = "";
$scope.dzconfig = {
url : 'fileupload.do',
max... |
const city = ctx => {
const keyboard = ctx.db.city.reduce((total, id, index) => {
let key = {}
key = index == 12 ? {
text: ctx.db.castle,
callback_data: 'city:castle'
} : {
text: ctx.items[id.toString()].icon,
callback_data: `city:inv:${index}`
}
total[total.length - 1].push(key)
if (total[tot... |
'use strict'
let bunyan = require('bunyan');
let mkgulogger = bunyan.createLogger({
name: 'iris-v2',
streams: [{
level: 'info',
type: 'rotating-file',
path: './logs/mkgu/iris.log',
period: '1d'
}]
});
let Curl = require('node-libcurl')
.Curl;
let request = require('request-promise');
let fs = Promise.pro... |
var domainExp = /(\/\/www\.|\/\/)(((?!\/).)*)\//
var presetColors = new Object();
var charts = [];
function quicksort(arr) {
if (arr.length <= 1) {
return arr;
} else {
var pivot = arr[0];
var less = [];
var more = [];
for (var i=1; i<arr.length; i++) {
if (arr[i].visits < pivot.visits) {
less.push... |
const elements = {
badges: document.querySelector('#badges'),
username: document.querySelector('#username'),
text: document.querySelector('#text'),
highlightContainer: document.querySelector('#highlight-container'),
source: document.querySelector('#source'),
audio: document.querySelector('#audio')
}
const BADGES_... |
/*
VRT - Copyright © 2017 <NAME>
All Rights Reserved
*/
import {shrink} from "./shrink.js";
import {random} from "./random.js";
import {Box} from "./box.js";
import * as d3 from 'd3';
import $ from 'jquery';
const boxes = [];
export function toolbar(options) {
var selection, box;
options = options ... |
const {parse} = require("graphql/language");
const {resolve} = require("path");
const fs = require("fs");
const partials = require("./partials");
class Generator {
constructor({input, output, outputTs}) {
this.typeOrder = [
"EnumTypeDefinition",
"InputObjectTypeDefinition",
... |
var locale = require("locale");
/* jshint esversion: 6 */
const big = g.getWidth() > 200;
const timeFontSize = big ? 4 : 3;
const dateFontSize = big ? 3 : 2;
const smallFontSize = big ? 2 : 1;
const font = "6x8";
const xyCenter = g.getWidth() / 2;
const yposTime = 50;
const yposDate = big ? 85 : 75;
const yposTst = bi... |
/**
* @fileOverview For the initial install of Lambda function NPM packages.
*
* This handles:
*
* - NPM installation.
* - Copying modules to sensible places.
* - Wrapping the handler function in Lambda Complex code.
*/
// Core.
var childProcess = require('child_process');
var path = require('path');
var util ... |
import React, { useMemo, useEffect, useCallback } from 'react';
import PropTypes from 'prop-types';
import { get, getOr, set, add } from 'unchanged';
import { useSetState } from 'ahooks';
import { Row, Col, Empty, Button, Icon } from 'antd';
import { VegaLite } from 'react-vega';
import { useTranslation } from 'react-... |
const getConfig = require('./utils').getConfig;
const getTestRoot = require('./utils').getTestRoot;
const Codecept = require('../codecept');
const container = require('../container');
const methodsOfObject = require('../utils').methodsOfObject;
const output = require('../output');
const { toTypeDef } = require('../pars... |
var EventHandlerRegistration = Class.create({
initialize: function(element, event, handler){
this.element = element;
this.event = event;
this.handler = handler;
},
remove: function(){
this.element.stopObserving(this.event, this.handler)
}
});
var Widget = Class.create({
initialize: function(pare... |
const parse = require("csv-parse/lib/sync");
import clone from "clone";
import defaultState from "../state.js";
import masterdata from "../masterdata/masterdata.js";
const green = "green";
const red = "red";
/*
var gameanalytics = require("gameanalytics");
const analytics = gameanalytics.GameAnalytics;
analytics.ini... |
import Highcharts from 'highcharts';
import { limitNumberOfDecimals } from '../shared/helpers';
export function generateSeriesForHeatmap(options, diagonalized) {
const width = Math.round(Math.random() * 8) + 2;
const height = diagonalized ? width : Math.round(Math.random() * 8) + 2;
const data = [];
const xCa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.