text stringlengths 3.22k 29.5k |
|---|
/*
* Copyright © 2016-2017 The Thingsboard Authors
*
* 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 applicabl... |
import React from 'react';
const Breadcrumbs = React.lazy(() => import('./views/Base/Breadcrumbs'));
const Cards = React.lazy(() => import('./views/Base/Cards'));
const Carousels = React.lazy(() => import('./views/Base/Carousels'));
const Collapses = React.lazy(() => import('./views/Base/Collapses'));
const Dropdowns ... |
var widgets = require('@jupyter-widgets/base');
var _ = require('lodash');
var DOMWidgetModel = widgets.DOMWidgetModel.extend({
defaults: function() {
return _.extend(widgets.DOMWidgetModel.prototype.defaults(), {
_model_module: 'ipyannotate',
_view_module: 'ipyannotate',
_model_module_version: '0... |
var csrfName = $('.txt_csrfname').attr('name'); // Value specified in $config['csrf_token_name']
var csrfHash = $('.txt_csrfname').val(); // CSRF hash
$(document).on('click', '#btnadd', function(){
$('#CenterModal').modal('show');
$.ajax({
url: base_url + 'User/addUserView',
method: 'post',
... |
const assert = require('assert');
const punycode = require('punycode');
const Bloodhound = require('bloodhound-js');
import { ReactiveDict } from 'meteor/reactive-dict';
/*
article_id : control display, either index or article
Router sets immediately that value.
Hoping no article has (item_id === 0)
*/
export co... |
const params = {
searchableAttributes: [
['danger', 'nonConfiguredParam'],
['danger', 'toBigAttributeList', 64],
['danger', 'containsBoolean'],
['danger', 'toBigAttributeList', 30],
['warning', 'nonExistingAttribute'],
],
customRanking: [
['danger', 'nonConfig... |
import { faHeart } from '@fortawesome/free-regular-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import React, { useEffect, useState } from 'react';
import { useSelector } from 'react-redux';
import { withRouter } from 'react-router';
import { Link } from 'react-router-dom';
import Event... |
'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 ? "symbol" : typeof obj; };
var _createClass = function () { function defineProperties(tar... |
import {
Configurable,
} from '@tecla5/token-foundation'
import extend from 'deep-extend'
function isObj(val) {
return typeof val === 'object' && val !== null
}
const errorCode = {
USER_ALREADY_EXISTS: 3023
}
export function createLock(config, opts) {
return new Lock(config, opts)
}
export class Lock exten... |
const React = require('react')
import { Map, List, RenderSection, FromInventory, NextChapter} from 'windrift'
export default ({currentSection, inventory}) => {
const sections = [
<section>
<style>{`/* Some styles for this demo. Delete this when starting your own project. */
.game-text { margin: 1... |
//variables
const apiUrl = "https://covid-19.dataflowkit.com/v1";
let masterTracker = [];
let ourTracker = [];
const allCountries = document.getElementById('all-countries');
const countryStats = document.getElementById('selected-country-stats');
const countryDropdown = document.getElementById('country-select');
const s... |
/*
Most of what you need to know to display
images, text, access the pointer and do animation
*/
//Create an array of files you want to load
let thingsToLoad = [
"images/star.png", //An image file
"images/rocket.png", //An image file
"fonts/puzzler.otf", //A font file
"fonts/PetMe64.ttf", ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.compileToMongoDB = void 0;
const util_js_1 = require("../util.js");
function compileToMongoDB(formOrParams, injectedStages, alwaysInject, location, replacer) {
var _a;
let intermediateForm;
if ('intermediateForm' in formOrP... |
import {
get,
set,
deconStruct,
extend,
splitFirst,
splitTrim,
arr2,
each
} from "./utils";
let def = {
vendorPrefixesList: ["-moz", "-o", "-ms", "-webkit"],
indentSymbol: " ",
indentSize: 1,
selectorSeparator: ", ",
blockFromNewLine: false,
blockSeparator: "\n",
vendorMixins: false,
n... |
let tempData, url = "http://localhost:3333/"
const pushBtn = document.querySelector("#pushBtn")
pushBtn.addEventListener("click", infoMe)
const loginBtn = document.querySelector("#loginBtn")
loginBtn.addEventListener("click", loginMe)
let tempToken
function loginMe() {
const inputName = cleanInput($("#inputName").v... |
/* eslint import/no-extraneous-dependencies: 0 */
import {MetricsPanelCtrl} from 'app/plugins/sdk';
import TimeSeries from 'app/core/time_series2';
import kbn from 'app/core/utils/kbn';
import _ from 'lodash';
import mapRenderer from './map_renderer';
import DataFormatter from './data_formatter';
import { MP } from ".... |
/**
* augur.js tests
* @author <NAME> (<EMAIL>)
*/
"use strict";
var assert = require("chai").assert;
var augur = new (require("../../../src"))();
var random = require("../../random");
var tools = require("../../tools");
var utils = require("../../../src/utilities");
var noop = function () {};
describe("createBr... |
var inicio = true;
var fraseActual=0;
var ContFotos=0;
var ContDespriciones =0;
var total_hours = 0;
var item_label = [
'Estudio', 'Clases', 'Otros Estudios', 'Trabajo', 'Alimentación', 'Arreglo Personal', 'Dormir', 'Desplazamientos',
'Tareas Domésticas', 'Deporte y Actividad Física', 'Aficiones y Pasatiempos... |
import React, { Component } from "react";
import {
View,
StyleSheet,
Image,
Dimensions,
TouchableOpacity,
ScrollView,
} from "react-native";
import StarRating from "react-native-star-rating";
import { Images, argonTheme } from "../constants";
import DatePicker from "react-native-datepicker";
import { Card, ... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import { Variable, Type, ArrayType, DictionaryType, BinaryExpression, Operator, Literal } from "./ast.js"
function must(condition, errorMessage) {
if (!condition) {
throw new Error(errorMessage)
}
}
Object.assign(Type.prototype, {
isEquivalentTo(target) {
if (
(this.description === "NUM" || this.d... |
"use strict";
//////////////////////////////////////////////////////////////////////
// Copyright (c) 2017 Arenanet LLC
// Use of this source code is governed by the BSD-3-Clause license.
//
Object.defineProperty(exports, "__esModule", { value: true });
const net = require("net");
const ee = require("events");
... |
"use strict";
exports.__esModule = true;
exports.Tokenizer = void 0;
var _tokens = require("./tokens");
var _contexts = require("./contexts");
var nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
var fullCharCodeAtPos = function fullCharCodeAtPos(input, pos) {
var code = input.charCode... |
var TableStore = require('../core');
var BaseProto = require('./tablestore_compiled_proto.js');
var tsProtos = BaseProto.main.proto;
var tsFilterProtos = BaseProto.filter.proto;
var tsSearchProtos = BaseProto.search.proto;
TableStore.decoder = {
decode: function (operation, buffers) {
return tsMap[operat... |
function makeItemBox(item) {
var is1 = '<tr><td class="itemstat';
var is2 = '</td><td class="itemstat2">';
var p = '';
p += '<div class = "item" value="' + item.id + '">';
p += '<h6 class = "itemname ' + item.rarity + '_text">' + item.name + '</h6>';
p += '<div class="item_pic_holder"><im... |
import React, { useState, useEffect, useContext, useRef } from 'react';
import { useHistory } from 'react-router-dom';
import axios from 'axios';
import { NotificationDispatchContext } from '../../contexts/NotificationContext';
import { ServiceProviderValueContext } from '../../contexts/ServiceProviderContext';
import ... |
/*
----------------------------------
filename: client.js
( main client-side js )
-----------------------------------
*/
//global variable declarations
const sock = io();
var userConfig = {}, dict = {};
let options, username, roomID, uID, timer;
let HighlightCardNumber = -1, TurnCardNumber = -1, winCard = -1;... |
export const region = {
Select: ["None Selected"],
Africa: ["Northern Africa", "Sub-Saharan Africa"],
Americas: ["Northern America", "Latin America and the Caribbean"],
Asia: ["Central Asia", "Eastern Asia", "Southern Asia", "Western Asia"],
Europe: [
"Eastern Europe",
"Northern Euro... |
import $ from 'jquery';
import ko from 'knockout';
import _ from 'lodash';
import koUtilities from 'koco-knockout-utilities';
import defer from 'promise-defer';
var KEYCODE_ESC = 27;
var TRANSITION_DURATION = 300;
if ($.fn.modal.Constructor && $.fn.modal.Constructor.TRANSITION_DURATION) {
TRANSITION_DURATION = $.fn... |
/**
* @fileoverview The main output when users call for the /link command
* Shows an prompt for the user to link their account the the bot
* @author Potor10
*/
const { MessageActionRow, MessageButton, MessageEmbed } = require('discord.js');
const { ERR_COMMAND, NENE_COLOR, FOOTER } = require('../../constants');
c... |
const os = require('os');
const util = require('util');
const _ = require('underscore');
const async = require('async');
const moment = require('moment');
const fs = require('fs');
const path = require('path');
const Json2csvParser = require('json2csv').Parser;
class NetworkLoad {
constructor(query, connection) {
... |
/**
* \file PnlIdecTouDetail.js
* web client functionality for panel PnlIdecTouDetail
* \author <NAME>
* \date created: 30 Dec 2017
* \date modified: 30 Dec 2017
*/
// IP cust --- INSERT
// --- expand state management
function minimize(updh) {
if (retrieveSi(srcdoc, "StatAppIdecTouDetail", "srefIxIdecVEx... |
import React, { useState, useEffect } from "react";
import "./CadastroTitulo.css";
import Axios from "axios";
import Footer from "../../Componentes/Footer/index";
import Header from "../../Componentes/Header/index";
import Menu from "../../Componentes/Menu/index";
import { AiFillEdit } from "react-icons/ai";
import Inp... |
#!/usr/bin/node
const fs = require('fs');
const path = require('path');
const marked = require('marked');
const navbar = [
{ name: 'home', href: './', title: 'Home' },
{ name: 'start', href: 'start', title: 'Get started' },
{ name: 'doc', href: 'doc/', title: 'Documentation' },
... |
const N = 80;
const M = 60;
const DX = [-1, 0, 0, 1];
const DY = [0, -1, 1, 0];
const DS2 = ["l", "u", "d", "r"];
const DS3 = ["h", "v", "lu", "ru", "ld", "rd"];
// const SPD = [1000, 100, 75, 50, 25, 15, 10];
const SPD = [1000, 100, 80, 60, 50, 40, 30];
const DRS = (function() {
var t = [];
t[97] = 0;
t[65... |
import React, { useState, useRef, useEffect } from 'react';
import { TextInput, Surface, Divider, HelperText, Searchbar, Caption, Chip, Text, Avatar, Provider as PaperProvider, useTheme } from 'react-native-paper';
import { View, Dimensions, Platform, FlatList, ActivityIndicator // ScrollView,
} from 'react-native';
im... |
// helper functions
const PI2 = Math.PI * 2
const random = (min, max) => Math.random() * (max - min + 1) + min | 0
const timestamp = _ => new Date().getTime()
// container
class Birthday {
constructor() {
this.resize()
// create a lovely place to store the firework
this.fireworks = []
this.counter =... |
let $ = require('jquery') ;
let THREE = require('three') ;
import { getRealHeaterColor } from '../utils/colors.js'
export default {
name: 'LiveScene',
data() {
return {
liveCamera: undefined,
liveScene: undefined,
liveRenderer: undefined,
}
},
methods: {
initLive: function()
{
this.liveScene = new ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const yaml = require("js-yaml");
const os = require("os");
const semver = require("semver");
const node_core_library_1 = require("@microsoft/node-core-library");
const BaseShrinkwrapFile_1 = require("../base/BaseShrinkwrapFile");
// Thi... |
var marmottaURL = "http://localhost:8080/marmotta";
Session.setDefault('cursor', 0);
Session.setDefault('cursorRight', 0);
Session.setDefault('cursorLeft', 0);
Session.setDefault('cursorMappings', 0);
Meteor.autorun(function(){
Meteor.subscribe("resultSPARQLHeaders");
Meteor.subscribe("resultSPARQL", Session... |
var font_colour = "white";
var background_colour = "black";
set_colour(font_colour, background_colour);
var debug = true;
trial_repetitions = 5;
rocket_selection_deadline = null; // ms
// dot motion task parameters
dot_motion_repetitions = 3;
dot_motion_deadline = 10000;
p_incongruent_dots = 0.65;
num_majority = 300... |
/*
Multi-Dimensional Image Browser JS
v1.1.1
MIT License
Copyright (c) 2019, 2020 <NAME>
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 r... |
import React, {Component} from 'react';
import styles from './challenge-list.css';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';
import IconButton from '@material-ui/core/IconButton';
import... |
const express = require('express');
const app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
const xml2js = require('xml2js');
const fs = require("fs");
//begin listening at port 8089
http.listen(8089);
console.log("listening at port 8089......");
//student information
let s... |
#!/usr/bin/env node
// load shit
var commander = require('commander');
var chalk = require('chalk');
var livereload = require('livereload');
var http = require("http");
var https = require("follow-redirects").https;
var serveStatic = require('serve-static')
var finalhandler = require('finalhandler')
var ts ... |
import React, { useState } from 'react'
import * as FaIcons from "react-icons/fa";
import * as AiIcons from "react-icons/ai";
import { Link } from 'react-router-dom'
import { SidebarData } from './SidebarData'
import './Navbar.scss';
import { IconContext } from 'react-icons';
... |
import { get } from 'axios';
import deepAssign from 'deep-assign';
import debounce from 'lodash.debounce';
import { getPaginationArray, getNested } from '../utils';
const DataDisplay = {
props: ['entry', 'column'],
computed: {
value() {
return getNested(this.entry, this.column.path);
... |
/* global document */
// o:
/*
* {
* styles: [
* {
* bgcolor: '',
* align: '',
* valign: '',
* textwrap: false,
* underline: false,
* color: '',
* border: {
* left: [style, color],
* right: [style, color],
* top: [style, color],
* bottom: ... |
function initCards(table, ext_id, view, mode, tHistory) {
var deferred = new $.Deferred;
var idn = getIdn(table, ext_id, 'cards', view);
//получаем данные
var startData = initData(table, ext_id, 'cards');
//var templData = getData('/cards/gettemplate', 'get', {'table': table, 'extId': ext_id});
... |
//baseDialect.js
'use strict';
var dbg = require('../debug'),
dialect = {},
_aliasCounter = 0;
/* stubbed out for dorm to load this in dorm */
dialect.config = {};
// This function will create a where object derived from the primary key(s) of an Entity. A value can be supplied for
// Entities that have only... |
var __inputs = undefined;
//var cancel_all = false;
get_democracy_bar_input = function() {
if (!__inputs ||(__inputs.length&&__inputs.length==0))
__inputs = get_inputs().$reverse();
return (__inputs.length ? __inputs.$pop().value : "");
}
get_inputs = () => {
var new_list = [];
var w = document.querySele... |
// http://mendixnew.staging.wpengine.com/wp-json/menus/v1/menus/1378?_jsonp=callback
((function($) {
var URL = 'https://mendix.com/wp-json/menus/v1/menus/1378';
var $mainNav = $('#menu-navigation');
var $footNav = $('#menu-navigation-1');
var items = [];
var topLevel = [];
function sortOnMen... |
// ==UserScript==
// @name BrainRacing: Extra Lap Statistics
// @namespace brainslug.torn.racing
// @version 0.4.5
// @description Removing the useless left sidebar and adding statistics on the right!
// @author Brainslug [2323221]
// @match https://www.torn.com/loader.php?sid=racing... |
var entries = [];
var current_options = [];
var lastindex = 0;
var total_gb = 0.00;
var accid = '';
var eflag = false;
function fillallentries() {
if (entries.length === 0) {
total_gb = 0.00;
$("#entries").empty();
$("#totalentry").empty();
}
else {
total = 0.00;
va... |
const NodeHelper = require('node_helper');
const request = require('request-promise');
const cheerio = require('cheerio');
const pdfParser = require('pdf-parse');
const { Readable } = require('stream');
const fs = require('fs');
const os = require('os');
const dayjs = require('dayjs');
require('dayjs/locale/es');
const... |
import React from 'react';
import roundTo from 'round-to';
import _ from 'lodash';
import Input from 'components/Input';
import Button from 'components/Button';
import Select from 'components/Select';
import CurrencySelectOption from 'components/CurrencySelectOption';
import exchangeContainer from 'containers/Exchange'... |
// UTF8 Coding
// -----------
const [h2, h3, h4, h5] = [ 0b10<<6, 0b110<<5, 0b1110<<4, 0b11110<<3 ]
const [t6, t5, t4, t3] = [ ~(-1<<6), ~(-1<<5), ~(-1<<4), ~(-1<<3) ]
const utf8 = {
encode (code) { // encode! not decode :S
if (code < 0x80) return [code]
else if (code < 0x800) {
const [c1, c2]... |
/*
This file implements an object called Paper Browser, which is in charge of
presenting the tedious paper list in a more desirable way. Its function
includes extracting paper information and paraphrase its name as well as
basic filtering.
Before using, feed a list of paper files into the object, and it will analyze
... |
import { intersection } from 'underscore';
import request from 'request-promise';
import compromise from 'nlp_compromise';
import { sentences as seperateSentences } from 'sbd';
// Uses spacy to deconstruct text into a dependancy parse tree
function parse(text) {
return request.post('http://localhost:5000/parse', {
... |
import * as THREE from 'three';
import { any } from 'ramda';
import { GAME_TYPES } from '../Constants';
import { getModel } from '../AssetManager';
import { isInRange } from '../utils';
import { playEnemyCannon } from '../SoundPlayer';
import Flame from './Flame';
class EnemyShip {
constructor(scene, worldSize, fi... |
import web3wrapper from "web3-wrapper";
import Stream from "mithril/stream";
import moment from "moment";
import m from "mithril";
import { address, abi } from "contract-details";
import BigNumber from "bignumber.js";
let web3 = null;
let contract = null;
class WorkflowEvent {
static create(event, contract) {
r... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Launcher = void 0;
const tslib_1 = require("tslib");
const inject_1 = require("@appolo/inject");
const filesLoader_1 = require("../loader/filesLoader");
const modulesManager_1 = require("../modules/modulesManager");
const bootstrapDeco... |
'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
'use strict';
var _ = require('underscore');
var JuttleMoment = require('../../runtime/types/juttle-moment');
var windowMaker = require('./windowmaker');
var periodic_fanin = require('./periodic-fanin');
var errors = require('../../errors');
var Promise = require('bluebird');
var utils = require('../juttle-utils');
va... |
import React, {useState, useEffect} from 'react';
import { useDispatch, useSelector, connect } from 'react-redux';
import { creditWallet, creditWithRazor, } from '../../../store/actions/PaymentActions';
import {useForm} from "react-hook-form";
import { makeStyles, Container, Grid, IconButton, TextField, CardHeader, Typ... |
/* ----- ---- --- -- -
* Copyright 2020 The Axiom Foundation. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.apache.org/l... |
// JavaScript Document
//Here is the text that goes on the first page of the application, the one presented by running the HTM.
var Title="Power for Unmatched Case-Control Studies";
var Authors="<b>Statistics</b><br><NAME> and <NAME>, Emory University<br>"+
"<br>"+
"<b>Interface</b><br>"+
"<NAME>, EpiInformat... |
// ==UserScript==
// @name Vocafork Player
// @namespace http://tampermonkey.net/
// @version 1.0
// @description music player at https://vocafork.ahe.workers.dev/
// @author Ayassaka
// @compatible chrome
// @license MIT
// @match https://vocafork.ahe.workers.dev/*
// @grant ... |
const DEFAULT_OPTIONS = Object.freeze({
cache: true,
base: 'emoji',
scale: 0.5,
speed: 10,
density: 3,
staggered: true,
increaseSpeed: 0.08,
emoji: null
})
export default class Emoji233333 {
constructor(options) {
this.emojis = []
this.kichikuing = false
this.repeater = null
this.emoj... |
function JSWM(rootElement) {
this.rootElement = rootElement;
this.elements = {};
}
JSWM.prototype.getAllElements = function (filter) {
filter = filter || function () { return true; };
var arr = [];
for (var id in this.elements) if (this.elements.hasOwnProperty(id))
arr.push(this.elements[id... |
const path = require('path')
const webpack = require('webpack')
const postcssFlexbugsFixes = require('postcss-flexbugs-fixes')
const postcssPresetEnv = require('postcss-preset-env')
const postcssNormalize = require('postcss-normalize')
const StyleLintPlugin = require('stylelint-webpack-plugin')
const TerserPlugin = re... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import NewTippcardModal from './NewTippcardModal';
import TippcardList from './TippcardList';
import { getTippcards } from "./../../../store/actions/tippcards";
import { getCategories } from "./../../../st... |
function parse(str, editor) {
textarea = document.getElementById('userinput');
cmd = str.split(';;\n');
const ke = new KeyboardEvent("keydown", {bubbles: true, cancelable: true, keyCode: 13});
for (let i = 0; i < cmd.length; i++) {
if (!cmd[i].endsWith(';;')) cmd[i] += ';;';
textarea.val... |
'use strict';
exports.__esModule = true;
exports.Widget = exports.WidgetComponent = undefined;
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructor... |
var path = require('path');
var urlutil = require('url');
var utils = require('jul11co-wdt').Utils;
module.exports = {
name: 'MangaStream',
website: 'https://mangastream.com',
match: function(link, options) {
return (/mangastream\.com\/manga\//g.test(link)
|| /mangastream\.com\/r\//g.test(link)
... |
/*
Copyright 2008 University of Rochester
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 la... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
AttributesGroup,
DataTable,
EmptyPane,
} from '_components';
import ContentHolderPrimaryInfo from '_components/ContentHolder/ContentHolderInfo/ContentHolderPrimaryInfo.js'
import rootTypeManaged from '_components/Types/_typesManag... |
"use strict";
// IN TRAVIS-CI ONLY TEST WITH REAL DB IN ONE VERSION 0.12
if(process.versions.node.substr(0,4)!=="0.12" && process.env.TRAVIS) return;
// WHEN COVER with NO DB NO DB
if(process.env.COVER==="ndb") return;
var _ = require('lodash');
var expect = require('expect.js');
var pg0 = require('pg');
var pg = re... |
import React from 'react'
import PropTypes from 'prop-types'
import { Link, graphql } from 'gatsby'
import styled, { keyframes } from 'styled-components'
import Layout from '../components/Layout'
import Features from '../components/Features'
import BlogRoll from '../components/BlogRoll'
import facebook from '../img/s... |
import anime from 'animejs/lib/anime.es.js';
/* global Event */
const bsBoxesElements = document.getElementsByClassName( 'box' );
let bsBoxes = Array( 25 ).fill( false );
const bsFirewoks = document.querySelector( '.fireworks' );
let bsScore = 0;
const blockStorage = window.localStorage;
// Load stored game
const gp... |
const { join, dirname, basename } = require("path");
const {
readFileSync,
writeFileSync,
existsSync,
mkdirSync,
exists,
copyFileSync,
} = require("fs");
const Xcode = require("@raydeck/xcode");
const Plist = require("plist");
const {
ensureDir,
toFullHexadecimal,
resizeImage,
getProjectName,
} = re... |
import Sortable from 'sortablejs';
import { data, dataMap, registeredFields } from '../common/data';
import helpers from '../common/helpers';
import events from '../common/events';
import DOM from '../common/dom';
import Panels from './panels';
import Row from './row';
import Column from './column';
import Field from '... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.build = build;
var _lodash = _interopRequireDefault(require("lodash"));
var _ajv = _interopRequireDefault(require("ajv"));
var _ajvErrors = _interopRequireDefault(require("ajv-errors"));
var WebSocket = _interopRequireWildcard(r... |
/**
* This file contains helper methods for account controller
*/
require('dotenv').config();
// In-house files
const {User} = require('@models/User');
const {Transactions} = require('@models/Transactions');
const {logger} = require('@log/logger');
cons... |
"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];
})... |
import Dash from "dash";
import localforage from "localforage";
import {
each,
head,
includes,
invokeMap,
isEqual,
keyBy,
keys,
omit,
once,
pickBy,
reduce,
startsWith,
stubArray,
times,
zipObject,
} from "lodash-es";
const MAX_DOCUMENTS_PER_QUERY = 100;
const MAX_KILOBYTES_PER_PAYLOAD = 4... |
import { def } from './gw.js';
export function NOOP() {}
export function TRUE() { return true; }
export function FALSE() { return false; }
export function ONE() { return 1; }
export function ZERO() { return 0; }
export function IDENTITY(x) { return x; }
export function clamp(v, min, max) {
if (v < min) return ... |
/*
--- Day 16: Ticket Translation ---
As you're walking to yet another connecting flight, you realize that one of the legs of your re-routed trip coming up is on a high-speed train. However, the train ticket you were given is in a language you don't understand. You should probably figure out what it says before you ge... |
// @ts-check
/* eslint-disable react/no-danger */
import { useFormikContext } from "formik";
import PropTypes from "prop-types";
import React, { useEffect, useState } from "react";
import * as Yup from "yup";
import {
RfiTextInput,
RfiTextArea,
RfiEmailInput,
RfiSelect,
RfiPhone,
RfiCheckboxSingle,
} from ... |
import Origo from 'Origo';
import $ from 'jquery';
import dispatcher from './drawdispatcher';
import defaultDrawStyle from './drawstyle';
import shapes from './shapes';
import { restoreStylewindow, updateStylewindow, getStylewindowStyle } from './stylewindow';
let map;
let drawSource;
let drawLayer;
let draw;
let acti... |
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(ex... |
// Utility Functions
var slice = [].slice;
var _lookups = {
'format': {
// Render as plain text
'plain': _plainify,
// Render as escaped HTML
'html': _htmlify,
// Render as markdown
'markdown': _markdownify
}
};
function safe(obj) {
// If it is not a string or array, is it n... |
import { State, Effect, Actions } from 'jumpstate';
import PropTypes from 'prop-types';
import superagent from 'superagent';
import apiClient from 'panoptes-client/lib/api-client';
import { config } from '../lib/config';
// Constants
const CAESAR_EXPORTS_STATUS = {
DOWNLOADING: 'downloading',
EXPORTING: 'exportin... |
import React, { useState, useContext, useEffect, useRef } from "react"
import { SpaceASResult } from './SpaceASResult'
import { disableBodyScroll, enableBodyScroll, clearAllBodyScrollLocks } from 'body-scroll-lock'
import AppContext from './AppContext'
export const CardContextMenu = (props) => {
const ref = ... |
/**
* @module Models
*/
"use strict";
var Config = require( '../core/Config' );
var BaseSound = require( '../core/BaseSound' );
var SoundQueue = require( '../core/SoundQueue' );
var SPAudioParam = require( '../core/SPAudioParam' );
var multiFileLoader = require( '../core/MultiFileLoader' );
var Converter = require(... |
'use babel'
const ANSI_REGEX = require('ansi-regex')()
export function convert (line, ruleStack, firstLine, registry, hideEscapeSequences) {
const state = {
registry,
tags: [],
openTags: {},
colorFG: null,
colorBG: null
}
if (firstLine) {
open(state, 'ansi')
} else {
// apply ever... |
// -----JS CODE-----
// PathDataManager.js
// Version: 0.0.1
// Event: Initialized
// Description: The primary script that gets the camera path data from device tracking component.
// This script also adds helper functions to global.pathDataManager to help with accessing path data.
global.globalPathDataManager = scrip... |
const Discord = require('discord.js');
const myfs = require("./botfilesystem.js");
const FORMAT = {
rule : ' ',
subrule : ' '
}
//Function that checks to see if both the rule description and rules array exist within the serverconfig
exports.checkRules = function(serverid) {
//Variable Declarations
var config = ... |
const API_KEY = '<KEY>';
const SERVICE_URL = 'https://api.os.uk/maps/raster/v1/zxy';
// Create a map style object using the OS Maps API WMTS.
let style = {
'version': 8,
'sources': {
'raster-tiles': {
'type': 'raster',
'tiles': [`${SERVICE_URL}/Light_3857/{z}/{x}/{y}.png?key=${API_KEY}`],
'... |
'use strict';
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array obje... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.