text
stringlengths
3.22k
29.5k
var ROMAJI = { "a": "a", "i": "i", "u": "u", "e": "e", "o": "o", "ka": "ka", "ki": "ki", "ku": "ku", "ke": "ke", "ko": "ko", "sa": "sa", "shi": "shi", "su": "su", "se": "se", "so": "so", "ta": "ta", "chi": "chi", "tsu": "tsu", "te": "te", "to": "to", "na": "na", "ni": "ni", "nu": "nu", "ne": "ne", "...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _classCallCheck2 = _interopRequireDefault(require("@babel/runt...
//adji added var cdays=new Array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); var hdays=new Array(30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29); function weekDay(wdn){ if(wdn==0){ return "Monday" } if(wdn==1){ return "Tuesday" } if(wdn==2){ return "Wednesday...
$(window).load(function(){ //Active menu var activeLinks = location.pathname; if (activeLinks == '/'){ $(".home-link").addClass('active'); }else{ $('nav a[href^="/' + location.pathname.split("/")[1] + '"]').closest('li').addClass('active'); } }); $(functi...
const service = require('restana')({}); const bodyParser = require('body-parser'); const request = require('request'); const querystring = require('querystring'); const config = require('config'); const api = require('./aps-ema-extractor-service'); const util = require('./util'); const dateUtil = require('./date-util')...
'user strict'; /** * @author <NAME> - <<EMAIL>> */ const assertGasEstimate = require('./helpers/assertGasEstimate'); const assertRevert = require('./helpers/assertRevert'); const BN = require('bn.js'); const RatesProvider = artifacts.require('RatesProvider.sol'); contract('RatesProvider', function (accounts) { l...
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import classNames from 'classnames'; import styled from 'styled-components'; import UserAvatar from '../../shared/UserAvatar'; import Dropdown from '../../shared/Dropdown'; import Badge from '../../shared/Badge'; im...
var hash = {}; var hash_city = {}; var hash_trip = {}; var hash_trip_one = {}; // console.log(data) // function toTitleCase(str) { return str.replace( /\w\S*/g, function (txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); } ); } $(document).ready(() ...
/* @Attributes: createGround:生成地面 Instance:游戏实例 collisionPipe:判断小鸟与管道的碰撞 produceMedal:生成奖牌 collisionMedal:判断是否吃到奖牌 medalMove:道具移动 setInvincibleTimer:无敌状态定时器 setInvincibleAndSeppdUpTimer:无敌 + 冲刺 collisionMedals:判断和三种道具相撞 collision:总的碰撞 groundTimer:地面移动 管道移动 道具生成 逻辑判断 @Decript...
const archiver = require('archiver') const Package = require('@lerna/package') const path = require('path') const tar = require('tar') const tmp = require('tmp-promise') const zlib = require('zlib') const { createReadStream, createWriteStream, promises, write } = require('fs') const { copyFile, mkdir, readdir, ...
import React from 'react'; import { Accordion, Grid, AccordionDetails, AccordionSummary, Typography, MenuItem, FormControl, Select, Button } from '@material-ui/core'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; import Alert from '@material-ui/lab/Alert'; // import packageJson from '../package.j...
import React from 'react'; import { Module } from '../../../core/module'; import { onModuleActivate } from '../../utils'; import { createNext } from './utils'; const values = [ { val1: 'i', val2: 'y' }, { val1: 'í', val2: 'ý' }, ]; // http://www.zlobidlo.cz/rodice/cviceni-vyjmenovana-slova-s export const dictiona...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray'); var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2); var _slicedToArray2 = require('babel-runtime/helpers/slicedToArray'); var _slicedToArra...
/* Set initial configuration */ if (matchMedia("(max-width: 600px)").matches) document.querySelector("nav").classList.add("hidden") /* Set search list */ let searchList = [] for (i in articles) if (articles[i].keyword) for (j of articles[i].keyword) if (searchList.indexOf(j) < 0) ...
(function () { // Localize jQuery variable var jQuery; /******** Load jQuery if not present *********/ if (window.jQuery === undefined || window.jQuery.fn.jquery !== "3.2.1") { const scriptTag = document.createElement("script"); scriptTag.setAttribute("type", "text/javascript"); scriptTag.setAttri...
/* * Apple Watch Game * When a rock appears, tap to mine it and collect the coin. * When a choice appears, tap left or right to take that path. * Try to get the most coins! */ // colors: http://www.color-hex.com/color-palette/43493 // projection: https://www.sitepoint.com/building-3d-engine-javascript/ const WIDTH...
$(document).ready(function() { if ($('#deal-ref-add').length) { $("#deal-ref-add").validate({ rules: { first_name: { required: true, minlength: 3, maxlength: 255 }, last_name: { required: true, minlength: 3, ...
import React from "react"; import { Container, Row, Col, Form, Button } from "react-bootstrap"; import Sidebar from './sidebar' ; import { addDays } from 'date-fns' import moment from 'moment' ; import './contact.css' ; //import 'react-dates/initialize'; //import { SingleDatePicker } from 'react-dates'; //import 'reac...
import fs from 'fs'; import React from 'react'; import serialize from 'serialize-javascript'; import ReactDOMServer from 'react-dom/server'; import { StaticRouter } from 'react-router-dom'; import common, { clientDir, serverDir, cacheDir, SSRKEY, Logger, filterXssByJson } from '@srejs/common'; i...
'use strict'; const Noun = require('../noun'); const to_number = require('./parse/to_number'); const to_text = require('./to_text'); const units = require('./units'); const nums = require('../../../data/numbers'); const fns = require('../../../fns'); //get an array of ordinal (first, second...) numbers let ordinals = {...
"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.definePrope...
import React from "react"; import { CButton, CCol, CForm, CFormGroup, CInput, CLabel, CModal, CModalBody, CModalFooter, CModalHeader, CModalTitle, CRow, CSelect, CTextarea, } from "@coreui/react"; import { Autocomplete } from "@material-ui/lab"; import { TextField } from "@material-ui/core";...
const mapValues = require('lodash.mapvalues'); const fromPairs = require('lodash.frompairs'); const groupBy = require('lodash.groupby'); const Chance = require('chance'); const InvalidChar = /{|}|:|\./; /** * Swagger parse class for swagger 2.0 */ class SwaggerParserV2 { /** * init parse handle * @param {*}...
// Game var lobbyRoster = document.getElementById("roster"); var readyBtn = document.getElementById("readyBtn"); var startCountdown = null; var respawnCountdown = null; var gameTimer = null; var secondsLeft = 0; var gameSettings = {}; // Player var playerSettings = { vibrateOnHit:true, recoil:false, }; var playerG...
class PlayerDisplay { constructor(gameScene, Config){ this.gameScene= gameScene this.Config = Config this.x = Config.x this.y = Config.y this.name = Config.name this.updateTime = new Date().toISOString(); this.direction = "down" this.physicsObj = gam...
"use strict"; /** * Module dependencies. */ const passport = require('passport-strategy'); const util = require('util'); const uuidv4 = require('uuid/v4'); const url = require('url'); const AD = require('ad'); const AdProxy = require('./lib/adproxy.js'); const toBinary = require('./lib/tobinary.js'); ...
/** * Created by coolbong on 2017-02-24. */ var toNumber = require('./util').toNumber; var toAscii = require('./util').toAscii; // SELECT var Pdol = require('./decoder/Select').Pdol; // GET_PROCESSING_OPTION var Gpo = require('./decoder/Gpo'); // READ_RECORD var Record = require('./decoder/Record'); // GENERAG...
import localforage from "localforage"; import { checkJwtValid } from "@/util/UserUtil"; import HttpUtil from "../../util/HttpUtil"; /**书签版本检查间隔 */ const CHECK_INTERVAL = 5 * 60 * 1000; // const CHECK_INTERVAL = 5 * 1000; export const TREE_DATA = "treeData"; export const TOTAL_TREE_DATA = "totalTreeData"; export const ...
// Replace this with a local running OpenDDR instance. OpenDDR analyzes a // User-Agent and presents that device's capabilities. // // See http://openddr.mobi/ for more information. // See https://hub.docker.com/r/0x41mmar/openddr-api for a deployable OpenDDR // instance. const OPENDDR_URL = 'http://openddr.demo.jelast...
'use strict'; /** * Returns the array of 32 compass points and heading. * See details here: * https://en.wikipedia.org/wiki/Points_of_the_compass#32_cardinal_points * * @return {array} * * Example of return : * [ * { abbreviation : 'N', azimuth : 0.00 , * { abbreviation : 'NbE', azimuth : 11.2...
const hre = require("hardhat"); const helpers = require("../util/helpers"); const Mangrove = require("../../src/mangrove"); const hardhatUtils = require("@mangrovedao/hardhat-utils/hardhat-utils"); const { BigNumber } = require("@ethersproject/bignumber"); const seed = Math.random().toString(36).substring(2, 15) + ...
/////////////////////////////////////////// // CHRONOS TOOLS /////////////////////////////////////////// let localChronoTimerHandle = 0; let chronoValues = [0, 0, 0, 0]; let localChronoValue = 0; let chronoValuesIncrement = [-1, -1, -1, -1]; let localChronoIncrement = -1; function startChronosFromDialog(){ // Buil...
// ==ClosureCompiler== // @output_file_name default.js // @compilation_level SIMPLE_OPTIMIZATIONS // ==/ClosureCompiler== // module.exports = { // parse: parse, // simplify: simplify, // simplifyLostLess: simplifyLostLess, // filter: filter, // stringify: stringify, // toContentString: toContent...
const pkgJSON = require('../../package.json'); const CONST = require(`./wx_default_cfg/wx_${pkgJSON.support_wx_version}`); const shelljs = require('shelljs'); const logger = require('../logger'); const path = require('path'); const fs = require('fs'); // 定位元素超时时间 const waitTimeout = 15 * 1000; // 判断元素是否存在超时时间 const ch...
function fillPagination(hal, totalHalaman) { var reValue = ''; if (hal > 1) { reValue += '<span class="tombol_pagination" onclick="pagingCLick(' + 1 + ')"><< First</span> '; reValue += '<span class="tombol_pagination" onclick="pagingCLick(' + (hal - 1) + ')">< Prev</span> '; } if (hal -...
/** * External dependencies */ import { Platform, AccessibilityInfo, findNodeHandle, TextInput, View, PixelRatio, AppState, } from 'react-native'; import Slider from '@react-native-community/slider'; /** * WordPress dependencies */ import { _x, __, sprintf } from '@wordpress/i18n'; import { Component } from...
$(".ckeditor").each(function(e) { var __editorName = this.id; CKEDITOR.replace(__editorName); }); $.datetimepicker.setLocale("vi"); $("body").on("focus", ".date", function() { $(this).datetimepicker({ timepicker: false, format: "d/m/Y", onGenerate: function(time, el) { i...
import React,{Component} from 'react'; import {bindActionCreators } from 'redux'; import {connect} from 'react-redux'; import * as CM from '../common/component'; import {getDataFromAPI,Tips} from '../common/base'; import * as MGAction from '../actions/index'; import {Link} from 'react-router'; /* * 产品预定 * proName...
import * as tslib_1 from "tslib"; import { AsyncComponent, Col, ProfileSquaredComponent, Row } from "@common-components"; import { router, text, user } from "@core"; import { appointments, calendar, Patient, PatientLinkComponent, PatientFinanceComponent } from "@modules"; import { dateNames, num } from "@utils"; import...
'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...
/* * @Author: dingxizheng * @Date: 2016-02-17 16:00:47 * @Last Modified by: dingxizheng * @Last Modified time: 2016-03-01 20:49:12 */ 'use strict'; var React = require('react-native'); var Icon = require('react-native-vector-icons/MaterialIcons'); var theme = require('../t...
import React,{Component} from 'react' import axios from 'axios'; import "bootstrap/dist/css/bootstrap.min.css"; import {faEdit,faTrashAlt} from "@fortawesome/free-solid-svg-icons"; import { DropdownMenu,ButtonDropdown,Dropdown,DropdownItem,DropdownToggle,Modal, ModalBody,ModalFooter,ModalHeader} from 'reactstrap'; impo...
/* eslint-disable react/prop-types */ import React from 'react' import FontAwesomeIcon from '@fortawesome/react-fontawesome' import Button from '../button' import * as modalConstants from '../../constants/modal' import * as tcrConstants from '../../constants/tcr' import { onlyInfura, web3Utils } from '../../bootstrap/d...
var assert = require('assert'); var http = require('http'); var WebSocket = require('ws'); var zetta = require('../'); var zettacluster = require('zetta-cluster'); var Scout = require('./fixture/example_scout'); var VirtualDevice = require('../lib/virtual_device'); var LedJSON = require('./fixture/virtual_device.json')...
import { Linear, TimelineLite } from 'gsap/all'; import barnes_logo from 'images/barnes_email_logo_1x.png'; import google_logo from 'images/google_translate.svg'; import scroll_up from 'images/up_wht_1x.png'; import React from 'react'; import { Timeline, Tween } from 'react-gsap'; import { LANGUAGE_EN, VIEWPORT_HEIGHT,...
import React, { Component } from 'react'; import { BrowserRouter } from 'react-router-dom'; import ReactDOM from 'react-dom'; import StarRatingComponent from 'react-star-rating-component'; import Form from 'react-bootstrap/Form'; import FormControl from 'react-bootstrap/FormControl'; // components import Header from ...
/* Tools to get information about the document structure. The main one here is UniqueDocumentTree. This class generates an array of file paths that are reached in a given document. They are not guaranteed to be in any particular order, and duplicate imports are ignored (hence "Unique"). Another useful one...
let uuid = require('node-uuid') const util = require('@arbiter/arb-redis') const redis = util.redis let publisher = util.publisher // mongo let monk = require('monk') let db = monk('127.0.0.1:27017/hte-match-history') let matchSet = db.get('matches') const log = require('@arbiter/dumb-lumberjack')() // const candleM...
import should from 'should'; import { unlinkSync } from 'fs'; import { Readable, Transform } from 'stream'; import { fetching } from '../wget-fetch.js'; const exist = should.exist; const not = should.not; const dst_dir = './test/tmp/'; const filename = 'angleman.png'; const dst_path = dst_dir + filename; co...
$(document).ready(function(){ // checkbox_onclick(); //tweek file container $("#file").prop('checked',true); $("#file-container").show(); $("#getComment").on('click',function(e){ e.preventDefault(); $("#reddit-expand").modal({show:true}); }); $('#file-container').after(`<div id="selectFilePreview-contain...
//help in maintaining the PubNub connections var onlineUsers = {}; pubnub = new PubNub({ publishKey : '<KEY>', subscribeKey : '<KEY>' }) var available = "yes"; var versus = ""; var requestFrom = ""; var versusName = ""; var requestCame = false; var requestSent = false; var match_channel = ""; var willHost = fa...
var Calligrapher = {}; Calligrapher.Pen = function( options ) { if ( 'undefined' === typeof options ) options = {}; this.position = new paper.Point( options.x || 0, options.y || 0 ); this.size = new paper.Size( options.width || 100, options.height || 5 ); this.angle = options.angle || -60; this....
//export const cameras.main.width = window.innerWidth; //export const this.game.config.height = window.innerHeight; /** * * Game configurations. * @name configurations */ export const gameOptions = { // bird gravity, will make bird fall if you dont flap birdGravity: 800, // flap thrust birdFlapPow...
import _debug from 'debug' const debug = _debug('app:server:lottery') import moment from 'moment'; import _ from 'lodash'; const LotteryTypeMap = { cqssc: { name: '重庆时时彩', czKJNextTime: 574, kJCZInfo:572, }, } export class Lottery { constructor () { this.InfoMap = {}; ...
const electron = require('electron'); const { app, BrowserWindow } = electron; const https = require('https'); const path = require('path'); var authWindow; /* Function that retrieves captcha codes for abritrary sites We use a nice hack for this one ;-) We overload the HTTPS protocol handler, that will...
/* * Copyright 2021 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 */ 'use strict' const { CURSOR_OPS, COLLECTION_OPS, DB_OPS } = require('./constants') const common = module.exports common.NR_ATTRS = Symbol('NR_ATTRS') /** * Instruments all methods from constants.CURSOR_OPS on ...
// @flow import React, { useEffect, useRef } from "react"; import { Shaders, Node, GLSL, Uniform } from "gl-react"; import { GameOfLife } from "../GameOfLife"; import Mandelglitch from "../../blockarts/Mandelglitch"; import MersenneTwister from "mersenne-twister"; export const n = 424242; export const title = "CryptoA...
var baseCss = require('./css/base.less'); var utils = require('./dom.js'); var scrollDlg = require('./dlgscroll.js'); var _ = { assign: utils.assign }, winH, winW; function noop(){} //动态插入css样式 function insertStyleToHead(baseFontSize){ var style = document.createElement('style'); style.innerHTML = utils.fnTem...
import { AppBar, Box, Button, CssBaseline, Divider, Drawer, IconButton, Menu, MenuItem, Toolbar, Typography, useMediaQuery, } from "@mui/material"; import React, { useEffect, useState } from "react"; import { alpha, styled, useTheme } from "@mui/material/styles"; import { useDispatch, useSelecto...
var xtend = require('xtend') var debug = require('debug')('autocrypt') module.exports = Autocrypt /** * A Node.js implementation of the Autocrypt specification. * @class * @name Autocrypt * @param {Object} opts Options object */ function Autocrypt (opts) { if (!(this instanceof Autocrypt)) return new Autocrypt...
import Shell from "termly.js"; import { programs } from "./programs"; import { htmlToElement, makeWindow } from "./lib"; import { filesystem } from "./filesystem"; import { openExplorer, openFile } from "./explorer"; import "./terminal.css"; let terminals = 0; const KEY = "terminalHistory"; class Prompt extends Shel...
'use strict'; const assert = require('power-assert'); const Normalizer = require('../../../../lib/equip/normalizer'); const Context = require('../../../../lib/context'); describe('equip/normalizer/_normalize', () => { const SKILLS = { '攻撃力UP【大】': { name: '攻撃力UP【大】', tree: '攻撃', point: 20 }, '集中': {...
// external js: isotope.pkgd.js import Isotope from "isotope-layout"; import imagesLoaded from "imagesloaded"; // init Isotope var grid = document.querySelector(".filter-container"); var iso; const navigation = document.getElementById("navigation"); const navigationHeight = navigation.clientHeight; const filterWrappe...
/** * <NAME> * Full Stack Development - MIT xPro * 07/24/21 * This application periodically polls an endpoint which provides live bus data for the `Parliament` bus route * and displays markers based on where each bus is. I'd like to add callouts to the markers displaying data about * each bus, but we shall see ho...
var express = require('express') var path = require('path') var logger = require('morgan') var cors = require('cors') var memoryCache = require('memory-cache') var bodyParser = require('body-parser') var rskLib = require('./lib/rsk') var rnsLib = require('./lib/rns') var database = require('./lib/database') var smtpCli...
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */ const Gdk = imports.gi.Gdk; const GLib = imports.gi.GLib; const Lang = imports.lang; const Shell = imports.gi.Shell; const St = imports.gi.St; const Gio = imports.gi.Gio; const Clutter = imports.gi.Clutter; const GObject = imports.gi.GObject; const M...
import Vue from 'vue'; import Vuex from 'vuex'; import router from '@/router'; import nav from './modules/nav'; import square from './modules/square'; import chat from './modules/chat'; import contacts from './modules/contacts'; import badge from './modules/badge'; import loginService from '@/service/login'; import us...
let todayDate = new Date(); let monthsName = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; let tabWithNumberDays = []; tabWithNumberDays[0] = 0; let currentDate = { yearCurrent: todayDate.getFullYear(), monthCurrent: todayDate.g...
import React from "react"; import {StyleSheet, View} from "react-native"; import {Surface, Shape, Path} from './../native/art'; /** * 九宫格解锁图案 * * <PatternLock * style={} //外层 view 样式 * padding={number} //内边距 * * dotRadius={number} // 默认情况下的圆圈配置 * dotColor={string} // 特别注...
var uiQuery = require('./ui-query.js'), ColorPicker = require('./color-picker.js'), LearnEvent = require('./learn-event.js'), category = require('./category.js'), subject = require('./subject.js'); var CreateEvent = function() { /* Since I will be using the ColorPicker two times, it needs to...
// // // Tests tge sale. Tests investment in Ether, Bonus tokens, PreTge tokens // // var Web3 = require("web3"); var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); var utils = new (require("./timeutils.js"))(web3); var PToken = artifacts.require("BCSPreTgeToken"); var ptoken; var BToken...
/* Copyright (c) 2021 <NAME> under MIT License */ const { rules, triggers, items, actions } = require('openhab'); const logger = require('openhab').log('alerting-JS'); // Rainalarm rules.JSRule({ name: 'Rainalarm', description: 'Send notification when window open while it rains.', triggers: [ triggers.ItemS...
/* * Worker-related tasks * */ // Dependencies // const path = require("path"); const fs = require("fs"); const _data = require("./data"); const https = require("https"); const http = require("http"); const helpers = require("./helpers"); const url = require("url"); const _logs = require("./logs"); const util = req...
'use strict'; var gulp = require('gulp'); var sass = require('gulp-sass'); var autoprefixer = require('gulp-autoprefixer'); var browserSync = require('browser-sync'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var minifycss = require('gulp-minify-css'...
// const config = require('../services/config') const nano = require('nano')(config.getEnv('dbServer')); const examdb = nano.db.use('examineer_exam') const metadb = nano.db.use('examineer_metadata') // for questions wise statistics let getQuestionData = async (quizId) => { // loadJSON try { let data ...
'use strict' const INPUT = process.env.INPUT || 'results.json'; const COUNT = process.env.COUNT || 1; const source = require('./' + INPUT); const DNA_BITS = 2 * 8; const DNA_SIZE = 2 ** DNA_BITS; const MAX_WHITESPACE = 4; const AVERAGE_CHANCE = 0.25; const DOMINANT_CHANCE = 0.75; const MUTATION_CHANCE = 0.5; const M...
/* eslint-disable no-unused-vars */ /// <reference path="./article-ads.d.ts"/> /** * Server side processor */ /// const Hexo = require("hexo"); const fs = require("hexo-fs"); const path = require("path"); const minimatch = require("minimatch"); const utils = require("./utils"); const log = require("./log"); const { m...
'use strict'; exports.__esModule = true; exports.sharpMatcherRegx = exports.dimensionMap = exports.findComponentUpward = exports.deepCopy = exports.firstUpperCase = exports.MutationObserver = undefined; exports.oneOf = oneOf; exports.camelcaseToHyphen = camelcaseToHyphen; exports.getScrollBarSize = getScrollBarSize; e...
var net = require('net'); var b = require('bonescript'); var socketio = require('bonescript/node_modules/socket.io'); var fs = require('fs'); //I think the BeagleBone Black supports much more than this, but maybe the original BeagleBone doesn't? var DIO_SIZE = 12; var AI_SIZE = 7; var PWM_SIZE = 8; var TMR_SIZE = 5; v...
'use strict' // add the user model const User = require('../../models/user') const Patient = require('../../models/patient') const crypt = require('../../services/crypt') const { client_server } = require('../../config') function getPatientsUser(req, res) { let userId = crypt.decrypt(req.params.userId); Us...
import fjs from '../lib/functional.js'; import Count from '../lib/Count'; import Maybe from '../lib/Maybe'; import birdBrain from '../lib/birdbrain'; const memoize = fn => { const cache = {}; return (...args) => { const stringifiedArgs = JSON.stringify(args); const result = cache[stringifiedAr...
import React, { Component } from 'react' import {Row, Col, Table, Card, InputGroup, FormControl, Button} from 'react-bootstrap'; import getWeb3 from "./getWeb3"; import BalanceStats from "./BalanceStats"; import History from "./History"; import AssetTab from "./AssetTab"; import CollateralizedShares from "./Collate...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _util = require("./util"); function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (i...
/* Copyright (C) 2017-2019 <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 2 of the License, or (at your option) any later version. This program is distri...
console.log('Ready!!') function validaForm(){ //campo select if($("#cartera").val() == ""){ alert("Seleccionar Cartera."); $("#cartera").focus(); return false; } if($("#comparativo").val() == ""){ alert("Seleccionar Comparativo."); $("#comparativo").focus(); return false; ...
let mappedGeo = {}; let path; const legend = ['High', 'Mid', 'Low', 'No data']; const legend_wdt = 75; const legend_bot = 50; const legend_rect = 10; const option_left = 75; const option_wdt = 50; function createMap() { d3.select(map_dest).selectAll("svg").remove(); let canvasWidth = $(map_dest).outerWidth(true...
/*! * ShipIt.js * Copyright(c) 2011 <NAME> <hide.o.j55{at}gmail.com> * MIT Licensed */ /** * Library version. */ exports.version = '0.3.2'; var fs = require('fs'); var path = require('path'); var exists = fs.exists ? fs.exists.bind(fs) : path.exists.bind(path); // Default 'steps' var defaultSteps = function() { ...
import * as d3 from 'd3'; import donorsCSV from '../../data/donors.csv'; import recipientsCSV from '../../data/recipients.csv'; import { getProps, sortArrByYear, getMaxAmountByYear } from './data-manipulations'; const fetchData = () => { const obj = {}; obj.donors = donorsCSV.map((data) => ({ country: String(...
var primaryLanguage = ''; var secondaryLanguage = ''; // var shuffledArray = []; class Games { flashCard(datareturned, bodyReqData) { return new Promise((resolve, reject) => { console.log('AAAAA GAMES bodyReqData ====>>> ', bodyReqData) let primaryLanguage = bodyReqData.opti...
var path = require('path'), fs = require('fs'); var opt = require('./opt'); var recurseSpewed = false; // List of all available programs, and their corresponding data; that can // be launched or could have been launched at some time when this server // was running. They are all the executables from in the dir...
import {onload2promise, cloneCanvas} from './utils'; import {BlendModes} from './blend'; import {CompositeModes} from './composite'; import {BlendNonSepModes} from './blendnonsep'; import * as gpujs from 'gpu.js'; import {TYPE_GROUP} from "./index"; const blend_modes = {'svg:multiply': 'multiply', 'svg:screen':'screen...
/* eslint-disable */ import axios from 'axios' import publicPlatformUtil from '../../common/publicplatform/util' import { getValue } from './js-bridge' // 获取URL上拼接的单独参数 export const getParam = (name) => { let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); let r = window.location.search.substr(1).replace(...
/*jslint browser: true, node: true */ /*global require, module */ "use strict"; /*** Imports ***/ var daikon = daikon || {}; daikon.Utils = daikon.Utils || {}; daikon.Utils.crcTable = null; /*** Static Pseudo-constants ***/ daikon.Utils.MAX_VALUE = 9007199254740991; daikon.Utils.MIN_VALUE = -9007199254740991; ...
// Custom resolve functionality for the CDS compiler // // See `internalDoc/ModuleResolution.md` for details on the algorithm. // The algorithm is based on NodeJS's `require()`. 'use strict'; const path = require('path'); const { cdsFs } = require('./file'); const DEFAULT_ENCODING = 'utf-8'; /** * Default lookup-...
const os = require('os'); var config = {} /********************************************************* COMMON CONFIGURATION It's used by Nuve, ErizoController, ErizoAgent and ErizoJS **********************************************************/ config.rabbit = {}; config.rabbit.host = 'rabbitmq'; //default value...
/* eslint-disable */ export const anime = { id: '46603438', type: 'libraryEntries', links: { self: 'https://kitsu.io/api/edge/library-entries/46603438', }, anime: { id: '13209', type: 'anime', links: { self: 'https://kitsu.io/api/edge/anime/13209', }, createdAt: '2017-01-22T03:01...
import React, { useState, useRef } from 'react' import { Link, navigate } from 'gatsby' import { Row, Col } from 'react-flexbox-grid' import AniLink from 'gatsby-plugin-transition-link/AniLink' import { useSpring, useTransition, useChain, animated } from 'react-spring' import { justifyContent, fontSize, fontWeigh...
#!/usr/bin/env node require('dotenv').config() const {join} = require('path') const got = require('got') const {outputJson, readJson} = require('fs-extra') const getStream = require('get-stream') const csvParse = require('csv-parser') const {groupBy, sortBy, defaults, pick, keyBy, chain, sumBy, uniq} = require('lodash...
//Command advanced editor framework, and Raw mode editor import choc, {set_content, DOM, on} from "https://rosuav.github.io/shed/chocfactory.js"; const {BR, BUTTON, CANVAS, CODE, DIALOG, DIV, EM, FORM, HEADER, H3, INPUT, LABEL, LI, P, SECTION, SPAN, TEXTAREA, U, UL, TR, TD} = choc; const tablist = ["Classic", "Graphica...
//Função executada externamente pelo loadComunity.js que carrega o conteudo do JSON para a visualizaçõo. function init_page() { var app; //Remoção em breve: Que servia como orientação para identificar estágio dos problemas que ocorrem durante a execução da página. $.get(joinComunitydata.url,joinComunitydata,join...