text
stringlengths
8.5k
48.7k
const PREC = { // See https://github.com/elixir-lang/elixir/blob/master/lib/elixir/src/elixir_parser.yrl IN_MATCH_OPS: 10, WHEN_OP: 20, TYPE_OP: 30, BAR_OP: 40, ASSOC_OP: 50, CAPTURE_OP: 60, MATCH_OP: 70, OR_OPS: 80, AND_OPS: 90, COMP_OPS: 100, REL_OPS: 110, ARROW_OPS: 120, IN_OPS: 130, XO...
/** * Modalus 1.0.1 * GitHub template for starting new projects * https://github.com/Fapalz/@fapalz/modal#readme * * Copyright 2020-2021 <NAME> - Fapalz <<EMAIL>> * * Released under the MIT License * * Released on: May 29, 2021 */ function _extends() { _extends = Object.assign || function (target) { f...
// TODO: // 1. Drag & drop change object order display over same list (+ dragover cursor) // b. It would be more efficient to get the position by looking at the UI // childnodes, and based on that swap the positions. Would be less // computing intense. // 2. Use slideshow...
import Constants from './constants/index.js' import VirtualScroll from './virtual-scroll/index.js' import { compareObjects, removeDiacritics, findByParam, setDataKeys, removeUndefined, getDocumentClickEvent } from './utils/index.js' class MultipleSelect { constructor ($el, options) { this.$el = $el ...
import * as utils from "base/utils"; import Component from "base/component"; import ColorPicker from "helpers/d3.colorPicker"; import axisSmart from "helpers/d3.axisWithLabelPicker"; import { close as iconClose } from "base/iconset"; /*! * VIZABI BUBBLE COLOR LEGEND COMPONENT */ const ColorLegend = Component.extend...
/* * Copyright (C) https://github.com/takayama-lily/riichi */ 'use strict' const agari = require('./agari') const syanten = require('./syanten') const YAKU = require('./yaku') const MPSZ = ['m', 'p', 's', 'z'] const KAZE = [undefined, '東', '南' ,'西', '北', '白', '發', '中'] const ceil10 = (num)=>{ return Math.ceil(num...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.compose = exports.merge = exports.$ = exports.style = exports.presets = exports.keyframes = exports.fontFace = exports.insertGlobal = exports.insertRule = exports.plugins = exports.styleSheet = undefined; exports.speedy = speedy; ex...
/** * Mobius Software LTD * Copyright 2015-2016, Mobius Software LTD * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later ve...
/* * @Author: YuMS * @Date: 2014-08-14 01:49:45 * @Last Modified by: YuMS * @Last Modified time: 2014-08-17 07:20:26 */ var VERSION = '1.0.4'; // window size var viewWidth = view.viewSize.width; var viewHeight = view.viewSize.height; var windowWidth = viewWidth; var windowHeight = viewHeight; var wi...
import React, {Fragment} from "react"; import {UnicodeIcon, removeEnumerator, intersection, isNumber} from "../utils/generalUtils"; import {CollapsibleTitle} from "./FormComponents"; import RulesCollectionModal from "./RulesCollectionModal"; import SvgIcon from "./SvgIcon"; import {mercator} from "../utils/mercator"; ...
/** * @file An alternative version of the fischer960 library that uses a 14 KB * lookup table instead of algorithms. This was the original library and is * kept mainly for reference. */ import { isValidArrangement, isValidID } from './helpers.js' /** * Returns a random starting position, with its ID and ar...
/* * * kang * 2021/10/31 * 如要借鉴,请注明作者 */ /** * 经过构思 * 我决定使用分类绘制的方法 * 这样可以方便将将各种图案区分开 * 并且,便于实现每个图形的动画交互 */ const { vec2, vec3, vec4 } = glMatrix; var canvas; var gl; var program; var vBuffer, cBuffer; // var points = []; var colors = []; //控制旋转 var theta = [0, 0, 0]; var theta_p = 0.001; var thetaLoc; //控制...
// constants const millisecs = 100; // progress indicator const _show_progress = (Txn, Start, Ltp, Tgt, Stop) => { let width = 0, rt_txt="Target", lt_txt="Open"; const elem = document.getElementById("bar"); const ptxt = document.getElementById("ptxt"); if( Txn==0) { if (Ltp>Start && Ltp<...
const months = ["Enero", "Febrero", "Marzo","Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"]; const mapCenter = (company) => { switch (company) { case 1: return{lat: -12.04318, lng: -77.02824} case 3: return {lat:-12.043888...
/** * * Map * */ import React, { useEffect, useRef, useState } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // import { FormattedMessage } from 'react-intl'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import styled from 'styled-...
//gameremake.js var scaling = "fit"; // this will resize to fit inside the screen dimensions var width = 1024; var height = 768; var color = white; var outerColor = silver; //Loading in assets in const variables const assets = ["sprite-sheet-walk.png","guy-Sprite.json","wp-lowdamage.png", "wp-lowdamage-bullet.png","wp...
/** * * TransactionHistory * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { Helmet } from 'react-helmet'; import { compose } from 'redux'; import ReactTable from 'react-table'; import injectSaga ...
var map = L.map("map", { minZoom: 9, maxZoom: 18 }).setView( [39.90726389, 116.39111111], 12 ); /** * BASE MAPS */ // Bing Satellite Layer var BING_KEY = "<KEY>"; var bingLayer = L.tileLayer.bing(BING_KEY, { maxZoom: 18, minZoom: 9, zIndex: 210 }); // var TiandituTile = L.tileLayer // .chinaProvider("TianDiTu...
import $ from 'jquery'; import d3 from 'd3'; import React from 'react'; import ReactDOM from 'react-dom'; import Loader from './Loader'; import SaveAsImage from './components/SaveAsImage'; import FeatureClusterDetailModal from './FeatureClusterDetailModal'; import {interpolateRdYlBu} from 'd3-scale-chromatic'; import ...
/* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ // | Geeklog 2.0 | // +---------------------------------------------------------------------------+ // | javascript functi...
import notify from 'osg/notify'; import utils from 'osg/utils'; import StateAttribute from 'osg/StateAttribute'; import Uniform from 'osg/Uniform'; import Image from 'osg/Image'; import GLObject from 'osg/GLObject'; import TextureManager from 'osg/TextureManager'; import WebglCaps from 'osg/WebGLCaps'; var ImageBitma...
const fs = require('fs'); const path = require('path'); const Discord = require('discord.js'); const config = require("./config.js"); const query = require("./queries.js"); const queries = require('./queries.js'); const client = new Discord.Client(); client.login(config.token); // Time of first run at last query let ...
import cloneDeep from 'lodash/cloneDeep'; import values from 'lodash/values'; import isEmpty from 'lodash/isEmpty'; import merge from 'lodash/merge'; import URI from 'urijs'; import { calcBboxFromXY, getPixelSize, getNativeRes, roundDegrees, getMapDOMSize } from '../utils/coords'; import { combineEpics } from 'redux-ob...
//Create an event node var Event = (function($) { return function(properties) { this.properties = properties; this.blip = null; this.className = properties.event_type.replace(/[^\w]/ig,"-").toLowerCase(); this.props = {} this.props.title = properties.title this.props.url = properti...
var folderCount = new Ext.Toolbar.TextItem('文件夹: 0'); var fileCount = new Ext.Toolbar.TextItem('文件: 0'); var usedSpace = new Ext.Toolbar.TextItem('已用:0 M'); var freeSpace = new Ext.Toolbar.TextItem('剩余:0 M'); var usedSpaceVal; var freeSpaceVal; var totalSpaceVal; FileGridPanel = Ext.extend...
// https://observablehq.com/@jimpick/provider-quest-funding-tree-test-cases@878 import define1 from "./8830e2b8532e91c3@857.js"; import define2 from "./13063df7b34879ca@853.js"; import define3 from "./5432439324f2c616@258.js"; function _1(md){return( md`# Internal: Provider Funding Tree Test Cases [Provider.Quest]` )}...
var Emitter = require('./emitter'), Observer = require('./observer'), config = require('./config'), utils = require('./utils'), Binding = require('./binding'), Directive = require('./directive'), TextParser = require('./text-parser'), DepsParser = require('./deps-pa...
/**************************************************************************** * uiIndex.js * openacousticdevices.info * November 2019 *****************************************************************************/ 'use strict'; /* global document */ const audiomoth = require('audiomoth-hid'); const packetReader ...
#!/usr/bin/env node const { stdin, stdout } = process const { getCtlSeqs } = require('./ctlseqs') const { createSubTerminal } = require('./subterminal') const log = require('./log') // const { performance } = require('./perf') function initWorkspace (shells = []) { return { focussed_shell: 0, layout: 0, ...
/*============================================================================== Currency converter ==============================================================================*/ var moneyFormats = { USD: { 'money_format': '${{amount}}', 'money_with_currency_format': '${{amount}} USD' }, EUR: { 'm...
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]; ...
const { createCanvas, loadImage } = require('canvas'); const Plasma = require('./plasma').Plasma; const Fire = require('./fire').Fire; var dgram = require('dgram') const axios = require('axios') global.sofort = 0 global.sehrschnell = 500 / 24 global.schnell = 1000 / 24 global.langsam = 4000 / 24 global.sehrlangsam = 10...
const defaultPriorities = { avoid: 10, queue: 9, separation: 7, flock: 6, flee: 6, seek: 5, idle: 0 }; const defaultProbabilities = { avoid: 0.66, queue: 0.66, separation: 0.66, flock: 0.66, flee: 0.66, seek: 0.66, idle: 0.66 }; class SteeringVehicle { cons...
/* project registered under name gHollis at https://console.developers.google.com/project/192818180458/ */ // sample query: https://www.googleapis.com/books/v1/volumes?q=flowers+inauthor:keyes&printType=books&key=<KEY> // ======= GLOBALS =============== // ------ Create book object function Book(title, subtitle, ...
/* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that...
'use strict'; var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProp...
if(typeof exports !== 'undefined') { const dynamicSkyEntityMethodsExports = require('./a-dynamic-sky-entity-methods.js'); const aSkyInterpolationMethodExports = require('./a-sky-interpolation-methods.js'); const aSkyForgeMethodExports = require('./a-sky-forge.js') //Give this global scope by leaving off the var...
/* * Nanoblok (Experimental) - Web-Based Graphical Editor for Game Sprite Development * http://code.google.com/p/nanoblok/ * Copyright (c) 2009-2010 <NAME> * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. * * Summary for block.js: * This file holds outdated SVG-based block ...
/** * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and contributor * rights, including patent rights, and no such rights are granted under this license. * * Copyright (c) 2013, Dash Industry Forum. * All rights re...
import FisherUI from './fisher-ui.js'; import SeaBase from './seabase.js'; import UserConfig from '../../resources/user_config.js'; import '../../resources/common.js'; const Options = { IQRHookQuantity: 100, IQRTugQuantity: 10, Colors: { 'unknown': 'rgba(0, 0, 0, 0.5)', 'light': 'rgba(99, 212...
/* * Copyright (c) 2019 BlackBerry. 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 applic...
/*! **| PonkBot Core **@ */ 'use strict'; // NANI?? ACTUAL CONTANTS! const FLAGS = require('./flags.js'); const EventEmitter = require('events'); const CyTubeClient = require('./client.js'); const PonkDatabase = require('./database.js'); const PonkLogger = require('./logger.js'); const PonkServer = require('./...
/** * Port from https://github.com/mapbox/earcut (v2.2.2) */ const Earcut = { triangulate: function ( data, holeIndices, dim ) { dim = dim || 2; const hasHoles = holeIndices && holeIndices.length; const outerLen = hasHoles ? holeIndices[ 0 ] * dim : data.length; let outerNode = linkedList( da...
// Copyright 2019 <NAME> // Detecting browsers var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0; var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window.safari || (typeof...
import React from 'react'; // import rdhs_reg from './rdhs/rdhs_reg'; // import rdhs_driverreg from './views/Ministry Store/MinistryStores'; // import rdhs_vehiclereg from './rdhs/rdhs_vehiclereg'; // import rdhs_all_Hospital_Details from './rdhs/rdhs_all_Hospital_Details'; // import rdhs_order_medicine from './rdhs/r...
// ------------------------------------------------------------------------- // Abstraction of PACER site and services. This file is browser-independent. // PACER websites are structured like this: // // Case query form // | // `--> Main menu for a particular case // | // |--> Docket query form ---. /...
import PropTypes from 'prop-types'; import React, { PureComponent } from 'react'; import { Alert, StyleSheet, Switch, Text, ScrollView, View, ActivityIndicator, TouchableOpacity, Keyboard } from 'react-native'; import AsyncStorage from '@react-native-community/async-storage'; import { connect } from 'react-red...
import { createElement, L10n, classList } from '@syncfusion/ej2-base'; import { ComboBox } from '@syncfusion/ej2-dropdowns'; import { Button } from '@syncfusion/ej2-buttons'; import { SplitButton } from '@syncfusion/ej2-splitbuttons'; import { ColorPicker } from '@syncfusion/ej2-inputs'; import { Query } from '@syncfus...
var PreFlopRange = require("../helpers/range").PreFlopRange; var Hand = require("pokersolver").Hand; const allRanges = [ new PreFlopRange("KK+"), // 1% new PreFlopRange("JJ+"), // 2% new PreFlopRange("99+"), // 3% new PreFlopRange("88+, AQs+"), // 4% new PreFlopRange("88+, AQs+, AKo"), // 5% new PreFlopRan...
var http = require('http'); var httpAgent = new http.Agent({}); var https = require('https'); var httpsAgent = new https.Agent({ rejectUnauthorized: false }); var URL = require('url'); var Path = require('path'); var ContentDisposition = require('content-disposition'); var BufferList = require('bl'); var moment = requi...
var controllers = require('../model/backend-controllers-manager'); var Order = require('../model/backend-mongoose-wrapper').create('Order'); var User = require('../model/backend-mongoose-wrapper').create('User'); var Log = require('../model/backend-mongoose-wrapper').create('Log'); var template = require('../utils/tem...
// SPDX-License-Identifier: Apache-2.0 // Copyright 2020 - 2021 Pionix GmbH and Contributors to EVerest const { timeEnd } = require('console'); const { evlog, boot_module } = require('everestjs'); const { setInterval } = require('timers'); const { inherits } = require('util'); const STATE_DISABLED = 0; const STATE_A =...
// Hacer copia de seguridad BD // mysqldump --user=root myvideogamelist > myvideogamelist_copia.sql // Recuperar copia de seguridad // mysql --user=root < myvideogamelist_copia.sql // #################################################################################################################### // ##############...
import React, { Component } from "react"; import Switch from "react-bootstrap-switch"; import ReactDatetime from "react-datetime"; import classnames from "classnames"; import PokemonFrame, {Configs, SHINY, OnlineDataProvider, Game, CalcIVS} from "libseedchecker"; /* SWORD = 1, SHIELD = 2 */ import moment from...
const { ipcRenderer, remote, shell, dialog } = require("electron"); const { Menu, MenuItem } = remote; const PDFWindow = require("electron-pdf-window"); const jsPDF = require("jspdf"); const _ = require("lodash"); const base64amiri = require("./amiri-font-base64encoding"); // const $ = require("jquery"); c...
import React, { Component } from 'react'; import { Card, CardBody, Col, Row, Table, FormGroup, Label, Input, Form, InputGroup, InputGroupAddon, InputGroupText, Badge, Button, Dropdown, DropdownToggle, DropdownMenu, DropdownItem, Alert, Modal, ModalBody, ModalFooter, ModalHe...
function pageCollectBrowse(){ $("#page-container-collect-content").html("<div align='center'><i class='fa fa-spinner fa-spin fa-3x fa-fw'></i></div>") $("#page-container-collect").hide() $("#page-container-collect-content").show() var source_html = "https://alphamask.io/api/list/collectio...
import * as utils from "base/utils"; import DataConnected from "models/dataconnected"; /*! * VIZABI Time Model */ // short-cut for developers to get UTC date strings // not meant to be used in code!!! Date.prototype.utc = Date.prototype.toUTCString; /* * Time formats for internal data * all in UTC */ const form...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true, }); exports.SimplePicker = void 0; var _litElement = require("lit-element/lit-element.js"); var _cache = require("lit-html/directives/cache.js"); var _litHtml = require("lit-html/lit-html.js"); require("@lrnwebcomponents/simple-icon/lib/si...
import WorkerManager from "./WorkManager.js"; import md5 from "js-md5"; var MediaStreamRecorder = require("msr"); var Buffer = require("buffer").Buffer; import { RtpPacket } from "./rtpPacket.js"; var WebsocketServer = function (a, b) { function c() {} function createHeader(method, trackId, c, npt) { var resp...
var assert = require('assert'); var fs = require('fs-extra'); var crypto = require('crypto'); var log = require('./log').logger('db'); var config = require('./config'); var util = require('./util'); var ncp = require('ncp').ncp; var process = require('process'); var cnctosvg = require("cnctosvg"); // Connect to TingoD...
var pos = 0, neg = 0, maxIDSearch = -1, maxIDPopular = -1; var pos2 = 0, neg2 = 0, maxIDSearch2 = -1, maxIDPopular2 = -1; var getUrl = window.location; var baseUrl = getUrl .protocol + "//" + getUrl.host + "/" + getUrl.pathname.split('/')[1]; var twitterThing = angular.module('myAppIndex', ['chart.js'], function($i...
/* * biomass curves in SVG * generated * var Sliders * var Scenarios */ var pnames = {}; var ntabs; var Years = 60; var Model; // value sequence functions function offset_data(pts,a) { npts = []; for (var i =0; i<pts.length;i+=1) { npt = pts[i]-a; npts.push(np...
"use strict"; class Host { constructor(json) { this.arch = ""; this.ip = ""; this.mac = ""; this.name = ""; this.os = ""; this.fromJson(json); } fromJson(json) { this.arch = json.arch; this.ip = json.ip; this.mac = json.mac; thi...
var form = 'post'; var textarea = 'message'; var which=null; function AddTag(open, close, content) { if(typeof(document.forms[form].elements[textarea])=='undefined'){ if(which==null){ var textfield = document.forms[form].elements['message[0]']; } else{ var textfield = which; } } else{ var textfield ...
// ThymioHTTP via Javascript for Thymio Suite 2.X // APACHE 2.0 License - <NAME> import { createClient, Node, NodeStatus, Request, setup } from '@mobsya-association/thymio-api' //Connect to the Thymio Suite //We will need some way to get that url let client = createClient("ws://localhost:8597") // The Full List of a...
// Nodes vars var charge = {'switch': 400, 'interface': -20, 'host': 20}; var size = {'switch': 20, 'interface': 5, 'host': 10}; var nodes_fill = {'switch': "#554077", // "rgba(255,255,255,0)", 'interface': "rgba(255,255,255,0.5)", ...
//@ts-check const data = { "teams": { "Argentina": { country: "Argentina", displayName: "🇦🇷 Argentina", cost: "14", stillIn: false, wins: 1, draws: 1, projectedPoints: 0 }, "Australia": { country: "Australia", displayName: "🇦🇺 Australia", cost: "3", stillIn: false, wins: 0, draws: 1, projectedPoints: 0 }, "...
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js'; import { compute } from './graph-algorithms'; import { happiGraphIconsMap } from './happi-graph-icons'; import './happi-graph-legend'; function Point(x, y) { if (!(this instanceof Point)) { return new Point(x, y); } this.x = x; thi...
#!/usr/bin/env nodejs var noble = require('noble') var ble = require('./ble') var utils = require('./utils') var BMDWARE_UART_SERVICE_UUID = '6e400001b5a3f393e0a9e50e24dcca9e' var BMDWARE_BEACON_BASE_UUID = '24130000707f90bd20452ab8807571b7' var BMDWARE_BEACON_SERVICE_UUID = 'b33f' var BMDWARE_CONTROL_POIN...
import React from "react" import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, } from "recharts" import useMediaQuery from "@material-ui/core/useMediaQuery" import thousands_separators from "../utils/numberformatter" // const data = [ // { date: "2020-01-22", confirmed: 555, deaths: ...
import * as THREE from 'three'; import {OrbitControls} from 'three/examples/jsm/controls/OrbitControls'; import { gsap, TimelineLite, Power3, TweenLite } from "gsap"; import Stats from "stats.js" import lerp from "../utils/lerp" import "../utils/tween" import { Sky } from 'three/examples/jsm/objects/Sky.js' import...
/** * Author: <NAME> * Written: 2012-12-01 * * Copyright (c) 2012-2015 - <NAME> * * This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/. * * Requirements: ...
import instances from 'api/players'; import { showView } from 'api/core-shim'; import setConfig from 'api/set-config'; import setPlaylist from 'api/set-playlist'; import ApiQueueDecorator from 'api/api-queue'; import PlaylistLoader from 'playlist/loader'; import Playlist from 'playlist/playlist'; import InstreamAdapter...
'use strict'; import Text from './Text.js'; import * as Config from '../base/Config.js'; import * as THREE from '../libs/three/three.min.js'; import * as Animation from '../base/TweenAnimation.js'; import UserService from '../service/UserService.js'; import Utils from '../shared/service/Utils'; import {loader} from '....
//= require protocols/import_export/import // Global variables var rowsSelected = []; var protocolsTableEl = null; var protocolsDatatable = null; var repositoryType; /** * Initializes page */ function init() { updateButtons(); initProtocolsTable(); initRowSelection(); initKeywordFiltering(); initProtocolP...
const { ipcMain } = require("electron"); const db = require("./db"); const mainWindow = require("./mainWindow"); const methode = Facture.prototype; function Facture() { // db.run('DROP TABLE facture'); // db.run('DROP TABLE facture_phases_projets'); // db.run('DROP TABLE paye'); db.run(`CREATE TABLE IF NOT EXISTS ...
/*========================================================================== Gulp for Drupal Gulpfile.js version 4.1.1 2017-09-27 ===========================================================================*/ var gulp = require('gulp'), config = require('./gulpconfig.json'), fs = require('fs'), path = require(...
import React, { Component } from 'react'; import Dragonfly from './dragonfly.js'; import dragonballCollection from './dragonballs.js'; import WeevilCollection from './weevils.js'; import SpitballCollection from './spitballs.js'; import LaserBase from './laserbase.js'; import ExplosionCollection from './explosions.js'; ...
/* ------------------------------------------------------------------------ */ const Promise = require("bluebird"); const ccxt = require ('ccxt') , asTable = require ('as-table') // .configure ({ print: require ('string.ify').noPretty }) , log = require ('ololog').noLocate , ansi ...
/* * 表单预览及表单数据保存js */ formUtils = { listtableid: '', formSaveUrl: '', getNumUrl: '', modifyNumUrl: '', showListDataUrl: '', autoDocHeaderUrl: '', macroUrl:'', taskNum: '', taskPk: '', action: '', module: '', requiredField: [], accessWriteField: [] }; formUtils.init ...
import { ROT } from './rot' var options = { fontFamily: '"Courier New", Courier, monospace', fontSize: 30, spacing: 1.2, } const sunrise = { r: 282 / 255.0, g: 226 / 255.0, b: 191 / 255.0 } const noon = { r: 392 / 255.0, g: 391 / 255.0, b: 373 / 255.0 } const clouds = { r: 289 / 255.0, g: 290 / 255.0, b: ...
/* Greynir: Natural language processing for Icelandic Common.js JS utility functions for token display, formatting, etc. shared by the Greynir front-end. Copyright (C) 2021 <NAME>. This software is licensed under the MIT License: Permission is hereby granted, free of charge, to any person...
/*** * * Manages the App window UI and associated logic. * NB Runs in context of BT window, not the background BT extension or the helper btContent scripts * ***/ const authorizeButton = document.getElementById('authorize_button'); const signoutButton = document.getElementById('signout_button'); const tipsAr...
const canvas = obj('canvas'); const ctx = canvas.getContext('2d'); const socket = io(); const g = obj('game'); hide(g); obj('iframe').style.opacity = 0; hide(obj('iframe')); const name = location.href.includes('?')?decodeURI(location.href.split('?')[1]):prompt('Enter Name'); (function(global){ const MAP = loadImage('...
/*! * form_view.js v1.0.0 * Copyright 2016, <NAME> * * Freely distributable under the MIT license. * Portions of G.ENE.SYS Ultimate - Manufacturing Systems * * A functions for build Form to View Data */ /* Get Params */ var $q = getURLParameter("q"), $id = getURLParameter("id"), $pageid = getURLParameter("p...
//2018.5.24 var icom = importCom(); function importCom() { var com = {}; com.init = function(callback) { var article=$('article'); if(ibase.dir == 'portrait'){ lock_dected(); }//edn if else{ html_resize(); $(window).on('resize', window_orientation); lock_dected(); } //end else function loc...
class AbstractNode { constructor(block) { this.block = block; [this.rect, this.text] = draw_block(this.block.name); this.width = this.rect.width; this.height = this.rect.height; this.rect.buttonMode = true; this.rect.interactive = true; this.rect.node = this; ...
import React, { Component } from 'react'; import { withRouter } from 'react-router'; import ReactGA from 'react-ga'; import axios from 'axios'; import Slider from 'rc-slider/lib/Slider'; import 'rc-slider/assets/index.css'; import ShareModal from './ShareModal.js'; import logo from './img/logo_transparent_lowfi.png...
const crypto = require('crypto') const qs = require('querystring') const base64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; const util = { // Bit-wise rotate left rotl: function (n, b) { return (n << b) | (n >>> (32 - b)); }, // Bit-wise rotate right rotr: functi...
'use strict'; const assert = require('assert'); const Promise = require('bluebird'); const lodash = require('lodash'); const chores = require('../utils/chores'); const nodash = require('../utils/nodash'); const errors = require('../utils/errors'); const getenv = require('../utils/getenv'); const BeanProxy = require('....
// -------- // http://www.sencha.com/forum/showthread.php?33475-Tip-Long-menu-overflow/page2 Ext.override(Ext.menu.Menu, { // See http://extjs.com/forum/showthread.php?t=33475&page=2 showAt : function(xy, parentMenu, /* private: */_e) { this.parentMenu = parentMenu; if (!this.el) { ...
import React, {useEffect} from "react"; import user from "../components/User"; import PageSection from "./PageSection"; import Wall800x400 from "../wall800x400.jpg"; import Avatar800x800 from "../ava800x800.jpg"; import tmvnd1000x900 from "../img/tmvnd1000x900.jpg"; import minigame1000x900 from "../img/minigame1000x900...
let repository = null; let reasons = {}; let details_json = null; let projects_json = null; let defaults_json = null; let stats_json = null; let sort_order = -1; // Async POST to API async function POST(url = '', data = {}) { const response = await fetch(url, { method: 'POST', mode: 'cors', ...
import jsyaml from 'js-yaml'; import { sortBy } from '@/utils/sort'; import { clone } from '@/utils/object'; import { allHash } from '@/utils/promise'; import { randomStr } from '@/utils/string'; import { SOURCE_TYPE } from '@/config/harvester-map'; import { _CLONE } from '@/config/query-params'; import { PVC, HCI, ST...
let express = require('express') // let bodyParser = require('body-parser'); let app = express() let port = 3000; // This is our small database. In future labs we will keep this object in a separate file. let users = [ { id: 1, name : 'Lola', email : '<EMAIL>', mobile : '12...
export { isOperationBlackedOut, uuidv4, getNestedPropertyValueFromObject, setNestedPropertyValueOnObject , getRatingTypeProperties, getElementValue, showOrHideElement, toggleShowHideElement, getDateTimeString , populateSelect, getAllKeysMappedToValue, createAndPopulateDataListFromBlipProperties , popula...
const { level, duit } = require("../../function") const wel = `*_「 LIST MENU BOT 」_*` const end = `*_「 PAIMON BOT 」_*` exports.coreMenu = (limits, role, ini_lv, cardUser, ManikBars, giiid, latensiu, gaya, pushname, selamat, sender, tampilTanggal, tampilWaktu, tmp_hit, tmphit, _register, ownerNumber_, text_r, multi...
import React from 'react'; import {withStyles} from '@material-ui/core/styles'; import { withTheme } from '@material-ui/core/styles'; import withWidth from '@material-ui/core/withWidth'; import clsx from 'clsx'; import SplitterLayout from 'react-splitter-layout'; import { MuiThemeProvider } from '@material-ui/core/styl...
// Rebase require directory requirejs.config({ baseUrl: "lib", paths: { activity: "../js" } }); // Initial templates const templates = [ {name: "Colors", image:"colors.png", icons: [], colors: [-1], size: 80, blink: 1500, message: {content: "", color: "#ff0000", size: 60, weight: "bold", style: "normal"}}, {na...