text
stringlengths
3.22k
29.5k
/* Copyright (c) 2015 <NAME>. See the file LICENSE for copying permission. */ function string_of_enum(e,value) { for (var k in e) if (e[k] == value) return k; return "Unknown(" + value + ")"; } function blynkHeader(msg_type, msg_id, msg_len) { return String.fromCharCode( msg_type, msg_id >> 8, msg_id ...
'use strict'; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; Object.defineProperty(exports, "__...
'use strict'; const util = require('util'); const EventEmitter = require('events').EventEmitter; const serviceName = require('multicast-dns-service-types'); const dnsEqual = require('./dns-equal'); const TLD = '.local'; const WILDCARD = '_services._dns-sd._udp' + TLD; module.exports = Browser; util.inherits(Browse...
const net = require('net') const tls = require('tls') const frontend = require('./frontend.js') const Backend = require('./backend.js') const Queue = require('./queue.js') const { END } = require('./types.js') const { errors } = require('./errors.js') module.exports = Connection let count = 1 function Connection(opt...
const { booleans, extrusions, hulls, primitives, transforms } = require('@jscad/modeling') const { subtract, union } = booleans const { extrudeLinear } = extrusions const { hull } = hulls const { circle, cylinder, rectangle } = primitives const { rotateY, translate } = transforms const getParameterDefinitions = () =>...
require('dotenv').config() const {price, wsPrice } = require('./price'); const DB = require('./../models/walletModel') const luna = require('lunawallet') const eth = luna.new_eth('mainnet',process.env.infura) const wbt_abi = require('./../wbt.json') const wbt_contract = luna.new_contract(eth,wbt_abi,process.env.wbt_at)...
/* * RedGPU - MIT License * Copyright (c) 2019 ~ By RedCamel( <EMAIL> ) * issue : https://github.com/redcamel/RedGPU/issues * Last modification time of this file - 2020.3.26 17:47:56 * */ "use strict"; import DetectorGPU from "./base/detect/DetectorGPU.js"; import ShareGLSL from "./base/ShareGLSL.js"; imp...
import React from 'react'; import PropTypes from 'prop-types'; import { Carousel } from 'react-bootstrap'; import { ToastContainer, toast } from 'react-toastify'; import 'react-toastify/dist/ReactToastify.css'; import { debounce, pickBy, identity } from 'lodash'; import axios from 'axios'; import libphonenumber from 'g...
import fs from 'fs'; import path from 'path'; import os from 'os'; import bmp from 'bmp-js'; // import { loadHQR, decompressHQR, loadBIG } from './hqr'; const datapath = path.join(__dirname,'../data'); const dumppath = path.join(__dirname,'../dump'); const RESOURCES = [ { isScene: false, name: 'BIGINTRO.ACF' }, ...
"use strict"; const baseResponse = require("../../utils/helper/Response"); const { container, container_process, principal, container_repair, container_survey } = require("../../db/models"); const Logger = require("../../utils/helper/logger"); class GateOutController { static async list(req, res, next) { ...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _objectWithoutPropertiesLoose2 = _inte...
/* * miniPaint - https://github.com/viliusle/miniPaint * author: <NAME>. */ import config from './../config.js'; import GUI_tools_class from './gui/gui-tools.js'; import GUI_preview_class from './gui/gui-preview.js'; import GUI_colors_class from './gui/gui-colors.js'; import GUI_layers_class from './gui/gui-layers....
/** * Talisman phonetics/french/fonem * ================================ * * Implementation of the French phonetic algorithm "FONEM" designed to match * family names from Saguenay. * * [Reference]: * http://www.persee.fr/doc/pop_0032-4663_1981_num_36_6_17248 * * [Article]: * <NAME>, <NAME>, <NAME>. FONEM : U...
/* Copyright 2014 Mozilla Foundation 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...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
import { Component, Host, HostBinding, HostListener, Input } from '@angular/core'; import { LocalizationService } from '@progress/kendo-angular-l10n'; import { DraggableDirective, Keys } from '@progress/kendo-angular-common'; import { SplitterService } from './splitter.service'; import { Subscription, of } from 'rxjs';...
$(document).ready(function () { //set datepicker and date range picker $('.datepicker').datepicker({ format: 'dd-mm-yyyy', autoclose: true, clearBtn: true }).prop('readonly', true); var todayDate = new Date().getDate(); $('.datepicker1...
"use strict"; const {strict: assert} = require("assert"); const {set_global, zrequire} = require("../zjsunit/namespace"); const {run_test} = require("../zjsunit/test"); const {make_zjquery} = require("../zjsunit/zjquery"); const rm = zrequire("rendered_markdown"); const people = zrequire("people"); zrequire("user_gr...
var height = $( window ).height(); var f_h = height/5; var loading = '<div style="height:'+height+'px; width:100%;">' +'<div class="spinner" style="top:'+f_h+'px;position:relative;">' +'<div class="rect1"></div>' +' <div class="rect2"></div>' +' <div class="rect3"></div>' +' <div cl...
const template = /*html*/` <div> <input type="file" id="upload" style="display:none" @change="doUpload"> <bwc-t4t-form v-if="mode" :config="table.config" :record="form.record" :mode="mode" @submit="submitForm" @cancel="cancelForm" style="--bwc-t4t-form-height: calc(100vh - 200px);" ></...
import firebase from 'firebase/app'; import { firestore } from './firebase.utils'; import { singleIngredListFrequency, getEmptyFrequencyList } from './recommender'; import { generateIngredientKeywords, addSearchKeywordsForRecipeCard, sleep, dateFormat, convertRecipesSnapshotToMap } from './data.utils'; // Users expo...
// Require local dependencies const bar = require('nanobar'); const store = require('default/public/js/store'); const socket = require('socket/public/js/bootstrap'); const history = require('history').createBrowserHistory; /** * Build router class */ class router { /** * Construct router class */ ...
import has from 'lodash/has'; import vue from 'kolibri.lib.vue'; import logger from 'kolibri.lib.logging'; import { languageDirections, defaultLanguage } from 'kolibri-design-system/lib/utils/i18n'; import importIntlLocale from './intl-locale-data'; import importVueIntlLocaleData from './vue-intl-locale-data'; import s...
const memoize = require('lodash.memoize'); const sqrt2 = Math.sqrt(2); const quadtree = require('d3-quadtree').quadtree; function canStartOn( node ){ const { options, previewEles, ghostEles, handleNode } = this; const isPreview = el => previewEles.anySame(el); const isGhost = el => ghostEles.anySame(el); const...
var page = 1; var current_page = 1; var total_page = 0; var is_ajax_fire = 0; $( document ).ready(function() { manageData(); }); $( document ).ajaxError(function( event, request, settings) { notif = demo.notifEAjax(request); errorCode = request.responseText; demo.showNotification('top','right','Gagal melaku...
'use strict'; const Homey = require('homey'); const maps = require('./../../lib/thermofloor/mappings'); const ZwaveDevice = require('homey-meshdriver').ZwaveDevice; class TF_ThermostatDevice extends ZwaveDevice { async onMeshInit() { // enable debugging // this.enableDebug(); // print the node's info to the...
'use strict'; var Atom, Client, ChatMessage; const _chain_parent = Symbol('_chain_parent'); const _chain_spliced = Symbol('_chain_spliced'); module.exports = { /** * Sort of like Object.assign(), but it assigns *behind* the other object, and it's also recursive. * @memberof Bluespess * @param {Object} a * @...
import React from 'react'; import { ActivityIndicator, Alert, Image, Picker, RefreshControl, Slider, Switch, StatusBar, SectionList, ScrollView, StyleSheet, Text, TextInput, TouchableOpacity, TouchableHighlight, View, WebView, } from 'react-native'; import Colors from '../constants/Co...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. /** * This sample demonstrates how to get started by creating a data feed, checking ingestion status, * creating detection and alerting configurations, and querying for alerts and anomalies. */ // Load the .env file if it exists require("dot...
import crypto from 'crypto'; import {unlinkSync, statSync} from 'fs'; import path from 'path'; import globby from 'globby'; import debugPKG from 'debug'; import {SyncHook} from 'tapable'; import {readFile, isFile} from './utils'; import bar from './helpers/progressBar'; import logger from './helpers/logger'; import CO...
const path = require('path'); const fs = require('fs'); const querystring = require('querystring'); const Url = require('url'); const http = require('http'); //ไผชๅ…จๅฑ€ๅ˜้‡ const globalVar = new Map([ ['root', path.join(__dirname, '../../')] ]); //ๆ—ถ้—ดๆ—ฅๆœŸ /** * ๅฐ† Date ่ฝฌๅŒ–ไธบๆŒ‡ๅฎšๆ ผๅผ็š„String * ๆœˆ(M)ใ€ๆ—ฅ(d)ใ€12ๅฐๆ—ถ(h)ใ€24ๅฐๆ—ถ(H)ใ€ๅˆ†(m)ใ€็ง’(s)ใ€ๅ‘จ...
/* Copyright 2014-2019 Google LLC 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
const { querySql, queryOne } = require("../../db/index"); const moment = require("moment"); function returnArtSql(isHot, sortId, userId) { return `SELECT a.article_id AS id, a.article_title AS title, a.article_summary AS summary, a.article_createAt AS createAt, a.article_views AS views, a.article_com...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var Utilities_1 = require("../../Utilities"); var OverflowSet_1 = require("../../OverflowSet"); var ResizeGroup_1 = require("../../ResizeGroup"); var FocusZone_1 = require("../../Fo...
var htmlOutputBinding = new OutputBinding(); $.extend(htmlOutputBinding, { find: function(scope) { return $(scope).find('.shiny-html-output'); }, onValueError: function(el, err) { exports.unbindAll(el); this.renderError(el, err); }, renderValue: function(el, data) { exports.renderContent(el, d...
import React, { Component, Fragment } from 'react' import { StyleSheet, SafeAreaView, View, TouchableOpacity, TextInput } from 'react-native' import { Button, CheckBox } from 'react-native-elements' import { Ionicons } from '@expo/vector-icons' import { Formik } from 'formik' import * as Yup from 'yup' import FormInput...
import React from "react"; import { StyleSheet, Dimensions, ActivityIndicator, ScrollView, AsyncStorage, RefreshControl, Image, ImageBackground, TouchableOpacity, Alert, } from "react-native"; import { Block, theme, Text, Input } from "galio-framework"; import { Card, Button, Select, Icon } from "....
var _ = require('lodash'); var debug = require('./debug').extend('Fugl'); var EventEmitter = require('events'); var fs = require('fs'); var fsExtra = require('fs-extra'); var path = require('path'); var installDependent = require('./install-dependent'); var LinkStrategy = require('./LinkStrategy'); var NpmStrategy = r...
const { shell } = require('electron') const os = require('os') const fs = require('fs') const Datastore = require('nedb-promises') const path = require('path') const res = []; const db = Datastore.create({ filename: path.join(require('electron').remote.app.getPath('userData'), 'bookmarks.db') }); const folderRootEl = d...
"use strict"; require("core-js/modules/es.symbol"); require("core-js/modules/es.symbol.description"); require("core-js/modules/es.symbol.iterator"); require("core-js/modules/es.array.concat"); require("core-js/modules/es.array.filter"); require("core-js/modules/es.array.from"); require("core-js/modules/es.array....
/* eslint-disable max-len */ import React, { Component } from "react"; import PropTypes from "prop-types"; import cx from "classnames"; import { withRouter, Link } from "react-router-dom"; import { isMobile } from "react-device-detect"; import { connect } from "redaction"; import links from "helpers/links"; import ac...
'use strict' // TODO: move addNumberToBlacklist and close to top-level SMSNumberVerifier // TODO: remove manual inputs for edge cases and bail instead -- breaks batch jobs const delay = require('delay') const faker = require('faker') const tempy = require('tempy') module.exports = async (user, opts) => { const { ...
//CHAT toggleChatWindow(); $.get("/board/" + window.windowBoardId + "/messages", (messages) => { messages.forEach(addMessage); $("#messageCount").text((messageCount = 0).toString()); }); $("#chatInput").on("input keydown", function (e) { if ((e.keyCode == 10 || e.keyCode == 13)) { if (!e.shiftKey) { e.prevent...
var count_select_checks = new Map(); var config_filter_first = $('meta[name="config-first-param"]').attr('content'); var flag_and = false; $(document).ready(function () { init_count_select_filters(); printButtonCancelFilters(); print_selected_filters(); filter(); setSlideRange(); }); function filt...
var included_modules = []; var angularApp = angular.module('product-updating-app', included_modules) .config(function($httpProvider, $provide) { //alert(angular.element($("#_token")).val()); $httpProvider.defaults.headers.common['X-XSRF-TOKEN'] = angular.element($("#_token")).val(); }) .co...
// @ts-nocheck 'use strict'; /* * Created with @iobroker/create-adapter v1.31.0 */ // The adapter-core module gives you access to the core ioBroker functions // you need to create an adapter const utils = require('@iobroker/adapter-core'); const mosmix = require('./mosmix'); // Load your modules here, e.g.: // con...
import Picker from 'vanilla-picker' import '@fortawesome/fontawesome-free/css/all.css' const card = document.getElementById("card") const addRowButton = document.getElementById("add-row") const randomizeButton = document.getElementById("randomize") const downloadButton = document.getElementById("download") const pictu...
/** * @fileoverview Tests for concise-object rule * @author <NAME> <http://www.jamund.com> */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ var rule = require("../../.....
'use strict' const assert = require('assert') const path = require('path') const fs = require('fs').promises const { Recorder, Player } = require('transcript') const Destructible = require('destructible') const Operation = require('operation') const Interrupt = require('interrupt') const Keyify = require('keyify') c...
import "../../define/PullToRefresh.js"; import { defaultState, firstRender, ids, render, setState, state, template, } from "../../src/base/internal.js"; import { updateChildNodes } from "../../src/core/dom.js"; import { templateFrom } from "../../src/core/htmlLiterals.js"; import ReactiveElement from "../...
const gulp = require('gulp'); const fs = require('fs') const path = require('path'); const del = require('del'); const ts = require('gulp-typescript'); const sourcemaps = require('gulp-sourcemaps'); const zip = require('gulp-zip'); const rename = require('gulp-rename'); const minify = require('gulp-minify'); const tabi...
const bookModel = require("../models/bookModel") const userModel = require("../models/userModel") const validator = require('../validators/validator') const ReviewModel = require('../models/reviewModel') const createBook = async (req, res) => { try { let requestBody = req.body; if (!validator.isV...
import Phaser from 'phaser'; import config from './config/config' import { Player } from './lib/player' import axios from 'axios' import { io } from "socket.io-client"; import { MoveHelper } from './lib/move_helper'; const socket = io(config.backend.host); // Before we start moving we need to take note of the locatio...
var couponEntry = $("#couponEntry"), couponItem = couponEntry.find(".couponItem"); var couponPageSize = 5,couponRecordsCount = couponItem.length, couponPageCount = Math.ceil(couponRecordsCount/couponPageSize); var couponPageSize = 5,couponRecordsCount = couponItem.length, couponPageCount = Math.ceil(...
var GAME_WIDTH = 650; var GAME_HEIGHT = 650; var GAME_RESOLUTION = 25; var THEME_SNAKE = "#38c8a8"; var THEME_FRUIT = "#DE766A"; var THEME_FRUIT_DARK = "#913329"; var START_POSITION = [[GAME_WIDTH / 2, GAME_HEIGHT / 2], [GAME_WIDTH / 2 + GAME_RESOLUTION, GAME_HEIGHT / 2]]; var MoveDir; (function (MoveDir) { MoveDir...
import React, { Component } from 'react' // eslint-disable-line import/no-unresolved import PropTypes from 'prop-types' import shallowequal from 'shallowequal' import raf from 'raf' import shouldUpdate from './shouldUpdate' const noop = () => {} export default class Headroom extends Component { static propTypes = {...
"use strict"; var Promise = require('bluebird'); var lazy = require('lazy.js'); var persistence = require('gitter-web-persistence'); var _ = require('underscore'); var debug = require('debug')('gitter:app:recent-room-core'); exports.updateFavourite = updateFavourite; exports.clearFavourite = clearFavourite; exports.f...
/** * @license * Copyright 2017 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ var path_ = require('path'); var fs_ = require('fs'); process.on('unhandledRejection', function(e) { console.error("ERROR: Unhandled promise rejection ", e); process.exit(1); }); // enable...
import BadgesConfig from '@/config/badges'; import AchievementsServiceConfig from '@/config/achievements-service'; import Axios from 'axios'; import moment from 'moment'; import LSHelpers from '@/utils/local-storage-helpers'; import { cleanupBadgesObject, BadgesDifferer, formatBadgeSnackbarNotifications } from '@/utils...
function log() { if (false) { console.log.apply(this, arguments); } }; function err() { if (true) { console.error.apply(this, arguments); } } function priorityLog() { console.log.apply(this, arguments); } var Alpha_Script = { obtainHtml: function (options) { options =...
import io from "socket.io-client"; import Player from "./Player"; const blockHeight = window.innerHeight / 9; const blockWidth = window.innerWidth / 16; const State = { Playing: "Playing", Spectating: "Spectating", Starting: "Starting", Waiting: "Waiting" }; export default class Game { constructor() { ...
/*: // PLUGIN โ–กโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ก SYSTEM CORE ENGINE โ–กโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” * @author โ–ก <NAME> (dimisterjon),(jonforum) * @plugindesc manage all game systems informations * V.0.1a * License:ยฉ M.I.T โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€...
import _setImmediate from 'babel-runtime/core-js/set-immediate'; import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'b...
const { v4: uuidv4, v5: uuidv5 } = require('uuid'); const consts = require('./consts'); const drivers = require('../drivers'); const renderConnection = require('./render-connection'); const appLog = require('./app-log'); const getColumns = require('./get-columns'); /** * Connection client runs queries for a given con...
import global from '/core/Global'; import View from './ui/View' // Clockwise, from northwest const dotPreset = [ // x y w h {'value': [+1, +1, -1, -1], 'transform': 'translate(-50%, -50%)', }, // North-west {'value': [ 0, +1, 0, -1], 'transform': 'translate(-50%, -50%)', }, // North {'value': [ 0...
/** * Request a payment for Hospitals */ import { Selector } from 'testcafe' import Helpers from './test_utils/helpers' import config from './test_utils/config' const H = new Helpers() // entry points const currentProviderName = Selector('h1.home-heading') const reqPaymentLink = Selector('[href="/request-payment"]...
/////////////////////////////////////////////////////////////////////////////// // // XBR Open Data Markets - https://xbr.network // // Copyright (C) Crossbar.io Technologies GmbH and contributors // // Licensed under the Apache 2.0 License: // https://opensource.org/licenses/Apache-2.0 // /////////////////////////...
// Keeping this as a backup if the API call fails somehow export const whitelistDomains = [ 'ifrc.org', 'apdisasterresilience.org', 'arabrcrc.org', 'arcs.org.af', 'bdrcs.org', 'brcs.bt', 'cck-cr.cz', 'ckcg.me', 'ckrm.org.mk', 'climatecentre.org', 'creuroja.ad', 'cri.it', 'croix-rouge.be', '...
/* Aurora II - modified for p5.js homepage June 25th,2015 (2015, digital/live sculpture, pixel accumulation) <NAME> License at bottom. */ //Switches var genCoord = false; var controlAmp = false; var motion = true; var randir = true; var blur = true; var timed = true; //NoiseField var p ...
"use strict"; // A unidirectional GUI for interacting with RPN features. Uses a toy // functional reactive implementation. var rpn = require("../"); // Instantiate this object and call `render` to run the browser interface. // // * elements - (Object[Element]) A map containing the following // DOM `Element`s: // -...
const Discord= require('discord.js'); var bot; const fs = require('fs') const path = 'published.json' var published = new Map(); function compare(a, b){ var comparison = 0; if (a.time > b.time) { comparison = 1; } else { comparison = -1; } return comparison; } try { if (fs.existsSync(path)) {...
class Sortable { constructor(listEl, options) { if (!options) options = {}; this.element = listEl; this.draggedElement = null; this.target = null; this.hoverPosition = null; this.divider = { element: document.createElement('li', { id: 'divider' }), active: false, }; // Ini...
var _ = require('lodash'), transformers = require('./transformers'); var Util = require('../model/yang/util'); var models = { Clazz : require('../model/ObjectClass.js'), OpenModelObject : require('../model/OpenModelObject.js'), Association : require('../model/Association...
var canon = require('../canon.js') var test = require('tap').test var request = require('request') var http = require('http') var https = require('https') var path = require('path') var fs = require('fs') var url = require('url') var key = read('agent1-key.pem') var cert = read('agent1-cert.pem') var opts = { key: ke...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.vueI18n = void 0; const fs_1 = require("fs"); const path_1 = __importDefault(require("path")); c...
const EventEmitter = require('events').EventEmitter; const DBus = require('dbus'); const util = require('util'); const Adapter = require('./Adapter'); const Device = require('./Device'); const Agent = require('./Agent'); const Profile = require('./Profile'); const SerialProfile = require('./SerialProfile'); class Bl...
import StatView from "./stat"; import * as d3 from "d3"; import app from "ampersand-app"; const PI = Math.PI; const TAU = 2 * PI; const SCALE = 100000; /** * @typedef Layer * @property {GeoJSON} geojson */ /** * @typedef MapData * @property {Layer[]} layers * @property {[number, number]} center * @property {n...
// ESLint declarations: /* global describe, it */ /* eslint one-var: 0, semi-style: 0, no-underscore-dangle: 0 */ // -- Vendor Modules const { expect } = require('chai') ; // -- Local Modules // -- Local Constants // Number of owned custom properties added by your library, // number of owned and inherited pro...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _inte...
/*! * jQuery++ - 2.0.0 * http://jquerypp.com * Copyright (c) 2015 Bitovi * Wed, 15 Apr 2015 22:07:45 GMT * Licensed MIT */ /*jquerypp@2.0.0#event/drop/drop*/ var $ = require('jquery'); require('../drag/core/core.js'); require('../../dom/within/within.js'); require('../../dom/compare/compare.js'); var event = $.e...
import React from 'react'; import ReactDOM from 'react-dom'; import TextField from 'material-ui/TextField'; import Slider from 'material-ui/Slider'; import Toggle from 'material-ui/Toggle'; import RaisedButton from 'material-ui/RaisedButton'; import {Tabs, Tab} from 'material-ui/Tabs'; import IncomeIcon from 'material...
var char = [] var glyph = [] var jhf = [] var path = [] var vhf = [] var fileString var hershey = "star" var mouseDown = false var mouseX = 0 var mouseY = 0 var k = 0 var count = 0 var selected = -1 var xmax = 0 var xmin = 0 var SBP var lineX = 0 var lineY = 0 var display = [] var displayScale = 1.2 var screenY = 70*...
// Copyright (c) 2012 <NAME><<EMAIL>> 'use strict'; var SEP = require('../lib/sep'); var nmCln = require('../lib/appnet.link'); // appnet.link library var WebSocket = require('wspp').wspp; var WebSocketServer = WebSocket.Server; // msgpack library var msgpack = require('msgpack-js'); // vURL var vURL = require('.....
/** * @module ol/VectorImageTile */ import {getUid, inherits} from './index.js'; import Tile from './Tile.js'; import TileState from './TileState.js'; import {createCanvasContext2D} from './dom.js'; import {listen, unlistenByKey} from './events.js'; import {getHeight, getIntersection, getWidth} from './extent.js'; im...
#! /usr/bin/env node // ################################################################################ // Author: <NAME> <<EMAIL>> // Date: 2022-02-05 // ################################################################################ // Main file, entry point for the CLI. import { Command } from 'commander'; import ...
import React, { useState, useEffect } from 'react'; import { Alert, DropdownButton, MenuItem, Button, Tooltip, OverlayTrigger, Popover } from 'react-bootstrap'; import _ from 'lodash'; import * as Yup from 'yup'; import clsx from 'clsx'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-t...
/* The wrapper combines the things looking at or waiting for logs with the actual server logs */ const GENERIC_LINE_REGEX = /^(\[(?<date>\d{4}\.\d\d.\d\d-\d\d.\d\d.\d\d:\d{3})\]\[\s*(?<counter>\d+)\])?(?<generator>\w+): (?<data>.+)$/; class LogWrangler { // list of patterns and callbacks watching the brickadia ...
const adminCMD = { 'ACL': ['ACL CAT [categoryname]', 'ACL DELUSER username [username ...]', 'ACL DRYRUN username command [arg [arg ...]]', 'ACL GENPASS [bits]', 'ACL GETUSER username', 'ACL LIST', 'ACL LOAD', 'ACL LOG [count|RESET]', 'ACL SAVE', 'ACL SETUSER username [rule [rule ...]]', 'ACL USERS', 'ACL WHOAMI'], ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SqliteDriver = void 0; var tslib_1 = require("tslib"); var mkdirp_1 = (0, tslib_1.__importDefault)(require("mkdirp")); var path_1 = (0, tslib_1.__importDefault)(require("path")); var DriverPackageNotInstalledError_1 = require("../../er...
if (process.env.NODE_ENV !== 'production') { require('dotenv').config(); } const express = require('express'); const aws = require('aws-sdk'); const app = express(); const Auth = require('./auth/Auth'); let fs = require('fs'); const graphqlHttp = require('express-graphql').graphqlHTTP; const graphqlSchema = require(...
const express = require("express"); const csrf = require("csurf"); const stripe = require("stripe")(process.env.STRIPE_PRIVATE_KEY); const Product = require("../models/product"); const Category = require("../models/category"); const Cart = require("../models/cart"); const Order = require("../models/order"); const middl...
import console from './console.js'; import fetch from 'node-fetch'; import fs from 'fs'; import path from 'path'; import { spawn } from 'child_process'; import m3u8 from 'm3u8'; import Speaker from 'speaker'; const headers = { 'Content-Type': 'text/plain;charset=UTF-8', 'Client-ID': 'kimne78kx3ncx6brgo4mv6wki5h1ko...
/** * ๆŽ’ไบงๅฏผๅ…ฅไธป่กจ */ var pageCurr; var pageCurr2; $(function () { layui.use(['form', 'table', 'laydate', 'upload'], function(){ var table = layui.table ,form = layui.form ,laydate = layui.laydate ,upload = layui.upload; laydate.render({ elem: '#prodDate'...
/* Licensed per https://github.com/privacy-tech-lab/gpc-optmeowt/blob/main/LICENSE.md privacy-tech-lab, https://www.privacytechlab.org/ */ /* events.js ================================================================================ events.js (1) Implements our per-site functionality for the background listeners ...
const User = require('../models/User'); const Solution = require('../models/Solution'); //const Question = require('../models/Question') // const fetch = require("node-fetch"); const fs = require('fs') const { NodeSSH } = require('node-ssh') const ssh = new NodeSSH() const dotenv = require('dotenv') dotenv.config({ pat...
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
"use strict" const suCosts = { u11: 2, u12: 1.25, u13: 1.5, u14: 10, u15: 15, u16: 45, u17: 240, u18: 600, u21: 2e6, u22: 20000, u23: NaN, u24: 11, u25: 14, u26: 16, u27: "e1050", u28: "e10500", u31: 200, u32: 500, u33: 5000, u34: 10, u35: 20, u36: NaN, u37: NaN, u38: ...
var $ = jQuery.noConflict(); var simpleartigo = simpleartigo || {}; (function($){ "use strict"; simpleartigo.header = { fullScreenMenuSearch: function(){ var t1 = $("a.artigo-full-screen-search"); if( t1.length ){ t1.on("click", function(e){ e.preventDefault(); $("div.artigo-theme-contain...
// pages/signUp/signUp.js //่Žทๅ–ๅบ”็”จๅฎžไพ‹ const app = getApp() const util = require('../../utils/util.js') const FLOWER_COST_EVE = 2 Page({ data: { userid: null, //่‡ชๅทฑ็š„id userstatus: -1, //่‡ชๅทฑ็š„ๅฎกๆ ธ็Šถๆ€ flowerNum: 0, //็Žซ็‘ฐ็š„ๆ•ฐ็›ฎ changeNum: 0, //ๆขไธ€ๆ‰นๆฌกๆ•ฐ commendIds: [], //ๆ‰€ๆŽจ่ๅฏน่ฑก็š„id็š„ๅˆ—่กจ objsInfo: [], //ๆ‰€ๆŽจ่ๅฏน่ฑก็š„ไฟกๆฏ็š„ๅˆ—่กจ ...