text stringlengths 3.22k 29.5k |
|---|
import gulp from 'gulp';
import git from 'gulp-git';
import bump from 'gulp-bump';
import webpack from 'webpack';
import path from 'path';
import rename from 'gulp-rename';
import template from 'gulp-template';
import yargs from 'yargs';
import gutil from 'gulp-util';
import serve from 'bro... |
// snake coordinates
var snake = [ {x:5, y:5},{x:5, y:4},{x:5, y:3},{x:6, y:3},{x:7, y:3}] ;
var fruite_pos = [{ x:0, y:0 }];
var point=100;
var con=0;
// background ( grid )
function background_grid() {
var row = '';
var rowcolumn='';
// creating rows
for( var i = 0; i < 10; i++ )
row += '<td cellpaddi... |
"use strict";
function arrayIterator(array) {
array = array.concat();
var nextIndex = 0;
return {
next: function(){
return nextIndex < array.length ?
{value: array[nextIndex++], done: false} :
{done: true};
}
};
}
function unitStr(numeratorUnits, denominatorUnits) {
var result... |
// WebGL2 VertexArray Objects Helper
import {glKey} from './gl-constants';
import {isWebGL2} from './context';
import Resource from './resource';
import assert from 'assert';
import {log} from '../utils';
/* eslint-disable camelcase */
const OES_vertex_array_object = 'OES_vertex_array_object';
const GL_ELEMENT_ARRAY_... |
// View demo source code
function attachPopupHandler( popup, sources ) {
popup.one( "popupbeforeposition", function() {
var
collapsibleSet = popup.find( "[data-role='collapsibleset']" ),
collapsible, pre;
$.each( sources, function( idx, options ) {
collapsible = $( "<div data-role='collapsible' data-col... |
const { Edge } = require('../lib/Edge');
const { Graph } = require('../lib/Graph');
const assert = require('assert');
const sinon = require('sinon');
function assertIsMemoized(func) {
return function() {
assert.ok(typeof func._clearCache === 'function');
};
}
describe('Graph', function() {
describe('getSubT... |
/**
* Module dependencies.
*/
const mongoose = require('mongoose');
const { Schema } = mongoose;
const crypto = require('crypto');
const validator = require('validator');
const generatePassword = require('generate-password');
const owasp = require('owasp-password-strength-test');
const nodemailer = require('nodemail... |
const file = new XMLHttpRequest();
file.open("GET", "pollData/allimdbpolls.json");
file.send();
file.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
var pollData = JSON.parse(file.responseText)
var authors = pollData.authors
var polls = pollData.polls
var authorDat... |
var questions = new Array();
var maxNumber = 20;
var questionAmount = 10;
var name = "";
var level = 0;
var promptQuestionAmount = false;
var leaderboardEntry = new Array();
function getRandomInt(max) {
return 1 + Math.floor(Math.random() * Math.floor(max));
}
function returnToWelcome() {
document.getElementById... |
import MyMenu from "./MyMenu.js";
import {Link} from 'react-router-dom';
//let layer = require("./app/layer/layer.js");
let $=window.jQuery;
let React = require("react");
window.algo = "DFS"; //保存选择的方法
if(!window.algos)
window.algos = ["DFS","dijkstra"];
class Sidebar extends React.Component{
//它的属性来自APP类,见... |
var imageObj = {
canvasId: '',
init: initCanvas, /* init canvas */
makePixelezation: makePixelezation, /* create schema */
saveImage: saveImage, /* save image */
context: getContext
};
function getCanvas() {
return document.getElementById(this.canvasId);
}
function getContext(canvas) {
... |
// 组件
import Overview from "./components/Overview";
import HcCards from "./components/HcCards";
// api
import $home from "@/api/home";
import $reservoir from "@/api/reservoir";
import $hc from "@/api/hc";
// 全局变量
const initStatus = () => {
return {
disabled: false, // switch是否可用
status: 0, // 地面工作台状态:0 通讯断开... |
function compute_tentative_velocity(u, v, f, g, flag, imax,
jmax, del_t, delx, dely, gamma, Re) {
var i, j;
var du2dx, duvdy, duvdx, dv2dy, laplu, laplv;
for (i = 1; i <= imax - 1; i++) {
for (j = 1; j <= jmax; j++) {
/* only if both adjacent cells are fluid cells */
if... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var vue = require('vue');
var dayjs = require('dayjs');
var index$1 = require('../../../button/index.js');
require('../../../../directives/index.js');
require('../../../../hooks/index.js');
var index = require('../../../input/index.js');
req... |
import snippet from 'tui-code-snippet';
import fabric from 'fabric';
const { CustomEvents } = snippet;
import { roundValue, getRgb } from '@/util';
import TrackBaseItem from '../base/trackBaseItem';
const VERSION = { ver: 0 };
class TextTrackItem extends TrackBaseItem {
constructor({ start, duration, space, top, hei... |
/**
* @Copyright (c) Microsoft Corporation. All rights reserved.
*/
import { Environment, EnvironmentType, Log, Session, Validate, _SPEventManager, _SPExperiment, _SPFlight, _SPKillSwitch, _WebWorkerProxy } from '@microsoft/sp-core-library';
import { _Diagnostics, _LogHandler, _QosMonitor } from '@microsoft/sp-diagn... |
import React from 'react';
import { HashRouter as Router, Link, withRouter } from 'react-router-dom';
class MedicalHistory extends React.Component {
constructor(props) {
super(props);
this.state = {
patient: {
patient_allergies: '',
insurance_ph... |
var www_ajax='http://lleo.me/ajax/';
var www_design='http://lleo.me/design/';
function idd(id) { return document.getElementById(id); }
function zabil(id,text) { if(idd(id)) idd(id).innerHTML=text; }
function vzyal(id) { return idd(id)?idd(id).innerHTML:''; }
function zakryl(id) { idd(id).style.display='none'; }
functi... |
const {
add, format, isAfter, isBefore, set,
} = require('date-fns');
const api = require('../../services/api');
const { FACILITY_TYPE, DATE_FORMAT, DEAL_SUBMISSION_TYPE } = require('../../constants');
const { isTrueSet, validationErrorHandler } = require('../../utils/helpers');
const aboutFacility = async (req, res... |
import * as THREE from '../../libs/three/three.module.js';
import { VRButton } from '../../libs/VRButton.js';
import { CanvasUI } from '../../libs/CanvasUI.js';
import { XRControllerModelFactory } from '../../libs/three/jsm/XRControllerModelFactory.js';
import { BoxLineGeometry } from '../../libs/three/jsm/BoxLineGeome... |
/*
+ - - - - - - - - - - - - - - +
| Energy Chart v3.0 |
| Por <NAME> |
| 24-03-2014 |
+ - - - - - - - - - - - - - - +
*/
/*
/ Crear arreglo de 'length' tamaño de valores 'value'.
*/
function crearArreglo(value, length){
var arr = [], i = length;
while (i--) {
arr[i] = v... |
const sqlite = require('sqlite'); // DB GuildSettings
const sqlite3 = require('sqlite3'); // DB
const path = require('path');
const fs = require('fs');
const { RichEmbed, MessageAttachment } = require('discord.js');
var logger = require('logger').createLogger('./log/interserver.log'); // logs to a file
var pubLogger = ... |
const flags = document.querySelectorAll('.flag');
const flag_menu = document.querySelector('.lang-menu');
const aboutme = document.querySelector('#about');
const aboutme_desc = document.querySelector('.description')
const education = document.querySelector('#education');
const studies = document.querySelector('.studies... |
async function getAdheseAds(context, config) {
if (!config || !config.account || (!config.slot && !config.slots)) {
console.error("ADHESE: Config misses obligatory attributes, at least account and (slot or slots) are required.");
return {};
}
let headers = {
'content-type': 'application/json'
};
i... |
function _header() {
var h = document.getElementById("g_searchbar_form");
if(h !== null) {
var c = h.querySelector('[name="search_game"]');
var g = h.querySelector('[name="search_server"]');
var d = h.getElementsByClassName("g_search_frame")[0];
new GameServerList(h.querySelector... |
"use strict";
var $__ParseTreeType_46_js__,
$___46__46__47_TokenType_46_js__,
$___46__46__47_Token_46_js__,
$___46__46__47__46__46__47_util_47_JSON_46_js__,
$___46__46__47_PredefinedName_46_js__,
$__ParseTreeType_46_js__;
var ParseTreeType = ($__ParseTreeType_46_js__ = require("./ParseTreeType.js"),... |
// zmi_base.js
// HELPERS
// Simple Check for Absolute URL
function isURL(str) {
return /^(?:\w+:)?\/\/\S*$/.test(str);
};
function isSafari() {
return /^((?!chrome).)*safari/i.test(navigator.userAgent);
}
// NAVBAR-FUNCTIONS
// [1] Add New Object Item (with Modal Dialog)
function addItem( elm, base_url ) {
var ... |
import React, { useRef, useEffect } from 'react';
function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[... |
/* eslint-disable react/no-unused-state */
/* eslint-disable react/no-array-index-key */
/* eslint-disable consistent-return */
/* eslint-disable no-undef-init */
/* eslint-disable no-plusplus */
/* eslint-disable react/no-access-state-in-setstate */
/* eslint-disable global-require */
/* eslint-disable react/destructu... |
/**
* Created by steve on 12/04/15.
*/
var React = require('react');
var ReactPropTypes = React.PropTypes;
var CartStore = require('../../stores/CartStore');
var CartActionCreators = require('../../actions/CartActionCreators');
var AddressActionCreators = require('../../actions/AddressActionCreators');
var OrderActio... |
var chai = require('chai');
var chaiSubset = require('chai-subset');
chai.use(chaiSubset);
chai.config.includeStack = true;
var assert = chai.assert;
exports.assert = assert;
var tickWrapper = require('./tickWrapper');
require('require-globify');
var $ = require('jquery');
var React = require('react');
var ReactDOM =... |
exports.id = 'rpionewire';
exports.title = 'OneWire';
exports.group = 'Raspberry Pi';
exports.color = '#E30B5D';
exports.input = true;
exports.output = true;
exports.author = '<NAME>';
exports.icon = 'microchip';
exports.version = '1.0.0';
exports.options = { };
exports.html = `<div class="padding">
<div class="row"... |
console.log('Hello Webpack Project.');
const _ = require('lodash');
const Chart = require('chart.js');
const $ = require('jquery');
//Updated with data untill 23/3 2020
let dataObject = require('./data.json');
import 'bootstrap';
import './scss/style.scss';
import './deathChart'
let ctx = document.getElementById('c... |
/* ----- ---- --- -- -
* Copyright 2020 The Axiom Foundation. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.apache.org/l... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... |
/* global require */
import * as bareTypes from '../actionTypes'
// TODO: remove /api/search? or just make it the actual defaultAPI below
// import searchAPI from './api/search'
require('isomorphic-fetch')
const defaultAPI = {
search: searchQuery => {
const url = new URL('/api/search/product', document.baseURI)... |
function validate(){
checkFilled();
}
//This function checks if there are any empty fields.
function checkFilled(){
var day = document.forms['namingForm']['day'].value;
var month = document.forms['namingForm']['month'].value;
var year = document.forms['namingForm']['year'].value;
var gender... |
/**
* Module dependencies
*/
var inquirer = require('inquirer')
var validator = require('lx-valid')
var chalk = require('chalk')
var async = require('async')
var _ = require('lodash')
/**
* Prompt wrapper for inquirer which allows for extended validation.
*
* Would be used when a CLI command also accepts argumen... |
import $msg from 'message-tag';
import hoistNonReactStatics from 'hoist-non-react-statics';
import * as React from 'react';
export const Context = React.createContext();
// Check if the given buffer has the given accessor
export const hasAccessor = (accessor, buffer) => {
if (typeof accessor === 'function') {
... |
import React, { useEffect, useState } from "react";
import { useHistory } from "react-router";
import { connect } from "react-redux";
import "../../Styles/Profile.css";
import fire from "../../APIS/firebase";
import { toast } from "react-toastify";
import UpdateProfileModel from "./UpdateProfileModel";
import AccountB... |
'use strict';
const assert = require('assert')
const fs = require('fs')
const path = require('path')
const fixtures = require('haraka-test-fixtures')
const utils = require('haraka-utils')
function setup (done) {
try {
this.plugin = new fixtures.plugin('../index');
}
catch (e) {
... |
import React from 'react';
import styled from 'styled-components';
import { Layout } from '@components/Layout';
import { ServerList, ServerListItem } from '@components/ServerList';
import { Color } from '@components/Color';
import { colors } from '@utils';
import bell from '@images/minecraft/bell.png';
import nssv ... |
import { structurenames, structurenameColorMap, parameters } from '../config.js'
import { getStructureData, collectSampleData, getSampleDataJson } from '../loaddata.js'
// Import different plots
import { scatterPlot } from './scatterplot.js'
import { discretePlot } from './discreteplot.js'
import { linePlot } from './... |
import React, { Component } from 'react';
import { Text, View, StyleSheet, TouchableOpacity, FlatList, } from 'react-native';
import { Input } from 'react-native-elements';
import MaterialCommunityIcon from 'react-native-vector-icons/MaterialCommunityIcons';
import DateTimePicker from '@react-native-community/datetimep... |
// @flow
const INPUTS = {
inputSelectPlaceholder: 'Select',
inputPasswordPlaceholder: 'Password',
inputEncryptedPlaceholder: 'Encrypted Key',
authPrivateKeyPlaceholder: 'Enter your private key here',
authWatchPlaceholder: 'Enter a NEO address here',
}
const MISCELLANEOUS = {
'auth.cancel': 'Cancel',
'aut... |
var stateList = [
{
"name": "Alabama",
"code": "01"
},
{
"name": "Alaska",
"code": "02"
},
{
"name": "Arizona",
"code": "04"
},
{
"name": "Arkansas",
"code": "05"
},
{
"name": "California",
"code": "06"
},
{
"name": "Colorado",
... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransactionManager = exports.MessageType = void 0;
const abi_1 = require("@ethersproject/abi");
... |
const path = require('path');
const cluster = require('cluster');
const childProcess = require('child_process');
const Debug = require('debug');
const chalk = require('chalk');
const agentFile = path.resolve(__dirname, './agent.js');
const CUSTOM_TIME = 10;
/**
* 自定义进程守护类
* 主要用于守护进程的启动与关闭
* @life create {async func... |
var Handlebars = require('handlebars');
var utils = require('./utils');
function dbTimeToUserTime(str) {
if (str === null || str.length == 0) {
return;
}
var splits = str.split(":");
var hours = parseInt(splits[0]);
var minutes = parseInt(splits[1]);
var ampm = "AM";
if (hours >... |
const { Op } = require('sequelize');
const { labelValuePattern, parseFeatures } = require('../settings-helper');
module.exports = (sequelize, DataTypes) => {
// Map GitHub event names to the names used for settings
const EventNameToSettings = {
pull_request: 'pulls',
status: 'statuses',
check_run: 'sta... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
var _regenerator = require('babel-runtime/regenerator');
var _regenerator2 = _interopRequireDefault(_regenerator);
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator');
var _asyncToGe... |
/*globals Node:true, NodeList:true*/
$ = (function (document, window, $) {
// Node covers all elements, but also the document objects
var node = Node.prototype,
nodeList = NodeList.prototype,
forEach = 'forEach',
map = 'map';
each = [][forEach];
nodeList[forEach] = each;
nodeList[map] =... |
var schemeNames = {sequential: ["BuGn","BuPu","GnBu","OrRd","PuBu","PuBuGn","PuRd","RdPu","YlGn","YlGnBu","YlOrBr","YlOrRd"],
singlehue:["Blues","Greens","Greys","Oranges","Purples","Reds"],
diverging: ["BrBG","PiYG","PRGn","PuOr","RdBu","RdGy","RdYlBu","RdYlGn","Spectral"],
qualitative: ["Accent","Dark2... |
/*
* API introspection
*/
var _ = require('underscore'),
bus=require('../app/bus'),
sm = require('sitemap'),
db = require('mongoose'),
http = require('http'),
validate = require('./validate/validate'),
debug = require('debug')('api'),
errorHelper = require('mongoose-error-helper').errorHe... |
'use_strict';
const loaderUtils = require('loader-utils');
const fs = require('fs');
const path = require('path');
const exec = require('child_process').exec;
const tmp = require('tmp');
const hash = require('hash-sum');
const split = require('haxe-modular/tool/bin/split');
const hooks = require('haxe-modular/bin/hook... |
import * as CognitiveSpeech from 'microsoft-speech-browser-sdk';
import EventAsPromise from 'event-as-promise';
import memoize from 'memoize-one';
import SpeechGrammarList from './SpeechGrammarList';
function buildSpeechResult(transcript, confidence, isFinal) {
const result = [{ confidence, transcript }];
result... |
// 引入coolsite360交互配置设定
require('coolsite.config.js');
var qcloud = require('../../bower_components/wafer-client-sdk/index.js');
var config = require('../../config.js')
const util = require('../../util.js')
// 获取全局应用程序实例对象
var app = getApp();
// 创建页面实例对象
Page({
/**
* 页面名称
*/
name: "shareactivity",
/**
... |
"use strict"
var util = require("util")
var Event = require("events").EventEmitter
var utf8 = require("utf8")
var baselib = require("swtc-wallet").Wallet
const fee = require("./config").fee || 10000
/**
* Post request to server with account secret
* @param remote
* @constructor
*/
function Transaction(remote, filte... |
'use strict';
require('mocha');
const fs = require('fs');
const path = require('path');
const assert = require('assert');
const Remarkable = require('remarkable');
const prettify = require('..');
/**
* test utils
*/
function pretty(str, options) {
const opts = Object.assign({newline: false}, options);
return ne... |
'use strict';
const redis = require('redis');
const Bot = require('./bot.js');
const client = redis.createClient();
const bot = new Bot({
token: process.env.SLACK_TOKEN,
autoReconnect: true,
autoMark: true
});
var messageQueue = [];
const STATUS_STARTING = 0;
const STATUS_TEST_CYCLE = 1;
const STATUS_QUEUE_A... |
var t;
var hsv2rgb = function(h, s, v) {
var f, i, p, q, t;
var rgb = [0,0,0];
i = Math.floor(h / 60.0) % 6;
f = (h / 60.0) - Math.floor(h / 60.0);
p = Math.round(v * (1.0 - (s / 255.0)));
q = Math.round(v * (1.0 - (s / 255.0) * f));
t = Math.round(v * (1.0 - (s / 255.0) * (1.0 - f)));
switch (i) {
case 0 :... |
/*
* couch-tweet-archiver
* Copyright © 2011 <NAME>
*
* This is a node.js script to fetch your tweets and put them in
* CouchDB for archival and analysis.
*
* It's JAVASCRIPT ALL THE WAY DOWN.
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You... |
var util = util || {};
util.toArray = function(list) {
return Array.prototype.slice.call(list || [], 0);
};
var hiremeFlag = false;
var Terminal = Terminal || function(cmdLineContainer, outputContainer) {
window.URL = window.URL || window.webkitURL;
window.requestFileSystem = window.requestFileSystem || window.... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchDescriptorFrom = exports.getSuggestedDescriptors = exports.extractDescriptorFromPath = exports.findProjectDescriptors = exports.applyModifier = exports.extractRangeModifier = exports.getModifier = exports.Strategy = exports.Modifi... |
"use strict";
const ready = require("../ready");
const fetch = require("../fetch"); // jshint ignore:line
const style = require("../style");
const pageType = require("../api/page-type");
const pagination = require("../api/pagination");
const settings = require("../api/settings");
const InfiniteScrollBase = require("./... |
"use strict";
const ts = require("typescript");
/**
* Transpiles a TypeScript file into a valid Apps Script file.
* @param {string} source The TypeScript source code as a string.
* @param {ts.TranspileOptions} transpileOptions custom transpile options.
* @see https://github.com/Microsoft/TypeScript/wiki/Using-the-C... |
//---------------------------------------------------------
// SystemOZ for HTML5
//
// レンダリングプログラム
//
// programed by R-TOHYA
//---------------------------------------------------------
const SE_MAX = 100;
let se_init_check = 0;
let se_out_wait = [ SE_MAX ];
let se_name =
[
... |
/*
CODE DE HUFFMAN
Version du 13/07/2015
Copyright <NAME> (<EMAIL>) et <NAME>, 2015.
Les programmes Javascript fournis par l'intermédiaire de ces pages
proposent des illustrations et des animations pédagogiques pour le
traitement du signal, les communications numériques, etc.
Ces program... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
import { StartupMessage, Close, Execute, auth, Query, Parse, Bind } from './frontend.js'
import Backend from './backend.js'
import Queue from './queue.js'
import { END } from './types.js'
import { errors } from './errors.js'
import { concat, consume, connectUnixSocket, connectTCP, setImmediatePromise, clearImmediatePro... |
//TODO 해당종목은 거래정지 종목입니다
//TODO 거래후 수량 차트 적용
//TODO 크롤링 완료후 콜백 데이타를 적용
var codeNum = "005930"; //삼성전자
window.addEventListener("message", function(e) {
if(e.data && (e.data.length == 6)) { //codeNum
codeNum = e.data;
update(); // 매수/매도 창 데이터 갱신
}
});
window.addEventListener("load", function(){
bb.defaults()... |
let reqData = {
fromCity: "MEL",
toCity: "BNK",
departdate: "2022-04-03",
adultNum: "1",
childNum: "0"
}
let reqStatus = null;
function adtChd(reqData) {
document.querySelector(".chev-jdl-d-p2-md").click();
document.querySelector(".list-button:nth-of-type(1)").click();
documen... |
import React, { Component } from 'react';
import SelectView from './SelectView';
import { AppBar, Toolbar, Typography, IconButton, Box, Button } from '@mui/material';
import { Menu, GitHub } from '@mui/icons-material';
import { SnackbarProvider } from 'notistack';
import DrawerMenu from './DrawerMenu';
impo... |
const cheerio = require('cheerio');
const models = require('./models/new_models');
const $ = require('cheerio');
const fs = require('fs');
const is_relative_url = require('is-relative-url');
const url_toolkit = require('url-toolkit');
const querystring = require('querystring');
const path = require('path');
const logge... |
'use strict';
/*****************************
******************************
CONSTRUCTOR FUNCTIONS
*****************************
*
*
*****************************/
/**************************
ENEMIES
**************************/
// Enemies our player must avoid
var Enemy = function (y) {
this.x = Math.floor... |
// Array of cards
const cardsArray = [
{
id: 1,
imgFront:
"https://kronozio.blob.core.windows.net/images/card/99e5d83db53e4114aa7fe47df1d98c6e_front.jpg",
imgFlipped:
"http://beckett-www.s3.amazonaws.com/news/news-content/uploads/2015/10/2015-16-NBA-Hoops-261-Kristaps-Porzingis1.jpg"
},
{
id: 2,
imgF... |
import React, { Component } from 'react'
import { Button, Card, CardBody, CardHeader, Col, Row } from 'reactstrap'
import ReactTable from 'react-table'
import 'react-table/react-table.css'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Redirect } from 'react-router-dom'
import { Check... |
/* eslint-disable no-multiple-empty-lines */
/* eslint-disable no-mixed-operators */
/* eslint-disable arrow-parens */
/* eslint-disable operator-linebreak */
/* eslint-disable react/jsx-closing-bracket-location */
/* eslint-disable react/jsx-closing-tag-location */
/* eslint-disable react/jsx-max-props-per-line */
/* ... |
import React, { useState } from "react"
import Layout from "../components/layout"
import devices from "../utils/devices"
import Headshot from "../images/headshot.jpg"
import { UilTachometerFastAlt } from "@iconscout/react-unicons"
import { UilExpandArrowsAlt } from "@iconscout/react-unicons"
import { UilLightbulbAlt } ... |
let data = parseJwt(window.localStorage.getItem("token"));
let token = JSON.parse(window.localStorage.getItem("token"));
let users = document.getElementById("usersTab");
if (!data) {
window.location = "login.html";
} else {
if (data.rol !== "Administrador") {
users.style.display = "none";
}
}
//DOM ELEMENTS... |
const axios = require('axios');
const { getAccessToken } = require('./client');
const debug = require('../storage/logs').debug('medmorph-backend:fhir');
const error = require('../storage/logs').error('medmorph-backend:fhir');
const db = require('../storage/DataAccess');
const { getEHRServer } = require('../storage/serv... |
import * as THREE from 'three'
// post-processing
import WAGNER from '@superguigui/wagner'
import BloomPass from '@superguigui/wagner/src/passes/bloom/MultiPassBloomPass'
import FXAAPass from '@superguigui/wagner/src/passes/fxaa/FXAAPass'
import Noise from '@superguigui/wagner/src/passes/noise/noise'
import VignettePa... |
/** @jsx jsx */
import {useState, useEffect} from "react";
import {css, jsx} from "@emotion/core";
import Navbar from "../navbar/Navbar";
import PageSpinner from "../general/PageSpinner";
import PlanTable from "./PlanTable";
import ListSimilarPlans from "./ListSimilarPlans";
import CreateReview from "./CreateReview";
... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (... |
import React from 'react';
import { withRouter, Link, Switch, Route } from 'react-router-dom';
import ProfileRow from './profile/profileRow';
import Reports from './reports/Reports';
import LineCurrentTable from './tables/lines/current/Current';
import LineVoltageTable from './tables/lines/voltage/Voltage';
import Line... |
import { CSG, CAG, union } from './jscad';
import { fromxyz, div } from './array';
import * as util from './util';
import Group from './group';
import { Debug } from './debug';
const debug = Debug('jscadUtils:parts');
export default { BBox, Cube, RoundedCube, Cylinder, Cone };
/**
* Returns a CSG cube object with t... |
'use strict';
/**
* if webpack is used this import
* will require this line:
* node: {
* fs: 'empty'
* },
* to be added to webpack.config.js
*/
Object.defineProperty(exports, "__esModule", {
value: true
});
var _context;
var _createClass = function () { function defineProperties(target, props) { for (var ... |
import Phaser from "phaser";
import EPT from "./utils";
import { splashRandomX, splashRandomY, randomIntegarInRange } from './game-utils'
import { Button } from "./utils";
let scene = null
const imgRefs = []
let selectedItemIndex = null
let selectedItem = null
export default class Game extends Phaser.Scene {
constr... |
/*
* @Author: wanghuilin
* @Date: 2016-05-05
* @Last Modified by: wanghuilin
* @Last Modified time: 2016-05-31
*/
/*声明变量*/
var base_URL = '/adtalk';
var confirmInfo = false,checkForm,$doc=$(document);
var timeInterval="";
$(function(){
getUserDetailInfo();
/*表单验证开始*/
checkForm = $('#advertiseForm').validat... |
const config = require('config')
const lodash = require('lodash')
const db = require('../src/db')
const bot = require('../src/bot')
const escapeHtml = require('../src/bot/utils/escapeHtml')
const REPORT_DIRECTIONS_AMOUNT = 15
const REPORT_CHANNEL = process.env.REPORT_CHANNEL || 'test'
const pipeline = [
{
$face... |
/**
* Hackernews Karma Tracker
*
* This app is tracking the account stats of users who signed up using Redis to store all the collected values and
* a cronjob to gather new stats every 24hours.
* @author dewey [https://github.com/dewey]
*/
var express = require('express'),
http = require('http'),
redis =... |
import React, { Component, Fragment, useState, useEffect, useRef } from "react";
import {TransitionGroup} from "react-transition-group";
import {
Row,
Col,
Button,
ListGroupItem,
Card,
CardBody,
Form,
FormGroup,
Label,
Container,
Input,
FormText,
CardHeader,
CardTitle,
CardLink,
CardIm... |
// use jsx to render html, do not modify simple.html
import BannerAnim from 'rc-banner-anim';
import QueueAnim from 'rc-queue-anim';
import TweenOne from 'rc-tween-one';
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from 'antd';
import 'antd/dist/antd.less';
import './assets/index.less... |
"use strict"
// Dependencies
const Excel = require("exceljs")
const path = require("path")
const date = require("date-and-time")
const fs = require("fs/promises")
const expressions = require("angular-expressions")
/**
* A user defined function that returns properties associated with a provided part number.
* @funct... |
/* istanbul ignore file */
import Head from "next/head";
import { useState } from "react";
import Joi from "joi";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import { ErrorBox } from "../components/molecules/ErrorBox";
import { useRouter } from "next/router";
import { useTranslation }... |
const Handlebars = require('handlebars');
const glob = require('glob-promise');
const path = require('path');
const { resolve } = path;
const { loadHtmlFromFileURL, checkFileExists, kebabCase, toMoney } = require('../helpers/common');
const _ = require('lodash');
const VtexCmsMockedControllers = require('vtex-cms-mocke... |
require ('../dlib/mutilxt.js')
//~ Fdrandom=require ('../Fdrandom.min.js')
Fdrandom=Fdr=require ('../dlib/Fdrandom.js')
Barsort=require('../barsort.js')
var g=[2,3,4,6,7,8,9]
var b= new Uint32Array(g)
console.log(b)
return
ascending10RandomEndInt = function (n) {
var arr = [];
for (var i = 0; i < n; i++) {... |
/* Author: <NAME>
* http://grapheme.ru/
*/
var ImperaviRedactor = ImperaviRedactor || {};
ImperaviRedactor.baseURL = window.location.protocol+'//'+window.location.hostname+'/';
ImperaviRedactor.getBaseURL = function(url){
if(typeof(url) == "undefined"){url = '';}
return ImperaviRedactor.baseURL+url;
};
Imperav... |
import React, { Component } from "react";
import axios from "axios";
// import React from "react";
import "./Account.css";
import Wrapper from "../../components/Wrapper"
import AccountInfo from "../../components/AccountInfo";
import EditAccountForm from "../../components/EditAccountForm";
import API from "../../... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.protot... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.