text
stringlengths
5.97k
41.2k
const { ipcRenderer } = require('electron'); const { dialog, getGlobal } = require('@electron/remote'); const paper = require('paper'); class OrthoViewController { constructor(canvas) { paper.setup(canvas); this.canvas = canvas; this.theta0 = 0; // Rotation angles in ortho window this.fi0 = 0; // Ro...
var dataMap = {}; var searchKeyWord=""; var configuredStatus = "AD_STATUS_SUSPEND"; var targeting_status_map = { "TARGETING_STATUS_NARROW":"定向过窄", "TARGETING_STATUS_SUITABLE":"定向合适", "TARGETING_STATUS_WIDE":"定向过宽", "TARGETING_STATUS_UNPREDICTABLE":"定向状态无法预估(当前信息过少,不足以判断)" } var suggest_targeting_map={ ...
import Events from 'minivents'; function encodeUrl(a) { const s = []; const add = function (k, v) { v = typeof v === 'function' ? v() : v; v = v === null ? '' : v === undefined ? '' : v; s[s.length] = encodeURIComponent(k) + '=' + encodeURIComponent(v); }; const buildP...
/* return { id, cityName, postalCode, street, coordinates } PROCESS GENERAL */ function getGeoPosInternational(requestPart, countryCode){ var countryCodes = new Array("FR", "GP", "GF", "MQ", "YT", "NC", "RE", "PM"); showMsgListRes("<i class='fa fa-spin fa-refresh'></i> Recherche en cours ..."); if($.inArray(c...
/* *** Preset DNA content DNA[0] : color 1 -- hasMemory (memoryBlocks if #>1) DNA[1] : color 2 -- carnivorous DNA[2] : DNA[3] : reproductive Age DNA[4] : DNA[5] : DNA[6] : senseLength DNA[7] : FOV DNA[8] : rays DNA[9] : rayPoints DNA[10]--> 10+3*(rays+1)*raypoints: pxResponse DNA[i] : stacks DNA...
'use strict' import State from 'ampersand-state' import Collection from 'ampersand-rest-collection' import Observable from './_observable' import debug from 'debug' import { pick } from 'ramda' const log = debug('Lightstream:WebRTC:Media') const warn = debug('Lightstream:WebRTC:Media (Warn)') // Force mediasoup to u...
'use strict'; var request = require ('request'); var requestWithRetry = require('requestretry'); var csv = require('csv-parser'); var fs = require('fs'); var _ = require('lodash'); var https = require('https'); var TreeModel = require('tree-model'); var documentIDtoFolderName = []; var...
import { assert } from '../0xassert'; import { schemas } from '../validations'; import { AbiDecoder, addressUtils, intervalUtils, promisify, providerUtils } from '../utils'; import { B } from '../utils/configured_bignumber'; import { BlockParamLiteral, } from '../types'; import * as _ from 'lodash'; import { marshaller...
var db = require('../models'); var axios = require('axios'); var config = require('../config'); var requestData = {}; // Config for Google Maps Geocode API var mapsApiUrl = 'https://maps.googleapis.com/maps/api/geocode/json'; var mapsApiKey = config.googleMapsApiKey; var state_abbrevs = { "Alabama": ...
/** * matchmaker.js */ /** * export class */ module.exports = MatchmakerTown; const firebase = require('firebase/app'); require('firebase/database'); var Utilities = require('./utilities') const firebaseConfig = { apiKey: "<KEY>", authDomain: "smugglerstown.firebaseapp.com", databaseURL: "https://smuggl...
/*global chrome: false, console: false, data: false, Handlebars: false, prefs: false*/ /*jshint browser: true, jquery: true, multistr: true, sub: true*/ // Handlebars setup Handlebars.registerHelper('if_eq', function (a, b, opts) { if (a == b) return opts.fn(this); else return opts.inverse(this); }); Handlebar...
'use strict'; //Define form names let formId = 'atc'; let sourceId = 'source'; let searchTargetId = 'target'; let searchRecursionId = 'recursion'; let loggingId = 'logging'; let mediaStartId = 'mediaStart'; var logging = logging || {}; logging.verboseLogging = false; const logLevels = { critical: "CRIT", statu...
#!/usr/bin/env node /* eslint-disable no-eval */ /** * gsap-video-export * github: workeffortwaste * twitter: @defaced * * Source: https://github.com/workeffortwaste/gsap-video-export/ * / /* Use puppeteer extra to avoid being picked up as a bot */ import puppeteer from 'puppeteer-extra' import StealthPlugin fro...
const db = firebase.firestore(); const storageService = firebase.storage; // //////////////////////////////////////////////////////////////////////////////////////////////////// window.localStorage.removeItem('cartLocal'); // ///////////////////////////////////////////////////////////////////////////////////////////...
var car1; var car2; var cHeight; var cWidth; const maxSkids = 20; window.onresize = function(){ cWidth = window.innerWidth; cHeight = window.innerHeight; this.myGameArea.canvas.width = cWidth; this.myGameArea.canvas.height = cHeight; } window.onload = function(){ cWidth = window.innerWidth; ...
/* class to hold edge information */ class Edge { constructor(to, weight) { this.to = to; this.weight = weight; } } /* class to hold graph infromation in an adjacency list format */ class Graph { constructor() { this.V = 0; this.adj_list = {}; } add_node(u) { ...
const freeTopics = document.querySelector('#free-topics'); const paidTopics = document.querySelector('#paid-topics'); const processButton = document.querySelector('#process-topics'); processButton.addEventListener('click', processTopics); const listElement = document.querySelector('#fpt-list'); function processTopic...
let parallelism, verbose const { exec } = require('child_process') const { constants: fs, createReadStream, createWriteStream } = require('fs') const { access, mkdir, rmdir } = require('fs/promises') const { dirname, join, normalize } = require('path') const os = require('os') const http = require('http') const https ...
function canvasDashedLine(ctx, x, y, x2, y2, da) { "use strict"; if (!da) { da = [8, 4]; } ctx.save(); var dx = (x2 - x), dy = (y2 - y); var len = Math.sqrt(dx * dx + dy * dy); var rot = Math.atan2(dy, dx); ctx.translate(x, y); ctx.moveTo(0, 0); ctx.rotate(rot); var dc = da.length; var di = 0, ...
// // test-sub-angular // // unit test for the sub-generator 'sub-angular' // // created 2015-10-30 // 'use strict'; var path = require('path'); var assert = require('yeoman-generator').assert; var helpers = require('yeoman-generator').test; var generators = require('yeoman-generator').generators; var os = require('o...
var InvoiceDetailForm = Ext.extend(Ext.form.FormPanel, { parent : null, invoiceStore : null, constructor : function(p) { this.parent = p; this.invoiceStore = new Ext.data.JsonStore({ fields : ['invoice_id', 'invoice_book_id', 'invoice_code'] }); InvoiceDetailForm.superclass.constructor.call(this, { ...
let billboards = []; class TFace { constructor(cube, faceIndex) { this.cube = cube this.faceIndex = faceIndex this.position = new BABYLON.Vector3(); this.linkedFace = null; this.linkedFaceQuaternion = null; this.chainIndex = 0; this.rot = new BABYLO...
import postgres from '../../../config/postgres.js'; import Character from '../models/Character.js'; import CharacterState from '../models/CharacterState.js'; import CharacterType from '../models/CharacterType.js'; import Collection from '../models/Collection.js'; import CollectionInfo from '../models/CollectionInfo.js'...
import React, { Component } from "react"; import { withRouter } from "react-router-dom"; import PEOPLE_MOCK_DATA from "../components/PEOPLE_MOCK_DATA"; import PATIENT_PROGRESS from "../components/PATIENT_PROGRESS"; import { addMilliseconds, differenceInDays } from "date-fns"; import Grid from "@material-ui/core/Grid"; ...
import "./pixi-tilemap" import React from "react" import ReactDOM from "react-dom" import { Modal, ModalBody, ModalHeader } from "reactstrap" import key from "keymaster" // noinspection ES6UnusedImports import STYLES from "./style.css" import SceneGraph from "./SceneGraph"; import WorldScene from "./scenes/WorldScene...
var _ = require('underscore'); var moment = require('moment'); var uuidv4 = require('uuid/v4'); var LocationService = require('./LocationService'); var appSettings = require('../settings/appSettings'); var AWSSNSPublisher = require('./aws/SNSPublisher'); var AWSSNSUtilty = require('./aws/SNSUtility'); var PunchCardReco...
//NPM Install const fse = require('fs-extra'); //Importando arquivo site-model.js que possui a classe com as funções de consulta const DB = require('./../listas/selects'); const mysql = require('mysql2'); const config = require('./../../database/config'); const conn = mysql.createConnection(config); //Importando o mó...
'use strict'; var fs = require('mz/fs'); var Fd = require('./fd'); function VocabWord(word) { this.word = word; this.cnt = 0; this.point = []; this.code = []; } function Word2vec(params) { for(var key in params) { this[key] = params[key]; } this.MAX_STRING = 100; this.VOCAB_HA...
import { CREATE, DELETE, DELETE_MANY, GET_LIST, GET_MANY, GET_MANY_REFERENCE, GET_ONE, UPDATE, UPDATE_MANY, } from 'react-admin'; import isPlainObject from 'lodash.isplainobject'; // import { isArray } from 'lodash'; import fetchHydra from './fetchHydra'; import DateUtils fro...
Function.prototype.bind = function (scope) { var fn = this; return function () { return fn.apply(scope, arguments); }; }; var err = []; err[-1] = 'USB-токен не найден'; err[-2] = 'USB-токен не залогинен пользователем'; err[-3] = 'PIN-код не верен'; err[-4] = 'PIN-код не коррек...
/* jshint -W100 */ /* jshint undef: true, unused: true */ /* globals data, ymaps, map, prop, bas_path, e_objects, a_objects, v_objects, getObject, nePolygons, getNewGeometry */ function listenDependencyCalcCalls() { $(".map_calc").unbind().click(function () { var ids = []; $("#propPage input[type=checkbox]").prop(...
//Shim to account for browsers that do not support requestAnimationFrame (function() { var requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame; window.requestAnimationFrame = requestAnimationFrame; })...
/*blogControl Javascript File*/ import {_l,_e,_w,_i,_exit} from '../../../lib/console'; //var instance = false; export function CRUD(){ //if(instance) return instance; //instance = this; this.model = null; /* property : Private */ /* define property (setter/getter) : Public */ /*Object.defineProperty(instance,...
/* 2017/12/15 version 1.0 * coding: utf-8, Tab as 2 spaces * * Home Energy Diagnosis System Ver.6 * consHWsum.js * * calculate consumption and measures related to hot water supply * * License: MIT * * @author <NAME>, Hinodeya Institute for Ecolife co.ltd. * 2013/10/03 original ActionScript3 *...
/** * @license MIT, imicros.de (c) 2022 <NAME> */ "use strict"; const Cassandra = require("cassandra-driver"); const TimeUuid = require('cassandra-driver').types.TimeUuid; const crypto = require("crypto"); const { Serializer } = require("./serializer/base"); module.exports = { name: "worker.queue", ...
var Primus = require('primus'), path = require('path'), shortid = require('shortid'), util = require('util'), EventEmitter = require('events').EventEmitter module.exports = PubSubService; function PubSubService(opts) { this.log = opts.logger.createLogger('PubSub'); this.log.$$TRACE('construct(%j)', opts); ...
let _ = require('lodash'); let parameter = require('./util/parameter'); let Network = require('./architecture/network'); let methods = require('./methods/methods'); let config = require('./config'); /** * Runs the NEAT algorithm on group of neural networks. * * @class Neat * * @param {Array<{input:number[],output:numb...
const preCode = '`' const preCodeArea = '```' const httpMethodMap = { post: 'POST', get: "GET" } // 取消下载标志位 let downloadCancle = false // 监听 popup 发来的消息 chrome.runtime.onMessage.addListener(function(data, sender, sendResponse){ sendResponse('response ' + data.type) downloadCancle = false if (data.type === po...
/* jshint esversion:6 */ // create the UI elements and their interactions var parameters = {}; parameters.initialN = 3; parameters.triangles = true; Make.initializeExtras = function() {}; function creation() { "use strict"; //==================================================================================...
import React from 'react'; import Alert from '@material-ui/lab/Alert'; import { makeStyles, withStyles, createMuiTheme, } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import Slider from '@material-ui/core/Slider'; import Divider from '@material-ui/core/Divider'; import P...
var $ = require('jquery'); var inherit = require('../inherit'); var registerFeature = require('../registry').registerFeature; var pointFeature = require('../pointFeature'); ////////////////////////////////////////////////////////////////////////////// /** * Create a new instance of pointFeature * * @class geo.gl.po...
import * as uri from 'appgine/src/engine/uri' import * as errorhub from 'appgine/errorhub' import * as SoundStore from '../store' import domDistance, { domDistanceCompare } from '../lib/dom-distance' import { findCurrentTrack, findNextSound, findNextTrack, findPrevTrack, formatPlaylistTrack } from '../lib/playlist' im...
/* global _, LocationModalController, LocationFilterController */ function LocationModalController($uibModalInstance, $location, locationsService, selectedLocationId, hierarchy, selectedLocations, locationsCache, maxLevel, userLocationId, showMessage, showSectorMessage, dateHelperService) { // LocationModalControl...
// *************************************************************************** // Note: This is a JavaScript-powered form. // // Programmers: The JavaScript source code in this document may be copied and // reused without restriction. // // If you have a Java 1.1-compliant browser, and especially if you need to // us...
import React, { useState } from 'react'; import { makeStyles, useTheme } from '@mui/styles'; import Grid from '@mui/material/Grid'; import Paper from '@mui/material/Paper'; import { useParams } from 'react-router-dom'; import { useDispatch } from 'react-redux'; import { CastOutlined, CastForEducationOutlined } from '@m...
const Items = [ { co_ibge: '110001', no_municipio: 'Alta Floresta D Oeste', co_uf: 11 }, { co_ibge: '110002', no_municipio: 'Ariquemes', co_uf: 11 }, { co_ibge: '110003', no_municipio: 'Cabixi', co_uf: 11 }, { co_ibge: '110004', no_municipio: 'Cacoal', co_uf: 11 }, { co_ibge: '110005', no_municipio: 'Cerejeir...
import React, { Component } from 'react'; import { bool, func, instanceOf, object, shape, string } from 'prop-types'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { FormattedMessage, injectIntl, intlShape } from 'react-intl'; import { withRouter } from 'react-router-dom'; import classN...
"use strict"; const http_1 = require("http"); const WebSocketServer = require("ws"); const express = require("express"); const dgram = require("dgram"); const readUInt64BE = require("readuint64be"); const buffer_1 = require("buffer"); const _ = require("lodash"); process.on("uncaughtException", function (err) { con...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------------------...
let socket = io.connect("http://192.9.85.187:4000"); // 192.168.3.11 let divVideoChatLobby = document.getElementById("video-chat-lobby"); let divVideoChat = document.getElementById("video-chat-room"); let joinButton = document.getElementById("join"); let userVideo = document.getElementById("user-video"); let peerVideo ...
import { observable, computed, action } from 'mobx'; import { TVA, TIMEPERIODS, TIME_AWARE_FREQUENCIES, STATUS_CODES } from '../../../constants'; const _gettext = (typeof gettext !== 'undefined') ? gettext : (s) => s; class Indicator { program = null; pk = null; levelpk = null; number = null; nam...
'use strict'; const moment = require('moment'); const accounting = require('accounting'); const superagent = require('superagent'); const Controller = require('../core/Controller'); const config = require('../core/config'); const logger = require('../core/logger').get('Index'); const redis = require('../core/redis'); ...
/** * Copyright (c) 2014 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 ...
/* String Kit Copyright (c) 2014 - 2017 <NAME> The MIT License (MIT) 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...
// header scrolls var hassticky = $('.has_stickyD'); var hasstickyBeta = $('.has_stickyD').prev(); var sticky = hassticky.offset(); hasstickyBeta.css('height', hassticky.height()); $(document).bind('scroll', function () { if ($('body *').hasClass('has_stickyD')) { if (parseInt(sticky.top) <= parseInt($(docu...
import { extent, min, max, sum, scaleLinear } from 'd3' import compose from '../core/compose' import extend from '../core/extend' import * as utc from '../utils/utc' import unrotate from '../utils/unrotate' import { backgroundAdjustedColor } from '../utils/color' import Chart from '../components/chart' import ElementTo...
import React, { useEffect, useState } from 'react' import { useDispatch, useSelector } from 'react-redux' import { connect } from './redux/blockchain/blockchainActions' import { fetchData } from './redux/data/dataActions' import styled from 'styled-components' import nagaImg01 from './styles/img/Naga_21-22.png' import...
import difference from 'lodash/difference'; import union from 'lodash/union'; import isPlainObject from 'lodash/isPlainObject'; import $$observable from 'symbol-observable'; export const ActionTypes = { PERFORM_ACTION: 'PERFORM_ACTION', RESET: 'RESET', ROLLBACK: 'ROLLBACK', COMMIT: 'COMMIT', SWEEP: 'SWEEP', ...
var q = require('q'); var driver_const = require('ljswitchboard-ljm_driver_constants'); var data_parser = require('ljswitchboard-data_parser'); var modbus_map = require('ljswitchboard-modbus_map'); var constants = modbus_map.getConstants(); var ljmUtils; function createMockDeviceScanner() { ljmUtils = require('./ljm_...
// @ts-check export { create, scopeFromArray, scopeFromEvent, parentScope, leafName, leafIndex, createElement2, FIRST_VARIABLE_FROM_HTML, FIRST_VARIABLE_FROM_USER_AGENT, }; import { createElement2 } from "./createElement2.js"; import { isObjectOrArray } from "./isObjectOrArray.js"; ...
// ------------------------------------------------------------------------------------- // var content; var applicationid; var applicationfolder; var vsiteurl; var vNamespace; //push config to content $.ajax({ url: "./json/qdc_config.json", type: "GET", dataType: "json", success: function (data) {; ...
/* Copyright 2013 <NAME> 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, softw...
var currentLocation; var statsEnabled = isDataPublishingEnabled(); currentLocation=window.location.pathname; jagg.post("/site/blocks/stats/topUsers/ajax/stats.jag", { action:"getFirstAccessTime",currentLocation:currentLocation }, function (json) { if (!json.error) { if( jso...
$(document).ready(function () { if(window.localStorage.getItem('role') < 1) window.location = 'trang-chu.html'; document.getElementById('user-name').innerHTML = window.localStorage.getItem('userName'); document.getElementById('phoneNumber').innerHTML = window.localStorage.getItem('phone'); document.getE...
'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]; } } }...
var path = require('path') , fs = require('fs') , assert = require('assert') , parsing = require('pd-fileutils.parser') // round a number to a given number of decimal places var round = function(num, dec) { dec = dec || 4 var f = Math.pow(10, dec) return Math.round(num * f) / f } // apply round to all ele...
//* globals WallabagApi */ // declarations if (typeof (browser) === 'undefined' && typeof (chrome) === 'object') { browser = chrome; } let Port = null; let portConnected = false; var CacheType = function (enable) { this.enabled = enable; this._cache = []; }; CacheType.prototype = { _cache: null, ...
/*global ct*/ /* ct.js: Compile Time Function Execution (CTFE) in JavaScript Inspired from the CTFE of the D language, ct.js permits to generate efficient code while maintaining expressiveness. By <NAME>, December 2019 and later. Contact: <EMAIL> The Boost license applies, as described in the file ./LICE...
/** * Show the value of the policy into the viewer * * @param url * Path of the policy file * @param viewer * The text-box where appears the policy selected * @param username * The current logged user * @param service * The name of the service used to generate the ...
/* The Board class contains all of the info and functions of each game board */ class Board { STATE_LOSS = 0; STATE_WIN = 1; constructor(divId, name, rows, cols, speed, values) { // Passed in values this.divId = divId; this.name = name; this.rows = rows; this.cols = ...
"use strict"; const fs = require("fs"); const path = require("path"); const utilities = require("./utilities.js"); const Commands = require(path.resolve(__dirname, "./commands.js")); const Dex = require("../pokemon-showdown/.sim-dist/dex.js").Dex; const COMMANDS_DIRECTORY = path.resolve(__dirname, "./commands/"); co...
'use strict'; import addTabs from './functions/tabs.js'; addTabs(); // Массив разрешений для отслеживания прохождения разрешений (накапливается из вызовов функций) let resizeResolutions = [920]; // ! сделать, чтобы resizeHandler() подхватывала дополненные разрешени // собираем все ссылки на уже подключенные скрипты...
import HeaderCell from './HeaderCell'; // import TableLoader from './loaders/Table'; import {DistrictIcon} from './snippets/Icons'; // import TableDeltaHelper from './snippets/TableDeltaHelper'; import Tooltip from './Tooltip'; // function useQuery() { // return new URLSearchParams(useLocation().search); // } impor...
'use strict'; var Proxy = require('http-mitm-proxy'); var fs = require('fs'); var node_fqdn = require('node-fqdn'); var os = require('os'); var express = require('express'); var forge = require('node-forge'); module.exports = function(config, options) { options = typeof options !== 'undefined' ? options : {}; var...
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import { FormMixin, Form, Input } from '../../libs/bootstrap/form'; import { queryKeyValue } from '../globals'; import _ from 'underscore'; import { RestMixin } from '../rest'; ...
var typeTitles = ["Standart", "Medium", "Premium"]; var type = 0; var currency = 0; var currencyLimits = [ [ [0.01, 0.06], [13850, 83250], [37450, 224750], [413, 2480], [500, 3000] ],[ [0.06, 0.28], [83250, 416315], [224750, 1124145], [2480, 12400], [3000, 15000] ],[ [0.28, 18.38], [416315, 2...
import _ from "lodash" import { resourceEditErrorKey, resourceEditWarningKey, } from "components/editor/Editor" import { emptyValue } from "utilities/Utilities" import { newBlankLiteralValue, newBlankUriValue, newBlankLookupValue, newBlankListValue, } from "utilities/valueFactory" import { mergeSubjectPro...
"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 PropTypes from 'prop-types' import { useSizes } from '../../../SRLHooks' import { SRLCloseIcon, SRLNextIcon, SRLPrevIcon, SRLTopButtons, SRLAutoplayIcon, SRLDownloadIcon, SRLThumbnailsIcon, SRLExpandIcon, SRLZoomOutIcon } from '../../../styles/SRLButtonsStyles' const...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
import FragmentFactory from '../../fragment/factory' import { FOR } from '../priorities' import { withoutConversion } from '../../observer/index' import { getPath } from '../../parsers/path' import { isObject, warn, createAnchor, replace, before, after, remove, hasOwn, inDoc, defineReactive, def, ...
/* * Copyright 2014 <NAME> * * 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...
/** * AlarmDecoder AD2USB Plugin * * Author: <EMAIL> * * 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 a...
let globalFile; const mySong = new Audio("src/assets/music/mu1.flac"); mySong.loop = true; const init = () => { var eMD = parseLS("elementMergerData"), eMD_l = parseLS("eMD_legend"); if (!eMD || eMD === null) { saveLS("elementMergerData", userdata); } var eMD = parseLS("elementMergerData"); if (!e...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Grid, Row, Col, Table, DropdownButton } from 'react-bootstrap'; import { Card, CardHeader, CardText } from 'material-ui/Card'; import UiTextField from './components/UiTextField'; import UiSelectField from './components/UiSelectF...
// eslint-disable-next-line prefer-const, one-var let config, vars, app, loops, gui; // eslint-disable-next-line prefer-const config = { // the message you send to others when you hack them message: "U SUCK N1GG0R", autoTarget: true, autoAttack: true, // the base64 database url db: "https://raw.githubusercontent...
/** * mux.js * * Copyright (c) Brightcove * Licensed Apache-2.0 https://github.com/videojs/mux.js/blob/master/LICENSE */ 'use strict'; var Stream = require('../utils/stream.js'); var ExpGolomb = require('../utils/exp-golomb.js'); var _H264Stream, _NalByteStream; var PROFILES_WITH_OPTIONAL_SPS_DATA; /** * Acce...
/*** * 仓库 出库JS view * 页面视图对象 * warehouse 当前仓库 ***/ var view = {pageSize:10}; var warehouse = {}; //仓库 var order = []; //订单 var warehouse_out = {}; const o_sate = { payType:['微信支付','支付宝','货到付款','现货后款','余额支付','银行转账'], out_sate:['未接收','已接收','已拣货','已复核','已出库','已发货'], //入库单状态 } /** * 出库单详情 **/ view.warehouse_out = fu...
const frappe = require('frappejs'); const Observable = require('frappejs/utils/observable'); const naming = require('./naming'); const { round } = require('frappejs/utils/numberFormat'); module.exports = class BaseDocument extends Observable { constructor(data) { super(); this.fetchValuesCache = {}; this...
'use strict'; const metatests = require('metatests'); const metautil = require('..'); const path = require('path'); metatests.case( 'String functions', { metautil }, { 'metautil.split': [ ['abc.def', '.', ['abc', 'def']], ['abc.', '.', ['abc', '']], ['abc', '.', ['abc', '']], ['.abc'...
var unique = function(item, i, arr){ return arr.indexOf(item) == i; } var stacked = document.getElementById('stacked'), dataset = stacked.getAttribute('dataset'), filters = stacked.getAttribute('filters'), area = stacked.getAttribute('area'), args = getUrlArgs(), values = stacked.getAttribute('...
'use strict' // setup const tinyParams = require('tiny-params') const zlib = require('zlib') const Lru = require('quick-lru') const port = process.env.PORT || process.env.port || 8091 const defaultTimeout = 120000 const checkId = { read: true, update: true, delete: true } const useFirstRecord = { create: true, read: ...
/** * @license React * react-server-dom-vite-plugin.js * * 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. */ 'use strict'; 'use strict'; var esModuleLexer = require('es-module-lexer...
import React from 'react' import { set as setObjectPath } from "dot-prop-immutable" import { increment, decrement, set, get } from "automate-redux" import { notification } from "antd" import uri from "lil-uri" import qs from 'qs'; import { dbTypes, securityRuleGroups, moduleResources, configResourceTypes, actionQueuedM...
/*! * lokalo v0.0.1 * (c) Blujedis LLC <EMAIL> * Released under the MIT License. */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is her...
// TODO: make util function function stripText(html) { var tmp = document.createElement('DIV'); tmp.innerHTML = html; return tmp.textContent || tmp.innerText; } class TextElement extends Element { constructor(DOM2AFrame, domelement, depth, registerEvents = true) { super(DOM2AFrame, domelement, depth, regis...
// edit_markdown.js function location__(href) { var location = document.createElement('a'); location.href = href; if (location.host == '') location.href = location.href; return location; } function getAsynRequest(sUrl,callback) { // callback must passed var xmlHttp = null; if (window.XMLHttpRequest) ...
function email_sent_otp() { $('.err_msg').text(''); var fname = $('#fname').val(); var lname = $('#lname').val(); var age = $('#age').val(); var gender = $('#gender').val(); var std_class = $('#std_class').val(); var phone = $('#phone').val(); var email = $('#email').val(); if (fname != '' && lname != '' && ...
/** * This class seeks for dependencies between classes and creates in the tmp folder files which could be executed with graphViz dot task * To use this class you need an array like the following: * { * "contents":{ * "/the/absolute/path/to/this/class.js" : { * "code": "this is content of th...