text
stringlengths
3.22k
29.5k
import TextureUI from '@/ui/withtexture'; // import snippet from 'tui-code-snippet'; import templateHtml from '@/ui/template/submenu/imitate'; import imitateHtml from '@/ui/template/texture/imitate'; import itemHtml from '@/ui/template/texture/mediaitem'; import TemplateInstance from './templateInstance'; // import { e...
'use strict'; // Use ECMAScript 5 strict mode in browsers that support it import Chart from 'chart.js/dist/Chart.min.js'; import Data from './data.json'; import './style.css'; // Classes class Color { constructor([red, green, blue]) { this.red = red; this.green = green; this.blue = blue; }...
let notes = []; let focusNote = {}; let deleteOptions = []; let noteAreaDOM = document.querySelector("#notes"); let newNoteDOM = document.querySelector("#note"); let headerDOM = document.querySelector("#header"); let navActionDOM = document.querySelector("#nav-action"); let deleteManyDOM = document.querySelector("#nav-...
'use strict' const got = require('got') const proj4 = require('proj4') const epsg = require('epsg') const kinks = require('turf-kinks') const range = require('lodash.range') const pad = require('lodash.padstart') const moment = require('moment') const through2 = require('through2') const clone = require('lodash.cloned...
import React, { PureComponent } from "react"; import { Route, Redirect } from "react-router-dom"; import Link from "gatsby-link"; import "../layouts/css/fcss.css"; import "../layouts/css/page.css"; import Nav from "../components/Nav"; import FormInput from "../components/FormInput"; import RadioInput from "../compon...
import globalAxios from 'axios'; import {APIkey, gObj_hasRoot} from '../../config.js'; const state = { houseId: null, //used when creating a new house - prolly same as activeHouse.houseId, but for now keep separate /* activeHouse properties are set from several different places * There is not just one sette...
import Attributes from './Attributes'; import {ReusableStyleSheet} from './Style'; import itemStyle from '../style/item.scss'; /** * @callback iconFactoryFunction * @param {string} name * @return {HTMLElement} */ /** * Occurs when an item in a toolbar is activated via a keypress or click. * @event wam-acti...
import React, {useState, useEffect} from 'react'; import PropTypes from 'prop-types'; import Modal from 'react-modal'; import html2canvas from 'html2canvas'; import EmailValidator from "email-validator"; import styled from 'styled-components'; import { Select, TextField, FormControl, Typography, MenuItem } from '@mater...
var _ = require('lodash'); var constants = require('../public/shared/gj_constants'); var GameObject = require('./game_object'); var Bloodsplosion = require('./bloodsplosion'); var Projectilesplosion = require('./projectilesplosion'); var Axe = require('./axe'); var Lazer = require('./lazer'); var SPAWN_COUNTDOWN = 30...
'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...
'use strict'; var clone = require('clone'); var generate = require('escodegen').generate; var parse = require('esprima').parse; var traverse = require('estraverse').traverse; var STRING_TYPE = 'string'; var QUOTE = '\''; function es(ast) { var wrappedAST = clone(ast); es.establishAncestry(wrappedAST); re...
import React, { useState } from "react"; import axios from "axios"; import { Button, Container, Row, Col, Input } from "reactstrap"; import "../searchfortrainingsandjobs.css"; import mapMarker from "../../../assets/icons/pin.svg"; import { Formik, Form, Field, ErrorMessage } from "formik"; import { AutoCompleteField, L...
'use strict' // alert("Can you see this ?"); // debugger; /* // STRETCH GOAL // https://www.w3schools.com/howto/howto_js_tabs.asp */ // DECLARE ALL GLOBAL VARIABLES // ARRAY TO HOLD ALL PRODUCT OBJECTS Product.allProducts = []; // used on line 70 in object constructor // array to keep track of previous...
import React, { useState } from "react"; import "./App.css"; import Data from "./reqJson/coins20.json"; import { readCsv } from "./checkGraduate/readCsv.ts"; import { checkGraduate } from "./checkGraduate/checkGrad.ts"; import Select from "react-select"; import "bootstrap/dist/css/bootstrap.min.css"; import Button from...
/** * CommentCtrl module. * @file 评论控制器模块 * @module controller/comment * @author Surmon <https://github.com/surmon-china> */ const marked = require('marked') const consola = require('consola') const geoip = require('geoip-lite') const CONFIG = require('app.config') const environment = require('environment') const...
const express = require("express"); const compression = require("compression"); const cors = require("cors"); const portscanner = require("portscanner"); const serveResources = require("./middleware/serveResources"); const serveIndex = require("./middleware/serveIndex"); const discovery = require("./middleware/discove...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './ReactTimeSelection.css'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faCaretUp, faCaretDown } from '@fortawesome/free-solid-svg-icons'; class ReactTimeSelection extends Component { constructor(pro...
import React from 'react'; import CircularProgress from '@material-ui/core/CircularProgress'; import Button from '@material-ui/core/Button'; import Grid from '@material-ui/core/Grid'; import Rating from '@material-ui/lab/Rating'; import Alert from '@material-ui/lab/Alert'; import Typography from '@material-ui/core/Typ...
//react import React, { useEffect, useState, createContext, useCallback } from "react"; import { BrowserRouter as Router, Switch, Route } from "react-router-dom"; import { axiosInstance } from "./axios/config"; // redux import { useDispatch } from 'react-redux' //style import "./App.scss"; import "bootstrap/dist/css/...
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import _objectSpread from "@babel/runtime/helpers/objectSpread"; import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; import _possibleConstructorReturn fr...
/** * @file AutoCompleteFilter component */ import React, {Component, createRef} from 'react'; import PropTypes from 'prop-types'; // Components import TextField from '../TextField'; import Popup from '../Popup'; import List from '../List'; import DynamicRenderList from '../DynamicRenderList'; // Statics import Th...
/* * training functions strat here * */ function openTraining(unique_key) { var orderId = $("#orderId-" + unique_key).val(); if (typeof orderId == 'undefined' || orderId.length == 0) { $('#modal_form_vertical_' + unique_key).modal(); } else { var url = web_url + '/getselectedTraining'; ...
var debug = require('debug')('genscrape:scrapers:findagrave'), utils = require('../utils'), GedcomX = require('gedcomx-js'); var urls = [ utils.urlPatternToRegex("https://www.findagrave.com/cgi-bin/fg.cgi*"), utils.urlPatternToRegex("https://findagrave.com/cgi-bin/fg.cgi*") ]; module.exports = function(re...
import React from "react"; import { Redirect } from "react-router-dom"; // nodejs library that concatenates classes import classNames from "classnames"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // @material-ui/icons import Camera from "@material-ui/icons/Rowing"; import Pal...
// import React, { Component } from 'react' // import * as emailjs from 'emailjs-com' // import { Button, FormFeedback, Form, FormGroup, Label, Input } from 'reactstrap' // class Contact extends Component { // state = { // name: '', // email: '', // subject: '', // message: '', // } // handleSubmit(...
import React from 'react' import PropTypes from 'prop-types' import { FilterItem } from 'components' import { Form, Button, Row, Col, DatePicker, Input, Select, Message } from 'antd' import XLSX from 'xlsx' import FileSaver from 'file-saver' import moment from 'moment' import { request, config } from 'utils' import { t...
const config = require('../../config.json'); const util = require('./util'); const {expect} = require('chai'); const {algorithms} = require('./input/algorithms'); describe('Canonicalize', function() { let generatorOptions = null; beforeEach(function() { generatorOptions = { generator: config.generator, ...
function getRadioValue(theRadioGroup) { var elements = document.getElementsByName(theRadioGroup); for (var i = 0, l = elements.length; i < l; i++) { if (elements[i].checked) { return elements[i].value; } } } function getProbeValue(theProbe) { var element = docum...
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] =...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const CompressedJSON_1 = require("./CompressedJSON"); const Support_1 = require("../support/Support"); const UnionBuilder_1 = require("../UnionBuilder"); const Type_1 = require("../Type"); const TypeAttributes_1 = require("../attributes/TypeAt...
(function($) { var $window = $(window), $body = $('body'), $wrapper = $('#wrapper'), $main = $('#main'), $panels = $main.children('.panel'), $nav = $('#nav'), $nav_links = $nav.children('a'); // Breakpoints. breakpoints({ xlarge: [ '1281px', '1680px' ], large: [ '981px', '1280px' ], me...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Query } from 'react-apollo'; import { List_Reports_Statistics_1 } from '../../../../services/queries/Maintainance/MaintainanceReports/Reports'; import { CustomTooltips } from '@coreui/coreui-plugin-chartjs-custom-tooltips'; impo...
/*=====================================*/ /*Name: main.js*/ /*Description: This file contains some generic but fundamental functions, such as initialization and reset.*/ /*Sorted: Alphabetically*/ /*List of functions: -begin -clickHandler -reset -run */ /*=====================================*/ /*This ...
/* * This file is part of DCinside Lite. * DCinside Lite is free software: Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. * DCinside Lite is distributed in t...
var gpioController = "/dev/null"; var controllerOffset = -1; var projectVersion = "3.1.1"; var uiDisplayedToUser = true; var refreshEachMilliSeconds = 5000; // // Refresh UI when page is visible to user. // It manages: // * Mobile browser displayed on screen: // - After phone unlock and mobile browser is app dis...
var returnCovidData; var returnVaccineData; var map; var mapData = {}; var oldData = []; var date = getDate(); var vaccineUrl = "https://raw.githubusercontent.com/owid/covid-19-data/master/public/data/vaccinations/us_state_vaccinations.csv"; var censusMin = 100; var censusMax = 0; var timer = 300; // returnVaccineData...
"use strict"; function main(sessionID) { if (!account_f.handler.isWiped(sessionID)) { updateTraders(sessionID); updatePlayerHideout(sessionID); } } function updateTraders(sessionID) { // update each hour let update_per = 3600; let timeNow = Math.floor(Date.now() / 1000); let tr...
const flags = { af: require('./flags/af.png'), ax: require('./flags/ax.png'), al: require('./flags/al.png'), dz: require('./flags/dz.png'), as: require('./flags/as.png'), ad: require('./flags/ad.png'), ao: require('./flags/ao.png'), ai: require('./flags/ai.png'), aq: require('./flags/aq.png'), ag: require('./...
//Problem 1. Reverse string //Write a JavaScript function that reverses a string and returns it. function reverseString(str) { str = str || ''; var result = ''; for (var i = str.length - 1; i >= 0; i -= 1) { result += str[i]; } return result; } var str = 'sample'; console.log(reverseStr...
var app = angular.module('fileUpload', ['ngFileUpload']); app.controller('MyCtrl', ['$scope', 'Upload', '$timeout','config', function($scope, Upload, $timeout,config) { $scope.uploadPic = function(user,file) { //var profile_file = $scope.profile_files; var serviceBase = config.url; var uploadUrl = se...
"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.definePro...
/* Copyright 2021-PRESENT StipsX 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 writing, software ...
let csrfToken; let isPremium; const handleList=(e)=>{ e.preventDefault(); //console.log(document.getElementById("taskList").childNodes); //console.log($("#createForm").serialize()); $("#errorMessage").animate({width:'hide'}, 350); if(!document.getElementById("titleField").value||document.getEl...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" :...
const containerTable = document.querySelector('#containerTable'); listRoom(); //Logout const logoutButton = document.querySelector('#logoutButton'); logoutButton.onclick = function() { db.collection('Admin').doc("currentAdmin").delete().then( function() { auth.signOut(); c...
const mongoose = require("mongoose"); const { Schema } = mongoose; const { maxTaskPartners, skillAuthorizations } = require("../config"); const UserModel = require('./user'); const notesSchema = new Schema({ note: { type: String, required: [true, "A note must contain a note!"], ...
// @TODO: YOUR CODE HERE! // Ch.3 Activity 9 // Chart size var svgWidth = 960; var svgHeight = 500; // Margins set var margin = { top: 20, right: 40, bottom: 80, left: 40 }; var width = svgWidth - margin.left - margin.right; var height = svgHeight - margin.top - margin.bottom; // Create an SVG wrapper, appe...
//These elements are flipped from hidden to visible depending how how far the user has progressed in their quiz creation. const quizBlock = $("#quizBlock"); const personalityBlock = $("#personalityBlock"); const QAndABlock = $("#QAndABlock"); const completeBlock = $("#completeBlock"); const creationSuccessful = $("#cre...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import StatusIndicator from '../StatusIndicator'; import debounce from 'lodash/debounce'; import isNaN from 'lodash/isNaN'; import styles from './InputArea.scss'; import { dataHooks } from './constants'; /** * Genera...
/** * Body.js * * Body interface provides common methods for Request and Response */ import Stream, {PassThrough} from 'node:stream'; import {types, deprecate, promisify} from 'node:util'; import {Buffer} from 'node:buffer'; import Blob from 'fetch-blob'; import {FormData, formDataToBlob} from 'formdata-polyfill...
let inventory = { parts: { gears: 0, nuts: 0, bolts: 0, screws: 0, }, buildings: { factories: 1, crafters: 1, warehouses: 1, converters: 1, }, }; // todo: pause btn // todo: save range inputs, currently crafting, and tick num // todo: display numbers with commas // todo: intermediate parts, energy,...
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import warning from 'warning'; import withStyles from '../styles/withSty...
/*! * @license Open source under BSD 2-clause (http://choosealicense.com/licenses/bsd-2-clause/) * Copyright (c) 2015, <NAME> * All rights reserved. * * Liquid Fill Gauge v1.1 */ /* * changes to the original code by <NAME> 2020 under same license * v2.0 * - changed shape (rectangles instead of circles) * - change...
import TextStyle from '../../utils/canvastext/textstyle/TextStyle.js'; var GETPROP_RESULT = { plainText: null, prevProp: null }; var STYLE_RESULT = new TextStyle(); var PROPLIST = []; class parser { constructor(tags) { if (tags === undefined) { tags = {}; } this.tags =...
import { Color } from '../math/Color.js'; import { Vector2 } from '../math/Vector2.js'; import { Vector3 } from '../math/Vector3.js'; import { Vector4 } from '../math/Vector4.js'; import { Matrix3 } from '../math/Matrix3.js'; import { Matrix4 } from '../math/Matrix4.js'; import { FileLoader } from './FileLoader.js'; im...
import React, { useEffect, useRef, useState } from 'react'; import { useIntl } from 'react-intl'; import { Helmet } from 'react-helmet'; import { useQuery } from 'react-query'; import matchSorter from 'match-sorter'; import { AnErrorOccurred, CheckPagePermissions, useFocusWhenNavigate, useTracking, LoadingInd...
//index.js 'use strict' import lotteryIO from '@/io/lotteryIO' import userLotteryRecordIO from '@/io/userLotteryRecordIO' import HAND_POINTING_DOWN from '@/assets/img/hand-pointing-down.svg' import ICON_SHARE_QRCODE from '@/assets/img/share-qrcode.svg' import ICON_HEART_FACE from '@/assets/img/heart-face.svg' import I...
/** * UTILS */ function sub(v1, v2) { return [v1[0] - v2[0], v1[1] - v2[1]]; } function mod(n, m) { return (n % m + m) % m; } /** * CYCLES */ function compute_ev_mapping(EV) { var ev_mapping = EV.map(function (ev) { return { ev: ev, color: 0, direction: -1 }; }); return ev_m...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict...
/******************************************************************************* * Copyright 2017 IBM Corp. * * 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/li...
function addCommas(number) { number += ''; var values = number.split("."); var num = values[0]; var dec = values.length > 1 ? "." + values[1] : ""; var regex = /(\d+)(\d{3})/; while (regex.test(num)) { num = num.replace(regex, '$1' + ',' + '$2'); } return num + dec; } var smallMultiples = function...
'use strict' const project = require('./package.json') /* Подключение встроенных модулей к проекту */ const fs = require('fs') const path = require('path') /* Подключение Gulp к проекту */ const gulp = require('gulp') /* Подключение сторонних плагинов Gulp к проекту */ const tube = require('gulp-pipe') const bom...
/* * Exports the {@link ui/ViewManager.TransitionGroup} component. */ // Using string refs from the source code of ReactTransitionGroup import EnactPropTypes from '@enact/core/internal/prop-types'; import {forward, forwardCustom} from '@enact/core/handle'; import PropTypes from 'prop-types'; import eqBy from 'ramda...
import 'date-fns'; import React, { useEffect, useState, useCallback, useMemo } from 'react'; import { Button, CircularProgress } from "../../../components/Wrappers/Wrappers"; import { Grid, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle } from "@material-ui/core" import useStyles from "....
var ChargeBee = {}; var Q = require("q"); var os = require("os"); var Buffer = require("safer-buffer").Buffer; ChargeBee._env = { protocol: 'https', hostSuffix: '.chargebee.com', apiPath: '/api/v2', timeout: 40000, clientVersion: 'v2.7.0', port: 443, timemachineWaitInMillis: 3000, expor...
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
//Animate var animate = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(callback) { window.setTimeout(callback, 1000/60) }; window.onload = function () { step(); }; va...
'use strict'; /* * Serverless Components: Utilities */ const path = require('path'); const fs = require('fs'); const args = require('minimist')(process.argv.slice(2)); const { utils: platformUtils } = require('@serverless/platform-client-china'); const { loadInstanceConfig, resolveVariables } = require('../utils');...
// // Twitter API Wrapper // var assert = require('assert'); var Promise = require('bluebird'); var request = require('request'); var util = require('util'); var endpoints = require('./endpoints'); var FileUploader = require('./file_uploader'); var helpers = require('./helpers'); var StreamingAPIConnection = require('...
import { Meteor } from 'meteor/meteor'; import { Tracker } from 'meteor/tracker'; import { ReactiveVar } from 'meteor/reactive-var'; import { Blaze } from 'meteor/blaze'; import { promises } from '../../../promises/client'; import { RoomManager } from './RoomManager'; import { readMessage } from './readMessages'; impo...
const SerialPort = require('serialport') const zplHelper = require('./zpl-helper') const SPACER = 35 const portOptions = { autoOpen: false, baudRate: 115200, parity: 'none', dataBits: 8, stopBits: 1, xon: true, xoff: true } function printReceipt (data, printerCfg) { return new Promise((resolve, reje...
import React, { Component } from 'react'; import { render } from 'react-dom'; import { connect } from 'react-redux'; import Pagination from '../shared/Pagination'; import $ from 'jquery'; import Loader from '../loader'; import Map from './Map'; import * as config from '../../config'; //import InfoWindow from './InfoWi...
import {quickScore} from "../src/quick-score"; import {QuicksilverConfig} from "../src/config"; import {Range} from "../src/range"; const MaxDifference = .00001; const ScoreTestTitle = 'quickScore("%s", "%s")'; const HitsTestTitle = 'quickScore("%s", "%s", [])'; function scoreNearly( string, query, expected, ma...
/** Copyright (c) [2016] [<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 rights to use, copy, modify, merge, publish, distribute, sub...
import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, Linking, Animated, Image, FlatList } from 'react-native'; import { Actions } from 'react-native-router-flux'; import Swiper from 'react-native-swiper'; import Icon from 'react-native-vector-icons/Ionicons'; import { Geolocation...
import { module, skip, test } from 'qunit'; import isKey from 'ember-keyboard/utils/is-key'; import getPlatform from "ember-keyboard/utils/platform"; const WINDOWS_UA = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36'; const MAC_UA = 'Mozilla/5.0 (Mac...
"use strict"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.ap...
//we use require to let the program know we need these files to run. Our API keys are stored in keys.js var keys = require("./keys.js"); var fs = require("fs"); //we will be logging all command line arguments to "log.txt" var textFile = "log.txt"; //this is our driver, command will let LIRI know what command to run v...
"use strict"; require("core-js/modules/es.symbol"); require("core-js/modules/es.symbol.description"); require("core-js/modules/es.symbol.iterator"); require("core-js/modules/es.array.concat"); require("core-js/modules/es.array.find"); require("core-js/modules/es.array.iterator"); require("core-js/modules/es.func...
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import classnames from 'classnames'; import ...
import { defer } from 'async-agent'; import { forOwn } from 'object-agent'; import { DockPoint, Enum, isObject, methodArray, methodElement, methodQueue, methodString, methodThickness, PIXELS, Thickness } from 'type-enforcer-ui'; import Control from '../Control.js'; import Tooltip from '../layout/Tooltip.js'; ...
let combo_editor; function toggleCollapse(btn) { var el = btn.nextElementSibling; btn.classList.toggle("active"); if (el.style.maxHeight) { el.style.maxHeight = null; } else { el.style.maxHeight = el.scrollHeight + "px"; } } class ComboEditor { constructor() { this.setup(); } setArrays() ...
"use strict"; const util = require('./util'); // indicates to use the context of the promisified function (it's true `this`) // like bluebird's `var THIS = {};` const USE_THIS = Symbol("USE_THIS"); const IS_PROMISIFIED = Symbol("IS_PROMISIFIED"); const IDENTIFIER_REGEX = /^[a-z$_][a-z$_0-9]*$/i; const THIS_ASSIGNMENT...
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; import _assertThisInitialize...
/* SDK with the server All communications with server MUST be performed through this SDK (c) <NAME> 2020 */ /* * Websocket layer - internals */ var api_ws; // Internal function that initializes websocket function api_initialize_websocket_() { if (api_ws === undefined) { console.log...
/* * Create a function that returns the largest prime palindrome less than 1000. * Hint: it's 929 * You will first want to determine if the number is a palindrome and then determine if it is prime. * A palindrome is a number that is the same forwards and backwards: 121, 323, 123454321, etc. * Extra credit: Modify ...
const Command = require("../base/slashCommand"); const factionMap = require("../data/factionMap"); const shopMap = [ { name: "Arena Shop", value: "Arena Shipments" }, { name: "Cantina Shop", value: "Cantina Shipments" }, { name: "Fleet Shop", value: "Fleet Shipments" }, { name: "Galac...
///////////////////////////////////////////////////////////////////// // Copyright (c) Autodesk, Inc. All rights reserved // Written by Forge Partner Development // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provide...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the ri...
/* eslint-disable jsx-a11y/label-has-associated-control */ import React, { useState } from 'react'; import axios from 'axios'; import { useForm } from 'react-hook-form'; import { FaCloudDownloadAlt } from 'react-icons/fa'; const ApplyModal = () => { const [data, setData] = useState(null); const [error, setError] ...
import React, { Component, Fragment } from "react"; import PropTypes from "prop-types"; import { connect } from "react-redux"; import Tooltip from "rc-tooltip"; import { analytics, togglePasswordVisibility, validators, helpers } from "additional"; import ErrorFieldTooltip from "components/ui/error_field_tooltip"; impor...
/* Copyright 2016 First People's Cultural Council 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 writ...
import * as React from 'react'; import { FocusZone } from '../../../FocusZone'; import { addYears, setMonth, getYearStart, getYearEnd, getMonthStart, getMonthEnd, compareDatePart, DEFAULT_DATE_FORMATTING, } from '@fluentui/date-time-utilities'; import { Icon } from '../../../Icon'; import { getStyles } from './Calendar...
var userAgent = window.navigator.userAgent; var browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10); function newImage(arg) { if (document.images) { var rslt = new Image(); rslt.src = arg; return rslt; } } function findElement(n,ly) { if (browserVers < 4) return document[n]; var curDoc = ...
// Copyright (c) Microsoft. All rights reserved. import "rxjs"; import { Observable } from "rxjs"; import moment from "moment"; import { schema, normalize } from "normalizr"; import update from "immutability-helper"; import dot from "dot-object"; import { createSelector } from "reselect"; import { IoTHubManagerService...
'use strict' const Utils = require('./Utils.js') const { Client, AwaitingWithBuffer } = require('./Client.js') const UndoManager = require('./UndoManager.js') const TextOperation = require('./TextOperation.js') const { Range, Selection } = require('./Selection.js') const WrappedOperation = require('./WrappedOperation.j...
var power = "off"; var strict = "off"; var running = false; var memoryArray = []; var memoryArrayCounter = 0; var userArray = []; var userArrayCounter = 0; var levelCount = 1; var tempColor; var runMemory; var matchingArrays = true; var tempo; //Visualization Note function colorButton(id, color) { this.id = id; ...
import React, { Component } from 'react'; import { Text, View, Image, FlatList, RefreshControl, TouchableOpacity, StatusBar } from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import PropTypes from 'prop-types'; import { NavigationEvents } from 'react-navigation'; import { BlueText, Manage...
/** * @license * Copyright 2018 Brigham Young University * * 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 * * Un...
"use strict"; var asyncgen = require('asyncgen'); var crypto = require('crypto'); var assert = require('assert'); var vercast = require('vercast'); var vercastDB = require('./index.js'); function hash(value) { var h = crypto.createHash('sha256'); h.update(JSON.stringify(value)); return h.digest('base64'); ...