text stringlengths 3.22k 29.5k |
|---|
/*
script to find roads match between OS and OSM datasets by comparing
Name and if a match found the coordinates are compared to verify the match
then the overlap section length is compared with both roads from OS & OSM
to reduce the posibility of error.
The code extended to compare oneway roads and find directionality... |
import dayjs from "dayjs";
import Layout from "../components/Layout";
import ky from "ky";
import * as React from "react";
import classnames from "classnames";
import prettyBytes from "pretty-bytes";
import config from "../config";
import useAccountsApi from "../services/useAccountsApi";
import { isFreeTier, isPaidTier... |
var current = 0; //当前
var fadeimg = 0; //原选择的图片
var nonceidx = 0; //数组位于图片总数组中的位置
var along, next;
var objTimer;
var ie = navigator.userAgent.toLowerCase().indexOf('ie'); //判断是否IE
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
//获取一个对象
function getEById(str) {
if (document.getElementBy... |
var ui = require('ui'),
utils = require('utils'),
lib = require('lib'),
types = require('types');
var parsers = [],
isArray = Array.isArray,
lastParsedContols = null,
controls = ui.controls,
elements = ui.elements,
hasOwn = Object.prototype.hasOwnProperty;
var addMountPoint = function(params) {
var ... |
/* eslint-disable linebreak-style */
// VARIABILA GLOBALA
//Atentie! Particularitate server strapi: rutele daca nu se mentioneaza "_limit=xxx" vor returna doar primele 100 de rezultate.
//Tebelul prettabelars contine in acest moment 4997 inregistrari din care pentru RE sunt in acest moment 2348.
//rutaPretTabelar va ... |
jQuery( document ).ready(function( $ ) {
"use strict"
/*-----------------------------------------------------------------------------------*/
/* LOADER
/*-----------------------------------------------------------------------------------*/
$("#loader").delay(500).fadeOut("slow");
/*------------------------------------... |
import "./styles/App.css";
import twitterLogo from "./assets/twitter-logo.svg";
import React, { useEffect, useState } from "react";
import { ethers } from "ethers";
import myEpicNft from "./utils/MyEpicNFT.json";
// Constants
const TWITTER_HANDLE = "_buildspace";
const TWITTER_LINK = `https://twitter.com/${TWITTER_HAND... |
import React from "react";
import s from "../tables/static/Static.module.scss";
import {toast} from "react-toastify";
import {Badge, Col, Progress, Row, Table} from "reactstrap";
import Widget from "../../components/Widget";
import easyinvoice from 'easyinvoice';
class OrderPage extends React.Component {
construc... |
import { spawn } from 'child_process'
import Web3 from 'web3'
import FactoryContractInteractor from 'safechannels-contracts/src/js/FactoryContractInteractor'
import axios from 'axios'
import path from 'path'
import { MockStorage } from '../mocks/MockStorage'
import SmartAccountSDK from '../../src/js/impl/SmartAccountSD... |
// pages/newReg/index.js
const app = getApp();
const AV = app.AV;
Page({
/**
* 页面的初始数据
*/
data: {
displayName: '',
date: '2018-01-01',
time: '00:00',
timestamp: '',
delayIndex: '0',
delayArr: [
3,
5,
10,
15,
30,
],
signCode: '',
location: {
... |
/**
* Adds resizable geo rect to map
*
* @param {H.Map} map A HERE Map instance within the application
* @param {H.mapevents.Behavior} behavior Behavior implements default interactions with map
*/
function createResizableRect(map, behavior) {
var rect = new H.map.Rect(
new H.geo.Re... |
import {restaurants} from "./InitData.js";
import {Restaurant} from "./Restaurant.js";
//import {List} from "./List.js";
class GMap {
/**
* @param {number} lat - latitude of object
* @param {number} lng - longitude of object
*/
constructor(lat, lng) {
this.map = null;
this.lat = ... |
const Joi = require("@hapi/joi");
const Hoek = require("@hapi/hoek");
const Path = require("path");
const JSONDeRef = require("json-schema-ref-parser");
const SwaggerHAR = require("swagger-har");
const Base = require("../lib/base");
const Text = require("../lib/text");
const Themes = require("../lib/themes");
const Nu... |
let resizeHandlers = [];
export class App {
constructor() {
// IE mode
this.isIE8 = false;
this.isIE9 = false;
this.isIE10 = false;
this.$body = $('body');
this.$html = $('html');
// Core handlers
this.handleInit(); // initialize core
this.h... |
var s_Arial_fnt = "res/Art/Arial.fnt";
var s_Arial_png = "res/Art/Arial.png";
var s_achievement_50 = "res/Art/achievement_50.png";
var s_addbomb = "res/Art/addbomb.png";
var s_bg = "res/Art/bg.jpg";
var s_bomb = "res/Art/bomb.png";
var s_bomb40 = "res/Art/bomb40.png";
var s_bomb64 = "res/Art/bomb64.png";
var s_bomb_ico... |
import * as React from "react";
import {Field, reduxForm} from "redux-form/lib/immutable";
import {Button, Text, View} from "native-base";
// import TimePicker from "react-native-24h-timepicker";
import TimePicker from "../../../Basic/Modal/TimePicker";
import {appStyles} from "../../../../../assets/styles/app_styles";... |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import {
GET_COMPANIES,
ADD_FAVORITE,
REMOVE_FAVORITE,
SET_NUM_FAVORITES,
UPDATE_NOTES,
EDIT_COMPANY,
SEARC... |
'use strict'
import React from 'react';
import {
View,
Text,
TouchableOpacity,
TouchableHighlight,
Image,
StyleSheet,
RefreshControl,
ScrollView,
Platform,
TextInput,
Button,
AsyncStorage,
Dimensions,
Alert,
} from 'react-native';
import Modal from 'react-native-modalbox';
import * as Confi... |
import React from "react";
import PropTypes from 'prop-types'
import { Button, Select, Input, Icon, Modal, Accordion } from 'semantic-ui-react'
import checkResponseStatus from "../utils/checkResponseStatus";
import checkJsonResponse from "../utils/checkJsonResponse";
class DeviceInitForm extends React.Component {
s... |
$("button.quizLauncher").on("click", function () {
$("ul#quizLauncherList").hide();
$("div#container").html("");
getQuiz($(this).attr("id"));
});
function getQuiz(idOfQuizButton) {
console.log("getQuiz was called. idOfQuizButton: " + idOfQuizButton);
for (let i = 0; i < quizzes.length; i++) {
... |
const returnablesBatch = cur_frm.fields_dict;
const returnablesTable = returnablesBatch.bottles_moved.grid;
const toCust = '> Cust';
const toStock = '> Stock';
const fromCust = 'Cust >';
const fromStock = 'Stock >';
const custCust = `${fromCust}${toCust}`;
const custStock = `${fromCust}${toStock}`;
const stockCust = ... |
/**
* Event handler for bots.
*
* @author <NAME> <<EMAIL>>
* @license MIT
* @version 2.0.0
**/
'use strict';
// npm modules
const debug = require('debug')('shinojs:events')
const natural = require('natural')
const _ = require('lodash')
const randStr = require('random-string')
const analysis = ... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import withRoot from './withRoot';
import CloseIcon from '@material-ui/icons/Close';
import IconButton from '@material-ui/core/IconButton';
import Button from '@material-ui/core/Button';
import Dialog f... |
import React, { Component } from 'react'
import * as THREE from './three/Three'
import { OrbitControls } from './three/jsm/controls/OrbitControls'
import { STLLoader } from './three/jsm/loaders/STLLoader'
import { ThreeMFLoader } from './three/jsm/loaders/3MFLoader'
import { kMaxLength } from 'buffer'
import './style.c... |
"use strict";
/**
* Module dependencies.
*/
var express = require('express')
, routes = require('./routes')
, user = require('./routes/user')
, http = require('http')
, path = require('path')
, async = require('async');
var app = express();
app.configure(function(){
app.set('port', process.env.PORT |... |
const DNS = {
lookup: require('util').promisify(require('dns').lookup),
reverse: require('util').promisify(require('dns').reverse)
};
const localhost4 = "127.0.0.1";
// const localhost6 = "::1";
class Host {
constructor(id) {
this.id = id;
this.tenants = {};
}
}
module.exports = class Domains {
constructor(... |
function showModal(){
$('#jump_block').css('top', window.pageYOffset + 50);
$('#jump_block, #blackout').fadeIn(200);
}
function showCertificateModal(img){
//$('#jump_block').css('top', window.pageYOffset + 50);
$('#jump_block, #blackout').fadeIn(200);
console.log(img);
$('#blackout').css({'z-ind... |
/*
* SPDX-Copyright: Copyright (c) Capital One Services, LLC
* SPDX-License-Identifier: Apache-2.0
* Copyright 2016 Capital One Services, 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 Licen... |
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.defineProperty(target, des... |
import React from 'react';
import{ useState, useEffect } from 'react';
import Avatar from '@material-ui/core/Avatar';
import AddBoxRoundedIcon from '@material-ui/icons/AddBoxRounded';
import Fab from '@material-ui/core/Fab';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { lighten, makeStyles } fro... |
var File = Java.type('java.io.File')
var Files = Java.type('java.nio.file.Files')
var JString = Java.type('java.lang.String')
var Paths = Java.type('java.nio.file.Paths')
var StandardCharsets = Java.type('java.nio.charset.StandardCharsets')
var System = Java.type('java.lang.System')
var Base64 = Java.type('java.util.Ba... |
import { useAmplifyAPIRequestRecycler, getDetailErrorMessageFromServerless } from "./fetchUtilities";
import { useDispatch, useSelector } from "react-redux";
import { useRouteMatch } from "react-router-dom";
import { useEffect } from "react";
import {
setAnnotationsIsLoadingAction,
activateAnnotationAction,
fetch... |
"use strict";
/**
* This file takes care of the Search button and delete Button
* Search button: upon clicking the keyword response is fetched
* from server and displayed on the HTML page.
*
* Delete button: appears once the checkbox beside the keyword is checked
* upon clicking it the content and the keyword its... |
const gulp = require('gulp'),
// removeHtmlComments = require('gulp-remove-html-comments'),
stripComments = require('gulp-strip-comments'),
watch = require('gulp-watch'),
plumber = require('gulp-plumber'),
prefixer = require('gulp-autoprefixer'),
uglify = require('gulp-uglify'),
sass = requi... |
'use strict';
var url = require('url');
var _ = require('lodash');
var Promise = require('bluebird');
var downloader = require('../downloader');
module.exports.apiConfig = {};
module.exports.searchConfig = {};
module.exports.osExplorerUrl = null;
module.exports.osConductorUrl = null;
module.exports.defaultSettingsUrl... |
'use strict';
/**
* Pterodactyl - Daemon
* Copyright (c) 2015 - 2017 <NAME> <<EMAIL>>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitati... |
import * as tf from '@tensorflow/tfjs-core';
/**
* kmeans
* @param {Array<Array>} data 2D data to run kmeans on. shape = [nInstances, nFeatures]
* @param {Number} nClusters
* @param {Boolean} transposeInput if the input data array shape is [nFeatures, nInstances], use transposeInput = true
* @param {Number} maxIt... |
"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... |
const DomainResource = require('./DomainResource');
const Identifier = require('./Identifier');
const CodeableConcept = require('./CodeableConcept');
const Reference = require('./Reference');
const Quantity = require('./Quantity');
const Immunization_Practitioner = require('./Immunization_Practitioner');
const An... |
import React, { PureComponent } from 'react';
import styled, {keyframes} from 'styled-components';
import Koji from '@withkoji/vcc';
import hextoHSL from './UtilityFunctions.js'
//change hover to slightly opaque 'light' image
let DimCell = styled.div`
background-color:rgb(20,20,20);
background-position:c... |
const expect = require("chai").expect;
const nock = require("nock");
const https = require("https");
const { asBase64 } = require("../lib/bindings/http/validation/fun.js");
const { SPEC_V1 } = require("../lib/bindings/http/constants.js");
const CloudEvent = require("../lib/cloudevent.js");
const BinaryHTTPEmitter = req... |
/**
* Created by olegs on 10.02.2017.
*/
/** Float Label Pattern Plugin for Bootstrap 3.1.0 by <NAME>
**************************************************/
(function ($) {
$.fn.floatLabels = function (options) {
// Settings
var self = this;
var settings = $.extend({}, options);
... |
/**
* @file TreeNode.js Tree节点
* @author zhangzhe(<EMAIL>)
*/
import _ from 'lodash';
import {DataTypes, defineComponent} from 'san';
import TextBox from './TextBox';
import CheckBox from './CheckBox';
import {create, confirm} from './util';
const cx = create('ui-tree');
/* eslint-disable */
const commonTemplate ... |
var dataMap = [
{
Technologies: 'React Native & UseState',
Nameprojects: 'imc',
linkOfProject: 'https://github.com/Rafael-doctom/imc',
linkOfRepo: 'https://github.com/Rafael-doctom/imc',
NameRepo: 'imc',
describe: 'Calculadora de IMC. O Imc é reconhecido como padrão i... |
// grab url using the current location
var url = window.location.href + "./samples.json";
// save values as null to check later
var samples = null;
var metadata = null;
// otu Id to degrees
var otuIdToDegrees = 0;
// Use the D3 library to read in `samples.json`
d3.json(url).then(function (samplesData) {
// data
... |
import React from 'react';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import Menu from 'material-ui/Menu';
import RaisedButton from 'material-ui/RaisedButton';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import CircularProgress from 'material-ui/Circul... |
/**
functions to support El-Gamal encryption over a BabyJubJub curve
*/
const { squareRootModPrime, addMod, mulMod } = require('./number-theory');
const { BABYJUBJUB, ZOKRATES_PRIME, TEST_PRIVATE_KEYS } = require('./config');
const { modDivide } = require('./modular-division'); // TODO REPLACE WITH NPM VERSION
const u... |
const AWS = require('aws-sdk');
const JSZip = require('jszip');
const Papa = require('papaparse');
const h3 = require('h3-js');
const { WM_AWS_ACCESS_KEY_ID, WM_AWS_SECRET_ACCESS_KEY, WM_S3_BUCKET_NAME } = process.env;
const MIN_VELOCITY = 15 / 3.6;
const BEST_VELOCITY = 20 / 3.6;
const MAX_VELOCITY = 25 / 3.6;
cons... |
import $ from 'jquery';
import _ from 'lodash-es';
import log from 'loglevel';
import { fetchWithCredentials, postJsonWithCredentials, postMultipartFormWithCredentials } from '@universityofwarwick/serverpipe';
function updateAwaitingIcon($form, awaiting) {
// Look for icon in panel group
let $iconContainer = $form... |
/*
* Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved.
* Copyrights licensed under the New BSD License.
* See the accompanying LICENSE file for terms.
*/
/*jslint anon:true, sloppy:true, regexp:true, nomen:true, stupid:true*/
var fs = require('fs'),
path = require('path'),
existsSync = fs.exist... |
/* eslint-disable no-useless-catch */
const sequelize = require('./entityes/index')
const relation = require('./enuns/relation')
const _ = require('lodash')
const utilModel = require('../extras/utils-model')
const utils = require('../../../helpers/_utils/utils')
const Op = sequelize.Sequelize.Op
let conexao = sequeliz... |
/** @module ShortcodesTokenizer */
/* tokens */
const ROOT = 'ROOT'
const TEXT = 'TEXT'
const OPEN = 'OPEN'
const CLOSE = 'CLOSE'
const SELF_CLOSING = 'SELF_CLOSING'
const CUSTOM = 'CUSTOM'
/* eslint-disable */
/* matches code name */
const RX_KEY = '[a-<KEY>]*'
/* matches paramters */
const RX_PARAM = RX_KEY... |
const elasticsearch = require('elasticsearch');
const bodybuilder = require('bodybuilder');
const OutputParser = require('../OutputParser');
const udu = require('../loggerUtil');
const addQueryStringQuery = (body, query) => {
const data = {
query: query.query_string || '*',
default_operator: 'AND'
};
if ... |
var fs = require('fs'),
_ = require('underscore'),
sqlite = require('./sqlite.js'),
pgsql = require('./pgsql.js'),
colors = require('colors');
function loadConfig(){
var user_config = __dirname + '/config.json',
sample_config = __dirname + '/config.sample.json';
if (... |
import _typeof from 'babel-runtime/helpers/typeof';
import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possible... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {NavLink, Redirect} from 'react-router-dom';
import {classes} from '../../utils/html-helper';
import Lang from '../../lang';
import ROUTES from '../common/routes';
import Icon from '../../components/icon';
import Avatar from '../../compo... |
//A variable stores the airport code for the recommended result
var destinationCode = '';
//This function is used to process the response from QPX Express Airfare API for the first route
function airfareResponse1(responseJSON) {
var responseObject = JSON.parse(responseJSON);
// var leng = responseObject.trips.t... |
import InfoTree from './infotree';
const Lex = {};
/**
토큰 코드를 아래와 같이 정의합니다.
$는 입력의 시작을 의미합니다.
$##### H5
$#### H4
$### H3
$## H2
$# H1
$- AT
$\n LF
$[ \t]+ WH
입력받은 문자열 str를 대상으로 어휘
분석을 한 뒤 [토큰코드, 값]을 반환합니다.
값은 ST만 가질 수 있습니다.
*/
// define token code
Lex.H1 = 0;
Lex.H2 = 1;
Lex.H3 =... |
import { BaseTranslator } from '../base'
// Mapping
const MAPPING = {
'ok': 'OK',
'cancel': 'Cancel',
'home': 'Home',
'adminManage': 'Backend Management',
'previewModel': 'Preview Model',
'helpCenter': 'Help Center',
'userMsgReadAll': 'Set all read',
'userMsgCenter': 'Message Center',
'userMsgNoMsg':... |
import { Grid, MuiThemeProvider, Button } from '@material-ui/core';
import { createMuiTheme } from '@material-ui/core/styles';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import MaterialTable from '../src';
import Typography from "@material-ui/core/Typography";
import { forwardRef } from... |
// Planets are 1:1000
// Distances are 1:100,000
let pause_spin_global = false;
let pause_orbit_global = false;
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 150000);
const renderer = new THREE.WebGLRenderer({antialias: true, powerPreferenc... |
/* eslint-disable no-shadow */
/* stylelint-disable declaration-no-important */
import styled, { css } from 'styled-components'
import { th } from '@pubsweet/ui-toolkit'
import MentionsInput from '../MentionsInput/MentionsInput'
import { MEDIA_BREAK } from '../../../layout'
import { zIndex } from '../../../../globals... |
"use strict";
process.title = "yxorp (nodejs)";
const fs = require('fs');
const http = require('http');
const https = require('https');
const util = require('util');
const constants = require('constants');
const httpProxy = require('http-proxy');
const proxyTable = require('./proxy-table.js');
const ocsp = require('o... |
/* @flow */
const detox = require("detox");
const { device, expect, element, by, waitFor } = require("detox");
const configs = {
configurations: {
"ios.sim.debug": {
binaryPath:
"packages/apps/Example/ios/build/Build/Products/Debug-iphonesimulator/example.app",
build:
"xcodebuild -pr... |
var imports = require('soop').imports();
var base58 = imports.base58 || require('base58-native').base58;
var coinUtil = imports.coinUtil || require('./util/util');
var Key = imports.Key || require('./Key');
var Point = imports.Point || require('./Point');
var bignum = imports.bignum || require('bignum');
var crypto = r... |
import isPlainObject from '../src/is-plain-object-x';
const itWindow = typeof window === 'undefined' ? xit : it;
const itGlobal = typeof global === 'undefined' ? xit : it;
let element;
try {
element = typeof document !== 'undefined' && document.createElement('iframe');
} catch (ignore) {
// empty
}
const itEleme... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _isAndroid = _interopRequireDefault(require("./isAndroid"));
var _utils = require("./utils");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function as... |
// Events & functions to add filters to list form
// Get the area in the html where the filters are added
var filterArea = document.getElementById('addFiltersArea');
var listInfoArea = document.getElementById('listInfoArea');
// Create variables for each filter
var cityCheckbox = document.getElementById('cityCheckbo... |
// # Demo Modules 002
// Spiral charts
//
// Related files:
// + [Spiral charts - main module](../modules-002.html)
//
// Import the Scrawl-canvas object
// + There's various ways to do this. See [Demo DOM-001](../dom-001.html) for more details
import * as scrawl from '../../source/scrawl.js';
// Function to fetch an... |
var chai = require("chai");
var chaiAsPromised = require("chai-as-promised");
var config = require('./config.js');
chai.use(chaiAsPromised);
chai.should();
var wd = require('wd');
var asserters = wd.asserters;
chaiAsPromised.transferPromiseness = wd.transferPromiseness;
var extensionUrl = '';
//var extensionUrl =... |
const deck = [
// S = Spade, H = Heart, D = Diamond, C = Club
"S1", "S2", "S3", "S4", "S5", "S6", "S7", "S8", "S9", "S10", "S11", "S12", "S13",
"H1", "H2", "H3", "H4", "H5", "H6", "H7", "H8", "H9", "H10", "H11", "H12", "H13",
"D1", "D2", "D3", "D4", "D5", "D6", "D7", "D8", "D9", "D10", "D11", "D12", "D13",
"C... |
/**
* --------------------------------------------------------------------------
* Arizona Bootstrap: offcanvasmenu.js
* Licensed under MIT (https://github.com/az-digital/arizona-bootstrap/blob/master/LICENSE)
* --------------------------------------------------------------------------
*/
import $ from 'jquery'
i... |
import React, {useState, useEffect} from 'react'
// react plugin for creating charts
import ChartistGraph from "react-chartist";
// @material-ui/core
import { darken, makeStyles } from "@material-ui/core/styles";
import Icon from "@material-ui/core/Icon";
// @material-ui/icons
import Store from "@material-ui/icons/St... |
import Stage from '../stage/Stage';
import * as THREE from 'three';
import {OrbitControls} from "three/examples/jsm/controls/OrbitControls";
import Stats from 'three/examples/jsm/libs/stats.module.js';
import gsap from 'gsap';
import SoundManager from './SoundManager';
import { EffectComposer } from 'three/examples/jsm... |
"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... |
/**
* Created by Nishan on 6/6/2016.
*/
$(document).ready(function(){
var pathname = window.location.pathname;
var res = pathname.split("/");
var dataTable = {}
ajax_Datatable_Loader();
editQuestionCategory(res[4]);
/**
* store all updated data
*/
$('#update-qcategory-btn').on(... |
/** @author <NAME> <<EMAIL>> */
var Filter = require('./filter'),
replacementRegExp = /true|false|null|\$\.(?:[a-zA-Z]\w*(?:\.[\w\$]*)*)|\$(?:[a-zA-Z]\w*(?:\.[\w\$]*)*)\(?|"[^"]*"|'[^']*'|[a-zA-Z_]\w*(?:\.[\w\$]*)*\(?/g,
splitRegEx = /(\{{1,2})\s*(.+?)((?:(?:\s\|\s)(.+?))?)\s*(\}{1,2})/,
cacheFull = {},
cacheXpr =... |
var fs = require('fs');
var path = require('path');
var sqlite3 = require('sqlite3').verbose();
db2 = new sqlite3.Database('nns2018.db');
var http = require('http');
var json2csv = require('json2csv');
const csv=require('csvtojson');
var multer= require('multer');
var upload = multer({ dest: 'uploads/' })
var Zip = req... |
const ingredient = {
name: 'ingredient',
1: { code: '🍞', keyword: 'bread' },
2: { code: '🥐', keyword: 'croissant pastry' },
3: { code: '🥖', keyword: 'baguette' },
4: { code: '🥨', keyword: 'pretzel' },
5: { code: '🥞', keyword: 'pancakes' },
6: { code: '... |
const logger = require('winston');
const { getAssetByClaim, getChannelContents, getAssetByChannel, serveOrShowAsset } = require('../controllers/serveController.js');
const { handleRequestError } = require('../helpers/errorHandlers.js');
const SERVE = 'SERVE';
const SHOW = 'SHOW';
const SHOWLITE = 'SHOWLITE';
const CHA... |
$('.button-collapse').sideNav();
$('.dropdown-button').dropdown({
inDuration: 300,
outDuration: 225,
constrainWidth: false,
hover: true,
gutter: 0,
belowOrigin: true,
alignment: 'left',
stopPropagation: false
}
);
$('select').material_select();
$('.collapsible').collapsible();
var xmlhttp;
var output;
... |
const XML_CHAR_MAP = {
'<': '<',
'>': '>',
'&': '&',
'"': '"',
'\'': '''
}
function encodeXml (str) {
return str.replace(/[<>&"']/g, item => {
return XML_CHAR_MAP[item]
})
}
export default class Event {
#headers = {}
#body
#type
#subclass
#headerIndex = -1
/**
cons... |
/*
Copyright 2013-2015 ASIAL 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, so... |
// get Id in url
const locationAll = location.href;
const locationHTTP = locationAll.split(':')[1];
const DNS = locationHTTP.split("//")[1];
console.log(DNS);
const API = `http://${DNS}:8060/medicalsoft/api`;
const peopleSelector = document.getElementById('personas');
async function getPeople(){
const result = aw... |
"use strict;"
/* Classes */
const Game = require('./game.js');
const Vector = require('./vector.js');
const Player = require('./player.js');
const Asteroid = require('./asteroid.js');
const Lazer = require('./lazer.js');
/* Global variables */
var canvas = document.getElementById('screen');
var game = new Game(canva... |
import { toast } from "react-hot-toast";
import {
EmailAuthProvider,
reauthenticateWithCredential,
onAuthStateChanged,
createUserWithEmailAndPassword,
signOut,
updateEmail,
updatePassword,
signInWithEmailAndPassword,
deleteUser,
} from "firebase/auth";
import {
collection,
query,
where,
getDoc... |
'use strict';
var timeArr = ['6:00am', '7:00am', '8:00am', '9:00am', '10:00am', '11:00am', '12:00pm', '1:00pm', '2:00pm',
'3:00pm', '4:00pm', '5:00pm', '6:00pm', '7:00pm'];
var td;
var cell;
var tr;
var table;
var totalCity = 0;
var cityArr = [];
function randonNumber(max, min) {
return Math.floor(Math.rand... |
import React from 'react';
import {Link} from 'react-router';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import Lightbulb from 'material-ui/svg-icons/action/lightbulb-outline';
import {getHostA... |
/* eslint no-warning-comments: off */
const fs = require("fs");
const path = require("path");
const handlebars = require("handlebars");
const lowlight = require("lowlight");
// const refractor = require("refractor");
const KNOWN_EXTENSIONS = {
".js": "javascript",
".ts": "typescript",
".json": "json",
};
functi... |
// 获取某年的某月共多少天
export function getMonthDays(year, month) {
return new Date(year, month, 0).getDate()
}
// 获取某一天(年月日)是星期几
export function getDayWeekday(year, month, date) {
const dateNow = new Date(year, parseInt(month) - 1, date)
// 0-6, 0 is sunday
return dateNow.getDay()
}
// 获取某一天所在周的日期
export function getWeek... |
/**
* Created by hen on 3/8/14.
*/
var padding = 40;
var margin = {
top: 50,
right: 10,
bottom: 50,
left: 50
};
var width = 830 - margin.left - margin.right;
var height = 700 - margin.bottom - margin.top;
var centered;
var bbVis = {
x: 100,
y: 10,
w: width - 50,
h: 300
};
var... |
/* global Blob, Uint8Array */
import BaseComponent from '../base-component';
import { bind } from '@ember/runloop';
import { set, get } from '@ember/object';
import { getOwner } from '@ember/application';
import layout from './template';
import DataTransfer from '../../system/data-transfer';
import uuid from '../../sy... |
/*
* Tests for palette-default.js.
*
* Copyright (C) 2010-2021 <NAME> <<EMAIL>>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) a... |
import { Camera } from "../entities/camera.js";
import { scaleVector, normalizeVector, addVector } from "../lib/vector.js";
import { clamp, pointToGrid, unitDirection } from "../lib/math-helpers.js";
const map = [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 0, 1, 0, 0, 0, 0, 0, 0, 1],
[1, 0... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const page_loader_1 = require("../../internal/page-loader");
const names_1 = require("../../internal/names");
const search_1 = require("../../internal/search");
const killmail_1 = require("../killmail");
const autopilot_1 = require("./ui/autop... |
var fs = require('fs');
var path = require('path');
var os = require('os');
var ezFormat = require('ezformat');
var defaults = {
dir: './logs',
level: 'DEBUG',
fileFormat: 'log.{date}.txt',
dateFormat: '{year}/{month p 2}/{day p 2}',
fileDateFormat: '{year}.{month p 2}.{day p 2}',
timeFormat: '{hour p 2}:{... |
import React, { useState, useLayoutEffect, useEffect, useRef } from 'react';
import { storiesOf } from '@storybook/react';
import { Button, Modal, TreeSelect, Row, Col, Avatar, Tabs, TabPane, Badge, Notification } from '../../index';
import {
Form,
useFormState,
useFormApi,
useFieldApi,
useFieldStat... |
const { Serialize } = require('eosjs');
const Connection = require('./connection');
const createEosApi = require('./create-eos-api');
const serialize = require('./serialize');
const deserializeDeep = require('./deserialize-deep');
/**
* @typedef {import('eosjs').Api} EosApi
*/
/**
* @callback ProcessTrace
* @para... |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const Fuse = require("fuse.js");
const data = require("./fileManage.js");
const getCity = (cityIn, cb) =>
data.readFile... |
var tabsDefaultSizes = {
observationCharts: {
width: 787,
height: 400
},
activeLists: {
width: 450,
height: 715
},
medications: {
width: 360,
height: 300
},
nextAppointments: {
width: 340,
height: 300
}
};
var newsq = "";
var activePatientBtn, theSameBtn, currentPage;
f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.