text
stringlengths
5.97k
41.2k
import React, { useState, useEffect, useRef } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { Link } from 'react-router-dom'; import { Form, Button, Row, InputGroup, Col, Card, Table, Image, FloatingLabel, } from 'react-bootstrap'; import { LinkContainer } from 'react-router-boot...
'use strict'; const nopt = require('nopt'); const chalk = require('chalk'); const path = require('path'); const isGitRepo = require('is-git-url'); const camelize = require('ember-cli-string-utils').camelize; const getCallerFile = require('get-caller-file'); const printCommand = require('../utilities/print-command'); c...
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var postcss = _interopDefault(require('postcss')); var valueParser = _interopDefault(require('postcss-values-parser')); var fs = _interopDefault(require('fs')); var path = _interopDe...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; require("antd/lib/modal/style"); var _modal = _interopRequireDefault(require("antd/lib/modal")); require("antd/lib/form/style"); var _form = _interopRequireDefault(require("antd/lib/form")); require("antd/lib/...
/** * Author: <NAME> [<EMAIL>] * Authors-Website: http://petschko.org/ * Date: 30.03.2017 * Time: 23:05 */ // Globals var zip; /** * Try to Reads the Encryption-Code and insert it to the given input element * * @param {string} systemFileElId - File-Picker-Id for the System.json-File * @param {string} codeTex...
const EventEmitter = require('events'); const fs = require('fs'); const path = require('path'); const os = require('os'); const Util = require('./Util.js'); const Cluster = require('./Cluster.js') class ClusterManager extends EventEmitter { /** * @param {string} file Path to your bot file * @param {Object} [op...
/*! * dnssec.js - DNSSEC for bns * Copyright (c) 2018, <NAME> (MIT License). * https://github.com/chjj/bns * * Parts of this software are based on miekg/dns and golang/go: * https://github.com/miekg/dns/blob/master/dnssec.go * * Parts of this software are based on solvere: * https://github.com/rolandshoema...
import React, { useState, useContext, Fragment, useEffect } from "react"; import { colors, CssBaseline, Typography, Container, createMuiTheme, Grid, makeStyles, Button, withStyles, Card, CardMedia, CardContent, CardActions, Paper, CardActionArea, Hidden, ...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ const Cc = Components.classes; const Ci = Components.interfaces; const Cu = Components.utils; const Cr = Component...
import { Map, Set, List as ImmutableList } from 'immutable'; import Raven from 'raven-js'; import Todoist from '../../todoist-client/Todoist'; import List from '../../core/List'; import Item from '../../core/Item'; import Project from '../../core/Project'; import { defaultPriority } from '../../core/Priority'; const ...
import React, { Component } from "react"; import { globalData } from "../globals.js"; import { TaggedVerses, TaggedHeading, TagTree } from "./Tags.js"; import { SearchHeading, SearchResults,SearchBox } from "./Search.js"; import { Commentary } from "./Commentary.js"; import loading_img from '../img/interface/typing.gif...
var dataChannel = null; var isChannelOpen = false; var isWebRTC = false; var usertypes= {success:"System",warning:"System",primary : "You",danger : "User"}; function openchat() { if($("#chat-panel-body").hasClass("hide")) { $("#chat-panel-body").removeClass("hide"); $("#alternativlabs-chatform-panelfooter").remo...
import P from 'bluebird'; import utils from 'osg/utils'; import osgNameSpace from 'osgNameSpace'; import fileHelper from 'osgDB/fileHelper'; import Options from 'osgDB/options'; import zlib from 'osgDB/zlib'; import notify from 'osg/notify'; import Image from 'osg/Image'; import BufferArray from 'osg/BufferArray'; impo...
import Module from './maximilian.wasmmodule.js'; // import { // MMLLOnsetDetector // } from '../machineListening/MMLLOnsetDetector.js'; class PostMsgTransducer { constructor(msgPort, sampleRate, sendFrequency = 2, name) { if (sendFrequency == 0) this.sendPeriod = Number.MAX_SAFE_INTEGER; else ...
var options='<option value="0">ND</option>'; var options2='<option value="0">ND</option>'; var dataUbicaciones=''; var dataProvedores=''; var Mid=0; $(document).ready(function() { Mid=document.getElementById("gos_os_id").value; console.log("ajax-refacciones"); var $Osid=document.getElementById("gos_os_id").value; ...
import React, { useState, useEffect } from 'react'; import { Link } from "react-router-dom"; import web3 from '../../web3'; import ipfs from "../../ipfs"; import { docContract } from "../../DocContract"; import { renderFromArray } from "utils"; import { addNewDoc, updateDoc, closeDocModal } from 'actions/userActions'; ...
// the one where they get a type inferencer function f_six(err, out) { // create a new forth instance err = err || default_err // TODO: ES6 defaults, make overloadable out = out || default_out // TODO: ES6 defaults, make o...
function getJWTJSON(shortUrl, jsondata, dataFunction) { // if no auth set, try with auth header first header = { "accept": "application/json", "Access-Control-Allow-Origin": "*" }; if (App.jwttoken) header["Authorization"] = "Bearer " + App.jwttoken; $.ajax({ crossDomain: true, type: 'GET', ...
/* * Class: World */ // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // External Dependencies // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - import vec2 from 'gl-matrix/src/gl-matrix/vec2' // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
// Script zur Verbrauchsueberwachung von elektrischen Geraeten ueber ioBroker const version = "version 1.0.1, 20.08.2020, letztes update 09.09.2020, 12:30 Uhr, S Feldkamp auf Stand 1.0.1"; const erstellt = "s. feldkamp" /**************************************************** **************** Benutzereingaben **********...
var DEFAULT_DESTINATION = 'target/screenshots'; var fs = require('fs'), mkdirp = require('mkdirp'), rimraf = require('rimraf'), _ = require('lodash'), path = require('path'), uuid = require('uuid'), hat = require('hat'); require('string.prototype.startswith'); function Jasmine...
/* Copyright 2018-2020 Intel 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 law or agreed to in writing, s...
import React from 'react'; import { AppRegistry, asset, Pano, Text, View, Sphere, } from 'react-vr'; import tsnejs from './tsne'; import _ from 'lodash'; import { scaleLinear } from 'd3-scale'; //Skip loading csv since this dataset is small irisdata=[ [5.1,3.5,1.4,0.2,"Iris-setosa"], [4.9,3.0,1.4,0.2,"Iri...
const NScale = ["1","1#","2","2#","3","4","4#","5","5#","6","6#","7"]; const MinorNScale = ["3","3#","4","4#","5","6","6#","7","7#","1","1#","2"]; const scale = ["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"]; const majorScale = ["C","Db","D","Eb","E","F","F#","G","Ab","A","Bb","B"]; const minorScale = ["A","Bb"...
/* * This file is part of the Companion project * Copyright (c) 2018 Bitfocus AS * Authors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>> * * This program is free software. * You should have received a copy of the MIT licence as well as the Bitfocus * Individual Contributor License Agreement for companion along with * thi...
/* @arr array you want to listen to @callback function that will be called on any change inside array */ function listenChangesinArray(arr, callback) { // Add more methods here if you want to listen to them // object for extend ['pop', 'push', 'reverse', 'shift', 'unshift', 'splice', 'sort'].forEach((m) => {...
const { assert } = require('chai'); const CPToken = artifacts.require('CPToken') const ColPay = artifacts.require('ColPay') const DateTimeLibrary = artifacts.require('DateTimeLibrary') require('chai') .use(require('chai-as-promised')) .should() function tokens(n) { return web3.utils.toWei(n, 'ether'); } f...
import React, { Component } from "react"; import { getConnextClient } from "connext/dist/Connext.js"; import "./App.css"; import ProviderOptions from "./utils/ProviderOptions.ts"; import clientProvider from "./utils/web3/clientProvider.ts"; import { setWallet } from "./utils/actions.js"; import { createWallet, createWa...
var shaders = require('./shaders') var { drawModel, makeModel} = require('./models') var m = require('./matrix') var vec = require('./vector') window.playFlag = 0; window.grayScale = 0; window.nightVision = 0; window.gFlag = 1; window.nFlag = 1; window.velocity = 1; window.level = 1; window.score = 0; window.prevScore...
var removeLineEntity; var addAirLines; var quarterID=1; var lineEntityArrs=[]; var lineEntityArrVisible; var lineEntityVisible; var MinlineEntityArr=[]; var PlaceImgEntityArr=[]; function onload(Cesium) { var viewer = new Cesium.Viewer('cesiumContainer', { imageryProvider:new Cesium.Sin...
#!/usr/bin/env node /* eslint-disable @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires */ const { createInterface } = require("readline"); const { execSync } = require("child_process"); const argv = require("minimist")(process.argv.slice(2), { "alias": { "d": "dry-run", "r": "recursive", ...
/* eslint-disable no-magic-numbers */ import * as THREE from 'three'; import logger from '../utils/logger'; import CSS2DObject from './CSS2DObject'; import RCGroup from './RCGroup'; import vertexScreenQuadShader from './shaders/ScreenQuad.vert'; import fragmentScreenQuadFromTex from './shaders/ScreenQuadFromTex.frag'; ...
import React, { Component } from 'react'; import { API, graphqlOperation, Auth } from 'aws-amplify'; import { Prompt } from 'react-router'; import Box from '@material-ui/core/Box'; import Chessboard from 'chessboardjsx'; import Chess from 'chess.js'; import { Launcher } from 'react-chat-window'; import * as customQueri...
import CryptoJS from 'crypto-js' import {MessageBox, Loading} from 'element-ui' import * as _ from 'lodash' import Vue from 'vue' const CryptoJSA = require('crypto-js'); const asmcrypto = require('./asmcrypto.all.es5.mjs') export function getArrayRound() { let arr = []; for (let i = 0; i < 12; i++) { ...
let table = $('#table2').DataTable( { bFilter: false, bInfo: false, paging: false } ); let id = document.getElementById("id").value let selectedMotivo = document.getElementById("selectedMotivo") let btnAgregar = document.getElementById("btnAgregar") let empleado = document.getElementsByClassName("empl...
'use strict'; /** * @module HigherDockerManager */ const _ = require('lodash'); const Docker = require('node-docker-api').Docker; const os = require('os'); const selectn = require('selectn'); const debug = require('debug')('HigherDockerManager:'); let docker = new Docker({ socketPath: '/var/run/docker.sock' }...
import Base from '../../base/BasePlugin' import { Group, Path, Label } from 'spritejs' import { getStyle } from '../../utils/getStyle' import Point from '../../utils/Point' class Legend extends Base { constructor(attrs) { super(attrs) this.arrLayout = null this.state = { page: 1, totalPage: 1,...
// require(["/js/_util/util", "/js/_util/mapping_en"], function(util) { // _AsgMainBuilder.LeftSideBar.build(_ajax_cat_filter_json); // _AsgMainBuilder.MainContent.build(_ajax_product_list_json); // }); /* * Global var * * */ var g_cat_id; var g_str_cat_id; var search_str = { "countries" : [], "filter" :{...
"use strict"; /************************************************************************** * IMPORTS ***************************************************************************/ var fs = require("fs"); var EmailForwardParser = require("../lib/index.js"); /********************************************...
'use strict'; //============================================================================// // CONFIGURATION //============================================================================// function configuration(){} configuration.prototype.config=function(){ var site,api; var dt = new Date().getTime()...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.default = void 0; var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel...
import { dom } from './dom.js'; // MB languages as of 2021-10-04, extracted from the HTML source code of the release editor's language select menu export const frequentLanguageIDs = { 284: '[Multiple languages]', 18: 'Arabic', 76: 'Chinese', 113: 'Dutch', 120: 'English', 131: 'Finnish', 134: 'French', 145: 'Ge...
loadScript("js/components/component.js"); loadScript("js/components/abstract_input.js"); loadScript("js/components/checkbox.js"); loadScript("js/components/textfield.js"); loadScript("js/components/combobox.js"); var selectedScript = null; var scriptListeners = []; var parameterControls; var runningScriptExecutor = n...
const basePath = "http://localhost:9401"; const measureFrequencyStart = 20; let measureFrequencyStop = 20000; let run = false; let currentRequests = 0; let steps = []; let stepPosition = 0; let currentFrequency = 0; let currentAmplitude = 0; let gainLeftArray = []; let gainRightArray = []; let powerLeftArray = []; l...
function hoy(){ var hoy = new Date(); var dd = hoy.getDate(); var mm = hoy.getMonth()+1; //January is 0! var yyyy = hoy.getFullYear(); if(dd<10){ dd='0'+dd } if(mm<10){ mm='0'+mm } var hoy = yyyy+'-'+mm+'-'+dd; ...
"use strict"; var __extends = (this && this.__extends) || (function () { var 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] = b[p]; }; return function (d, b)...
function roundRect(ctx, x, y, w, h, r) { if (w < 2 * r) r = w / 2; if (h < 2 * r) r = h / 2; ctx.beginPath(); ctx.moveTo(x+r, y); ctx.arcTo(x+w, y, x+w, y+h, r); ctx.arcTo(x+w, y+h, x, y+h, r); ctx.arcTo(x, y+h, x, y, r); ctx.arcTo(x, y, x+w, y, r); ctx.closePath(); return ctx; } function per...
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet'; import { connect } from 'react-redux'; import { is, List } from 'immutable'; import { push, replace } from 'connec...
soundManager.setup({ preferFlash: true, flashVersion: 9, useHighPerformance: true, wmode: 'transparent', debugMode: false }); var audio, numLoaded = 0; soundManager.onready(function () { audio = soundManager.createSound({ id: 'peaking', url: './assets/drums.mp3', multiSh...
/* Copyright 2016 Google Inc. All Rights Reserved. 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 t...
var CUR_DESC; $(window).on('load', function () { PAGE = Pages.ExploreDescs; const { task, desc_id, study } = parseUrl(window.location.search); load_study(study); load_new_desc(task, desc_id); use_user_preferences(); }); /** * Handle back and forth navigation * from https://stackoverflow.com/a/3...
import $ from 'jquery'; import ko from 'knockout'; import logger from 'loglevel'; import config from '../config'; import util from '../util'; // TODO: replace some methods by using knockouts utils library // http://www.knockmeout.net/2011/04/utility-functions-in-knockoutjs.html const DEFAULT_SORT_OPTION = 'name'; con...
import { app, speed, allyBullets, enemies, enemyBullets, background, dynamicBackground, allies, movingObjects, eventList, beamArray } from './Model.js'; import * as fr from './lib/fr.js'; import { shoot, bulletSpeed, statsOld, player } from './player.js'; import * as UI from './UI.js' import * as Gs from './Globals.js'...
const { camelCase } = require(`change-case`) const styleToObject = require(`style-to-object`) const camelCaseCSS = require(`camelcase-css`) const t = require(`@babel/types`) // object retrieved from https://github.com/facebook/react/blob/master/packages/react-dom/src/shared/possibleStandardNames.js const TRANSLATIONS ...
"use strict"; var srTranslation = { "services": { "ENG": "Services", "FRA": "Services" }, "apiCatalog": { "ENG": "API Catalog", "FRA": "API Catalog" }, "daemons": { "ENG": "Daemons", "FRA": "Daemons" }, "daemonCatalog": { "ENG": "Daemon Catalog", "FRA": "Daemon Catalog" }, //controller "update...
// ==UserScript== // @name Ubooquity Read Markers // @namespace https://github.com/ToxicFrog/misc // @description Adds unopened/in-progress/read markers to the Ubooquity comic server // @include https://my.ubooquity.server/comics/* // @version 0.2 // ==/UserScript== // Annotations are as fol...
let fs = require('graceful-fs'); const Discord = require('discord.js'); const analyseLogChan = require("../functions/analyse_channel").analyseLogChan; const DanganronpaTranslation = require("../functions/translation_statistics").DanganronpaTranslation; const getrevsPromise = require("../functions/dropbox").getrevsPromi...
const { s, t, sleep, Random, Logger } = require('koishi') const API = require('./api') const extendDatabase = require('./database') t.set('blive', { 'desc': 'bilibili 直播订阅', 'hint': '请使用直播间号进行操作。可以通过 search 子命令进行相关的搜索。', 'user': '{0} (UID {1} / 直播间 {2})', 'add': '订阅直播', 'add-success': '成功订阅主播 {0} !', 'ad...
'use strict'; // handles management pages in general var settings; var common; var templateHandler; var lang; var filterLength; var miscOps; var maxBannerLimit; var displayMaxBannerSize; var displayMaxFlagSize; var displayMaxFlagNameLength; exports.loadSettings = function() { settings = require('../../../settings...
var db = null; var storages = null; var currentTarget = null; var bItemLongPressed = false; var bTouchMoved = false; var bDisplayDoc = false; const MAX_COUNT = 10; var filesContainer = { history: [], docx: [], xlsx: [], pptx: [], docxLoaded: false, xlsxLoaded: false, pptxLoaded: false }; function loadF...
//nested array containing goals for 1, 2, 3 and backs (at index 0) var allGoals = [ [], [], [], [] ]; var allGoalsText = []; //stores goals for this game var goal1; var goal2; var goal3; //decks for this game var deck1 = []; var deck2 = []; var deck3 = []; var thisDeck1 = []; var thisDeck2 = []; var thisDeck3...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * * @format */ 'use strict'; const DeprecatedTextInputPropTypes = require('../../DeprecatedPropTypes/DeprecatedTextInputP...
'use strict'; var babelHelpers = require('./util/babelHelpers.js'); exports.__esModule = true; var _VIEW, _OPPOSITE_DIRECTION, _MULTIPLIER; var _react = require('react'); var _react2 = babelHelpers.interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = babelHelpers.interopRequir...
import React from "react"; import { AnchorButton, Tooltip, Position, NumericInput, Collapse, H4, H6, Dialog, Checkbox, InputGroup } from "@blueprintjs/core"; import { connect } from "react-redux"; import * as globals from "../../globals"; import Category from "./category"; import { AnnotationsHelpers, ControlsHelpers }...
"use strict"; /* eslint-disable no-console */ /** * Uses a SOAP endpoint in the cloud API to continuously poll for * available updates. * * The SOAP endpoint (`/ethComet.asmx`) is undocumented, but is the * one used by the [client web application](http://wirelesstag.net/media/mytaglist.com/apidoc.html). * The d...
const path = require('path') const fs = require('fs') const multer = require('multer') const getUuid = require('uuid/v4') const axios = require('axios') const { promisify } = require('util') const lstat = promisify(fs.lstat) const readdir = promisify(fs.readdir) const unlink = promisify(fs.unlink) const rmdir = promis...
import * as controllerTypes from './types/controller.js'; const verticalKeys = ['ArrowUp', 'Up', 'ArrowDown', 'Down']; const newlineRegexp = /\n/g; /** * @param {Partial<controllerTypes.AdvancedInputCallbacks>} callbacks * @return {controllerTypes.AdvancedInputController} */ export function build(callbacks) {...
//Display Variables var display1 = document.getElementById("display1"); var display2 = document.getElementById("display2"); var display3 = document.getElementById("display3"); var display4 = document.getElementById("display4"); var display5 = document.getElementById("display5"); var pageintr...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ObjectDb = void 0; const node_crypto_1 = require("@anderjason/node-crypto"); const observable_1 = require("@anderjason/observable"); const time_1 = require("@anderjason/time"); const util_1 = require("@anderjason/util"); const skytree_...
'use strict' /* global ss, Davis, JT, $, $CONTAINER, apprise */ // PRIVATE GAME VARS var _stepNumber = 0 var _stats = null var _displayTimeout = null // PUBLIC EXPORTS var $game = module.exports = { // GLOBAL GAME CONSTANTS VIEWPORT_WIDTH: 30, VIEWPORT_HEIGHT: 15, TOTAL_WIDTH: 142, TOTAL_HEIGHT: 132, TIL...
import { CYPHER_SYSTEM } from "../../Config.js"; import { ImprovedActorSheet } from './ImprovedActorSheet.js'; import { CypherItemAbility } from "../../item/CypherItemAbility.js"; import { CypherItemSkill } from "../../item/CypherItemSkill.js"; import { CypherItemWeapon } from "../../item/CypherItemWeapon.js"; import...
var $Material = { profileMenu: false, subMenu: false, mainMenu: false, columnHeight: { 'left': { 'top': 0, 'left': 0 }, 'right': { 'top': 0, 'left': 0 } }, checkColumnHeight: false, columnOffset: { 'left': {}, 'right': {}, 'middle': {} }, updateMain...
const { BrowserWindow, Menu, MenuItem, app } = require('electron').remote; const { remote, ipcRenderer, } = require('electron'); const path = require('path'); const customTitlebar = require('custom-electron-titlebar'); const dns = require("dns"); const fs = require("fs"); const dialog = require('electron').remote.dialo...
import * as THREE from 'three' import * as CANNON from 'cannon-es' import { COLOR, SCREEN_SIZE, HPD } from '~/utils/const' import { enableFullViewportOnResize } from '~/utils/events' import { throttle } from '~/utils/throttle' import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js' import { GLTFLoa...
/*! resol-vbus | Copyright (c) 2013-2018, <NAME> | MIT license */ 'use strict'; const fs = require('fs'); const os = require('os'); const path = require('path'); const express = require('express'); const morgan = require('morgan'); const request = require('request'); const winston = require('winston'); const { ...
//rxtree.js //import {printExpr} from "./rxprint"; /** * Copyright (c) 2016, <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE ...
/** * load dependent script */ /* $.getScript("js/graphtool.js", function () { console.log("graphtool.js loaded!"); }); */ function addAxesAndLegend (svg, xAxis, yAxis, margin, chartWidth, chartHeight) { var legendWidth = 200, legendHeight = 75; // clipping to make sure nothing appears behind legend ...
const words = [ "Ability","Able","Aboard","About","Above","Accept","Accident","According", "Account","Accurate","Acres","Across","Act","Action","Active","Activity", "Actual","Actually","Add","Addition","Additional","Adjective","Adult","Adventure", "Advice","Affect","Afraid","After","Afternoon","Again","Against"...
/************************************************************************* * ADOBE CONFIDENTIAL * ___________________ * * Copyright 2015 Adobe Systems Incorporated * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Adobe Systems Incorporated and its suppliers, * if ...
/* * Copyright (c) 2022 <NAME> (Tonix) * * 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, p...
// board variables var brd_side = COLOURS.WHITE; var brd_pieces = new Array(BRD_SQ_NUM); var brd_enPas = SQUARES.NO_SQ; var brd_fiftyMove; var brd_ply; var brd_hisPly; var brd_castlePerm; var brd_posKey; var brd_pceNum = new Array(13); var brd_material = new Array(2); var brd_pList = new Array(14 * 10...
// Browser driver support specifics var canvas, context; // Renderer specifics var camera, scene, renderer, controls, helper; var cylGeom, cylMat, boxGeom, boxMat, box, cylinder; var boxRotationDims = { x: 0, y: 0 }; var pageCenterDims = { x: 0, y: 0 }; var cameraOriginDims = { x: 0, y: 0, z...
import { stores, axios, Choerodon } from '@choerodon/boot'; import QuillDeltaToHtmlConverter from 'quill-delta-to-html'; import _ from 'lodash'; import queryString from 'query-string'; // eslint-disable-next-line import/no-cycle import { uploadImage, uploadFileAgile } from '../api/FileApi'; import humanize from './huma...
function OpcaoCadastro(IdCurso, IdOpcao, WorkFlow){ let api = `/sip3/controller/curso/SIP3_ReadCurso.asp?IdCurso=${ IdCurso }` // Lê o curso , divCadastro = document.getElementById('divCadastro') , helperReadCurso = objJson => { var Curso_ = objJson.Curso , Curso = { ...
/* Magic Mirror * Module: MMM-Toulouse-Transports * * script from Telomere31 based on: * da4throux (https://github.com/da4throux/MMM-Paris-RATP-PG) * (itself based on: * a Script from <NAME> (https://lane6.de) * band a Script from <NAME> http://www.beny.ch * ) * MIT Licensed. */ const NodeHelper = re...
import { now, } from '../etc/lui.js'; import { BLOCK_TYPE_AIR, BLOCK_TYPE_FACE_B, BLOCK_TYPE_FACE_E, BLOCK_TYPE_FACE_S, BLOCK_TYPE_FACE_T, BLOCK_TYPE_FACE_W, CHUNK_HEIGHT, CHUNK_WIDTH_L2, KEY_MOUSE_LEFT, KEY_MOUSE_MIDDLE, KEY_MOUSE_RIGHT, KEY_MOVE_BACK, KEY_MOVE_DOWN, KEY_MOVE_LEFT, KEY_MOVE_FRONT, KE...
const Keen = require("keen-js"); const client = new Keen({ projectId: "5ad4eb4cc9e77c00017c7eca", readKey: "<KEY>", masterKey: "<KEY>" }); var LebronSeasons = { seasons: [ { "id": "7dcb5184-ab33-49fe-bd18-c4ca2b1cfc08", "keen": { "timestamp": "2017-06-06T19:10:39.205000" }, ...
const fs = require('fs'); const regedit = require('regedit'); const path = require('path'); const convert = require('xml-js'); const { app, dialog, shell, BrowserWindow } = require('electron'); const md = require('markdown-it')(); class _Version { constructor(sVersion) { this.raw = sVersion; this.minor = -1;...
const fs = require('fs') const path = require('path') const debug = require('debug')('app:' + path.basename(__filename).replace('.js', '')) const async = require('async') const op = require('object-path') const entu = require('entulib') const gm = require('gm') const PassThrough = require('stream').PassThrough // cons...
var libpath = process.env['MOCHA_COV'] ? __dirname + '/../lib-cov/' : __dirname + '/'; var fs = require('fs'); var util = require('util'); var zlib = require('zlib'); var snappy = require('snappy'); var crc32 = require('buffer-crc32'); var _ = require('lodash'); var Stream = require('stream').Stream; ...
/* eslint-env mocha */ /* eslint-disable no-console */ /* global artifacts, contract, describe, it, expect */ const chai = require('chai') const { assert } = chai const chaiAsPromised = require('chai-as-promised') chai.use(chaiAsPromised) const AccessProofTemplate = artifacts.require('AccessProofTemplate') const con...
"use strict"; /* Copyright [2014] [Diagramo] 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 w...
import {useState, useRef, useEffect} from 'react'; import { Box, Button, Card, CardContent, CardHeader, Divider, Grid, TextField, Item, FormControl, FormLabel, InputLabel, Select, MenuItem, Chip, Stack, Avatar, Portal, Typography, FormContr...
/* * 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...
// This is a JavaScript file /** * HASHのsalt * @property {String} */ var shaSalt = "QRcodeGenerator"; /** * QRログ * 24時にリセットされる */ var qrLog = null; /** * QRコードスタブ */ var _qrStub = []; /** * スタブ使用時のカウンタ */ var _stubCount = 0; /** * @pravate {object} 読み込んだ動物データを保持する */ var _...
import { DEBUG } from '@glimmer/env'; import { _WeakSet } from '@ember/polyfills'; import { assert } from '@ember/debug'; /** Strongly hint runtimes to intern the provided string. When do I need to use this function? For the most part, never. Pre-mature optimization is bad, and often the runtime does exactly...
// ***************************************************************************** // Globals // ***************************************************************************** // Imports var $ = require('jquery') var odex = require('odex'); var THREE = require('three') const MeshLine = require('three.meshline').MeshL...
//Commas for decimal place jQuery.fn.dataTableExt.oSort['numeric-comma-asc'] = function (a, b) { var x = (a == "-") ? 0 : a.replace(/,/, "."); var y = (b == "-") ? 0 : b.replace(/,/, "."); x = parseFloat(x); y = parseFloat(y); return ((x < y) ? -1 : ((x > y) ? 1 : 0)); }; jQuery.fn.dataTableExt.oS...
'use strict'; function getDate(date) { return date.getFullYear() + ("0"+(date.getMonth()+1)).slice(-2) + ("0" + date.getDate()).slice(-2); } function getHour(date) { return ("0"+(date.getHours())).slice(-2); } function getTime(date) { return ("0"+(date.getHours())).slice(-2) + ':' + ("0"+(date.getMinutes())).slice(...
'use strict' var session getSession() var list = document.querySelector('#list') var sorting = document.querySelector('#sorting') var page = 0 var channelInfo = document.querySelector('#channelInfo') var home = document.querySelector('#home') if(home) page = 2 var profile = document.querySelector('div...