text
stringlengths
3.22k
29.5k
// jsdom injected via vue cli const assert = require("assert"); const sinon = require("sinon"); const {preprocessMixinConfig, preprocessDirectiveConfig, registerVuexInstance} = require("../../src/configPreprocessor.js"); suite("configPreprocessor.js"); function getMinWorkingOptions() { return { mode: "draggable" ...
import { createElement, getElementData, hasClass, toUpperCaseFirst } from './Util'; import ErBase from './ErBase'; import ErTable from './ErTable'; import ErLine from './ErLine'; class Er extends ErBase { constructor(el, options) { super(); this.el = el; this.options = options; this.tables = []; ...
import React, { useCallback, useState, useGlobal, useEffect } from 'reactn'; import ImageUpload from '../components/ImageUpload'; import ErrorSwap from '../utils/ErrorSwap'; import Phone from 'react-phone-number-input'; import 'react-phone-number-input/rrui.css'; import 'react-phone-number-input/style.css'; import { Li...
const ROLES = { DEFAULT_USER: 'DEFAULT_USER', RESEARCHER: 'RESEARCHER', INVESTOR: 'INVESTOR', REVIEWER: 'REVIEWER', ADMIN: 'ADMIN', OWNER: 'OWNER', }; const PERMISSIONS = { // Roles CREATE_ROLES: { permission: 'create-roles', description: 'Permite criar papeis no sistema', }, LIST_ROLES: { permission: ...
/** * __ .__ * _______/ |______ _____|__| ______ * / ___/\ __\__ \ / ___/ |/ ___/ * \___ \ | | / __ \_\___ \| |\___ \ * /____ > |__| (____ /____ >__/____ > * \/ \/ \/ \/ * * @description Opiniated static site generator for node.js * ...
import React from 'react'; import { LogLevel } from 'bitmovin-player'; import { Player as Bitmovin, PlayerEvent, } from 'bitmovin-player/modules/bitmovinplayer-core'; import BitmovinEngineModule from 'bitmovin-player/modules/bitmovinplayer-engine-bitmovin'; import BitmovinEngineNative from 'bitmovin-player/modules/...
//API JAVASCRIPT MIXIN // define a mixin object import Vue from 'vue'; import router from '@/router' const IOTA = require('iota.lib.js'); const fs = require('fs'); const crypto = require('crypto'); const cryptico = require('cryptico'); const FULL_NODE_ADDR = "https://field.carriota.com:443"; // const SEED = "<KEY>";...
const fetch = require("node-fetch"); const cron = require("node-cron"); const utils = require("./utils"); let SR_URL = process.env.SR_URL; // Base URL of the Service Registry (LinkSmart Service Catalog) let EFS_KEYCLOAK_URL = process.env.EFS_KEYCLOAK_URL; // Base URL of the EFS Keycloak let EFS_KEYCLOAK_...
import API from '@/api/API' const api = new API() function axios (host, method, data, cb, noData, get) { let params = { api: host, param: { method: method } } noData ? Object.assign(params.param, data) : (params.param.data = JSON.stringify(data)) api[get ? 'get' : 'post'](params).then( res...
import React, {useEffect, useContext } from 'react'; import CssBaseline from '@material-ui/core/CssBaseline'; import Link from '@material-ui/core/Link'; import Box from '@material-ui/core/Box'; import Typography from '@material-ui/core/Typography'; import {makeStyles} from '@material-ui/core/styles'; import Container f...
"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 mocha */ const expect = require('chai').expect const { parseLine } = require('./helpers') const { Beacon } = require('./beacons') const testData = `position=< 9, 1> velocity=< 0, 2> position=< 7, 0> velocity=<-1, 0> position=< 3, -2> velocity=<-1, 1> position=< 6, 10> velocity=<-2, -1> position=...
import { Matrix } from '../../lib/util/math.js' import LeastSquares from '../../lib/model/least_square.js' import stringToFunction from '../expression.js' import EnsembleBinaryModel from '../../lib/util/ensemble.js' const combination_repetition = (n, k) => { const c = [] const a = Array(k).fill(0) while (a[a.lengt...
var gulp = require('gulp'); var del = require('del'); var plugins = require('gulp-load-plugins')(); var browserSync = require('browser-sync'); var reload = browserSync.reload; var log = plugins.util.log; var purify = require('gulp-purifycss'); var config = require('./gulp.config.json'); var stripDebug = require('gulp-s...
/* * Copyright (c) <NAME> <<EMAIL>> */ 'use strict'; const chalk = require('chalk'); const source_map = require('source-map'); const SPACES = new Array(80).join(' '); const LOC_RE = /:([0-9]+):([0-9]+)$/; const at = chalk.gray('at'); function highlight_source(src, loc) { const c1 = loc.start.column; let c2 = l...
/* The MIT License (MIT) This software is provided by Bitty Software - https://www.bittysoftware.com 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 ...
import React, { Component } from "react"; import ImageAnnotation from "./ImageAnnotation"; import AnnotationLabelAnnotationGroupItem from "./AnnotationLabelAnnotationGroupItem"; import Mousetrap from "mousetrap"; // @ts-ignore import background from "./background.png"; const TAB = "tab"; const SHIFT_TAB = "shift+tab";...
const http = require('http').Server(); const io = require('socket.io')(http); const fs = require('fs'); const os = require('os'); const open = require('open'); const net = require('net'); const Upload = require('./Upload'); const ProjectUtil = require('../ProjectUtil'); const WbSocketEventNameAction...
/* * - [ ] 在context页面的iframe中载入待测试页面 * - [ ] 在启动时向express注入html、css等静态文件 * - [ ] 注入一个后端,并提供转发和静态页面处理能力 * - [ ] 可模拟用户操作(在Headless浏览器中不显示以下效果) * - [ ] 可显示鼠标轨迹:从初始位置到目标位置逐点走直线;记录最后一次的鼠标位置,下一次移动从该位置开始;渐隐轨迹 * - [ ] 可显示触发的按键:气泡消失效果 * - [ ] 可获取测试页面中的DOM:支持CSS选择器 * - [ ] 在不同标签显示测试页面 * - [ ] 在运行环境支持的情况下可截图 * -...
import React from "react"; import { connect } from 'react-redux'; import Swal from 'sweetalert2'; import moment from 'moment'; import { Link, NavLink } from "react-router-dom"; import {getRoomcategorys, getRoomcategory, registerRoomcategory, updateRoomcategory, deleteRoomcategory } from './../../actions/roomcategory'; ...
window.dontCloseModals = false; setInterval(()=>$("td").each(function(){if(!/[^0-9\.]/.test(this.innerText) && /[0-9\.]/.test(this.innerText) && !(/^[0-9]{3}\.[0-9]{3}$/.test(this.innerText) || /[0-9]{5}/.test(this.innerText))){this.innerText = String(parseFloat(this.innerText).toLocaleString('pt-br',{style: 'currency...
{/*THIS IS THE HOME PAGE on this page features the a welcome greeting banner, and various general content for the user to explore. we have a randomised daily quote, a cartoon, and some random exercises from the users to do list as a queue for them to start a new exercise quickly. */} import React from 'react'; im...
function ThePlagueGame() { var self = this, gameEngine; this.Init = function (boardContainer, turnContainer, easyButtonContainer, mediumButtonContainer, hardButtonContainer, statusContainer) { Math.seedrandom(); gameEngine = new GameEngine(); gameEngin...
var path = require('path'); var urlutil = require('url'); var moment = require('moment'); var utils = require('jul11co-wdt').Utils; module.exports = { name: 'Imgur', website: 'https://imgur.com/', match: function(link, options) { return /imgur\.com\/a\//g.test(link) || /imgur\.com\/gallery\//g.test(lin...
var MAX_POLL_INTERVAL = 1500; var MIN_POLL_INTERVAL = 100; var BACKOFF_RATE = 1.8; var PY_XTERM_INSTANCE = 'get_ipython().find_magic("xterm").__self__'; var PY_TERMINAL_SERVER = PY_XTERM_INSTANCE + '.getTerminalServer()'; // From https://stackoverflow.com/questions/30106476/using-javascripts-atob-to-decode-base64-does...
var fs = require("fs"); var engine = require("./engine.js"); var util = require("./util.js"); var config = require("./config.js"); /* { "webapi_host":"http:\/\/steamapi-a.akamaihd.net\/", "webapi_host_secure":"https:\/\/steamapi-a.akamaihd.net\/", "token":"<PASSWORD>", "steamid":"76561198096703994", "persona_name...
$( document ).ready(function() { activate_import_btns(); // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) { if (event.target == $("#data-source-modal")[0]) { $("#data-source-modal").css('display', "none"); } }; // PVWatts $('#pvwatts_check_availabilit...
'use strict'; /** * Module dependencies. */ var zenbatConfig = require('../../zenbat.config.js'); var walk = require('walk'); var fs = require('fs'); var XLSX = require('xlsx'); var moment = require('moment'); var Componentes = require('./componentes.server.controller.js'); var json2xls = require('json2xls'...
/** * This "Basic Signaling" library is derivation of original work of Muaz Khan [www.muazkhan.com]: * -- @see - [https://github.com/muaz-khan/WebRTC-Experiment/tree/master/websocket-over-nodejs] * -- @copyright Copyright (c) 2017 Mu<NAME> - [https://github.com/muaz-khan] * ...
import React, { PureComponent, Fragment } from "react"; import { connect } from "dva"; import moment from "moment"; import { Row, Col, Card, Avatar, Form, Input, Select, Button, Modal, message, Divider, DatePicker, Spin, Menu, TreeSelect, Dropdown, Icon, Upload } from "antd"; import ...
// import * as d3 from 'd3'; import * as pathTool from 'zrender/src/tool/path'; import * as THREE from 'three'; import OrbitControls from 'three-orbitcontrols'; import Point from './point'; import geo from './geo'; import * as tooltip from './tooltip'; export default function three_draw(dom, geojson, testData) { le...
'use strict' const gulp = require('gulp') const concat = require('gulp-concat') const prompt = require('gulp-prompt') const uglify = require('uglify-js') // const header = require('gulp-header') const esprima = require('esprima') const traverse = require('traverse') const del = require('del') const fs = require('fs') ...
const axios = require('axios'); const checkOldLevel = (uid, socProvider) => new Promise(((resolve, reject) => { axios.get(`http://legacy.spelezoli.lv/?${socProvider === 'facebook' ? 'fbid' : 'drid'}=${uid.toString()}`, { timeout: 5000 }) .then((info) => { if (info) { try { const { data } = info...
/** * Copyright 2017 aixigo AG * Released under the MIT license. * https://laxarjs.org/license */ import * as ng from 'angular'; import * as patterns from 'laxar-patterns'; import { messages } from './messages'; //////////////////////////////////////////////////////////////////////////////////////////////////////...
var globalEditor = null; var deviceInfo = null; var currentPage = "info"; var pagesLoaded = false; var targets = {}; function ajax(method, url, data, contentType) { return new Promise(function (resolve, reject) { var request = new XMLHttpRequest(); request.open(method, url, true); reques...
// Requiring necessary npm middleware packages var express = require("express"); var bodyParser = require("body-parser"); var session = require("express-session"); var passport = require("./config/passport"); var hbs = require("hbs"); var sdkClient = require('./api_SDK/astro-api-nodejs-client-master/sdk/sdk'); // Sett...
$(function () { $("#jqGrid").jqGrid({ url: '../newsmessage/list', datatype: "json", colModel: [ {label: 'id', name: 'id', index: 'id', key: true, hidden: true}, {label: '新闻标题', name: 'title', index: 'title', width: 80,align:'center'}, {label: '新闻内容', name:...
import rxdb from "../../db"; import fs from "fs"; import { ipcRenderer } from "electron"; import { client } from "../../../main/adb"; import frameworks from "./client-frameworks"; const adbkit = require("adbkit"); const request = require("request").defaults({ timeout: 6000, forever: true, json: true, baseUrl: "...
import React, {useState, useEffect} from 'react'; import PaxDetails from './pax-details'; import {storePassengerDetails, retrievePassengerDetails} from '../../utils/api-utils' import Alert from 'react-bootstrap/Alert'; import Spinner from '../common/spinner'; import { flightOfferSelector, hotelOfferSelector, is...
import { distinct } from '@aeinbu/groupby' import { createElement, StatelessProps } from 'tsx-create-element' import { layoutParameters } from './LayoutParameters' export const CreateDiagram = ({ data }) => { const endpointNames = data .flatMap(item => [item.from.name, item.to.name]) .reduce(distinct(item => ite...
'use strict'; exports.__esModule = 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]; } } } return target; }; var _typeof = type...
/* @licstart The following is the entire license notice for the JavaScript code in this file. The MIT License (MIT) Copyright (C) 1997-2020 by <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...
/** * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v21.1.1 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extend...
// Name : userjs-tool-start-up.js // Project : https://github.com/icpantsparti2/firefox-user.js-tool // On-line : https://icpantsparti2.github.io/firefox-user.js-tool/userjs-tool.html // License (MIT): https://raw.githubusercontent.com/icpantsparti2/firefox-user.js-tool/master/LICENSE // Version ...
$.ajaxSetup({ async: true, // beforeSend: function (xhr) { // let token = window.localStorage.site_admin_token; // xhr.setRequestHeader("Accept", "application/json"); // // xhr.setRequestHeader("Content-Type", "application/json"); // xhr.setRequestHeader('Authorization', 'Bearer ...
import {TYPES, fake} from "./utils/nodeTypes" import {getContents, getSequence, getSequenceEnds, getContentEnds, getEndFinalDestination, getContent} from "./utils/jsonNav" import { addContent, connectContents, gotoContent, removeContent, removeContentLink, removeContentOutput } from "./utils/contents"; import...
import _extends from "@babel/runtime/helpers/extends"; import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; import _defineProperty from "@babel/runtime/helpers/defineProperty"; import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/** * Arquivo: server.js * Descrição: Arquivo responsável por levantar o serviço do Node.Js para poder * executar a aplicação e a aviario através do Express.Js. * Author: <NAME> * Data de Criação: */ //Base do Setup da Aplicação: /* Chamada das Package*/ var app = require('express')(); //definção da apl...
/* * cucumber.js: Methods for directly running features against a Cucumber layout. * * (C) 2011 <NAME> (<EMAIL>) * MIT LICENSE * */ var kyuri = require('../../kyuri'), fs = require('fs'), util = require('util'), colors = require('colors'), lingo = require('lingo'), EventEmitter = require('even...
'use strict'; var _filterTags=[]; var _filterTagsO={} var myApp= angular.module('gmall', [ 'ngRoute','ui.router','ngResource','ngCookies', 'ngAnimate', 'gmall.controllers', 'gmall.services', 'gmall.directives', 'gmall.filters', 'ui.select', 'ui.bootstrap', ...
import React, { useState, useEffect } from 'react' import { AsyncStorage, Dimensions, FlatList, RefreshControl, StyleSheet, Text, View } from 'react-native' import { Body, Button, Card, CardItem, Container, Content, Fab, Header, Icon, Left, Right, StyleProvider, Text as NBText } ...
/* GLOBAL VARIABLES */ var middle = 'middle', scopeout = 'scopeout'; /** MODULE INTERFACE *@method {function} handle - Handles element quadrant changes and border crossings */ module.exports = { handle: handleCrossings }; /*----------------------------------------------------------------------------*/ /** Hand...
import React, { Component } from 'react'; /* Imagenes */ import icono1 from '../assets/img/iconosformulario/Icon_01.png'; import icono2 from '../assets/img/iconosformulario/Icon_02.png'; import icono3 from '../assets/img/iconosformulario/Icon_03.png'; import icono4 from '../assets/img/iconosformulario/Icon_04.png'; im...
/** * ✨ * (\. \ ,/) * \( |\ )/ * //\ | \ /\\ * (/ /\_#👓#_/\ \) * \/\ #### /\/ * `##' * * 🔮 Handsfree.j...
var selectedFilter = document.getElementsByClassName('selected-item')[0]; var priceRange = document.getElementById('price-range'); // --------------------Input Range var minPrice = document.getElementById('min-price'); var maxPrice = document.getElementById('max-price'); var selectSort = document.getElementById('...
/* * Copyright 2017-2021 EPAM Systems, Inc. (https://www.epam.com/) * * 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 requ...
'use strict'; /*global dialogCallback,_dialog_response,isDialog,root,$ */ var MINIMUM_ITEM_COUNT_TO_EXPAND = 1; var btn = { 'delete': function () { return $('<button type="button" class="nf_listfield_delete"><i class="icon-remove"></i></button>') .click(function (e) { e.stopPro...
// This handles the Agent Assistant functionality in the client web app import assistService from './agent-assistant-service.js'; import view from './view.js'; // Obtain a reference to the platformClient object const platformClient = require('platformClient'); const client = platformClient.ApiClient.instance; // API ...
/** * @license MIT * @author <NAME>(<EMAIL>) * @author <NAME>(<EMAIL>) * Copyright 2018 Peculiar Ventures and Pentatonica. * All rights reserved. */ export function sortPoints(points, canvas) { // eslint-disable-line // How it works? const center = [0, 0]; let A = null; let B = null; let C = null; le...
/** * SPDX-FileCopyrightText: © 2017 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: MIT */ const spawn = require('cross-spawn'); const inquirer = require('inquirer'); const _ = require('lodash'); const project = require('../../lib/project'); const {getArgv} = require('../../lib/util'); const themeF...
var fs = require('fs'), path = require('path'), cheerio = require('cheerio'), request = require('request'), parseUrl = require('url').parse, archiver = require('archiver'), argv = require('optimist').argv, FormData = require('form-data'), IonicProject = require('./project'), Task = r...
const should = require('should'); const mongoose = require('mongoose'); mongoose.Promise = global.Promise; // const MONGO_URI = process.env.MONGO_URI || require('../../config').MONGO_URI; let MONGO_URI = ''; try { MONGO_URI = require('../../config').MONGO_URI; } catch (err) { MONGO_URI = process.env.MONGO_URI; } ...
var _ = require('underscore'); var Q = require('q'); /* Intro: This is a queue implementation where items are fetched from a source and then processed via some action. -Fetch and process functions are passed. -The queue keeps track of and increments the offset parameter until the total number of items is fetched....
import { _ } from 'meteor/underscore'; import { EJSON } from 'meteor/ejson'; import { Meteor } from 'meteor/meteor'; import { Base64 } from 'meteor/ostrio:base64'; let performance; if (Meteor.isServer) { performance = require('perf_hooks').performance; } else if (window.performance && ...
// dataMap: Name => Date => {date,name,fips,cases,deaths} const initChart = (options) => { const dataMap = options.dataMap; const xAxisDates = options.xAxisDates; const chartId = options.chartId; const filter = options.filter; const field = options.field; const limit = options.limit; c...
jQuery.fn.brTelMask = function () { return this.each(function () { var el = this; $(el).focus(function () { $(el).mask("(99) 9999-9999?9"); }); $(el).focusout(function () { var phone, element; element = $(el); element.unmask(); ...
'use strict'; import 'core-js'; import 'regenerator-runtime'; // Load NPM Required import isPortFree from 'is-port-free'; import isRunning from 'is-running'; import { isNumeric } from 'validator'; // Load network components import { createSocketListener, createSocketSpeakerReconnect } from '../net'; // Loading libr...
const Settings = require('settings-sharelatex') const { User } = require('../../models/User') const { db, ObjectId } = require('../../infrastructure/mongodb') const bcrypt = require('bcrypt') const EmailHelper = require('../Helpers/EmailHelper') const { InvalidEmailError, InvalidPasswordError } = require('./Authent...
var fs = require("fs") var winston = require("winston") var http = require('http').createServer() var io = require("socket.io")(http) var common = require("./common").make(process.cwd()) var execFile = require('child_process').execFile var contract = common.contract var iactive = common.iactive var logger = common.lo...
#!/usr/bin/env node // Copyright 2011 Facebook, 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 applica...
import { SymbolKind, } from 'vscode-languageserver-types'; import { Kind, parse, print } from 'graphql'; import { getAutocompleteSuggestions } from './getAutocompleteSuggestions'; import { getHoverInformation } from './getHoverInformation'; import { validateQuery, getRange, DIAGNOSTIC_SEVERITY } from './getDiagnostics'...
/** * Tabletop RPG dice-roller with a multiple dice-types, rolling methods, minimum and maximum values, string output, and error-first callbacks. * * MIT License * Copyright (c) 2018 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated document...
'use strict' const fastcall = require('fastcall') const Library = fastcall.Library const lib = new Library('libwayland-server.so.0', { defaultCallMode: Library.callMode.sync }) // util lib.struct('struct wl_list { void *prev; void *next; }') lib.struct('struct wl_array { size_t size; size_t alloc; void *data; }') ...
import * as React from "react"; import { Link, graphql } from "gatsby"; import { GatsbyImage, getImage } from "gatsby-plugin-image"; import Layout from "../components/layout"; import Seo from "../components/seo"; import styled from "styled-components"; import { PageContent, PageText, PageTextMT24, PageT...
//################################################# //# JS ArticleGenerator # //# University of Koblenz-Landau # //# File: paperselect.js # //# email: <EMAIL> # //# created 02.06.2015, # //# last modifications...
/** * ProxyFactory, Proxy * This class is provided to create proxy objects following the configuration * @author ShanFan * @created 24-3-2014 */ // Dependencies var fs = require( 'fs' ) , http = require( 'http' ) , url = require( 'url' ) , querystring = require( 'querystring' ) , iconv = require( 'iconv-l...
//---- BEGIN: src/audioslides4web.js ----- var zip = new JSZip(); //----------------------------------------------- //--- DOWNLOAD ZIP ------------------------------ //---Use FileSaver.js by <NAME> to save ZIP---- //----------------------------------------------- function download_zip(pFilename,pZIP) { var vFilename...
function workload(num_collections, num_docs_per_collection, randSeed) { var iterationsDesired = 2000 var mydb = db.getSiblingDB('sbtest') var seed = randSeed var count = 0 while (count < iterationsDesired) { pointSelect(mydb, num_collections, num_docs_per_collection) simpleRange...
/** * pm.js 1.0 * Shows a front-end performance heatmap of images loaded in the browser using the Resource Timing API * https://github.com/zeman/perfmap */ var gZeroLeft = 0; var gZeroTop = 0; var gWinWidth = window.innerWidth || document.documentElement.clientWidth; function findImages() { var aElems = docum...
import { SEMANTIC_POSITION, PRIMITIVE_TRISTRIP } from '../../graphics/constants.js'; import { Shader } from '../../graphics/shader.js'; import { shaderChunks } from '../../graphics/program-lib/chunks/chunks.js'; import { BLEND_NORMAL } from '../../scene/constants.js'; import { BasicMaterial } from '../../scen...
//Discovering peer // broadcasts ping message {header: "__Ping", body:{id, name}, tail:{publicKey, stamp}} // remote peer recieves ping from (address, port) // adds puplickey to keystore with stamp and hash("address:port") as an id // generates a symetric key, encrypts the body with the public key recieved earlier // r...
/** * @abstract JavaScript Wrapper for the DarkSky.net (Forecast.io) API using JSONP without PHP proxy * @link https://github.com/PeterL83/grav-plugin-darkskyweather * @author <NAME> <<EMAIL>> * @license MIT License * @copyright Copyright (C) 2018, <NAME> */ var lat, lon, k, weekday, lang, refreshTime, ifPageWea...
function inizializza(){ "use strict"; var form = document.getElementById("SchegliProd"); form.datainizio.onclick = function(){ VediFormData('SchegliProd'); }; form.datainizio.value = "AAAA--MM--GG"; preparatabelle("RISU"); } function abilita(){ document.getElementById("...
/*#Copyright (c) 2016, <NAME>, <NAME>, <NAME>, & <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 condit...
//@ts-check /* LazyMan - quick and dirty dependency manager. Best explained with the following code example: // Set the default prefixes. lazyman.prefixes["css"] = "./css/"; lazyman.prefixes["js"] = "./js/"; // Core (critical) dependencies. await lazyman.all([ // Located inside ./js/ "rdom.js", "js-yaml.min.js...
import React, { useCallback, useEffect, useRef, useState } from 'react'; import { useForm, Controller } from 'react-hook-form'; import Select from '@semcore/select'; import NeighborLocation from '@semcore/neighbor-location'; import { Flex, Box } from '@semcore/flex-box'; import { Text } from '@semcore/typography'; impo...
//Declare Needed Variabels var permissions = {}; //Used To Store The Permission Data var editingPermission = { //Used To Remember What User/Group Is Being Edited type: null, id: null, data: null }; //Load The YML Code function load(loadDefault = false) { let error = ''; //Decalre A Variable T...
/** * halfpastfour.am/snake * @constructor */ function Snake() { var self = this, scene = document.getElementById('scene'), context = scene.getContext('2d'), dead = false, timeout = null, foodPosition, score = 0; if (scene.dataset.init) { throw new Error("Alread...
function update_1a() { if (enemy_pos[0] == "1a" && enemy_pos[1] == "1a" && enemy_pos[2] == "1a") { switch (genRandom(10)) { case 1: changeTabletView("assets/images/camera/show_stage/show_stage_all_creepy.png"); break; default: changeTabletView("assets/images/camera/show_stage/show_st...
/* Constants */ const JSON_POST_SUFFIX = "&__a=1"; const POST_LINK_BASE = "https://www.instagram.com/p/"; const ID_INDEX = 4; const PROFILE_NAME_CSS_CLASS = "_rf3jb notranslate"; const LINK_DIV_CSS_CLASS = "_6d3hm _mnav9"; const INSTASCRAPPER_LINK_NAME = "instaScrapperLink"; const SELECTION_CHECK_NAME = "s...
import React, { Component } from "react"; import Agreement from "../contracts/Agreement.json"; import AgreementFactory from "../contracts/AgreementFactory.json"; import getWeb3 from "../utils/getWeb3"; import truffleContract from "truffle-contract"; import ESNavbar from './ESNavbar.js'; import { getBalance, getBalanceT...
import React, { useEffect, useState, useRef } from 'react'; import { useAuth } from "../../../Contexts/AuthContext"; import app from '../../../firebase'; import 'react-notifications/lib/notifications.css'; import { NotificationManager } from 'react-notifications'; import PhoneInput from 'react-phone-number-input'; i...
/* global describe, it */ /* eslint import/no-extraneous-dependencies: 1, no-unused-expressions: 1, import/named: 0 */ // -- Node modules import { expect } from 'chai'; // -- Local modules import { Vizu, Component } from '../index'; // -- Local constants // -- Local variables // Create a few Web Components: cla...
// Кое свойство от ООП (абстракция, наследяване, капсулиране) се ползва в JS? // Sort() array method - алгоритъм за сортиране в НИЗХОДЯЩ ред let arr3 = [2, -1, 10, 12, 55, 33, 11]; arr3.sort(); // [ -1, 10, 11, 12, 2, 33, 55 ] arr3.sort((a, b) => { if (a > b) { return 1; } // [ ...
'use strict'; const document = require('global/document'); const window = require('global/window'); const _ = require('underscore'); const utils = require('./utils'); const appData = require('./app_data'); const highlighter = require('../highlighter'); const logger = require('../../utils/logger'); const dataset = requi...
import React, { Component } from 'react'; import { StyleSheet, Text, View, SafeAreaView, Image, TouchableHighlight, ScrollView, Button, TouchableOpacity } from 'react-native'; import Voice from 'react-native-voice'; import Slider from '@react-native-community/slider'; import Tts from 'react-native-tts...
/* eslint-disable func-style */ /* eslint-disable promise/avoid-new */ // RFC for OAuth2: https://tools.ietf.org/html/rfc6749 const Alloy = require(`/alloy`); const logger = require(`@geek/logger`).createLogger(`@titanium/authentication-oauth`, { meta: { filename: __filename } }); const Please = require(`@titanium/ple...
var jobPairTable; var qid = 0; // ID of the selected queue, or the queue that owns the selected node var selectedId = 0; // ID of the selected primitive var qIdForQueueGraph = 1; // queue id used to select which queuegraph image is displayed; default is 1 because // all.q always exists ...
import React from "react"; import axios from "axios"; import Field from "./Field"; import InfoBar from "./InfoBar"; import { isStepValid, getNextState, isValidMoveExists, } from "../utils/gameEngine"; import { SERVER_URL, USE_SSL } from "../utils/constants"; class Game extends React.Component { constructor(pro...