text
stringlengths
3.22k
29.5k
'use strict'; const axios = require('axios'); const UIDGenerator = require('uid-generator'); const db = require('./db.module'); const config = require('../../config'); const { statusChanger, courses } = require('./status.module'); const ExcelTable = require('./excel.module'); const uidgen = new UIDGenerator(); // tok...
require('dotenv').config() const express = require('express'); const mysql = require("mysql"); const inquirer = require("inquirer"); const cTable = require('console.table'); const app = express(); const PORT = process.env.PORT || 3000; // cute little thing we learned in one of Pat's mini clinics const log = (message...
/* global Crafty */ "use strict"; import { chooseAiAction, } from "./ai.js"; import { Highlight, NUM_TEAMS, PLAYER_TEAM, ClickEnum, } from "./consts.js"; import { findPaths, } from "./geometry.js"; import { clearAllHighlights, createMovementGrid, } from "./highlight.js"; import { ...
// do not remove the following comment // JALANGI DO NOT INSTRUMENT const fs = require('fs'); const events = require('events') const { getFileName, getFilePath, getLine, getEndLine, getPositionInLine, isTestEntity, getEntityKey, dependeciesPath, addToMapList, getExistingDependenc...
import React, { useEffect } from "react"; import styled from "styled-components"; import { Col } from "react-flexbox-grid"; import { rgba } from "polished"; const Container = styled(Col)` margin-bottom: 2rem; `; const PageTitle = styled.h1` height: 32px; ${"" /* margin: 1rem 0 1.5rem 1rem; */} margin: 0; ma...
import { equalArrays } from './'; /** * Parses RGB string * Assumes format `rgb([red], [green], [blue])` * * Deconstructs RGB CSS string: gets all three, 0-255 values * (red, green, blue). The values are then mapped to a color * object for manipulation/conversion. * @param {string} rgbString * @throws if mis...
import * as THREE from '/streetMeet/build/three.module.js'; // Class to store location data class Location { constructor() { this.location = null; this.position = null; this.links = null; // Data with the available links to new positions (Arrows) } } // StreetView controller class export...
import React from "react"; import Grid from "@material-ui/core/Grid"; import Button from "@material-ui/core/Button"; import SvgIcon from "@material-ui/core/SvgIcon"; import InfoIcon from "@material-ui/icons/Info"; import HoverIcon from "../../standardComponents/HoverIcon"; import OutlinedDropDown from "../../common/Ou...
import { devMode, DIRECTIONS, parseAttr, stripCalc } from '../helpers'; import TransformCombinator from '../combinators/transform'; export const PLACE_ATTR = 'place'; export const PLACE_VALUES = [ 'content', 'items', 'self' ].map((name) => { return CSS.supports(`place-${name}`, 'stretch stretch') ? function (...
const AWS = require('aws-sdk'); const dynamo = new AWS.DynamoDB.DocumentClient(); const lambda = new AWS.Lambda({'region':'us-east-1'}); //Need edge functions to goto us-east-1 const s3 = new AWS.S3(); const url = require('url'); const https = require('https'); const fs = require('fs-extra'); const path = require('path...
import React, { useEffect, useState, useCallback, useRef } from 'react' import { motion } from 'framer-motion' import { connect } from 'react-redux' import styles from './LayersPanel.module.css' import { deleteBox, createLabel, createBox, syncAction } from 'redux/collection' import { setHoveredBox } from 'redux/editor...
// import the product model const Product = require('../models/product'); // import mongoose so we can create random ids const mongoose = require('mongoose'); // import jwt decode so we can decode json web tokens const jwtDecode = require('jwt-decode'); // handle GET requests for /products exports.get_all_products = (...
// let Egg1 = document.getElementById('7,8'); // var Egg2 = document.getElementById('12,18'); // var Egg3 = document.getElementById('14,12'); // var Egg4 = document.getElementById('2,17'); // var Egg5 = document.getElementById('4,3'); // var table = document.getElementById('table'); // // Egg1.style.background ...
const rp = require('request-promise'); const cheerio = require('cheerio') const urlThor = 'https://playragnarokonlinebr.com/database/thor/monstros?page=1&nome=', urlDetalhesThor = 'https://playragnarokonlinebr.com/database/thor/', urlValhalla = 'https://playragnarokonlinebr.com/database/valhalla/monstros?page=1&no...
'use strict'; //Define principal variables window.auth = {}; window.auth.keycloakUrl = 'http://localhost:8081/auth'; window.auth.keycloakRealm = 'sistcoopform'; window.auth.keycloakClientId = 'sistcoopform_app'; window.auth.sistcoopformUrl = 'http://localhost:8080/sistcoopform/rest'; //Start by defining the main mod...
module.exports = glob var fs = require("graceful-fs") , minimatch = require("minimatch") , Minimatch = minimatch.Minimatch , inherits = require("inherits") , EE = require("events").EventEmitter , FastList = require("fast-list") , path = require("path") , isDir = {} // Globbing is a *little* bit different than just ma...
import React, { Component } from 'react'; import getWeb3 from '../utils/getWeb3'; import ipfs from '../utils/ipfs'; import moment from 'moment' import './css/Drive.css'; import FiledropContract from '../contracts/Filedrop.json'; import FileTable from './components/FileTable'; import SharedFileTable from './components/S...
// Modules and variable definition const { ipcRenderer, clipboard } = require('electron') const ServiceNow = require('servicenow-rest-api') const os = require('os') const username = os.userInfo().username // Temp group array const groups = [] // Temp incident array const incidents = [] // Import ServiceNow groups fr...
var path = require("path"), tap = require("tap"), test = tap.test; require(path.resolve(__dirname, "../lib/radamn.js")); function near(a, b) { return a > b - Math.EPS && a < b + Math.EPS; } test("intersection_circle_vs_circle", function(t) { var c1 = new Circle(0,0,5), c2 = new Circle(5,5,1),...
'use strict'; // ---------------------------------------------------------------------------- // Requirements // ---------------------------------------------------------------------------- var _ = require('underscore') , anyDB = require('any-db') , sql = require('sql') , pluralize = require('pluralize') , me...
import EventEmitter from 'events'; import Events from '../../enums/eventEnum'; const TOUCH_END_THRESHOLD = 60; const TOUCH_HOLD_THRESHOLD = 250; // Determines how long the user must hold the touch in milliseconds const BENCH_SCROLL_Y = 1; // how far we scrolled before no longer a "tap" class TouchHandler extends Even...
var groupData; var margin; var svg; var height; var width; /*.append("svg") .attr("width", width + margin.left + margin.right) .attr("height", height + margin.top + margin.bottom) .append("g") .attr("transform", "translate(" + margin.left + "," + margin.top + ")");*/ //Read the data /*d3.csv( "d...
/* MODULE LIB */ var path = require('path'); var fs = require('fs'); module.exports = (function(){ return { Required: ['Logger','Acl','Direct'], Module: function(conf){ var console = App.Logger.set(conf.name); //console.enable(); console.log('Модуль либ1', 123, {hello:123}); var me = App.name...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
/* eslint-env es6 */ import _ from 'lodash' import path from 'path' import webpack from 'webpack' import autoprefixer from 'autoprefixer' import HtmlWebpackPlugin from 'html-webpack-plugin' import ExtractTextPlugin from 'extract-text-webpack-plugin' import IndexBuilder from './webpack-plugins/IndexBuilder' import S3Pl...
var WIDTH = 1536; var HEIGHT = 734; window.requestAnimFrame = function(){ return ( window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || ...
const path = require('path') const { promisify } = require('util') const fs = require('fs-extra') const loaderUtils = require('loader-utils') const bindings = require('bindings') const { log } = require('../logger') const { resolvePackage } = require('../resolve') const { relativePath, getPackageJson } = require('../ut...
import React from 'react'; import PropTypes from 'prop-types'; import dva, { connect } from 'dva'; import { Modal, Input, Form, Button, Upload, Radio, Icon, Select } from 'antd'; const FormItem = Form.Item; const Option = Select.Option; const TextArea = Input.TextArea; const RadioGroup = Radio.Group; import DocumentMod...
const chai = require('chai'); const expect = chai.expect; const assert = chai.assert; const { createANewOwner, createANewSession, getEstablishmentsByOwner, deleteAnOwner, updateOwnerPassword } = require("./owner.test"); const { createANewEstablishment, findEstablishments, deleteEstabli...
'use strict'; // src imports import { createClient } from './stanzaio-light'; import notifications from './notifications'; import reconnector from './reconnector'; import ping from './ping'; import { requestApi, timeoutPromise } from './utils'; // extension imports import webrtcSessions from 'purecloud-streaming-clie...
const cookieParser = require("cookie"); const {RedisConnectionPool, Queue, Util, MathEx} = require("../../establishment-node-core/source/EntryPoint.js6.js"); const {Glue, RedisStreamPublisher} = require("../../establishment-node-service-core/source/EntryPoint.js6.js"); let uidToUserConnection = new Map(); class User...
const {SlashCommandBuilder} = require("@discordjs/builders"); const {pool} = require("../../database"); const {Formatters, MessageEmbed, Permissions} = require("discord.js"); const {rolePermissions, userPermissions, clientPermissions} = require("../../structures/permissions"); const {checkChannelType} = require("../../...
const validUrl = require('valid-url'); const _ = require('lodash'); const sdputils = require('./sdputils'); //TODO: READD AUTH TOKEN class ThreeDStreamingClient { constructor({serverUrl, peerConnectionConfig, platform}, WebRTC) { if (!validUrl.isUri(serverUrl)) { throw new Error('Invalid url'); } i...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ var serviceUrl="http://activity.10jrw.com/";//远程服务器地址 var stateInfo = { curObj: new Object(), //当前元素对象 isLock: 0, //锁定当前操作 } v...
// Pentago board operations // Generated by pentago/web/client/py/generate const win_rays = [[0,6],[1,6],[2,6],[3,6],[4,6],[5,6],[6,6],[7,6],[8,6],[9,6],[10,6],[11,6],[0,1],[1,1],[6,1],[7,1],[12,1],[13,1],[18,1],[19,1],[24,1],[25,1],[30,1],[31,1],[4,5],[5,5],[10,5],[11,5],[0,7],[1,7],[6,7],[7,7]] // Pull in math cons...
import './polyfill'; import Util from './utiils'; class CSelect { constructor(el, options) { if (!(el instanceof Node)) { throw new Error('el must be a Node'); } // default options this.settings = Object.assign({ maxWidth: 0, customClass: '', animation: null, showMaxOp...
// REQUIRE ALL NEEDED PACKAGES const express = require("express"); // SERVER const hbs = require("hbs"); // TEMPLATING const mongoose = require("mongoose"); // MONGODB const bodyParser = require("body-parser"); // FORM INPUT ENCODER const session = require("express-session"); // SESSIONS const multer = require("multer"...
const path = require('path'); const ObjectUtils = require('../shared/objectUtils'); const { deepAssign } = require('../shared/deepAssign'); const { providerCreator } = require('../shared/jimpleFns'); /** * @module node/appConfiguration */ /** * @typedef {import('./environmentUtils').EnvironmentUtils} EnvironmentUti...
'use strict'; function reset_misc() { dom.nProto2.style.color = zhide dom.shimdata.style.color = zhide dom.mathmltest.style.color = zhide } function get_component_shims() { let shim = (typeof Components === "undefined") ? zU : Object.getOwnPropertyNames(Components.interfaces).join(", ") dom.shimdata = shim dom....
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { STATUS_PLAY, STATUS_STOP, STATUS_PAUSE } from './constants'; const PI = Math.PI; // cache pi class CircleCountdown extends Component { constructor(props) { super(); this.resetInternalCounters(); this.state = { ...
const cardStorage = window.localStorage; let cardList = []; const html = document.getElementsByTagName('html')[0]; const create = document.getElementById('create-btn'); const modal = document.getElementById('card-modal'); const modalCloses = document.querySelectorAll('.modal-background, .modal-card-head > .delete, .mo...
const fs = require('fs'); const util = require('util'); const p = console.log; const insp = util.inspect; const input = fs.readFileSync('../inputs/input16.txt', 'utf-8'); /** * Converts hexadecimal char sequence to binary * @param {String} hex * @returns {String} binary representation incl. paddings */ function ...
const debug = false; /* * this is the MDN recommended way to get base64 encoding and decoding (!) * (the old atob and btoa functions trip over utf8) * * https://developer.mozilla.org/en-US/docs/Web * /JavaScript/Base64_encoding_and_decoding */ /* Array of bytes to Base64 string decoding */ function b64ToUint6 ...
/* MIT License Copyright (c) 2017 <NAME> (https://q37.info/s/rmnmqd49) 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,...
import Car from '../../physics/Car.js'; /** ** **/ export default class FollowController { /** ** **/ constructor ( path, car ) { this.path = path; this.car = car; this.nextIndex = 1; this.prevVelocity = 0; this.prevAccel = 0; } /** ** **/ reset () { this.prevVelocity = 0; this.prevAccel = ...
const {Range} = require('atom') const {isEscapedCharRange, collectRangeByScan, scanEditor, getLineTextToBufferPosition} = require('./utils') const {partition, escapeRegExp} = require('underscore-plus') function getCharacterRangeInformation (editor, point, char) { const regex = new RegExp(escapeRegExp(char), 'g') ...
function clientClick(term='') { $.ajax({ type: 'GET', //url: 'http://localhost:8080/clients', //crossDomain: true, url: 'index.php/clients/clientList', //dataType: 'json', data: {term:term}, success: function(data){ $('#stelaMain').html(data); }, error: function(jqXHR, textSt...
import * as fs from 'fs'; import loaderUtils from 'loader-utils'; import nunjucks from 'nunjucks'; import frontmatter from 'frontmatter'; import marked from 'marked'; import { formatHTML } from './helpers/format-html'; import chalk from 'chalk'; import { htmlErrorStack } from 'print-error'; import { MarkdownExtension ...
import model from '../levelModel.js'; const BallsLayer = cc.Layer.extend({ speedAnimation: 0.5, onEnter: function () { this._super(); this.visitedTiles = {}; this.animationQueue = []; this.width = model.sizeBoard; this.height = model.sizeBoard; this.tileArray =...
'use babel'; // import * as d3 from 'd3'; import { select as d3select } from 'd3'; import { selectAll as d3selectAll } from 'd3'; import { zoom as d3zoom } from 'd3'; import { drag as d3drag } from 'd3'; import { event as d3event } from 'd3'; import { zoomTransform as d3zoomTransform } from 'd3'; import { hierarchy ...
//@program /* Copyright 2011-2016 Marvell Semiconductor, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicab...
console.log('Loading...') const Discord = require('discord.js') const fs = require('fs') const config = JSON.parse(fs.readFileSync('config.json' , 'utf8')) const client = new Discord.Client({partials: ['MESSAGE','CHANNEL','REACTION']}) const http = require('http') const host = 'localhost' const port = 8000 const...
// // Author: <NAME> plugin("ZIP"); ow.loadObj(); var createTmp = false; //Check if a Jar was repacked function isRepackJar(aJarFilePath) { var res = true; var aJar = new ZIP(); try { aJar.loadFile(aJarFilePath); var listJar = aJar.list(); for(let i in listJar) { //if(listJar[i].name.match(/jarinjarloa...
import { __extends } from "tslib"; import { Guid } from '@microsoft/sp-core-library'; import AadConstants from '../../AadConstants'; import { _QosMonitor } from '@microsoft/sp-diagnostics'; import { AadErrorHandler } from '../../AadErrorHandler'; import { AadKillSwitches } from '../../AadKillSwitches'; /** * Class tha...
/* * 필요한 process.env 설정 값 * * AUTHOR : 계정명 * AUTHOR_POSTING_KEY : 포스팅키 * FILE_NAME : 파일명 * * 파일에 필요한 값 정보 * line 1: permlink * line 2: 제목(title) * line 3: 태그(tags) ,로 구분 * line 4~: 본문(body) */ // 기본 라이브러리 로딩 const steem = require('steem'); const fs = require('fs'); const readline = require('readline'); // 설정 정보를 읽어...
var DIFFICULTY = 1; // from 0 to 1, 1 being hardest var WIDTH = 500; var HEIGHT = 650; var PADDLEWIDTH = 50; var LEFTARROW = 37; var RIGHTARROW = 39; var OFFWHITE = "#f9fafc"; var BLUE = "#3b79b4"; var GREEN = "#008000"; var BLACK = "#000000"; /** * Draws a rounded rectangle using the current state of the canvas. *...
var fen1,pos; var gpstart, gpend; window.onunload = function() { fen1.onunload(); } function xFenster(eleId, iniX, iniY, zoomLayer, zoomBtnId, resBtnId, qryBtnId, zoomOutBtnId, cameraBtnId) { var me = this; var ele = xGetElementById(eleId); var rBtn = xGetElementById(resBtnId); var qBtn = xGetElementById(...
// Copyright 2017 - 2021 The Appgineer // // 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 agre...
// Creating a server // 1. touch server.js // 1.5 touch .eslintrc.json // 1.5 touch .env // 2. run `npm init` (say yes to everything) (creates package.json) // 3. GET THE SERVER RUNNING // 4. install the packages (libraries) `npm install <PACKAGENAME> <PACKAGENAME> <ETC>` // on day 6- those are express and dotenv /...
const path = require('path'); const moment = require('moment'); const nodeExcel = require('excel-export'); const OrderService = require('../service/order'); const ProductService = require('../service/product'); const orgService = require('../service/organization'); const userService = require('../service/user'); const ...
/* * 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 * distributed u...
/*jslint node: true*/ 'use strict'; // Initialize the attributes function. var attributes; // Initialize the tokenize function. var tokenize; /** * Represents the function performing lexical analysis. The template is * analysed and converted into a sequence of tokens. Each token contains * a group of characters and...
import React from 'react'; import { StyleSheet, Text, TextInput, View, TouchableWithoutFeedback, Dimensions, Animated, Keyboard, StatusBar, Platform } from 'react-native'; import Svg, { Path, Defs, LinearGradient, Stop } from 'react-native-svg'; import { jellyExpandEasing, jellyCollapseEasing, bounceEasing } from './Ea...
Components.utils.import("resource://fvd.speeddial.modules/sync.js"); Components.utils.import("resource://fvd.speeddial.modules/async.js"); Components.utils.import("resource://fvd.speeddial.modules/properties.js"); Components.utils.import("resource://fvd.speeddial.modules/settings.js"); Components.utils.import("resource...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
import React from 'react'; import ProfileWorks from './ProfileWorks'; import { connect } from 'react-redux'; import { ProContainer} from './ProfileStyles.js'; import { addPhoto, uploadAvatar, addBio, editInfo, } from '../../store/actions/projectActions'; import moment from 'moment'; import Facebook from '../../...
'use strict'; function gpio2Id(bank, pin) { return ((bank) * 32 + ((pin) & 0x1f)) } //From https://github.com/repaper/gratis var pins = { // Connector P8 P8_01 : -1, // GND P8_02 : -1, // GND P8_03 : gpio2Id(1, 6), // GPIO1_6 P8_04 : gpio2Id(1, 7), // GPIO1_7 P8_05 : ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
import React, { useState, useEffect } from "react"; // @material-ui/core components import { makeStyles } from "@material-ui/core/styles"; // core components import GridItem from "../../components/Grid/GridItem.js"; import GridContainer from "../../components/Grid/GridContainer.js"; import Card from "../../components/C...
const { MessageEmbed, MessageCollector } = require("discord.js"); const { MessageButton } = require("discord-buttons"); const ticket = require("../models/ticket"); module.exports.run = async (client, message) => { if (!message.member.hasPermission("MANAGE_CHANNELS")) return message.error(message.lang.noPerm.r...
// The firebase specific requests are defined, and will be exported to the async action // creator file. import firebaseApp from './firebaseApp'; const firebaseAuth = firebaseApp.auth(); const firebaseDatabase = firebaseApp.database(); const fireaseStorage = firebaseApp.storage(); /** * Check whether there is a sign...
'use strict' var gBoard var gGame = { isOn: false, shownCount: 0, markedCount: 0, safeClicks: 3 } var gLevel = { SIZE: 4, MINES: 2, lives: 3 } var elPlayImg = document.querySelector('.play') var elVictoryImg = document.querySelector('.victory') var elGameOverImg = document.querySelector(...
import React, { Component } from 'react'; import './AdminPage.scss'; import { Container, Button, DropdownToggle, DropdownMenu, ButtonDropdown, DropdownItem, Row, Col, Table, InputGroup, InputGroupAddon, InputGroupText, Input, Modal, ModalHeader, ModalBody, ModalFooter, } from 'reactstr...
module.exports = AnimatedBinding; var animation = require('./util/animation'); var Binding = require('./binding'); var _super = Binding.prototype; /** * Bindings which extend AnimatedBinding have the ability to animate elements that are added to the DOM and removed from * the DOM. This allows menus to slide open and...
var { Client, MessageEmbed } = require('discord.js'); var bot = require('./json_files/data.json'); const config = require('./json_files/config.json'); const crypto = require('crypto'); const fs = require('fs'); const client = new Client(); // Discord login client.login(config.token); // Discord error handleing clie...
import { Form, Button, Popconfirm, Input, Select } from 'antd'; import { appointmentStatus, treatmentType } from 'configs/constants'; import styles from './appointmentDetail.less'; import TagPicker from './TagPicker.js'; const FormItem = Form.Item; const Option = Select.Option; let patentTimer = null; let doctorTimer ...
/*! * EJS * Copyright(c) 2015 Giphoo <<EMAIL>> * MIT Licensed */ /** * Module dependencies. */ var q = require("q") , co = require("co") , _ = require("lodash") , GeneratorFunction = Object.getPrototypeOf(function*(){}).constructor , utils = require('ejs/lib/utils.js') , path = require('path...
import dtPickerTemplate from '../../views/dateTimePickerModal.html'; class LogsCtrl { constructor($scope, $injector, $q, $uibModal, $element, $translate, $rootScope, $filter) { 'ngInject'; var vm = this; var $stateParams = $injector.get('$stateParams'); this.$stateParams = $stateP...
'use strict'; // Calls `method` on the `api` provided, with the params provided // Returns a Promise function promiseWrapper(api, method, params) { return new Promise(function (resolve, reject) { try { api[method](params, function (err, data) { if (err) { return reject(err); } ...
(function(l, r) { if (l.getElementById('livereloadscript')) return; r = l.createElement('script'); r.async = 1; r.src = '//' + (window.location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1'; r.id = 'livereloadscript'; l.getElementsByTagName('head')[0].appendChild(r) })(window.document); import ...
function handle(event){ event.stopPropagation(); event.preventDefault(); console.log('---- handle ---'); var myform = document.getElementById('myform'); console.log('---- myform ---'+myform); var payload = new FormData(myform); console.log('---- handle completed---'); $.ajax({ t...
var RES = 101; var SIZE = 30; var GAP_RATIO = 1.0 / 10.0; //size of the gap relative to size of a square in the grid var R_RATIO = 1.0 / 10.0; var LINE_RATIO = 1.0 / 20.0; var LINE_COLOR = "black"; var SELECTED_COLOR = "skyblue"; var TIMEOUT = 30; var COLORS = new Array(6); COLORS[0] = "red"; COLORS[1] = "blue"; COLOR...
// MODULES // import React from 'react'; import PropTypes from 'prop-types'; import Alert from 'react-bootstrap/Alert'; import isUndefinedOrNull from '@stdlib/assert/is-undefined-or-null'; import ztest2 from '@stdlib/stats/ztest2'; import roundn from '@stdlib/math/base/special/roundn'; import replace from '@stdlib/str...
'use strict'; const Generator = require('yeoman-generator'); const chalk = require('chalk'); const yosay = require('yosay'); const path = require('path'); const Conf = require('conf'); const { generateConfigFull, generateConfigEssential, fileMap } = require('./data.js'); module.exports = class extends Generator ...
import React, { Component, useState } from 'react' import { useParams } from 'react-router'; import { Jumbotron, Button, InputGroup, FormControl, Card } from 'react-bootstrap' import './BlogDetail.scss' import imgblogdetail from '../../../assets/image/blog.png' import iconsearch from '../../../assets/icon/icon-search.s...
//declaring variable const makePost = document.querySelector('.post-icon'); const mostViewed = document.querySelector('.most-viewed'); let postMain = document.querySelector('.post-main') const mostViewedCards = postMain.querySelectorAll('.card'); const updateTopic = document.querySelector('.update-topic'); let updateT...
// Gumby is ready to go Gumby.ready(function() { Gumby.log('Gumby is ready to go...', Gumby.dump()); // placeholder polyfil if(Gumby.isOldie || Gumby.$dom.find('html').hasClass('ie9')) { $('input, textarea').placeholder(); } // skip link and toggle on one element // when the skip link completes, trigger the s...
/** * Created by <NAME> on 2/13/2018. */ function showLoading() { $.busyLoadFull("show", {}); } function hideLoading() { $.busyLoadFull("hide", {}); } function confirmAction(btn, message, url) { swal({ title: message, text: "You won't be able to revert this!", type: '...
//create container for game blocks var gameContainers = document.querySelector(".container"); //create container for play button var playButton = gameContainers.querySelector("#playGameBtn"); var gameBlock = gameContainers.querySelector("#gameBlock"); var startMenu = document.getElementById("startMenu"); var gameOver =...
import React, { useState, useEffect, useRef } from "react"; import { StyleSheet, View, Text, TextInput, TouchableOpacity, Alert } from "react-native"; import ToggleSwitch from 'toggle-switch-react-native'; import { firebase } from "../firebase/config"; import * as Linking from 'expo-linking'; import * as Notifications ...
/* global $ requests server helper sidebar edits */ 'use strict'; // ==UserScript== // @name MusicBrainz edit: Replace recording artists from a Release page // @namespace mbz-loujine // @author loujine // @version 2020.9.14 // @downloadURL https://raw.githubusercontent.com/loujine/musicbrainz-scr...
// @ts-check const facebookProfiles = [ { firstName: "Akash", lastName: "Agarwal", number: "111111111", likes: ["music", "movies"], hasDrivingLicense: false, address: { location: "rampur", state: "up", }, emails: ["<EMAIL>", "<...
"use strict"; // global variables var gl, canvas, program; var camera; // camera object var trackball; // virtual trackball var Locations; // object containing location ids of shader variables var obj1, obj2; window.onload = function init() { // Set up WebGL canvas = document.getElementById("gl-canvas"); g...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
var MapVisualization = function(width, height, gridWidth, gridHeight, context) { var width = width; var height = height; var context = context; // Find cell size: var cellWidth = Math.floor(width / gridWidth); var cellHeight = Math.floor(height / gridHeight); var maxR = Math.min(cellHeight, cellWidth)/2 - 1; ...
var pokeDitto = { nombre: 'Ditto', pasiva: 'Impostor', habilidad1: 'Agilidad', imagen: 'Assets/imagenes/Ditto.png', descripcion: 'El término ditto se utiliza para referirse a algo que se ha mencionado anteriormente o más arriba, ya sea de forma oral o escrita, para así reafirmar lo dicho, pero evitando la rep...
import React, { Component } from "react"; import PropTypes from "prop-types"; import { StaticQuery, graphql } from "gatsby"; import { Row, Col } from "reactstrap"; import ContainerMaxWidth from "components/shared/ContainerMaxWidth"; import Text from "components/shared/Text"; import { media } from "utils/Media"; import ...
'use strict' const cluster = require('cluster') const EventEmitter = require('events') const OS = require('os') const path = require('path') const ServerCodeEvents = require('../events') const logger = require('../../util/logger') const LongWaiter = require('../../util/long-waiter') const WORKER_TEARDOWN_TIME = 2000...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
import standard from './standard'; import Chart from 'chart.js'; import * as $ from 'jquery'; let createCount = 0; const recording = {}; let startPos = null; let endPos = null; let globalData; const labelMap = { time: 'Time in seconds', fallback: 'Score' } const responseMap = [ '', 'Congrats! You got a new P...