text stringlengths 5.97k 41.2k |
|---|
//make sure to link correctly in public/index.html once running smoothly!
//importing function to create a firebase app for checkedin.
import { initializeApp } from "firebase/app"
//importing firebase services (e.g. authentication)
import { getAuth, onAuthStateChanged } from "firebase/auth"
//firebase configuration ... |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var Path = (function () {
function Path() {
this.territories = new Array();
this.... |
let THOUSANDS_SEPARATOR;
const MAX_SLICE = 0xffffffff >>> 0;
const ASCII_ZERO = 48;
const BN_ZERO = { pos: true, value: new Uint32Array() };
const BN_TEN = { pos: true, value: new Uint32Array([10]) };
const BN_SHIFT = { pos:true, value: new Uint32Array([0, 1]) };
export const reconfig = (options) => {
if (! options)... |
"use strict";
var iteration = 0;
var newsLimit = 6; // Any more will never be visible on the screen
var mainLoop = function(force) {
console.log("\n#" + iteration);
if (force || iteration % UPDATE_CANTINAS_INTERVAL === 0)
updateCantinas();
if (force || iteration % UPDATE_NEWS_INTERVAL === 0)
updateAff... |
import React, {useState, useRef, useEffect} from 'react';
import {Button, Divider, Grid, Header, Icon, Popup, Radio, Transition} from 'semantic-ui-react'
import {useDispatch, useSelector} from "react-redux";
import {useTranslation} from "react-i18next";
import {setComponent} from "../actions/component";
import MainMenu... |
$(document).ready(function() {
btnTambah = " <button type='button' class='btn btn-outline-info btn-sm' id='btnTambah'><i class='fa fa-plus'></i> Tambah</button>";
btnRefresh = " <button type='button' class='btn btn-outline-success btn-sm' id='btnRefr... |
const lang = {
sv: {
'New Year\'s Day': 'Nyårsdagen',
'Epiphany': 'Trettondedag Jul',
'Good Friday': 'Långfredagen',
'Easter Sunday': 'påskdagen',
'Easter Monday': 'Annandag påsk',
'International Workers\' Day': 'Första Maj',
'Ascension Day': 'Kristi himmelsfä... |
const canvas = document.getElementById('canvas1');
const ctx = canvas.getContext('2d');
canvas.width = 900;
canvas.height = 600;
// global variables
const cellSize = 100;
const cellGap = 3;
let numberOfResources = 300; // Resources at start
let enemiesInterval = 600;
let frame = 0;
let gameOver = false;
let score = 0... |
import React from "react";
;
/**ip lib imports */
import {isValidAddress} from "../lib/ip.js";
import {isValidBits} from "../lib/ip.js";
import {isValidPrefix} from "../lib/ip.js";
import {isDigit} from "../lib/ip.js";
import {getBitsByReqs} from "../lib/ip.js";
import {max_hosts} from "../lib/ip.js";
import {currentNe... |
const fs = require('fs');
const optset = require('getopt-c');
const images = require('images');
const path_root = process.cwd();
const drawJson = requireUncached(path_root + "/src/data/config_json/draw.json");
const basicbase = 1000 // lowest 0.0x%
const testModeCount = 1000000;
module.exports = function (clie... |
import arrayContains from 'd2-utilizr/lib/arrayContains'
import { rgb } from 'd3-color'
import i18n from '../../../../locales/index.js'
import {
VIS_TYPE_GAUGE,
VIS_TYPE_PIE,
isTwoCategoryChartType,
} from '../../../../modules/visTypes.js'
import {
colorSets,
COLOR_SET_PATTERNS,
} from '../../../uti... |
let locations = ["head", "butt", "left_side", "right_side", "left_butt", "right_butt"];
let DNAstructure = [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1];
/*
eye num 1
eye location 2
cooldown 1
#inputs#
speed 1
rotation: 1
body_feel: 1
energy: 1
inverse_energy: 1
constant: 1
random: 1
num_of_appe... |
if (!m_helper) var m_helper = {
removeNode: function(a) {
var b = document.getElementById(a);
b && b.parentNode.removeChild(b)
},
insertAfter: function(a, b) {
var c = b.parentNode;
b.nextElementSibling ? c.insertBefore(a, b.nextElementSibling) : c.appendChild(a)
},
h... |
import enLocale from 'element-ui/lib/locale/lang/en'
const en_US = {
message: {
'common': {
'profile': 'Your profile',
'help': 'Help',
'logout': 'Sign out',
'home': 'home',
'language': 'Language',
'createDate': 'CreateDate',
... |
/**
* Simple web server.
*
* Usage:
* let server=require("./server")
* server.start() //default config
* server.start(configuration) //non default configuration
* server.start(configuration).then((s)=>{...}) //once the server has started, execute the callback
*
* Application default skeleton:
* --app [fol... |
/** project.js
Programmeerproject 2017
<NAME>
10544259
**/
// globals
var dataForm, map, gemeente="AMSTERDAM", year, updateBarplot, updatePiePlot, plaats="Herkomst";
// function to turn "GEMEENTE" into "Gemeente"
function toSentenceCase(str) {
if (str) {
return str.charAt(0) + str.slice(1).toLowerCase(... |
import React, { useEffect, useRef, useState } from 'react';
import { useHistory, useParams } from 'react-router-dom';
import { DragDropContext } from 'react-beautiful-dnd';
import { Button, Container, Image, Overlay, Popover, Row } from 'react-bootstrap';
import { FiStar } from 'react-icons/fi';
import { BsInboxes, BsP... |
export const Comparison = {
ANY: "any",
BOTH: "both"
}
export const Joints = {
NOSE: {name: "nose", id: 0},
LEFT_EYE: {name: "leftEye", id: 1},
RIGHT_EYE: {name: "rightEye", id: 2},
LEFT_EAR: {name: "leftEar", id: 3},
RIGHT_EAR: {name: "rightEar", id: 4},
LEFT_SHOULDER: {name: "leftShoulder"... |
/**
* 셀 클릭 이벤트를 처리한다. 각 이벤트 펑션은 this.click_event 에 배열로 지정되어 있다.
* 이벤트는 배열에 등록된 순서대로 발생하며, 발생 직전 this.event_flag 를 검사하므로
* 이벤트 발생을 방지하기 위해서는 event_flag 의 해당 값을 false 로 변경해주면 된다.
*
* 개별 이벤트 펑션에 입력되는 parameter 는 다음과 같다.
* e : event 객체
* row: 이벤트가 발생한 cell 의 row index
* col: 이벤트가 발생한 cell 의 col index
* val: 이벤트가 ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Pagination = exports.PaginationVariant = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var React = _interopRequireWildcard(require("react"));
var _Dropdown = require("../Dropdown");
var _ToggleTemplate ... |
const axios = require('axios');
const moment = require('moment');
const request = require('request');
const Store = require('../components/store/store.model');
const Voucher = require('../components/voucher/voucher.model');
const ApprovedTransaction = require('../components/approvedTransaction/approved-transaction.mode... |
const css = require(`css`);
/**
* Object.assign polyfill, used to merge mixins with css rules. Taken from:
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign#Polyfill
*/
const OBJECT_ASSIGN_POLYFILL = `
function cssToMuiLoaderAssign(target, varArgs) { // .length of fu... |
/*jshint browser: true, nomen: false, eqnull: true, es5:true, trailing:true */
var resourceLoader = (function ($) {
var ns = {};
ns.onReady = function onReady(opts) {
/** given resources as an Array of objects specifying metadata, at
* least including a key, URL to a resource, load resource. Only call... |
import React, { Component } from 'react'
import '../index.scss'
import '../lists.scss'
import '../App.scss'
import PropTypes from 'prop-types'
import { withRouter } from 'react-router'
import axios from 'axios'
import styled from 'styled-components'
import classNames from 'classnames'
import Link from '@govuk-react/lin... |
var map, issues, newIssue, marker, bctSearch = [];
issues = new L.MarkerClusterGroup({spiderfyOnMaxZoom: true, showCoverageOnHover: false, zoomToBoundsOnClick: true});
newIssue = new L.LayerGroup();
// Basemap Layers
var woodcutOSM = L.tileLayer("http://{s}.tiles.mapbox.com/v3/examples.xqwfusor/{z}/{x}/{y}.png", { /... |
import React, { useState, useEffect, Fragment } from 'react'
import { graphql, compose } from 'react-apollo'
import gql from 'graphql-tag'
import { css } from 'glamor'
import {
Container,
Button,
RawHtml,
Interaction,
Editorial,
Loader,
fontStyles,
mediaQueries,
colors,
linkRule,
Lead,
Label,
... |
import React from 'react';
import { Text, View, Image, Dimensions, TouchableOpacity, TextInput, ScrollView, FlatList, AsyncStorage, StyleSheet } from 'react-native';
import imgposter1 from '../../Images/poster1.jpg'
import imgposter2 from '../../Images/poster2.jpg'
import location from '../../Images/location.png'
impor... |
class LevelUp {
fetch(entity, attributes, filter) {
let headers = new Headers({
"Accept" : "application/json",
"Content-Type" : "application/json; charset=utf-8",
});
let serviceUrl = `${this.clientUrl}/XRMServices/2011/OrganizationData.svc/${entity}`;
if(this.is2016) {
... |
/* Structure taken form lab10-test05.js */
let map;
const Companies= 'https://www.randyconnolly.com/funwebdev/3rd/api/stocks/companies.php';
const Stocks= 'https://www.randyconnolly.com/funwebdev/3rd/api/stocks/history.php?symbol=';
document.querySelector("div.b section").style.display = "block";
let long= 4... |
/*
* resources_ux.js contains all drawing functions for resources-related
* menu items in game ux
*/
var icons = ['metal-icon', 'water-icon', 'fuel-icon', 'food-icon'];
var createResourcesMenu = function() {
var innerHTML = '<div id="resources-menu-title" class="menu-title">Resources</div>';
clientGame.game.c... |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var StartPanel = (function (_super) {
__extends(StartPanel, _super);
function StartPanel(stage... |
var key = '1234567';
var getCalendar;
var totalElementSize;
var updateAvailableTime;
var getAndUpdateAvailableTimeView;
var updateCalendarSettings;
var nowDate = new Date();
var today = new Date(nowDate.getFullYear(), nowDate.getMonth(), nowDate.getDate(), 0, 0, 0, 0);
var business_hour_end;
var business_hour_start;
... |
/**
* Javascript library used in example dashboard
*
*
**/
var curObject;
var curPage = 0;
var pageSize = 20;
var mfsort = {};
var mfprefix = '';
var objectsListFields = Array();
$(function() {
$(document).on("change", ".mf-psize", function(event) {
pageSize = $(this).val();
});
$(document... |
import React from 'react';
import { AppRegistry, Button, Component, Dimensions, Image, Modal,
Text, TouchableHighlight, ScrollView, Slider, StatusBar, StyleSheet, View} from 'react-native';
// import {Actions} from 'react-native-router-flux';
import { Ionicons, SimpleLineIcons } from '@expo/vector-icons';
import { ... |
const rss = require("rss");
const showdown = require('showdown');
const mustache = require("mustache");
const chalk = require("chalk");
const path = require("path");
const fs = require("fs");
const readline = require("readline")
var yamlFront = require('yaml-front-matter');
const package = require("../../package.json"... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
const $ = require('jquery');
const fs = require('fs');
const path = require('path');
const _ = require('lodash');
const {
shell
} = require('elect... |
var LOG_MESSAGES = true;
var Redwood = angular.module("Redwood", []);
Redwood.run(["$rootScope", function($rootScope) {
$("body").append(angular.element('<message-modal show="$root.messageModal.show" header="$root.messageModal.header" content="$root.messageModal.content" footer="$root.messageModal.footer" invisible... |
import {
allProjects,
saveAllProjects
} from "./projectCreator.js";
import {
differenceInCalendarDays
} from 'date-fns'
import {
parseISO
} from 'date-fns'
let tasks = [];
let addEtoAdd = () => {
document.body.addEventListener("click", function(e) {
if (e.target.className === "submit addButton") {
... |
//Bangla calendar added to "Basic Calendar Java Script" -By <NAME> @ http://scriptasylum.com
//and Bangla calendar created by <NAME> @ http://www.usingha.com
var mn = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
function buildCal(m, y, cM, c... |
/*
* Copyright 2009, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration)
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
import * as i18n fro... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
function epicDetailsController ($scope, $http, $q, $location, $window) {
var notStartedNames = ["To Do", "Open"];
$scope.contextPath = jQuery('meta[name="ajs-context-path"]').attr('content');
$scope.key = $location.search().epic;
$scope.epicName = '';
$scope.fullStories = []; // the full list of st... |
/* eslint-disable no-unused-vars */
/* eslint-disable max-len */
'use strict';
module.exports = {
uploadFiles,
articleUpload,
};
const fetch = require('node-fetch');
const fs = require('fs');
const path = require('path');
const glob = require('glob');
const images = require('./images');
const cache = require('./... |
function flashMessage(message){
let $message = $(message).prependTo('#content');
setTimeout(function(){
$message.fadeOut( 1000, function() {
this.remove();
});
},3000)
}
const _debounce = (a,b=250,c)=>(...d)=>clearTimeout(c,c=setTimeout(a,b,...d))
class TwLiveConnectionStatus extends Object{
constructor(s... |
export const slate = '#1d1e22'
export const gray = '#ababab'
export const white = '#f5f5f5'
export const purple = '#3333ff'
export const orange = '#ffcc00'
export const teal = '#8bd8bd'
export const forest = '#295f2d'
export const sky = '#8aaae5'
export const metallic = '#585858'
export const darkTheme = {
textColor... |
import Log from './../context/log';
import Conf from './../context/conf';
import fs from 'fs';
import path from 'path';
const homedir = Npm.require('homedir');
const libSourceMaps = Npm.require('istanbul-lib-source-maps');
const sourceMap = libSourceMaps.createSourceMapStore({verbose: Conf.IS_COVERAGE_ACTIVE});
const... |
"use strict";
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
... |
import * as THREE from './three.js-master/build/three.module.js';
import { OBJLoader } from './three.js-master/examples/jsm/loaders/OBJLoader.js';
import { OrbitControls } from './three.js-master/examples/jsm/controls/OrbitControls.js';
import { PLYLoader } from './three.js-master/examples/jsm/loaders/PLYLoader.js';
im... |
var Twitter = require('twitter');
const Discord = require("discord.js");
var twitterFollowers = require('get-twitter-followers')
var moment = require('moment');
var schedule = require('node-schedule');
var _twitter = this
var _db = require('../database/mongo_db.js')
var ava = require('../ava/helper.js')
var params = {... |
import kdbxweb from 'kdbxweb';
import { View } from 'framework/views/view';
import { Storage } from 'storage';
import { Shortcuts } from 'comp/app/shortcuts';
import { Launcher } from 'comp/launcher';
import { Alerts } from 'comp/ui/alerts';
import { Links } from 'const/links';
import { AppSettingsModel } from 'models/... |
"use strict";
const displayReport = require('./reportDisplayer');
const Report = require('../lib/fluentReports.js').Report;
//Report.trace = true;
const reportData = [
{"vendorlink":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","employee_master":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX","ssn":"XXXXXXXXX","name":"XXXX, XXX... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const events_1 = require("events");
const ethereumjs_tx_1 = require("ethereumjs-tx");
const ethereumjs_util_1 = require("ethereumjs-util");
const ContractInteractor_1 = require("@opengsn/common/dist/ContractInteractor");
const VersionsManager_... |
/**
* Copyright (c) 2020 <NAME>
* 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, this list of conditions a... |
'use strict'
// 3rdparty libraries
const _ = require('lodash')
const crypto = require('crypto')
const cluster = require('cluster')
// bot libraries
var constants = require('../constants')
const System = require('./_interface')
/*
* !timers ... |
/**
* @author supereggbert / http://www.paulbrunt.co.uk/
* @author philogb / http://blog.thejit.org/
* @author <NAME> / http://gomo.se/
* @author egraether / http://egraether.com/
* @author WestLangley / http://github.com/WestLangley
*/
var Vector4 = /** @class */ (function () {
function Vector4(x, y, z, w) {... |
import React, {Component} from 'react';
import AceEditor from 'react-ace';
import ReactMarkdown from 'react-markdown';
import SampleAnalyst from './SampleAnalyst.js';
import './App.css';
import tutorials from './tutorials.json';
import 'ace-builds/src-noconflict/mode-python';
import 'ace-builds/src-noconflict/mode-mar... |
/*jshint onevar: false, indent:4, strict:false */
/*global setImmediate: false, setTimeout: false, console: false, module: true, process: true, define: true, require: true */
var ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function';
var ENVIRONMENT_IS_WEB = typeof window === 'object';
va... |
/*
BigBlueButton open source conferencing system - http://www.bigbluebutton.org/
Copyright (c) 2012 BigBlueButton Inc. and by respective authors (see below).
This program is free software; you can redistribute it and/or modify it under the
terms of the GNU Lesser General Public License as published by the Free Softw... |
import * as Gbi from "../../../../../include/gbi"
import {
spooky_09000000,
spooky_09000800,
spooky_09001800,
spooky_09002800,
spooky_09003800,
spooky_09004800,
spooky_09005000,
spooky_09006000,
spooky_09006800,
spooky_09007000,
spooky_09008000,
spooky_09008800,
spook... |
/**
* This is the tudocomp charter's core script.
*
* It generates the SVG for a given JSON dataset either for direct export
* or for interactive display in the web application.
*/
// The available bar colors, which will be rotated
var colors = [
"#4682B4", // steelblue
"#FF6347", // tomato
"#FF8C00",... |
"use strict";
//////// ID3-Algorithmus im Umfeld von Smart Home /////////
/* Ziel ist es durch das Anlernen eine Vorhersage darüber machen zu können,
wann die Lampe angeschaltet werden soll und wann nicht*/
////////////////////////////////////////////////////////////////////////////////////////////////////////////... |
const roles = require('./roles.json'); // Imports local.settings.json
const Owner = require('./controllers/owner'); // Controls Owner related things
const Other = require('./controllers/other'); // Controls misc tasks that dont under anything else
const Bot = require('./controllers/bot'); // Controls bot tasks
const Su... |
import { puffin } from '@mkenzo_8/puffin'
import Explorer from '../../constructors/explorer'
import ContextMenu from '../../constructors/contextmenu'
import Tab from '../../constructors/tab'
import Editor from '../../constructors/editor'
import newDirectoryDialog from '../../defaults/dialogs/new.directory'
import areYo... |
const { expectRevert, time } = require('@openzeppelin/test-helpers');
const DarkToken = artifacts.require('DarkToken');
const DarkMaster = artifacts.require('DarkMaster');
const MockERC20 = artifacts.require('MockERC20');
contract('DarkMaster', ([alice, bob, carol, dev, minter]) => {
beforeEach(async () => {
... |
function ArgumentTypeError(argumentName, expectedType, actualValue) {
/// <summary locid="M:J#ArgumentTypeError.#ctor">
/// An error type that is raised when an argument to a function
/// is of the wrong type.
/// </summary>
/// <param name="argumentName" type="String">The name of the argument that was of the wron... |
import React, { useContext, useMemo, useState, useEffect, useReducer, useCallback } from 'react';
import { connect } from 'react-redux';
import { environment } from '#config';
import { PropTypes as T } from 'prop-types';
import LanguageContext from '#root/languageContext';
import Translate from '#components/Translate'... |
'use strict'
const logger = require('winston')
const config = require('../config')
const request = require('snekfetch')
const debug = require('debug')('twitchClient')
debug('Loading TwitchLive Module')
let lastState = null
const games = new Map() // eslint-disable-line no-undef
const requiredPerms = ['SEND_MESSAGES',... |
"use strict"
const stream = require( 'stream' );
const buffer = require( 'buffer' );
const fs = require( 'fs' );
const $ = require( __dirname + '/../inc.js' );
exports = module.exports = query_selector;
function query_selector() {
return this;
}
function selector( prev, parent ) {
if ( prev ) {
this... |
// ==UserScript==
// @name Don't track me Google
// @namespace <NAME>
// @description Removes the annoying link-conversion at Google Search/maps/... The Referrer is also hidden to improve your privacy. Designed for Firefox and Google Chrome.
// @version 3.6
// @match *://*.google.com/*
// @m... |
const DEFAULT_FOCUS = 'web';
$(document).ready(function () {
// checkPlugin()
if (location.href.indexOf('#plugin-modal') > -1) {
$('#plugin-modal').modal('show');
}
$('#addFocusBtn').removeClass('hide');
$('button').popover();
loadLocalStorage();
setActionListeners();
loadInitialCustomFocuses();
... |
var majicaHTML = [ '<div class="vozicekitemcontainer">',
'<div class="vozicekitemimage" data-img="../../img/majica1.jpg" style="background-image: url(../../img/majica1.jpg); "></div>',
'<h1 class="vozicekitemtitle">Majica</h1>',
'<p class="vozicekitemproperty">{{ itemtype }}</p>',
'<p class="vozicek... |
import * as constants from './constants.js';
import * as utilities from './utilities.js';
/** Park(alphabet, x, y)
* 駐車場クラス。
*/
const Park = function Park(alphabet, x, y) {
this.alphabet = alphabet;
this.x = x;
this.y = y;
this.connectParks = [];
};
/** Course
*/
export default class Course {
/** .constructor... |
import { USER_INFO } from './Constants'
import notification from 'ant-design-vue/es/notification'
const ChatData = {
mySocket: '',
// 当前登陆人id
userId: '',
// 访问令牌
accessToken: '',
uuid: '',
updateTime: new Date().valueOf(),
debateUpdateTime: new Date().valueOf(),
// 新消息数量
newsNum: 0,
activeChatLis... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
require('module-alias/register')
const _ = require('lodash')
const figlet = require('figlet')
const config = require('../config.json')
const compareVersions = require('compare-versions')
const XRegExp = require('xregexp')
const fs = require('fs')
const uuidv4 = require('uuid/v4')
// logger
const Logger = require('../... |
function render({ tagName, children, callback, ...properties }) {
const element = document.createElement(tagName);
Object.entries(properties).forEach(([property, value]) => (element[property] = value));
if (Array.isArray(children))
children.forEach((child) => element.appendChild(child instanceof HTMLElement ?... |
'use strict';
var has = require('../lib/has');
var StrSet = require('../lib/str-set');
var forEach = require('lodash/forEach');
var some = require('lodash/some');
var map = require('lodash/map');
var filter = require('lodash/filter');
var zipObject = require('lodash/zipObject');
var forOwn = require('lodash/forOwn');
... |
'use strict';
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MDNSServer = exports.SendResultFormatError = exports.SendResultFailedRatio = void 0;
const tslib_1 = require("tslib");
const assert_1 = tslib_1.__importDefault(require("assert"));
const debug_1 = tslib_1.__importDefault(require("debug"... |
var data = JSON.parse(document.getElementById('jsonFinal').innerHTML);
var premise = document.getElementById('premiseSent').innerHTML;
var hypothesis = document.getElementById('hypothesisSent').innerHTML;
var sentences = [premise, hypothesis];
var classes = ["ENTAILMENT", "CONTRADICTION", "NEUTRAL"];
var classToColor =... |
import { InvalidJSONLDSyntaxError } from "../Errors/InvalidJSONLDSyntaxError";
import { NotImplementedError } from "../Errors/NotImplementedError";
import { JSONParser } from "../HTTP/JSONParser";
import { RequestService, RequestUtils } from "../HTTP/Request";
import { ContainerType } from "../ObjectSchema/ContainerTyp... |
import _invoke from "lodash/invoke";
import { datepickerBehavior } from '@fluentui/accessibility';
import { DateRangeType, DayOfWeek, FirstWeekOfYear, DEFAULT_CALENDAR_STRINGS } from '../../utils/date-time-utilities';
import { getElementType, useAccessibility, useFluentContext, useStyles, useTelemetry, useUnhandledProp... |
var fs = require('fs')
, path = require('path')
, lconfig = require("lconfig")
, spawn = require('child_process').spawn
, ldatastore = require('ldatastore')
, datastore = {}
, async = require('async')
, url = require('url')
, lutil = require('lutil')
, EventEmitter = require('events').EventEmitter
,... |
function getTotal(cell) {
var row=jQuery(cell).parents('tr:first')[0];
var table=jQuery(cell).closest('table')[0];
// get the total for the row
var total=0, cellValue;
jQuery.each(jQuery(row).find('.count-input'), function(idx, cell) {
cellValue = parseInt(jQuery(cell).val());
if (!isNaN(cellValue)) ... |
'use strict';
//var io = require('socket.io-client');
var fs = require('fs-extra');
var libFsExtra = require('fs-extra');
var exec = require('child_process').exec;
var execSync = require('child_process').execSync;
var libQ = require('kew');
// var libNet = require('net');
// var net = require('net');
var con... |
import { join, extname } from 'path';
import { existsSync, readdirSync, removeSync } from 'fs-extra';
import * as r from 'ramda';
import { action, configure, observable, toJS } from 'mobx';
import Store from 'electron-store';
import { remote } from 'electron';
import { inputs_data } from 'js/inputs_data';
import * as... |
// constants.js
// The size of the tile (one pixel will get added between each as padding)
const TILE_SIZE = 8;
// The screen width (not scaled) in pixels
const SCREEN_WIDTH = 480;
const SCREEN_HEIGHT = 300;
// How many times the width and height will be scaled onto the screen
// Example:
// SCREEN_WIDTH = 200;
// SCR... |
//---- GENERAL FUNCTION -----//
// Ocultar alertas
$(document).ready(function () {
setTimeout(function () {
$(document.getElementById('alertFade')).fadeOut(500);
}, 3000);
});
function btnActiveMenu(idBtnMenu, idBtnOption) {
document.getElementById(idBtnOption).setAttribute('class', 'bg-success text-white');
d... |
import {
all,
call,
put,
takeLatest,
takeLeading,
select,
} from 'redux-saga/effects';
import {
transformBaskets,
transformPallets,
} from 'components/GoodsWeight/utils';
import { localstoreUtilites } from '../../../utils/persistenceData';
import request, {
optionReq,
checkStatus,
requestAuth,
... |
// var WebAudioRecorder = require('WebAudioRecorder.min');
// var ResonanceAudio = require('resonance-audio.min');
// var io = require('socket.io.js')
let voice = new p5.Speech('Samantha', getListen) //'Google UK English Male'
// set up basic variables for app
//var buttons = document.querySelector('#buttons')
var ... |
/**
* 列表组件
* @param {Object} opts 选项
* @param {Element} context 容器
*/
function HsList(opts, context) {
context = jQuery (context);
context.data("HsList", this);
context.addClass( "HsList" );
var loadBox = context.closest(".loadbox");
var listBox = context.find (".listbox");
var pageBox... |
import { useContext, useEffect, useState, useRef } from 'react';
import { useRouter } from 'next/router';
import { io } from "socket.io-client";
import { Box, styled, useMediaQuery, Drawer, IconButton } from "@mui/material";
import { ArrowBackIosNew, ArrowForwardIos } from '@mui/icons-material';
import { MeetingScripts... |
var AfterLogin = document.getElementById('after-login');
var ProfileImg = document.getElementById('profile-img');
var UserName = document.getElementById('user-name');
var SignoutButton = document.getElementById('sign-out-button');
var Load = document.getElementById('load');
var JoinClassBtn = document.getElement... |
// //load
$(document).ready(function()
{
setTable();
$('.datepicker').datepicker(
{
rtl: App.isRTL(),
orientation: "left",
autoclose: true,
format: 'dd-mm-yyyy'
});
$(".select2").select2();
// pilihItem();
$('.numbers-only').keypress(function(event) {
var charCode = (event.which) ? event.whic... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var url = require('url');
var pathTool = require('path');
var require$$0 = require('fs');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
function _interopNamespace(e) {
... |
import crud from '@cocreate/crud-client';
import ccfilter from '@cocreate/filter'
import observer from '@cocreate/observer'
import logic from '@cocreate/logic';
var calOBJs = [];
var calendarElClass = 'cal-container';
const bgColors = ['#09efc6', '#09ef1a', '#efec09', '#ef8609', '#ef6009', '#b609ef', '#ef0986', '#09e... |
const Discord = require('discord.js');
const fs = require('fs');
const http = require('http');
const { CSGO_PATH, CSGO_srv_token, steam_web_api_key } = require('../config.json');
const { exec } = require('child_process');
const util = require('util');
const utils = require('../utils/utils.js')
let connect = ''
functio... |
/*
* Advanced Multi-Mission Operations System (AMMOS) Instrument Toolkit (AIT)
* Bespoke Link to Instruments and Small Satellites (BLISS)
*
* Copyright 2017, by the California Institute of Technology. ALL RIGHTS
* RESERVED. United States Government Sponsorship acknowledged. Any
* commercial use must be negotiated... |
/////////////////////////////////////////////////////////////
////////////////////// Vec3 //////////////////////////
/////////////////////////////////////////////////////////////
var Vec3 = function(x, y, z) {
this.x = x;
this.y = y;
this.z = z;
};
//////////////////////////////////////////////////... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.