text
stringlengths
3.22k
29.5k
const characterList = { '清澄高中': ['片冈优希', '染谷真子', '竹井久', '原村和', '宫永咲'], '龙门渕高中': ['井上纯', '泽村智纪', '国广一', '龙门渕透华', '天江衣'], '鹤贺学园': ['津山睦月', '妹尾佳织', '蒲原智美', '东横桃子', '加治木由美'], '风越女子': ['福路美穗子', '吉留未春', '文堂星夏', '深堀纯代', '池田华菜'], '阿知贺女子': ['松实玄', '松实宥', '新子憧', '鹭森灼', '高鸭稳乃'], '晚成高中': ['小走八重', '丸濑纪子', '木村日菜', '上田良子'...
/** * Adapters simple operations test suite. * * Tested features : * - dbAdapter.query() * - dbAdapter.insert() * - dbAdapter.update() * - dbAdapter.remove() * - dbAdapter.getLastInsertId() * - dbAdapter.fetchAll() * - dbAdapter.fetchRow() * - dbAdapter.fetchCol() * - dbAdapter.fetchOne() * * @au...
// @flow import $ from 'jquery'; import * as d3 from 'd3'; import _ from 'lodash'; import { langNetwork } from '../json/data'; const languagesCoo = langNetwork.locations; const lineGeneratorAlluvial = d3.line().curve(d3.curveMonotoneX); function recreateAlluvial(viz, from, selector) { // only takes the influencing...
const DUMMY_METRICS = { 'battery state of charge (percentage)': [35, '%'], 'power consumption (kw)': [1.25, 'kW'], 'solar pv power generation (kw)': [1.25, 'kW'], 'energy consumption 30days (kwh)': [56, 'kWh'] }; const DUMMY_PRIORITIES = { "0": ['Nursery 1', 'sockets'], "1": ['Playground', 'lig...
var Core = require('./core.js'); var Game = require('./game.js'); var Options = require('./options.js'); var Logger = require('./logger.js'); var ChildProcess = require('child_process'); var Crypto = require('crypto'); var Fs = require('fs'); var HttpServer = require('http'); var Path = require('path'); var Url = requ...
const express = require('express') const {expect} = require('chai') const fs = require('fs-extra') const createFlynnGitReceiveApp = require('./flynnGitReceiveApp') const bodyParser = require('body-parser') const basicauth = require('basicauth-middleware') const morgan = require('morgan') const debug = require('debug')(...
"use strict"; // Utility. const sqr = function(x) {return x*x;}; /** For a delta x and a delta y, calculate distance. * * @param xd Delta x. * @param yd Delta y. */ const calcLength = function(xd, yd) { return Math.sqrt(sqr(xd) + sqr(yd)); }; // Circle-fractal drawer. // NOTE: It would have been grea...
const texts = ["ابحث عن الاجهزه التى تريدها", "قم بالبحث المناسب ", "ابحث مره اخرى"]; const input = document.querySelector("#searchbox"); const animationWorker = function (input, texts) { this.input = input; this.defaultPlaceholder = this.input.getAttribute("placeholder"); this.texts = texts; this.curTe...
/** * Created by Administrator on 2017/11/26. */ function extend(O1,O2){ for(var i in O2){ O1[i]=O2[i]; } } function each(arr,f){ for(var i = 0;i<arr.length;i++){ f.call(arr[i],i,arr[i]); } } function dataInfo(Obj,x,y){ var c=document.createElement("canvas"); var txt= c.getCont...
/* data attribute creates object that is bound to this computed - computed property but with caching method - computed property - invoked each time v-model - links inputs to vue js data https://codepen.io/pespantelis/pen/ojwgPB https://www.raymondcamden.com/2018/02/08/building-table-sorting-and-pagination-in-vuejs ...
var vidPlayerObject = ''; var playerReady = false; var gPlayerList = []; var gPlayerObject = 0; var gTimerObj = 0; var gEventTypes = { ON_END:0, ON_PLAY:1, ON_PAUSE:2, ON_BUFFERING:3, ON_ERROR:4 }; sVide...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
/*! .rollup-config-generator.js | @author Brikcss (https://github.com/brikcss) | @reference (https://rollupjs.org) */ // ------------------------------------------------------------------------------------------------- // Imports and setup. // const resolve = require('rollup-plugin-node-resolve') const commonjs = req...
/* jshint -W101 */ var $ = require('mf-utils-node'), mongoose = require('mongoose'), Model = mongoose.Model; module.exports = function (schema, options) { var auditFields = $.schemas.getAuditFields(schema); options = options || {}; setOptions(options); if (!schema.path(op...
// Copyright (c) 2006, 2008 <NAME> <<EMAIL>> // Copyright (c) 2006, 2008 LShift Ltd. <<EMAIL>> // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation files // (the "Software"), to deal in the Software without restriction, // including without ...
const fs = require('fs'); // load all the files let data = []; let dataByType = {}; let load_files = (base_folder, is_rr) => { // check if slash, add if none // the names of the subfolders our script creates let phase_time = "phase-times"; let orat = "orat"; let mrat = "mrat"; let default_con...
const __path = require('path') const __fs = require('fs') const __marked = require('marked') const __glob = require('glob-all') const __execPhp = require('exec-php') const __htmlspecialchars = require('htmlspecialchars') const __handlebarHelpers = require('../views/handlebarHelpers') const __jsYaml = require('js-yaml')...
/** * 格式化图片大小 see com.baozun.nebula.web.taglib.ImgUrlTag */ function formatImage(imgUrl, size) { if (null == imgUrl || undefined == imgUrl || "" == imgUrl) { return defaultImg; } var index_dot = imgUrl.lastIndexOf("."); var index_underline = imgUrl.lastIndexOf("_"); var formatImgUrl = ""...
import { ɵɵdefineInjectable, ɵsetClassMetadata, Injectable, ɵɵdirectiveInject, NgZone, ɵɵdefineDirective, ɵɵstaticContentQuery, ɵɵqueryRefresh, ɵɵloadQuery, ɵɵProvidersFeature, forwardRef, ɵɵNgOnChangesFeature, Directive, Input, ContentChild, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@ang...
var ObjectId = require('mongodb').ObjectID; var DBRef = require('mongodb').DBRef; var ObjectSchema = require('../index.js'); var assert = require('chai').assert; var testObject = { "_id" : ObjectId('529327e2675916232d000004'), "_version" : 3, "status" : "published", "author" : { _id: '<PASSWORD>', collection: ...
import {characterEntitiesLegacy} from 'character-entities-legacy' import {characterReferenceInvalid} from 'character-reference-invalid' import {isDecimal} from 'is-decimal' import {isHexadecimal} from 'is-hexadecimal' import {isAlphanumerical} from 'is-alphanumerical' import {decodeEntity} from './decode-entity.js' /*...
/** * Created by haydn.chen on 4/4/2018. */ import React from 'react' import BaseComponent from '../../../components/BaseComponent' import './ProposalView.scss' import { FormGroup, FormInput, FormText, FormSelect, } from '../../../components/Forms' import { formatNumber, deepClone } from '../../../common/...
var GalleryUploadPanel = function( editor ){ var signals = editor.signals; var container = new UI.Panel().setDisplay('none'); var inputPanel = new UI.Panel().setClass('galleryUploadPanel'); var labelMail = $( document.createElement('label') ).text('E-Mail:'); inputPanel.dom.appendChi...
"use strict"; var _react = _interopRequireDefault(require("react")); var _expect = _interopRequireDefault(require("expect")); var _proxyquire = _interopRequireDefault(require("proxyquire")); var _eventsContainer = _interopRequireDefault(require("./eventsContainer")); var _urlNotSupportedError = _interopRequireDefa...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
var gId = '#dataGrid'; var currentSelectRowIndex;//当前选中行下标 var lastEditRowIndex;//最后编辑的行下标 $(document).ready(function(){ $('#orderForm').submit(function(){ submitSaveForm(''); return false; }); //列表 $(gId).datagrid({ idField:'id', url:getUrlOpt(), fitColumns:true, frozenColumns:[[ {field...
var PDFImage = require('pdf-image').PDFImage var async = require('async') var path = require('path') var util = require('util') var fs = require('fs') function range (begin_int, end_int) { var arr = [], i = begin_int while(i < end_int) { arr.push(i) ++i } return arr } function PDF2Images (pdf_file_pat...
goog.declareModuleId('plugin.im.action.feature.LabelAction'); import * as osColor from '../../os/color.js'; import FeatureEventType from '../../os/data/featureeventtype.js'; import PropertyChangeEvent from '../../os/events/propertychangeevent.js'; import {getLayer, getSource} from '../../os/feature/feature.js'; import...
import GuiUtils from 'utils/GuiUtils'; import BaseWidget from 'widgets/BaseWidget'; var vendors = ['-moz-', '-o-', '-webkit-', '-ms-', '']; var urlAlpha = 'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAChJREFUeNpiPHPmDAMMGBsbw9lMDDgA6RKM%2F%...
var scene, renderer; var camera, tvset; var cameraRTT, sceneRTT; $(document).ready(function(){ if (!init()) animate(); }) // init the scene function init() { renderer = new THREE.WebGLRenderer({ antialias: true, // to get smoother output preserveDrawingBuffer: true // to allow scree...
/** * Copyright 2004-present Facebook. All Rights Reserved. * @format * @noflow */ 'use strict'; // Ensure that all yarn.lock's in fbsource have all of their deps in the // offline mirror and are properly synced with their respective package.json. // This script invokes yarn directly instead of install-node-module...
import {utilsDraw} from '../utils/utils-draw'; import {default as _} from 'underscore'; import {default as d3} from 'd3'; var d3getComputedTextLength = _.memoize( (d3Text) => d3Text.node().getComputedTextLength(), (d3Text) => d3Text.node().textContent.length); var cutText = (textString, widthLimit, getCompute...
const {BaseModule} = require("../structures/BaseModule"); const subscriptionsTable = "user_location_subscriptions"; const notificationsTable = "user_notifications"; class Handler extends BaseModule { constructor(setup) { super(setup); this.name = "sub"; } handle(data) { const interaction = data.interaction; ...
//srf-dnm_Three.js r1 function SRF_THREE(){//class for manege .srf this.Model=new THREE.Geometry(); //'geometry' this.ModelMesh=new THREE.Mesh(); //'mesh' this.srfdata=new String(); this.materialIndex=new Array(); this.wireframe=false; //function of loading .srf this.LoadSrfSync...
/* Copyright (c) 2020, California State University Monterey Bay (CSUMB). All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, ...
var GeoPackageAPI = require('@ngageoint/geopackage') , GeoPackageTileRetriever = GeoPackageAPI.GeoPackageTileRetriever , BoundingBox = GeoPackageAPI.BoundingBox , chalk = require('chalk') , proj4 = require('proj4') , xyzTileUtils = require('./lib/xyz-tile-utils'); proj4 = 'default' in proj4 ? proj4['default'...
import React, { Component } from 'react'; import './App.css'; import { withRouter} from 'react-router-dom'; import { BrowserRouter as Router } from 'react-router-dom'; import { Switch , Route ,Redirect} from 'react-router-dom'; import { browserHistory,IndexRoute} from 'react-router'; import { connect } from 'react-...
var GROUP_NAME = "rsf"; var PLATFORM_Y = 40; var TEMPLATE_Y = 20; var TEMPLATE_Z = -3367; var PLATFORM_X_MIN = 3227; var PLATFORM_X_MAX = 3305; var PLATFORM_Z_MIN = -3442; var PLATFORM_Z_MAX = -3364; var STONE_BLOCK = "minecraft:stone"; var SLAB_BLOCK = "minecraft:smooth_stone_slab"; var craftingTable; var direction...
// FUNCAO QUE RETORNA OS GENEROS function getGenre($id){ var genres = [ { "id": 28, "name": "Ação" }, { "id": 12, "name": "Aventura" }, { "id": 16, "name": "Animação" }, { "id": 35, "name": "Comédia" }, ...
/** * 日期器的选择样式 */ export var CQDatePickShowType = { yyyyMMdd: 0, /** 只显示年月日 */ yyyyMMddHHmm: 1, /** 只显示年月日时分 */ yyyyMMddHHmmss: 2, /** 只显示年月日时分秒 */ yyyyMM: 3, /** 只显示年月(目前2019.07.06不支持) */ HHmm:4, /** 只显示时分(目前2019.07.06不支持) */ HHmmss:5 /** 只显示时分秒(目前2...
highScore = localStorage.getItem('highScore'); if(highScore == null){ highScore = 0; localStorage.setItem('highScore',highScore); } highLevel = localStorage.getItem('highLevel'); if(highLevel == null){ highLevel = 1; localStorage.setItem('highLevel',highLevel); } const canvas = document.getElementBy...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const ENGLISH = require('./wordlists/english.json'); // Note: this cuts off extra bits from data // A 2048 word list is 11 bits per word, so you should pass in a // 17 byte Buffer, and the most significant 4 bits are thrown away function encod...
var Format = new _Format() var Storage = new _Storage() function _Directory () { var self = this this.body = $('.list table tbody') this.table = $('.list table') this.size = $('.top-menu .folder-size') this.table = $('.list') this.actions = { download: $('.top-menu .action #download'), rename: $('....
import { Component, dom } from '../ui'; const Exportmap = function Exportmap(options = {}) { const { buttonText = 'Ladda ner kartan', attributionFontSize = options.attributionFontSize = '10', attributionFontColor = options.attributionFontColor = 'rgb(64, 64, 64)', icon = '#fa-download' } = options;...
class App { constructor() { this.pause = false; this.playerHeight = 100; this.playerWidth = 100; this.playerColor = 'navy'; this.playerSpeed = 20; this.playerLeft = window.innerWidth / 2 - this.playerWidth / 2; this.playerTop = window.innerHeight - this.playerHeight; this.maxPlayerL...
// Write your JavaScript code. let acc = document.getElementsByClassName("accordion"); for (let i = 0; i < acc.length; i++) { acc[i].addEventListener("click", function () { this.classList.toggle("active"); var panel = this.nextElementSibling; if (panel.style.maxHeight) { panel....
const multer = require("multer"); const sharp = require("sharp"); const AppError = require("./../utils/appError"); var User = require("./../models/user"); var Insect = require("./../models/insect"); var Compendium = require("./../models/compendium"); const catchAsync = require("./../utils/catchAsync"); var storage = m...
import React, { Component } from 'react' import Brand from './brand' import { colors } from '../../../../style' import styled from '@emotion/styled' import { MobileNavigationLink } from './navigation-link' import VisuallyHidden from '../../../utilities/visually-hidden' import Search from './search' import Container fro...
import React from 'react'; import { Image, Button, Text, View, ScrollView, TextInput, TouchableHighlight, StyleSheet } from 'react-native'; import { connect } from 'react-redux'; import actions from '../../actions'; import { commonStyles } from '../../styles/styles'; import { textStyles } from '../../styles/textStyle...
const sockets = io(); setInterval('location.reload()',80000) /* MAPA */ var map; function initMap() { map = new google.maps.Map(document.getElementById('map'), { center: {lat: -34.397, lng: 150.644}, zoom: 8 }); } var mymap = L.map('mapid').setView([21.857125, -102.289837], 18); L.tileLa...
export function polarToCartesian(r, theta, cx = 0, cy = 0) { return [r * Math.cos(theta) + cx, r * Math.sin(theta) + cy]; } function degreesToRadians(deg) { return deg * (Math.PI / 180); } export function writePixelRect(imageData, x, y, color, width = 1, height = 1){ const offsetX = Math.floor(width / 2); const o...
/* Copyright 2018 New Vector Ltd Copyright 2019 The Matrix.org Foundation C.I.C. 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 a...
import React from 'react'; import { View, Container, Content, Button, Text, Form, Item, Input, Label, List, ListItem, Picker, Grid, Row, Col, Thumbnail } from 'native-base'; import { StatusBar, Dimensions, TouchableOpacity, Alert, Image, ScrollView, AsyncStorage, Keyboard } from 'react-native'...
"use strict"; var isDesktop = !navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i); var container, camera, scene, renderer, controls, sphere; var isUserInteracting = false; var lon = 0, lat = 0, phi = 0, theta = 0; var onPointerDownPointerX = 0, onPointerDownPointerY...
import React from "react"; import { View, Text, Alert, ActivityIndicator, TouchableOpacity, TextInput, } from "react-native"; import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view"; import FastImage from "react-native-fast-image"; import Moment from 'moment'; import LineIcon from "reac...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm, formValueSelector } from 'redux-form'; import { addEvent, fetchCalendars, fetchUser } from '../../actions/index'; import cookie from 'react-cookie'; import DateTime from 'react-datetime'; import { Multiselect, Co...
/* * SMS receiver for LTE modem model: MF823D * */ require('dotenv').config(); const moment = require('moment'); var stdio = require('stdio'); var requestp = require('request-promise'); var teleBotInstance = require('telebot'); // telegram instance var telebotOptions = { token: process.env.MY_TOKEN, usePlugi...
"use strict"; var util = require('util'); var Orchestrator = require('orchestrator'); var Fiber = require('fibers'); var path = require('path'); var fs = require('fs'); var existsSync = fs.existsSync || path.existsSync; var cli = require('./flit/cli'); var miwa = require('./miwa'); var Context = require('./context')...
'use strict'; const checker = require('license-checker'); const xml = require('../lib/xml.js'); const html = require('../lib/html.js'); const versionHandler = require('../lib/version-handler.js'); const warnings = require('../lib/warnings.js'); const reader = require('../lib/file-reader.js'); const js2xmlparser = requ...
// code to controll RGB Led 'use strict'; const five = require('johnny-five'); const express = require('express'); const app = express(); const server = require('http').createServer(app); const io = require('socket.io')(server); var anglea = 0; var angleb = 0; var GestureEnum = {"unavaliable":0, "swipeUp":1, "swi...
// @ts-check // eslint-disable-next-line import/no-extraneous-dependencies import '@agoric/install-ses'; // eslint-disable-next-line import/no-extraneous-dependencies import test from 'ava'; import bundleSource from '@agoric/bundle-source'; import { E } from '@agoric/eventual-send'; import { makeIssuerKit, MathKind } ...
import GameConfiguration, { UserInformation, GameInformation, FolderInformation } from './lib/GameConfiguration.js'; import GameSettings from "./lib/GameSettings.js"; import Context2D from "./lib/renderer/Context2D.js"; import MainMenuScreen from "./lib/gui/screen/MainMenuScreen.js"; import KeyboardListener from "/lib/...
// make jslint stop after the first error so we can do all sort of nasty tricks /*jslint passfail: true*/ /** @define {boolean} */ var DEBUG = false /** @define {boolean} */ var SOUND = false /** @define {boolean} */ var ROTATE = false /* * window: * Ado: AudioContext() * rqt: requestAnimationFramework()...
#! /usr/bin/env node var program = require('commander'); var _ = require("underscore"); var pkgInfo = require('../package.json'); require("colors"); var moment = require("moment"); var core = require("../index"); program.version(pkgInfo.version); program .command('setup [source] [destination]') .description('...
/** * Copyright (c) 2021, Cloudless Consulting Pty Ltd. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ /* API: - fetch */ /** * Sends an AJAX request. * Examples: * * // Submit a Form with a fil...
const ScoreKey = 'score' const PAGE_SIZE = 8; const ITEM_HEIGHT = 70; const ActionFetchFriend = 'fetchFriend' const ActionFetchGroup = 'fetchGroup' const ActionUpdateScore = 'updateScore' const sysInfo = wx.getSystemInfoSync() const pixelRatio = sysInfo.pixelRatio const windowWidth = sysInfo.windowWidth...
var _ = require("underscore"), express = require('express'), logfmt = require("logfmt"), request = require('request'), cheerio = require('cheerio'); _.str = require('underscore.string'); _.mixin(_.str.exports()); SCOREBOARD = {}; TOKEN_AWARD = { "1": 20, "2": 10, "3": 5 }; PARTIAL_TOKEN_...
PIXIScene.image("fond", "img/OFC-App-V3-Bluetooth-01.png", 180, 320, 1); PIXIScene.image("texte", "img/OFC-App-V3-Bluetooth-02.png", 180, 110, 1); PIXIScene.image("main", "img/OFC-App-V3-Bluetooth-03A.png", 115, 305, 1); PIXIScene.image("onde3", "img/OFC-App-V3-Bluetooth-03B3.png", 198, 360, 0); PIXIScene.image("onde2"...
import Client, { ClientHandler } from "./client"; import http from 'http'; import SocketServer from "socket.io"; import SocketChannel from "../channel/socket-channel"; import { EventEmitter } from "events"; import SocketMessage from "../message/socket-message"; import SocketUser from "../user/socket-user"; import Socke...
function showTaskQueue() { if( focusedExperiment ){ var req = createRequest(); makeRequest(req, "cmd=get_task_queue&experiment_id="+focusedExperiment.id, function(){ onShowTaskQueue(req); }); } } function onShowTaskQueue(req) { if( req.readyState == 4 ){ var json = JSON.parse(req.responseText); json['tas...
import React, { useState } from 'react'; import { useForm } from 'react-hook-form'; import { Box, Flex, Text } from 'rebass'; import { Label, Input, Textarea } from '@rebass/forms'; import { theme } from '../styles/theme'; import { ContentWrapper } from './Container'; import Yes from '../assets/yes.svg'; import No from...
const tap = require('lodash/tap') const map = require('lodash/map') const toPairs = require('lodash/toPairs') const fromPairs = require('lodash/fromPairs') const mergeWith = require('lodash/mergeWith') const flatMap = require('lodash/flatMap') const isEmpty = require('lodash/isEmpty') const isArray = require('lodash/is...
const { path } = require('@vuepress/shared-utils') const THEME_PATH = '/vuepress-theme/' module.exports = { title: '1980\'s Maker', description: '一个出生于80年代的程序员 -- 喜爱创[客]、美[食]、动[画]、怀[旧]的新手艺人的博客', port: 8080, theme: 'vuepress-theme-maker', head: [ ['link', { rel: 'icon', href: '/logo.jpg' }], ['link', ...
// varible var itemInCart = { length: 0, data: [] }; var imgSave = new fabric.Text('SaveImg', {}); $(document).ready(function () { getAmoutInCart(); handleNAmountInCart(); handleAmountShoppingCart(); deleteItemsCart(); }); function handleAmountShoppingCart() { // Shopping Cart var shoppingCartDivAmo...
import React, { Component } from 'react'; import { Button, Col, Row, Input, InputGroup, InputGroupAddon } from 'reactstrap'; import DatePicker from "react-datepicker"; class CreateProduct extends Component { constructor(props) { super(props); this.form = { category: '', name: '', grade: '',...
let currentGame; let currentGameRef; let isCheckingAnswer = false; let timerInterval; let checkAnswerTimeout; const questionBox = document.querySelector('#question-box'); const prevCorrectAnswer = document.querySelector('#correct-answer'); const initializeGame = () => { getCurrentGame().then(currGameInfo => { ...
import FlightSuretyApp from '../../build/contracts/FlightSuretyApp.json'; import FlightSuretyData from '../../build/contracts/FlightSuretyData.json'; import Config from './config.json'; import Web3 from 'web3'; import express from 'express'; const bodyParser = require("body-parser"); const cors = require('cors'); requi...
//Dependencies const redis = require('redis'); const bluebird = require('bluebird'); const mongoose = require('mongoose'); const { MessageEmbed } = require('discord.js'); const prompt = require('discordjs-prompter'); const _ = require('lodash'); const { getCharacterEmbedByName } = require('../helpers/cards'); //Init c...
const metadata = require('./webtask.json'); const async = require('async'); const moment = require('moment'); const useragent = require('useragent'); const express = require('express'); const Webtask = require('webtask-tools'); const app = express(); const Request = require('request'); const memoizer = require('lru-mem...
function processUpdates(startingVersion) { if (startingVersion < 2) { startVersionUpgrade('p140'); executeUpdate(2, 'p140', 'Pre 1.4.0'); } else if (startingVersion < 3) { startVersionUpgrade('140'); executeUpdate(3, '140', '1.4.0'); } else if (startingVersion < 4) { ...
import React, { Component } from "react"; import { Link } from "react-router-dom"; import Axios from "axios"; import profilePic from "../Image/test2.svg"; import { BE_Host } from "../../config"; import { connect } from "react-redux"; import queryString from "query-string"; import Popup from "./Popup"; import Gallery fr...
// Namespace var asciidoctor = asciidoctor || {}; asciidoctor.chrome = asciidoctor.chrome || {}; var Asciidoctor = Asciidoctor(); var CUSTOM_ATTRIBUTES_KEY = 'CUSTOM_ATTRIBUTES'; var SAFE_MODE_KEY = 'SAFE_MODE'; var LIVERELOADJS_DETECTED_KEY = 'LIVERELOADJS_DETECTED'; var LIVERELOADJS_FILENAME = 'livereload.js'; var T...
$(function() { $(".itemBtn a").on("click",function() { var index = $(this).index(); if ($(this).hasClass("active")) { $(this).removeClass("active"); $(this).parents("li").find(".itemContent div").eq(index).slideUp(); } else { $(this).addClass("active").siblings().removeClass("active"); $(th...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var qs = _interopDefault(require('querystring')); function _defineProperty(obj, key, value) { if (key in obj) { Object...
/* • Use native js dates instead of moment for ~60% increase in dates calculation • Email addresses are now transliterated • More street/city names for NL dataset • Add country name to location block • Capitalized proper nouns • Split street into number and name properties • Fixed Norwegian id generation ...
import React, { Component, Fragment } from 'react'; import { Row, Card, Form, Input, Button, Table, Icon, Divider, Drawer, Popconfirm, Select, DatePicker } from "antd"; import { connect } from 'dva'; import {formatTime, responseMsg, getObjStatus, changeTime, covertMoney2Yuan} from '@/utils/utils'; import StatusSelect f...
import React, {Component} from 'react'; import { View, ScrollView, } from 'react-native'; import lodashGet from 'lodash/get'; import _ from 'underscore'; import {withOnyx} from 'react-native-onyx'; import PropTypes from 'prop-types'; import HeaderWithCloseButton from '../../../components/HeaderWithCloseButton';...
const http = require('http'); const url = require('url'); const { assert } = require('chai'); const { runDredd, recordLogging, createServer, DEFAULT_SERVER_PORT, } = require('./helpers'); const Dredd = require('../../lib/Dredd'); const PROXY_PORT = DEFAULT_SERVER_PORT + 1; const PROXY_URL = `http://127.0.0.1:${PROX...
const webpack = require('webpack') const path = require('path') const StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin const OpenBrowserPlugin = require('open-browser-webpack-plugin') const WriteFilePlugin = require('write-file-webpack-plugin') const CopyPlugin = require('copy-webpack-plugin') cons...
////////////////////////////////////////////////////////////////////////////////////////////////// // Node.JS Azure IoT Simulator Device Client ////////////////////////////////////////////////////////////////////////////////////////////////// 'use strict'; var Client = require('azure-iot-device').Client; var Protocol...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _ = require("lodash"); var replaceall = require("replaceall"); var BbPromise = require("bluebird"); var Output_1 = require("./Output"); var Variables = /** @class */ (function () { function Variables(fileName, options, out, envVars) { ...
/* * Copyright 2014 Mozilla Foundation * * 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 agr...
import $ from 'jquery' import F_ from '../../Basics/Formulae_/Formulae_' import L_ from '../../Basics/Layers_/Layers_' import Map_ from '../../Basics/Map_/Map_' import CursorInfo from '../../Ancillary/CursorInfo' import 'markjs' import calls from '../../../pre/calls' var DrawTool = null var SetOperations = ...
module.exports = errorHandler var cbCalled = false , log = require("npmlog") , npm = require("../npm.js") , rm = require("rimraf") , itWorked = false , path = require("path") , wroteLogFile = false , exitCode = 0 process.on("exit", function (code) { // console.error("exit", code) if (!npm.config.l...
/** * Copyright 2019 The AMP HTML Authors. All Rights Reserved. * * 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 require...
const config = require(`${process.cwd()}/structures/botconfig/config.json`); const { Client, Message, MessageEmbed } = require('discord.js'); const Discord = require("discord.js"); const { databasing, embedDatabasing, onCoolDown, escapeRegex } = require(`${process.cwd()}/structures/handlers/...
import { C_POSTBOX, C_WHITE } from '@bbc/psammead-styles/colours'; import { latinDiacritics } from '@bbc/gel-foundations/scripts'; import { afrique as brandSVG } from '@bbc/psammead-assets/svgs'; import '@bbc/moment-timezone-include/tz/GMT'; import withContext from '../../../contexts/utils/withContext'; import 'moment/...
require('dotenv').config(); const basePath = process.cwd(); const fs = require("fs"); const { MODE } = require(`${basePath}/constants/blend_mode.js`); const { NETWORK } = require(`${basePath}/constants/network.js`); const network = NETWORK.eth; // General metadata for Ethereum const namePrefix = "Theo The Love Butter...
const Botkit = require('botkit'); const StatusHandler = require('../statusHandler'); const Behaviour = require('./behaviour'); const BUS = require('../utils/bus'); function start(app, options) { // Init the bot controller const controller = Botkit.slackbot({ stats_optout: true, debug: false ...
/* Copyright (C) 2020, <NAME> All rights reserved. 11/30/2020 last modified 12/18/2020 */ function make_fillstyles(size, start, end) { let i; let fillStyle = []; for (i = 0; i < size; i++) { if (i >= start && i < end) fillStyle.push("lightblue"); else fillStyle.push(BACKGROUND_COLOR); } re...