text
stringlengths
3.22k
29.5k
var express = require('express'); var router = express.Router(); var redis = require('redis'); var urls = require('../lib/urls'); var client = null; var uuid = require('uuid'); var mail_token = require('../lib/mail-token'); var get_image = require('../lib/get-image'); var queue_job = require('../lib/queue-job'); var fs...
/* <section id="page"> <header>Header</header> <nav>Navigation</nav> <main>Main area</main> <footer>Footer</footer> <div id="sep1" class="horizontal"></div> <div id="sep2" class="vertical"></div> <div id="sep3" class="horizontal"></div> </section> #page { display: grid; width: 100%; height: 250px; grid-tem...
const {KMean} = require("./clustering/KMean"); const {AzureFaceAPIService} = require("./service/AzureFaceAPIService"); const {SpotifyService} = require("./service/SpotifyService"); const {EmotionService} = require("./service/EmotionService"); const SpotifyWebApi = require("spotify-web-api-node"); const Err = require("....
'use strict'; var log = require('winston'); var async = require('async'); var Sequelize = require('sequelize'); var sequelize; var semver = require('semver'); var fs = require('fs'); var path = require('path'); /** * Service constuctor to create services from Amazon SQS * @param {Object} sqs aws-sdk.SQS or mocked ver...
import React, { useEffect, useState, Fragment } from "react"; import ReactDOM from "react-dom"; import logo from "./logo.svg"; import "./App.css"; import { Typeahead } from "react-bootstrap-typeahead"; // ES2015 import "react-bootstrap-typeahead/css/Typeahead.css"; import Avatar from "@mui/material/Avatar"; import Bu...
'use strict'; const Promise = require('bluebird'); const _ = require('lodash'); const defaultOptions = {start: '[[', end: ']]'}; const xGetAttributes = new RegExp('(\\S+)\\s*=\\s*([\\\'\\"])(.*?)\\2|(\\S+)\\s*=\\s*(\\S+)|([^\\\'^\\"^\\s]+)(?:\\s|$)|([\\\'\\"])(.*?)\\7', 'g'); const xGetTagAttributesText = '{start}.*...
import utils from "../utils.js"; import logger from "../logger.js"; import DICTIONARY from "../dictionary.js"; import { copySRDIcons } from "./import.js"; /** * Sends a event request to Iconizer to add the correct icons * @param {*} names */ function queryIcons(names) { return new Promise((resolve, reject) => { ...
import ArrayUtils from '@/lib/ArrayUtils'; import { SortDirection } from '@/lib/Constants'; /** * @typedef {Object} CollisionDimensionOptions * @property {string} description - human-readable description of the dimension * @property {Map<number, CollisionFactorEntry>} entries - values for the dimension * @property...
import React, { useState } from 'react' import { BrowserRouter as Router, Route, Switch } from 'react-router-dom' import './App.css'; import Header from './components/Header' import Footer from './components/Footer' import About from './components/About' import Portfolio from './components/Portfolio' import Contact fr...
var express = require('express'); var router = express.Router(); var passport = require('passport'); var Account = require('../models/account'); // Require our controllers. var book_controller = require('../controllers/bookController'); var author_controller = require('../controllers/authorController'); var genre_con...
import { handshake } from './handshake.js' let socket = io.connect() let listOfClients = document.querySelector('#clientsList') let sendData = document.getElementById('msg') let sendBtn = document.getElementById('sendMsg') let incomingMsg = document.getElementById('incomingMsg') let callBtn = document.getElementById('c...
/* A catch-all file of simple generator arrays. includes: - Distinctive Feature - Clothing - Background - Values - Tempatations - Height - Age - Wealth - Power Level - Ability Scores - Moods - Weapons - Alignment */ const appearance = [ 'Hair color', 'Hair style', 'Facial hair', 'Ears', 'Eyes', ...
import { BaseMixin } from '../base.js' import { EmitterMixin } from '../../event.js' import { PluginMixin } from '../../plugin.js' import { CommandMixin } from '../../command.js' import { ShortcutMixin } from '../../shortcut.js' import { DisplayMixin } from './display.js' import { DBMixin } from '../db.js' import { jso...
// The ConversationPanel module is designed to handle // all display and behaviors of the conversation column of the app. /* eslint no-unused-vars: "off" */ /* global Api: true, Common: true*/ import {Common} from "./common" import {Api} from "./api" let answerBttn = document.getElementById("chat-button") export con...
'use strict'; var featureFilter = require('feature-filter'); var Buffer = require('./buffer'); var util = require('../util/util'); var StructArrayType = require('../util/struct_array'); var VertexArrayObject = require('../render/vertex_array_object'); module.exports = Bucket; /** * Instantiate the appropriate subcl...
'use strict'; const path = require('path'); const fs = require('fs'); const XLSX = require('xlsx'); const sendToWormhole = require('stream-wormhole'); const awaitWriteStream = require('await-stream-ready').write; const ObsClient = require('esdk-obs-nodejs'); const Service = require('egg').Service; class UploadService ...
const electron = require('electron'); // Module to control application life. const app = electron.app; app.commandLine.appendSwitch('no-proxy-server'); // Module to create native browser window. const BrowserWindow = electron.BrowserWindow; const path = require('path'); const url = require('url'); const c...
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import sortBy from 'lodash/sortBy'; // Intl import { injectIntl, intlShape } from 'react-intl'; // Redux import { connect } from 'react-redux'; import { updateOperator, updateFmu } from 'modules/user'; import { getSa...
import React, { useEffect, useRef, useState } from "react"; import dayjs from "dayjs"; import { firestore } from "redux/helpers/firebase"; import "./styles.scss"; import AvatarStatus from "components/AvatarStatus"; import { useTranslation } from "react-i18next"; import { Modal, ModalBody } from "reactstrap"; import Emo...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Observable } from 'rxjs'; import * as R from 'ramda'; import { compose, pure, mapPropsStream, createEventHandler } from 'recompose'; import classnames from 'classnames'; import ClickOutside from './ClickOutside'; import InputWithHint...
import { isFunction, isObject, nextUpdate } from "./utils"; import { isWebSocketUnavailable, isInvalidSafari, isMobile } from "./browserDetection"; import Events from "./Events"; import ErrorEnumValue from "./ErrorEnumValue"; import { StringFormatter, JsonFormatter, MessageFormatterBase } from "./formatters"; functio...
/************************************************************************ * Copyright (c) Crater Dog Technologies(TM). All Rights Reserved. * ************************************************************************ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * ...
/* (C) 2020, Radical Electronic Systems CC - <EMAIL> * Written by <NAME>, <EMAIL> * Robot-T410 UX */ import React, { useState, useEffect, useRef } from 'react'; import useInterval from '../utils/interval' const NetworkWireless = ( { config, handleChange } ) => { const netWifiDHCP = useRef(); const netWifiM...
'use strict'; let debug = () => 0; try { debug = require('debug')('AzureBlobFS'); } catch (err) {} const doWhilst = require('./util/doWhilst'); const path = require('path'); const Promise = require('bluebird'); const readAll = require('./util/readAll'); const whilst = require('./util/whilst'); const { R_OK, W_OK, ...
/* eslint babel/semi: "error" */ import _ from 'lodash'; /** * "Only friends" homefeed mode * * Displays posts from Posts/Directs feeds subscribed to by viewer. */ export const HOMEFEED_MODE_FRIENDS_ONLY = 'friends-only'; /** * "Classic" homefeed mode * * Displays posts from Posts/Directs feeds and propagable ...
//# sourceURL=profile.js var editProfilebtn = $('.editProfileBtn'), profilewrapo = $('.profilewrapo'), editprofilewrapo = $('.editProfilewrapo'), submitbtn = $(".submitBtn"), inputs = $('input'), selects = $('select'), cancelbtn = $(".cancelBtn"); var Profile = { isFormValid : true, edittedCredential : {}, ...
import React from 'react' import Layout from '../src/components/common/Layout'; import { Grid, Typography, withStyles, Button, Paper, Divider, TextField, Snackbar, Avatar,CircularProgress } from '@material-ui/core'; import Router from 'next/router' import firebase from '../lib/firebase' import { topMargin } from '../li...
/* eslint-disable max-statements */ 'use strict'; // require('../browser'); const fs = require('fs'); const puppeteer = require('puppeteer'); const chai = require('chai'); const { assert } = chai; const chaiHttp = require('chai-http'); chai.use(chaiHttp); const U = require('../utils.js'); describe('TESTING CLIENT-SID...
import { Stepper, Step, StepLabel, Typography, makeStyles } from '@material-ui/core' import React, { useState, useEffect } from 'react' import DataInput from './DataInput' import Metrics from './Metrics' import ResultView from './ResultView' import clsx from 'clsx'; import { calculateHammingDistance } from "../multi-at...
var save_text = function () { var bake, params; params = get_params(location.search); if (params.hasOwnProperty('bake')) { bake = params['bake']; } if (typeof(bake) == "undefined") { console.log("Not baking, just viewing"); return; } if (bake === "yes") { console.log...
// $Id: exportcfg.js,v 1.4 2019/02/15 11:11:07 rswindell Exp $ // vi: tabstop=4 // ***************************************************************** // Output a list of configuration items (e.g. msg areas, file areas) // ***************************************************************** "use strict"; // global option...
const fs = require(`fs`) const path = require(`path`) const mkdirp = require(`mkdirp`) const Debug = require(`debug`) const { createFilePath, createRemoteFileNode, } = require(`gatsby-source-filesystem`) const { urlResolve, createContentDigest, slash } = require(`gatsby-core-utils`) const debug = Debug(`@scot3004/...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
/** * @type {String} * * @properties={typeid:35,uuid:"026180CC-D618-41D3-A17D-49D89EAFEEEE"} */ var apiURL = ''; /** * @type {Boolean} * * @properties={typeid:35,uuid:"93326293-6439-437C-9DE2-A4CF6D4B5615",variableType:-4} */ var authenticated = false; /** * * @properties={typeid:24,uuid:"7CA7EA12-0BF5-4854...
const hasWindow = typeof window === 'object' && window !== null && window.self === window && window.navigator !== null; const bIsiOS = hasWindow && /iPad|iPhone|iPod/.test(window.navigator.userAgent) && !window.MSStream; const hasSpeechSynthesis = hasWindow && window.speechSynthesis !== null; // const iOSEnglishVoice...
import { ViewGridAddIcon } from '@heroicons/react/outline' import { ExternalLinkIcon, UserAddIcon } from '@heroicons/react/solid' import axios from 'axios' import React, { useEffect, useState } from 'react' import Alert from '../components/alert' import { config } from '../config/config' const AddNewTrainers = () => {...
// initialize the local object for user data function WkUserData() { this.userPublicKey = ""; this.refreshInterval = 900000; this.notifLifetime = 10000; this.inAppNavigation = true; this.expandInfoPanel = true; this.hide0Badge = false; this.notifSound = false; this.username = "Mysterious Unknown"; th...
import {imgTosvg} from "./helper-funcs"; document.addEventListener("DOMContentLoaded", () => { // constants for various functions explained below (just comment the constant and the script is no longer excuted) const doTrim = document.querySelectorAll("[data-trim]"); const detImages = document.querySelectorAll(...
import React, { useState, useEffect } from "react"; import { Navbar, Container, Row, Col, ToggleButtonGroup, ToggleButton, Form, Card, CardDeck, } from "react-bootstrap"; import { sortData, prettyPrintStat } from "./utils/utils"; import InfoBox from "./component/Info-Box/Info-Box.component"; import Li...
import React, { memo, useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import EzoneUtils from '../../../../utils/EzoneUtils'; import { connect } from 'react-redux'; import * as Actions from '../actions'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import ...
const fs = require("fs"); const path = require("path"); let name = "all"; let elements = JSON.parse(fs.readFileSync(path.join( name + ".raw.json"), "utf8")).elements; let skipkeys = { } function mergekinds(tags, kinds) { for (let k in tags) { let v = tags[k]; if (!kinds[k]) { kinds[k] = { TOTAL: 1, ...
class GetData { constructor(url, token){ this.url = url; this.token = token; } getPSG(){ if ("caches" in window) { caches.match(this.url + 'v2/teams/524') .then(resp => resp.json()) .then(resp => { const {activeCompetitions, address, area, clubC...
/** * MT940 parser class * @module lib/parser */ const Tags = require('./tags'); const helperModels = require('./helperModels'); const Field86Structure = require('./field86structure'); /** * Main parser class, parses input text (e.g. read from a file) into array of statements. * Each statement is validat...
import { StoicIdentity } from "ic-stoic-identity"; import { Actor, HttpAgent } from '@dfinity/agent'; import { canisterId, dots } from "../../declarations/dots"; import { idlFactory } from '../../declarations/dots/dots.did.js'; let stoicIdentity = false; let gameActor = dots; const highscoreElement = document.getElem...
$(window).on('load', function () { setTimeout(function () { $(".loader-page").css({ visibility: "hidden", opacity: "0" }) }, 1000); }); const firebaseConfig = { apiKey: "AIzaSyDf5UIMl-yWAgMAMxVNodeh2mOcQf6R5dM", authDomain: "trender-8bed4.firebaseapp.com", projectId: "trender-8bed4", storageBucket: "t...
import * as d3 from 'd3' import * as d3Contour from 'd3-contour' import { legend, dateFormats, labelsOcclusion } from '@rawgraphs/rawgraphs-core' import '../d3-styles.js' export function colorDomain(data, mapping, visualOptions) { const { width, height, bandwidth, marginTop, marginRight, marg...
// define some dependencies var express = require("express"), exphbs = require("express-handlebars"), exec = require('child_process'), addon = require('./build/Release/RF24_Addon'), schedule = require('node-schedule'), fs = require('fs'), routes = require('../routes.js'), //Nodes_File = require("./public/nodes....
/** * A sound frequency bar graph for p5js with axes and color * * By Professor <NAME> * https://jonfroehlich.github.io/ * http://makeabilitylab.cs.washington.edu **/ let mic, fft; let showMaxAtBinLines = false; function setup() { createCanvas(600, 400); // Gets a reference to computer's microphone //...
import React, { Component, PropTypes } from 'react' import { connect } from 'react-redux' import { apiGetUserArticle, apiGetUserInfo, apiFollowMember, apiUnfollowMember } from '../../actions/member' import styles from './MemberInfo.css' import { isEmpty, DatetimeToMsgTime, yyyymmdd, checkImg } from '../../utils' import...
/* This file is part of the OdinMS Maple Story Server Copyright (C) 2008 <NAME> <<EMAIL>> <NAME> <<EMAIL>> <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Softwa...
import React, {Component} from 'react'; import io from 'socket.io-client'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import AppBar from 'material-ui/AppBar'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import Typography from '@material-ui...
"use strict"; 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(gene...
'use strict'; //------------- DOM WINDOW ---------------- let guessGrid = document.querySelector('[data-guess-grid]'); // let alertContainer = document.querySelector("[data-alert-container]"); let endGameAlert = document.getElementById('alert-container'); // ------------- GLOBAL VARIABLES ----------- let wordLength ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.runTaskListOnce = exports.runTaskList = exports._allWorkerPools = void 0; const events_1 = require("events"); const util_1 = require("util"); const config_1 = require("./config"); const deferred_1 = require("./deferred"); const helpers...
const taskForm = document.querySelector('#edit-task-form'); let selectedDependencies = []; let dependencies = []; let selectedLinkedUserStories = []; let linkedUserStories = []; let tasks = []; let userStories = []; (function () { taskForm.querySelector('#edit-type').onchange(); getTasks().then((t) => { ...
 var frmData; //wVisualId //wMCno //sProduct //Date //wShiftId //wDefectCodeId //wInspectedId //sNotes frmData = Bind({ oData: GetNewData() }, { 'oData.wVisualId': '#spnMatrlId', 'oData.wMCno': '#txtMC', 'oData.sProduct': '#txtProd', 'oData.wShiftId': ".ddlS...
import React, { useEffect, useState } from 'react'; import styled from 'styled-components'; import Button from '../components/common/Button'; import Footer from '../components/Footer'; import HeaderContainer from '../containers/common/HeaderContainer'; import palette from '../lib/styles/palette'; import * as petAPI fro...
import Vue from 'vue' import VueRouter from 'vue-router' import Home from './components/HomeComponent.vue' import Login from './components/pages/login.vue' import Portal from './components/portal/portal.vue' import Dashboard from './components/portal/dashboard.vue' import Admin from './components/admin/admin.vue' imp...
//获取到选项卡列表元素 //$('.goods-data').each().onmouseover(function(){ // $(this).addClass('active').siblings().removeClass('active'); //}) //鼠标滑入所有的选项卡,显示对应的边框 var smallBox = document.getElementById('small-map'); var smallImg = Array.from(smallBox.children); var bigImg = document.getElementById('big-map'); var oLargeImg = doc...
var pc = yii.biz.prop('price_category') + ''; $("#input-product").focus(); function getPrice(id) { if (masters.products[id] && masters.products[id].prices) { var prices = masters.products[id].prices; return prices[pc] ? prices[pc] : (prices['1'] ? prices['1'] : 0); } return 0; } function s...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FinalityManager = exports.BFTVotingLedgerSchema = exports.CONSENSUS_STATE_VALIDATOR_LEDGER_KEY = exports.EVENT_BFT_FINALIZED_HEIGHT_CHANGED = void 0; const phaeton_codec_1 = require("@phaeton/phaeton-codec"); const phaeton_cryptography...
var app; // from app.js var toolbar; // from app.js var vlc; // from vlc.js var serverView; // from serverView.js var HTML_getdef; // from aux.js var colorSetter; // from aux.js var serverListView = { status: "select", //could be "select", "edit", "delete", "add", "scan" init: function() { serverListVie...
function T9Keyboard() { var inputField; document.addEventListener("keydown", keydownHandler); var inNewInput = true; var xt9connect = new Xt9Connect(); var array = []; var t9bar = new T9Panel(); var output = ''; var cursorPos = 0; var remapArrows = false; var reselectionMode = ...
var strukturen={ 'H':['wasserstoff'], 'C':['kohlenstoff', 'kohlenstoff2', 'methan', 'kohlenstoffdioxid', 'kohlensaeure', 'ethan', 'ethen', 'ethin', 'methanol','methanal', 'methansaeure', 'methylamin'], 'N':['stickstoff', 'ammoniak', 'hydrazin', 'stickstoffmonoxid', 'stickstoffdioxid', 'salpetersaeure', 'blausaeur...
const chai = require('chai') const sinon = require('sinon') const sinonChai = require('sinon-chai') const nock = require('nock') const { formatNumber } = require('accounting') const expect = chai.expect chai.use(sinonChai) const lotofacil = require('../src/cmd/lotofacil') describe('Lotofacil', () => { let consoleSt...
//Promesas const helloPromise = () => { return new Promise((resolve, reject) => { if (false) { resolve('Hey!'); } else { reject('Ups!!'); } }); } helloPromise() .then(response => console.log(response)) .catch(error => console.log(error)); // Cla...
/* global requestAnimationFrame */ var mat4 = require('gl-mat4'); var vec3 = require('gl-vec3'); var Geometry = require('gl-geometry'); var glShader = require('gl-shader'); var glslify = require('glslify'); var createOrbitCamera = require('orbit-camera'); var shell = require("gl-now")(); var createGui = require("pnp-g...
/**! compression tag for ftp-deployment */ /* globals URLSearchParams, MenuBuilder, enableKeys, disableKeys, clearSearch */ /** * -------------- jQuery extensions -------------- */ $.fn.extend({ /** * Update the entity selection. * * @return {jQuery} The jQuery element for chaining. */ ...
const { Duplex } = require('stream'); const types = require('./types'); /** * [MIME description] */ class MIME extends Duplex { constructor(headers, body) { super(); this.status = 0; this.body = body || ''; this.headers = Array.isArray(headers) ? headers.map(x => new Header(x)) : Object...
import Vue from "vue"; import Vuex from "vuex"; const { trending } = require('@/lib/trending') const { emoji } = require('@/lib/emoji') const { search } = require('@/lib/search') console.log("vuex store") Vue.use(Vuex); export default new Vuex.Store({ state: { trending: { active: { ...
/** * Copyright 2020 ABSA Group Limited * * 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 ag...
/* * Copyright 2014-16 Intelix Pty Ltd * * 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...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = parseLocationsArray; var _paralleljs = _interopRequireDefault(require("paralleljs")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** Worker - Parse Locations Array...
// Deribit Websocket Normalizer const frostybot_websocket = require ('./websocket.base'); class frostybot_websocket_client_deribit extends frostybot_websocket.client { constructor (conf = {}) { super (conf); } // Authenticate websocket client async authenticate () { if (!this.connected) { awai...
import { h, shallowReactive, ref, computed, watch, withDirectives, getCurrentInstance, vShow, onBeforeUnmount } from 'vue' import QItem from '../item/QItem.js' import QItemSection from '../item/QItemSection.js' import QItemLabel from '../item/QItemLabel.js' import QIcon from '../icon/QIcon.js' import QSlideTransition ...
// routing class function getLength(thing) { var count = 0; for (var test in thing) { count++; } return count; } //195ml 40 30 JN //250ml 27 33 function route(settings) { var self = this; var defaultSettings = { mainUrl: getGlobalVar('HTTP_HOST_PATH'), pattern: getGlob...
const { Client } = require("discord.js"); const fetch = require("node-fetch"); const client = new Client(); const PREFIX = "-"; const BotOwnerID = "271387672986124289" const BotVersion = "v1.6" const ACTIVITIES = { "poker": { id: "755827207812677713", name: "Poker Night" }, "betrayal":...
import React from 'react'; import {StyleSheet, View, Dimensions} from 'react-native'; import { Body, Button, Card, CardItem, Form, Header, Icon, Input, Item, Left, Right, Spinner, Text, Title, } from 'native-base'; import moment from 'moment'; import _ from 'lodash'; import MapView, { Call...
// This file performs the file reading step // Actual preprocessing is done in dbus_timeline_vis.js function MyFloatMillisToBigIntUsec(x) { x = ('' + x).split('.'); ret = BigInt(x[0]) * BigInt(1000); return ret; } // When the Open File dialog is completed, the name of the opened file will be passed // to this r...
require('dotenv').config() const path = require('path') const chalk = require('chalk') const fs = require('fs-extra') const isEqual = require('lodash.isequal') const fonts = require('./fonts') const { createCanvas, registerFont } = require('canvas') const inspect = value => require('util').inspect(value, false, null...
import React from "react"; // react plugin for creating charts import ChartistGraph from "react-chartist"; // @material-ui/core import { makeStyles } from "@material-ui/core/styles"; // import Icon from "@material-ui/core/Icon"; // @material-ui/icons // import Store from "@material-ui/icons/Store"; import Warning from ...
import React, { useEffect, componentDidMount } from "react"; import clsx from "clsx"; import SineWaves from "sine-waves"; import Layout from "@theme/Layout"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import styles from "./index.module.css"; import HomepageFeatures from "../components/Homepage...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Link } from 'react-router-dom'; import cx from 'classnames'; import * as actions from './action'; import { StyledWrapper, flexCenterMiddle } from '../../g...
import React, { useState, useEffect } from "react"; import { useParams, useHistory, useLocation, Link } from "react-router-dom"; import { useSelector, useDispatch } from "react-redux"; import { Badge, Button, TableBody, TableContainer, TableHeader, TableCell, TableRow, TableFooter, } from "@windmill/rea...
const { site } = require("./config"); const fetch = require("node-fetch"); const htmlParser = require("node-html-parser"); const moment = require("moment"); module.exports = async function GetAvailableAppointments( _ignored, fetchService = liveFetchService() ) { console.log(`${site.name} starting.`); ...
/* * Copyright 2019 is-land * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
import React from 'react' import '../../assets/stylesheets/application.css' import { checkNetWorkByID, checkWeb3 } from '../../utils/blockchainHelpers' import { findCurrentContractRecursively, getAccumulativeCrowdsaleData, getContractStoreProperty, getCrowdsaleData, getJoinedTiers, initializeAccumulativeDat...
function makeTable(target_el, config) { let el_table = document.createElement('table'); let data_list = config.data; // make thead let config_ths = config.thead.ths; makeThead(el_table, config_ths); // make tbody let config_tds = config.tbody.tds; makeTbody(el_table, data_list, config_td...
$("#addChannelBtn").on("click", function(){ $("#channel_name").removeClass("hidden"); $("#closeChannelBtn").removeClass("hidden"); $("#addChannelBtn").addClass("hidden"); }) $("#channel_name").on("input", function () { if($("#channel_name").val().length <= 2){ $("#saveChannelBtn").addClass...
/* global dhtmlXCalendarObject */ // add once, make sure dhtmlxcalendar.js is loaded dhtmlXCalendarObject.prototype.langData["fr"] = { // date format dateformat: "%d/%m/%Y", // full names of months monthesFNames: [ "Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", ...
const mongoCollections = require('../config/mongoCollections'); const { validateDate } = require('./validate'); const validateData = require("./validate"); const rentingInfo = mongoCollections.rentingInfo; const user_db = mongoCollections.users; const user_data_func = require("./users"); async function create...
"use strict"; // Copyright 2014-2016, Google, Inc. // 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...
import localforage from 'localforage'; const papergirl = (function(globalObject) { 'use strict'; const GLOBAL_NAMESPACE = 'papergirl'; const _S_ = '|'; const _NS_ = GLOBAL_NAMESPACE + _S_; const version = '1.0.0'; const _window = (function(window) { return window; })(globalObject)...
import React, { useState } from 'react'; import {Row,Col} from 'react-bootstrap'; import '../Styles/MovieViewSynopsis.css'; import Modal from 'react-awesome-modal'; import AliceCarousel from 'react-alice-carousel'; import 'react-alice-carousel/lib/alice-carousel.css'; import MovieCard from './MovieCard'; import Moment ...
// [GenDefs] // // The purpose of this script is to fetch all instructions' names into a single // string and to optimize common patterns that appear in instruction data. It // prevents relocation of small strings (instruction names) that has to be done // by a linker to make all pointers the binary application/library...
//--------------------------------------------------------------------- // Block //--------------------------------------------------------------------- "use strict"; var join_1 = require("./join"); var changes_1 = require("./changes"); var actions_1 = require("./actions"); //-------------------------------------------...
var isGameRunning = false, score = 0, ROBOT = 0, LIMIT_ROBOTS = 10, ROBOTS_IN_ACTION = 0; var renderer = null, scene = null, camera = null, root = null, robot = null, group = null; var robots = []; var currentTime = Date.now(); var clock = null; var raycaster; var mouse = new THREE.Vector2(), INTERSECTED, CLICKED...
import Mediator from 'mediator-js'; import $ from "jquery"; import d3 from "d3"; import config from 'config'; import { io } from 'io'; import Intermediate from './intermediate'; // needed for draggable modals (it can be refactored with react-bootstrap though) import "../lib/jquery-ui.min.js"; class ModuleManager { ...
import React, {Component} from 'react'; import { StyleSheet, View, Text, Image } from 'react-native'; import PropTypes from 'prop-types'; import {Card} from "react-native-material-ui"; import Ripple from "react-native-material-ripple"; import FontAwesome5 from "react-native-vector-icons/FontAw...
// @ts-check var snesUtil = { /** * Calculates the 16-bit checksum of the ROM * @param {Uint8Array} romImage * @returns {number} */ calculateChecksum: function(romImage) { // NOTE: I've found two SNES checksum algorithms, one of // which mirrors data to a power-of-two size, ...