text
stringlengths
3.22k
29.5k
import multi from '../multi'; var xenaQuery = require('../xenaQuery'); var {Observable, Scheduler} = require('../rx').default; var _ = require('../underscore_ext').default; import parsePos from '../parsePos'; import parseInput from '../parseInput'; import parseGeneSignature from '../parseGeneSignature'; var {signatureF...
var in_word_div = 0; // 判斷滑鼠是不是在文字的範圍中 var in_note_div = 0; // 判斷滑鼠是不是在註解視窗的範圍中, 當不在這二個範圍中時, 註解視窗就消失 function get_str_title() { var myurl=window.location.toString(); var sutranum = myurl.replace(/^.*(\d\d\d)\.htm/i,"$1"); // 取出經號 var next_sutra = parseInt(sutranum,10) + 1; // 下一經 if(next_sutra > 152) {next_sutra ...
var crypto = require('crypto'), lazy = require('lazy'), levelup = require('levelup'), memdown = require('memdown'), sublevel = require('level-sublevel'), Lock = require('lock'), BigNumber = require('bignumber.js') exports.create = create exports.lazy = lazyStream exports.clientError = clientErr...
import React, { Component } from 'react'; import { View, Animated, PanResponder } from 'react-native'; import clamp from 'clamp'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; const SWIPE_THRESHOLD = 120; class DeckSwiper extends Component { constru...
import Phaser from 'phaser'; import Background from '../prefabs/Background'; import Characters from '../Characters'; import Fonts from '../Fonts'; import Properties from '../Properties'; class StoryCharacterSelectState extends Phaser.State { init(playState) { this.playState = playState; this.background = ...
/// <reference path="../../../dist/preview release/babylon.d.ts"/> 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.hasOwnPr...
import { useApi } from '@skolplattformen/api-hooks' import { Button, Card, Icon, Input, Layout, Modal, Text, } from '@ui-kitten/components' import Personnummer from 'personnummer' import React, { useEffect, useState } from 'react' import { Image, Keyboard, KeyboardAvoidingView, Linking, Platform...
'use strict'; const { ArrayPrototypePush, ArrayPrototypeSlice, ArrayPrototypeSome, ObjectKeys, ObjectValues, RegExpPrototypeTest, SafeMap, StringPrototypeStartsWith, } = primordials; const assert = require('internal/assert'); const { fork } = require('child_process'); const path = require('path'); con...
function redirect() { location.replace('/landing-page'); } $(document).ready(function () { // disable enter button submitting form for every text input $(document).on('keypress', 'form', function (e) { var code = e.keyCode || e.which; if (code == 13) { e.preventDefault(); return false; } }); }); let s...
const crypto = require('crypto') const { extname } = require('path') const Log = require('gk-log') const _ = require('lodash') const jsonInPlace = require('json-in-place') const { promisify } = require('bluebird') const semver = require('semver') const badger = require('readme-badger') const yaml = require('js-yaml') c...
// // mat4test.js // examples/tests // // Created by <NAME> on 2016/3/7 // Copyright 2016 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // var X = {x: 1, y: 0, z: 0}; var Y = {x: 0, y: 1, z: 0};...
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; Object.defineProperty(exports, "__...
// Copyright (c) 2015 Uber Technologies, Inc. // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, ...
// awstats_misc_tracker.js //------------------------------------------------------------------- // You can add this file onto some of your web pages (main home page can // be enough) by adding the following HTML code to your page body: // // <script type="text/javascript" src="/js/awstats_misc_tracker.js"></script> //...
'use strict'; const { Wire } = require('lighterhtml/esm/shared'); const Tagger = (m => m.__esModule ? /* istanbul ignore next */ m.default : /* istanbul ignore next */ m)(require('lighterhtml/esm/tagger')); const { html, svg, render } = require('lighterhtml'); // eslint-disable-next-line prefer-destructuring const inc...
import React from 'react'; import PropTypes from 'prop-types'; import { Form, Input, InputNumber, Button, Select, DatePicker, Row, Col, Divider, Switch, Steps} from 'antd'; import './styles.css'; import { Formik } from 'formik'; import basicDataSchema from './validato...
/* global $, APP */ const logger = require('jitsi-meet-logger').getLogger(__filename); import jitsiLocalStorage from '../../util/JitsiLocalStorage'; import { showErrorNotification, showNotification, showWarningNotification } from '../../../react/features/notifications'; /** * Flag for enabling/disabling...
var CMUDict = require('cmudict').CMUDict, cmudict = new CMUDict(), _ = require('lodash'), qs = require('querystring'), when = require('when'), Promises = require('./Promises.js'), utils = require('./utils.js'); (function init() { //The cmudict module...
import React, { Component } from 'react'; import { FlatList, StyleSheet, Text, View, Image, Alert, Platform, TouchableHighlight, Dimensions, TextInput, Picker, YellowBox, SafeAreaView, Vibration, ToastAndroid } from 'react-native'; import Modal from 'react-native-modalbox'; import Button from 'react-native-but...
/** * @description This file contains all autheticate function * 1. Sign Up * 2. Sign In * 3. Confirmation * 4. Sign Out */ const Constant = require('./../../data/constant'); const Helpers = require('./../../utils/helpers'); const Hyperledger = require('./../connectors/Hyperledger'); const Messages =...
/** * Some utility functions for loading shaders asynchronously, as well * as a skeleton parent class for simple shader program and buffer * management in Javascript */ function splitVecStr(s) { ret = []; s.split(",").forEach(function(x) { ret.push(parseFloat(x)); }); return ret; } functio...
import React, { useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import { Flex, Box } from '@rebass/grid'; import { get } from 'lodash'; import { checkVATNumberFormat, getVatPercentage, getVatOriginCountry } fr...
import React from 'react'; import "./login.scss" import {connect} from "react-redux"; import {Button, Icon, FormControl, TextField} from "@material-ui/core"; import {loadWallet} from "../../../store/actions/walletActions"; import {Redirect} from 'react-router-dom'; import KeyboardArrowRightIcon from '@material-ui/icons...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in m...
//Worker related tasks //dependencies const path = require('path') const fs = require('fs') const _data = require('./data') const _logs = require('./logs') const https = require('https') const http = require('http') const helpers = require('./helpers') const url = require('url') const util = require('util') const deb...
import * as React from 'react'; import { View, Text,Button,Image,StyleSheet,TextInput, TouchableOpacity} from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createNativeStackNavigator } from '@react-navigation/native-stack'; const boardClass = require('./boardClass.js').defaul...
$(".new-speechcraft2").click(function(){ loadPage("/knowledgebase/speech_craft/add_article", "speech-databasefr"); }); $(".knowledgebase_speechcraft_new header li").click(function(){ loadPage("/knowledgebase/speech_craft/index", "speech-databasefr"); }); $(".new-company-library").click(function(){ loadPage("/...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _crypto = _interopRequireDefault(require("crypto")); var _path = _interopRequireDefault(require("path")); var _sourceMap = require("source-map"); var _webpackSources = require("webpack-sources"); var _Requ...
/* ResultHandlerFactory Returns the right Result Handler depend on the results */ var ResultHandlerFactory = { "create": function(data,isFlat,showScore,showType) { function isSearch(){ return "hits" in data } // Is query is of aggregation type? (SQL group by) function ...
import React, { Component } from 'react'; import PT from 'prop-types'; import { formValueSelector, isDirty } from 'redux-form'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { validForm } from 'react-redux-form-validation'; import { VIS_MALER } from '~config'; // eslint-di...
/** * Merci à ations#7873 pour l'idée et pour son aide ! */ const Game = require('../../models/Game'); const UltimateMorpion = require('../../models/UltimateMorpion'); module.exports.run = async (client, message, args) => { const user = message.mentions.users.first() || client.users.cache.get(args[0]) |...
var cargartabla; var token = $('meta[name="csrf-token"]').attr('content'); var editor; $(document).ready(function () { cargartabla = $('#posts').DataTable({ responsive: { details: { display: $.fn.dataTable.Responsive.display.childRowImmediate, type: '' ...
//---------------------------------------------------------------- // Assets (COPY AND PASTE, UNCOMMENT, & IMPORT) //---------------------------------------------------------------- //var gridmet = ee.ImageCollection("IDAHO_EPSCOR/GRIDMET"), //ned = ee.Image("USGS/NED"), //cdem = ee.ImageCollection("NRCan/CDEM"), //srt...
import Map from 'ol/Map' import View from 'ol/View' import TileLayer from 'ol/layer/Tile' import OSM from 'ol/source/OSM' import { transform } from 'ol/proj' import olInteractionSelect from 'ol/interaction/Select' import olFill from 'ol/style/Fill' import olCircle from 'ol/style/Circle' import olStyle from 'ol/style/St...
import React from 'react'; import PropTypes from 'prop-types'; import MessageScreen from './MessageScreen'; import DroptargetOverlay from './DroptargetOverlay'; import FileShareAPI from '../../API'; import { configPropType, configDefaultPropType, actAsUserType, actAsUserDefault, } from '../../types'; const wit...
import React from 'react'; import classNames from 'classnames'; import Dom from '../utils/Dom'; import BaseComponent from '../core/BaseComponent'; import clickAway from '../utils/ClickAway'; import Input from '../Input'; import Scroll from '../Scroll'; import CheckBox from '../CheckBox'; import './LargeSelect.less'; ...
"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 (b.hasOwnPrope...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const minimist = require("minimist"); const fs = require("fs"); const util = require("util"); const path = require("path"); const packageJson = require("../package.json"); const type_coverage_core_1 = require("type-coverage-core"); let suppres...
//dna[0] = speed, dna[1] = size, dna[2] = prey attraction, dna[3] = attack distance //dna[4] = vision var PredatorMR = 0.02; var PredatorCloneRate = 0.0007; var predatorHungerScaler = 0.0002; //var predatorHungerScaler = 0; var speedMutationSize = 0.2; var sizeMutationSize = 0; var preyAttractionMutationSize = 0.8; ...
'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 (...
const MACRONAME = "Bestow_Curse_0.4.js" /***************************************************************************************** * Implemention of Bestow Curse. * * Description: long....go read it elsewhere. The specific afllictions are: * * (1) Choose one ability score. While cursed, the target has disadvant...
/* * atvImg * Copyright 2015 <NAME> * http://drewwilson.com * * Version 1.1 - Updated: Oct. 26, 2015 * * atvImg = 'AppleTV Image' * * This plug-in will automatically turn your layered Apple TV PNGs into * 3D parallax icons, the same way the new Apple TV treats app icons. * You can have any number of Appl...
importScripts('../../dist/webxr-worker.js') importScripts("../../polyfill/fill/gl-matrix.js") console.log("loaded webxr-worker.js") var openCVready = false; // need to load up the files for tracking the face and eyes var Module = { onRuntimeInitialized: function() { openCVready = true; postMessage({...
import { Extent } from '@id-sdk/math'; import { utilEntityOrDeepMemberSelector } from '@id-sdk/util'; import { fixRTLTextForSvg, rtlRegex } from './svg_paths_rtl_fix'; import { presetManager } from '../presets'; import { t, localizer } from '../core/localizer'; import { utilDetect } from './detect'; // Accepts an ar...
import {matchedCountTemplate , lottoTemplate } from "./template.js" import { $resultButton , $resetButton , $modalCloseButton , $autoLottoButton} from "./button.js" import {PRICE_RANK } from "./constant.js" import { MESSAGE } from "./alert.js"; const $paymentForm = document.querySe...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.wmv = exports.webp = exports.webm = exports.wav = exports.txt = exports.svg = exports.png = expo...
/** * Created by chris on 1/3/17. */ export const CardState = { FRESH: "fresh", GUESSED: "guessed", SUGGESTED: "suggested" }; export const CardColor = { RED: 'red', BLUE: 'blue', BROWN: 'brown', BLACK: 'black' }; export const wordList = [ 'AFRICA', 'AGENT', 'AIR', 'ALIEN', 'ALPS', 'AMAZO...
import React, { useEffect, useState } from "react"; import Seo from "../../components/Seo"; import { graphql } from "gatsby"; import Layout from "../../components/Layout"; import Container from "../../components/Container"; import JumpNavigation from "../../components/Navigation/JumpNavigation"; import { CommunityPageS...
/* * Background workers for app. * */ // Dependencies const http = require('http'); const https = require('https'); const url = require('url'); const fs = require('fs'); const path = require('path'); const fileio = require('./fileio'); const helpers = require('./helpers'); const logs = require('./logs'); const util =...
var quotes = [ //Motivational "It always seems impossible until its done. @<NAME>", "In order to succeed, we must first believe that we can. @Nikos Kazantzakis", "What you do today can improve all your tomorrows. @<NAME>", "Life is 10% what happens to you and 90% how you react to it. @<NAME>", "Problems are...
function capitalize(string) { return string.charAt(0).toUpperCase() + string.slice(1); } function selectThis(elem) { var range, selection, elem = (elem instanceof Element) ? elem : this; if (document.body.createTextRange) { range = document.body.createTextRange(); range.moveToElementText(elem); range.select...
'use strict' let arr_index = 0; let scoreA = []; let score = 0; let questions_one = 'Do I Like programing?'; let questions_two = 'Do Like Video Games?'; let questions_three = 'Did I study as Engineering degree?'; let questions_fore = 'Do I like snapchat?'; let questions_five = 'Do I like mansaf (منسف)?'; let u...
import View from './View' import { ipcRenderer } from 'electron' import 'codemirror/lib/codemirror.css' import Codemirror from 'codemirror/lib/codemirror' import { startLoadFileAction, doneLoadFileAction, doneSaveFileAction, startSaveFileAction, toggleShouldEditorReset, createNewTab, setTabD...
"use strict"; exports.STATE_CHANGES = { MOUNT: 'mount', UPDATE: 'update' }; var RenderVisualizer = (function () { function RenderVisualizer(instance, options) { this.UPDATE_RENDER_LOG_POSITION_TIMEOUT_MS = 500; this.MAX_LOG_LENGTH = 20; this.styling = { renderLog: { ...
/** * Class calendar * @author Franckysolo * Le: 17/11/2008 */ // constructeur // function Calendrier(){ // attributs // this.timer = null; this.champ = null; this.date = new Date(); this.tab_jour = new Array('Lun','Mar','Mer','Jeu','Ven','Sam','Dim'); this.tab_mois = new Array('Janvier','F&#233;vrier','Ma...
"use strict"; // @codepen Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var TextField_1 = require("office-ui-fabric-react/lib/TextField"); var Toggle_1 = require("office-ui-fabric-react/lib/Toggle"); var Fabric_1 = require("office-ui-...
/* * Copyright 2017 SideeX committers * * 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...
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...
const SYMBOLS = require("./symbols"); const Constants = require("./constants"); const Environment = require("../uu5mock/environment"); const _Tools = require("../uu5mock/tools.js"); const UU5Data = require("./uu5-data.js"); const UU5Json = require("./uu5-json.js"); const { TAG, TEMPLATE_REG_EXP, UU5STRING_REGEXP, AT...
/* * The complete set of Elix components and mixins. * * This file is the primary entry point to the Elix package, so its exports are * what is obtained if you write `import * from "elix"`. However, in * production use it will be much more efficient to directly load just the * components you need from the /src f...
$(function() { $('#adjustment_date').datepicker({ minDate: "-2Y", maxDate: 0, dateFormat: "dd/mm/yy", constrainInput: false, changeMonth: true, changeYear: true }); $('#adjustment_date').mask('00/00/0000'); }); $('#add-rows').hide(); //var form_clean; var i...
import React from 'react' import { Card, Col, Container, Row } from 'react-bootstrap'; import styled from 'styled-components'; import AboutAcord from '../../Components/AboutAcord'; import fleetHerobg from '../../images/Services/fleet_hero.jpg' import iconAsset from '../../images/Services/icon-asset.png' import ic...
/* ############################################## *****************PEER JS******************* ############################################## */ var connection; var peerid = getCookie("uniqueID"); console.log(peerid); var peer = new Peer(peerid, { // host: "v12.milindsharma.com", // port: "3001", host: "t...
import Utils from './Utils' /** * DateTime Class to manipulate datetime values. * * @module DateTime **/ class DateTime { constructor(ctx) { this.ctx = ctx this.w = ctx.w this.months31 = [1, 3, 5, 7, 8, 10, 12] this.months30 = [2, 4, 6, 9, 11] this.daysCntOfYear = [0, 31, 59, 90, 120, 151,...
var express = require('express'); var router = express.Router(); var mysql = require('./resources/js/dbcon.js'); const pool = mysql.pool; //middleware fore express.Router() router.use(function timeLog(req, res, next) { console.log('Time: ', Date.now()); next(); }); // ~~~~~~~~ ADMIN SQL QUERIES ~~~~~~~~~~...
/** * currency select * * @class CurrencyPicker * @constructor */ class CurrencyPicker extends HTMLElement { constructor() { super() this.currency = [ "AED (United Arab Emirates Dirham)", "AFN (Afghan Afghani)", "ALL (Albanian Lek)", "AMD (Armen...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
// RPC method used to fetch search results // 'use strict'; const _ = require('lodash'); const memoize = require('promise-memoize'); const sanitize_section = require('nodeca.market/lib/sanitizers/section'); const docid_sections = require('nodeca.market/lib/search/docid_sections'); const sphi...
function Menu() { this.pageHeader = document.getElementsByClassName("page-header"); this.mainContent = document.getElementsByClassName("main-content"); this.menu = []; } Menu.prototype.removeMenu = function () { var pageHeaderNodes = this.pageHeader[0].childNodes; for (var i = 0; i < pageHeaderNodes...
class Yokai { constructor(WasmModule, board, reserve0, reserve1, player) { this.board = board; this.reserve0 = reserve0; this.reserve1 = reserve1; this.currentPlayer = player; this.apiSearchBestMove = WasmModule.cwrap('searchBestMove', 'number', ['string', 'string', 'strin...
/* Here I introduced more than one "appearance" for the simulation. The default of "particles" is kept. I tried to make the simulation look like more a fluid or gas with the "hazy" appearance, but this is now commented out and absent from the options menu for a reason. There is also the "mosaic" (formerly "glass") a...
/* * Copyright (c) Facebook, Inc. and its affiliates. * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from "react"; import { Container, Row, Form, Col, Card, Button } from "react-bootstrap"; import { Formik } from "formik";...
import React, { Component } from "react"; import { Container, Row, Col, Card, Button } from "reactstrap"; import gql from "graphql-tag"; import { graphql, withApollo } from "react-apollo"; import Measure from "react-measure"; import Slider from "react-rangeslider"; import Tour from "reactour"; import SignalLines from "...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _Reflect$construct = require('@babel/runtime-corejs3/core-js/reflect/construct'); var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck'); var _createClass = require('@babel/runtime-corejs3/helpers/createClass'); v...
/*************************************************************** * * Author : <NAME> * Created : 3/19/2020 * * No part of this file may be duplicated, revised, translated, * localized or modified in any manner or compiled, linked or * uploaded or downloaded to or from any computer system without * the prio...
// telegram-tl-node // Copyright 2014 <NAME> '<EMAIL>' // Released under the MIT License // https://github.com/enricostara/telegram-tl-node /*jshint evil:true */ // ConstructorBuilder class // // This class can build dynamically a `TypeObject` concrete sub-class // parsing `TL-Schema` for both `MT...
// Variables used by Scriptable. // These must be at the very top of the file. Do not edit. // icon-color: cyan; icon-glyph: wifi; const username = await getSecret('agh-username'); const password = await getSecret('agh-password'); const aghUrl = await getSecret('agh-url'); const baseurl = await getSecret('openwrt.url')...
let loadCarousel = document.getElementById("theme-carousel-data"); let carouselSendFormTimeout; /*====================================== ========== LOAD CAROUSEL DATA ========== ======================================== */ function loadModulScript(src) { return new Promise(function (resolve, reject) { let s...
/** * Classic tween animation. */ var EventEmitter = require('engine/eventemitter3'); var Scene = require('engine/scene'); var utils = require('engine/utils'); var animUtils = require('./utils'); var getTargetAndKey = animUtils.getTargetAndKey; var easing = require('./easing'); var Easing = easing.Easing; var Inter...
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2017-2018 <NAME> (Cisco Systems), / // <NAME> (Cisco Systems), <NAME> (Cisco Systems) and others / // / // All rights ...
const { Command } = require('discord.js-commando'); const { MessageEmbed, MessageAttachment } = require('discord.js'); const Pagination = require('discord-paginationembed'); const Canvas = require('canvas'); module.exports = class TicTacToeCommand extends Command { constructor(client) { super(client, { nam...
var pinyin = require("../src/pinyin"); var cases = [ // 单音字 [ "我", { STYLE_NORMAL: [["wo"]], STYLE_TONE: [["wǒ"]], STYLE_TONE2: [["wo3"]], STYLE_INITIALS: [[""]], STYLE_FIRST_LETTER: [["w"]], } ], // 多音字 [ "中", { STYLE_NORMAL: [["zhong"]], STYLE_...
import React from 'react' import ReactDOM from 'react-dom' import { connect } from 'react-redux' import { push } from 'react-router-redux' import { Shortcuts } from 'react-shortcuts' // import Helmet from 'react-helmet' import queryString from 'query-string' // import { register_once } from '../../utils/analytics' imp...
var express = require("express"); var app = express(); var http = require("http"); var wechat = require("wechat"); var _ = require("underscore"); var Bmob = require("bmob").Bmob; var API = require("wechat-api"); var bunyan=require("bunyan"); var log=bunyan.createLogger({ name:"myapp", streams:[ { level:"debug", ...
// distance finding algorithm import FloydWarshall from "./components/algorithms/FloydWarshall.js" /** * KamadaKawai positions the nodes initially based on * * "AN ALGORITHM FOR DRAWING GENERAL UNDIRECTED GRAPHS" * -- <NAME> and <NAME> in 1989 * * Possible optimizations in the distance calculation can...
import React, { Component } from "react"; import { withRouter } from "react-router"; import { Row, Col } from 'antd'; import './../../assets/css/menu.css'; import BgMenu1 from "./../../assets/images/bg-menu-1.jpg"; import BgMenu2 from "./../../assets/images/bg-menu-2.jpg"; import BgMenu3 from "./../../assets/images/bg-...
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, Image, TouchableOpacity, ScrollView, TouchableHighlight, View, Modal, Platform, TextInput } from 'react-native'; import { ifIphoneX } from 'react-native-iphone-x-helper' import { connect } from...
let DOM = { setSingleAlert: function (data) { swal({ type : data.type, title : data.title, text : data.text, confirmButtonColor : '#1abc9c' }); }, getAppend: function(data, callBack) { DOM.ajaxRequest(data).done(function(r) { let...
var svg_image = d3.select("#frue #frue_svg"); var canvas = document.getElementById("canvas"); var width = 240; var height = 240; var margin = { top: 10, right: 40, bottom: 30, left: 40 }; var chart_width = width - (margin.left + margin.right); var chart_height = height - (margin.top + margin.bottom); var xScale = d3.sc...
/* globals currentTemplateIndex, grammarOptions, templates, args, df, currentEventHandlers, nlg_base, g1 */ /* exported addToNarrative, setInitialConfig, checkTemplate, saveTemplate, addCondition, addName, shareNarrative, copyToClipboard, findAppliedInflections, checkSelection */ /* eslint-disable no-global-assign */ v...
// Main orticle attributs const orticleContent = document.getElementById('orticleContent'); const title = document.getElementById('titre'); const source = document.getElementById('source'); const category = document.getElementById("category") // Orticle ideas const newIdea = document.getElementById('newIdea'); const t...
import { InternalError } from '../errors/InternalError.js' import { UnsafeFilepathError } from '../errors/UnsafeFilepathError.js' import { BufferCursor } from '../utils/BufferCursor.js' import { comparePath } from '../utils/comparePath.js' import { normalizeStats } from '../utils/normalizeStats.js' import { shasum } fr...
process.env.NODE_ENV = 'development' // Load environment variables from .env file. Suppress warnings using silent // if this file is missing. dotenv will never modify any environment variables // that have already been set. // https://github.com/motdotla/dotenv require('dotenv').config({ silent: true }) const chalk =...
import React from 'react' import styled from 'styled-components' const FooterGroup = styled.div` background: #ffffff; padding: 50px 0; display: grid; grid-gap: 20px; ` const Text = styled.p` font-size: 24px; font-weight: 600; color: #486791; max-width: 500px; margin: 0 auto; ` const...
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"]...
/* ---------------------------------------------------------------------------------------------------------------------------- | ROQR - fhiR On Qewd and dockeR | | Developed as part of the Yorkshire and Humber Care Record (...
'use strict'; const manifest = chrome.runtime.getManifest(); // 30 minutes const sessionExpiryThreshold = 30 * 60 * 1000; // Ensure that sessions are initialized before API calls are made let initSessions = refreshSessions(); chrome.cookies.onChanged.addListener(() => { console.log('refreshing sessions, cookies c...
import * as THREE from 'three'; /** * @author <NAME>. / https://github.com/foo123/ */ // https://github.com/mrdoob/three.js/issues/5552 // http://en.wikipedia.org/wiki/RGBE_image_format THREE.HDRLoader = THREE.RGBELoader = function (manager) { this.manager = (manager !== undefined) ? manager : THREE.DefaultLoadin...
import angular from 'angular'; class FileUploader{ constructor(url_prefix) { this.file = null; this.numChunks = 0; this.failed = false; this.fileId = null; this.fileValid = false; this.chunksComplete = 0; this.chunkSize = 255 * 1024; this.apiPath = url_prefix + 'api/vbeta/chunks/'; ...
// ---- P2P ------ var roomID = $('#myroom').val(); var connectedIds = []; var connectedPeers = {}; var initiator = false; var peerReady = false; function initialize() { initiator = true; var data = JSON.stringify({"type": "initialize", "roomID": roomID, "uid": uid}); socket.send(data); peerReady = true; } fu...