text
stringlengths
3.22k
29.5k
var fs = require('fs'); var path = require('path'); var url = require('url'); // var semver = require('semver'); var http = require('http'); var https = require('https'); var moment = require('moment'); var baseDir = process.env.BASE_DIR || path.resolve(process.env.HOME, '.my-npm-registry'); var debugFolder = (process....
"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(...
"use strict"; import Swiper from 'https://unpkg.com/swiper/swiper-bundle.esm.browser.min.js'; const LOCALSTORAGE = { LOGIN: 'supersecretfield#1', CART: 'cart', } let login = localStorage.getItem(LOCALSTORAGE.LOGIN); const cartButton = document.querySelector("#cart-button"); const modal = document.qu...
$(function(){ var ctr = 0; $(document).on('click', '#btn_add_asset', function() { if ($('.asset-item-wrapper > div').length == 5) { return false; } $('.asset-item-wrapper').append( '<div class="row">' + '<div class="col-md-8 col-md-offset...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
/* ctaetcsh's Personal Script For questions, please ask me in Discord DO NOT MODIFY WITHOUT PRIOR NOTICE & PERMISSION This script is backed up as it is updated. Last updated: August 3, 2020 */ // Random var ok = 'ok'; console.log("Loaded ct.js"); ct_getcat(); // easiest fix to make cpaitc work /...
function __processArg(obj, key) { var arg = null; if (obj) { arg = obj[key] || null; delete obj[key]; } return arg; } function Controller() { require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); this.__controllerPath = "schedule"; i...
import React, { useRef, useState } from 'react' import { View, Text, Image, Dimensions } from 'react-native'; import Carousel, { Pagination } from 'react-native-snap-carousel'; import { theme } from '../context/Theme'; import { Container, BackBtn, Bulletin } from '../components'; const WINDOW_HEIGHT = Dimensions.get('...
import React from 'react'; import { ActivityIndicator, View, StyleSheet, Dimensions } from 'react-native'; import { Video, Audio, ScreenOrientation } from 'expo'; import PlaybackStatusOverlay from './PlaybackStatusOverlay'; import PlayVideoControlsOverlay from './PlayVideoControlsOverlay'; import PropTypes from 'prop-t...
 var geomonMap = angular.module('geomonMap', []); geomonMap.value("defaultCenter", { lon: 18.088500, lat: 59.310740, defaultZoom: 3, zoom: 15 }) geomonMap.service('map', Map) function Map(defaultCenter) { this.personStyle = { graphicWidth: 51, graphicHeight: 51, graphicXOffset: -25, graphicYOffset: -54...
let Resources={}; Resources.keywordIDs = { 'ok lamp': new Uint8Array([ 0xac, 0x24, 0x75, 0x21, 0x14, 0x3d, 0x2a, 0xe7, 0x0a, 0x85, 0x75, 0x4c, 0x48, 0x31, 0x5b, 0x44, 0x4b, 0xb6, 0xe8, 0xc3, 0x77, 0x30, 0xd5, 0xac, 0xca, 0x54, 0x06, 0x29, 0xbd, 0x15, 0xca, 0x90, 0x55, 0x81, 0...
// @TODO: YOUR CODE HERE! var svgWidth = 1200; var svgHeight = 660; var margin = { top: 50, right: 50, bottom: 100, left: 100, }; var primaryXAxis = "poverty"; var height = svgHeight - margin.top - margin.bottom; var width = svgWidth - margin.left - margin.right; // x axes options // In Poverty (%) ...
#!/usr/bin/env node import fs from 'fs'; import { execSync } from 'child_process'; import path from 'path'; import opn from 'opn'; import history from 'connect-history-api-fallback'; import convert from 'koa-connect'; import git from 'simple-git/promise'; import dayjs from 'dayjs'; import globby from 'globby'; import...
// Copyright 2014 Mozilla // Copyright 2015 <NAME> // Copyright 2018 <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 // // Unles...
'use strict'; import {TinyYoloV2Nchw} from './tiny_yolov2_nchw.js'; import {TinyYoloV2Nhwc} from './tiny_yolov2_nhwc.js'; import {SsdMobilenetV1Nchw} from './ssd_mobilenetv1_nchw.js'; import {SsdMobilenetV1Nhwc} from './ssd_mobilenetv1_nhwc.js'; import * as ui from '../common/ui.js'; import * as utils from '../common/...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.Header = exports.default = exports.defaultStyles = exports.Body = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (...
/** * helper-js v0.0.3 * https://github.com/defypro/helper-js * @license MIT */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /** * 返回URL参数对象 */ var getParams = function getParams(key) { var arr = (location.search || "").replace(/^\?/, '').split("&"); var params = {}; var da...
var express = require('express'); var router = express.Router(); var Promise = require("bluebird"); var rp = require('request-promise'); var path = require('path'); var mongoose = require('mongoose'); var mongodbUri = process.env.MONGOLAB_URI; var scrapedEvents = []; mongoose.connect(mongodbUri); var db = mongoose.co...
const LOGGER = require('../lib/logger'); const constantsFile = require('../config/constants'); const axiosLib = require('axios'); const https = require('https'); const AWS = require('aws-sdk'); const neo4jLib = require('neo4j-driver'); const asyncRedisLib = require('async-redis'); const { ESSearchLib } = require('./ESS...
// ==UserScript== // @name JIRA work time // @namespace https://github.com/JonathanGawrych/jira-non-working-hours // @version 0.3.0 // @description Mark Non-Working Hours as such in jira's burndown chart // @match https://jira.mtc.byu.edu/jira/secure/RapidBoard.jspa* // @copyright 2014+, <NAME> // ==/U...
// import * as mars3d from "mars3d" var map // mars3d.Map三维地图对象 var graphicLayer // 矢量图层对象 // 需要覆盖config.json中地图属性参数(当前示例框架中自动处理合并) var mapOptions = { scene: { center: { lat: 31.773622, lng: 117.077444, alt: 5441, heading: 359, pitch: -57 } } } var eventTarget = new mars3d.BaseClass() /** * 初始化地图业务,生命周期钩子函...
import React, { useEffect, useState } from 'react'; import { ToastsContainer, ToastsContainerPosition, ToastsStore } from 'react-toasts'; import Grid from '@material-ui/core/Grid'; import MyButton from 'components/MyButton'; import CircularProgress from '@material-ui/core/CircularProgress'; import TextField from '@mate...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ /* eslint-disable no-use-before-define */ const _ = require('lodash'); const path = require('path'); const async = require('async'); const AWS = require('aws-sdk'); const credsRotation = require('./c...
"use strict"; var eles = {}; var vars = { key: null, token: null, returnedListId: '57d0282ed1cb0995d9b5f263', onItListId: '57c9e09dd0dca2c30483d34e', peerReviewListId: '57d0282570000099713f40f7', needsReviewListId: '57d02...
'use strict'; const Assert = require('assert'); const CodeStreamAPITest = require(process.env.CSSVC_BACKEND_ROOT + '/api_server/lib/test_base/codestream_api_test'); const BoundAsync = require(process.env.CSSVC_BACKEND_ROOT + '/shared/server_utils/bound_async'); const PubNub = require('pubnub'); const MockPubnub = requ...
/** * Copyright (c) 2018 GrowthFile * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish...
import $ from 'jquery'; // Abstract superclass for file operations with FlashAir, local, or cloud-based. class FileStore { constructor() { } dir(nextPath, done) { } exists(path, done) { } read(path, done) { } write(path, data, filetype, done) { } delete(path, done) { } mkdir(path, done) { }...
/* loadJS from https://github.com/filamentgroup/loadJS/blob/master/loadJS.js */ (function( w ){ var loadJS = function( src, cb, ordered ){ "use strict"; var tmp; var ref = w.document.getElementsByTagName( "script" )[ 0 ]; var script = w.document.createElement( "script" ); if (typeof(cb) === "boolean") { ...
// 云函数入口文件 const cloud = require('wx-server-sdk') const TcbRouter = require("tcb-router"); cloud.init() const db = cloud.database(); const _ = db.command; const field = { _id: true, _openid: true, address: true, avatarUrl: true, bgImgUrl: true, birthDate: true, contactArray: true, degreeArray: true,...
import React from "react"; import Detail from "./detail.js"; import About from "../components/about.js"; import Settings from "../components/settings.js"; import DeviceInfo from "../components/device-info"; import MenuBar from "../components/menu_bar.js"; import Dialog from "../components/dialog.js"; import { isAllowed...
$(document).ready(function(){ $('#tb-reporte-ven').DataTable( { dom: 'Bfrtip', buttons: [ { extend: 'excelHtml5', title: 'Listado De Ventas', exportOptions: { columns: [0,1,2,3,4,5,6] } }, { ex...
const through = require('through2'), path = require('path'), babel = require("babel-core"), vfs = require('vinyl-fs'), applySourceMap = require('vinyl-sourcemaps-apply'), Readable = require('stream').Readable; const getFileContents = (file, enc) => new Promise(resolve => { if (file.isBuffer()) ...
const homes = require('./original json/homesOriginal').homes; /* kullanıcıdan alınacak değişkenler nasıl gelecek? o değişkenler bi yerde tutulacak. matris değişkenleri olacak ahp ilk tablosu priority şeyleri. filtre değişkenleri olacak. rent range - iki değer min max location - list ? pet - düz qualitat...
// create an empty variable "employees" in which the employees will be stored later on let employees; // event handler for performing the search const searchHandler = function(e) { // trim any whitespace from the input value and assign it to the variable query const query = e.target.value.trim(); // call t...
const cheerioReq = require('cheerio-req'); const axios = require('axios'); const scrape = require('scrape-it'); const URL = require('url'); const iconv = require('iconv-lite'); const fs = require('fs'); const {hiraganize} = require('japanese'); const {promisify} = require('util'); const pages = [ 'p/i-a.html', 'p/i-...
/* eslint-disable no-console */ const path = require('path'); const webpack = require('webpack'); const AssetsPlugin = require('assets-webpack-plugin'); const nodeExternals = require('webpack-node-externals'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); // @see https://github.com/motdotla/dotenv...
// Description: // Hubot script que canta una paya, rima original de Chile :flag-cl: // // Dependencies: // None // // Configuration: // None // // Commands: // hubot una paya // // Author: // @juanbrujo const one = [ "La cueca pá los chilenos", "Si no le gustan las cuecas", "Hoy es 18 de Septiembre", "Y...
var t = 0; var play = false; var POINTS; var isPressed = false; var mouseDist = 10; var piDrag = 0; function setup() { var C = createCanvas(windowWidth, windowHeight); C.parent("sketch-holder"); buffer = createGraphics(windowWidth, windowHeight); POINTS = []; var p1 = new Point(width/2,height/2,true) PO...
import React from "react"; import PropTypes from "prop-types"; import styled from "styled-components"; import * as utils from "../utils"; const Container = styled.div` display: flex; flex: ${utils.flexAuto}; ${props => props.flex && `flex: ${props.flex}`}; flex-wrap: ${props => (props.flexWrap ? "wrap" : "nowr...
'use strict'; var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = ...
'use strict'; // node built-ins const http = require('http'); // haraka libs const DSN = require('haraka-dsn'); exports.register = function () { this.load_rspamd_ini(); } exports.load_rspamd_ini = function () { const plugin = this; plugin.cfg = plugin.config.get('rspamd.ini', { booleans: [ ...
import { LitElement, html } from '../../vendor/lit/lit.min.js' import { repeat } from '../../vendor/lit/directives/repeat.js' import { emit } from '../lib/dom.js' import { AVATAR_URL } from '../lib/const.js' import { extractSchemaId } from '../lib/strings.js' import * as session from '../lib/session.js' import { relati...
/** * Module Dependencies */ var EventEmitter = require('events').EventEmitter; var Util = require('util'); var _ = require('lodash'); /** * @constructor */ function Connection() { /** * Define if the connection needs to be authenticated by the client * If this is not the case,...
"use strict"; var $path = require('path'), fs = require('fs'), _ = require('underscore'), url = require("url"), http = require('http'), exec = require('child_process').exec, execFile = require('child_process').execFile; var FtpClient= require('ftp'); var rename = require('../common/rename'); va...
'use strict' var emitterify = require('./emitterify') , keys = require('./keys') , key = require('./key') , deep = key , rsplit = /([^\.\[]*)/ module.exports = once function once(nodes, enter, exit) { var n = c.nodes = Array === nodes.constructor ? nodes : 'string' === typeof nodes ? ...
'use strict'; import Element from './element.js'; import { KeyCode } from '../adapter.js'; const MESSAGE_PREFIX = ' : '; const LAST_MESSAGE_YESTERDAY = 'YESTERDAY'; const MORE_MESSAGE_BELOW = 'More message below.'; const INPUT_MESSAGE_PLACEHOLDER = 'Type a message'; const MAX_MESSAGE_COUNT = 100; class MessageBoard...
var svgWidth = 900; var svgHeight = 500; let axisDelay = 2500; let circleDelay = 2500; // set margin let margin = {top: 20, right: 40, bottom: 80, left: 100 }; // Calculate chart dimension by adjusting the margin let chartWidth = svgWidth - margin.left - margin.right; let chartHeight = svgHeight - margi...
// Stage of the transaction: 0: cardno, 1: card name, 2: card date, 3: card cvv, 4: amount, 5: review let currentStage = 0; console.log("Starting at stage " + currentStage) let limits = [[16, 16], [1, 35], [5, 7], [3, 3], [1, 8]]; // Store the entered details when needed let currentNumber = null; let currentName = nul...
import Player from './Player' import Field from './Field' import maps from '../data/maps' import assets from '../data/assets' import storage from '../data/storage' import generateBattler from '../util/generateBattler' import Friend from './Friend' import downloadBySource from '../util/downloadBySource' import Character...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { 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] =...
/** * visible 对话框是否可见 bool * close 关闭事件 function * title 标题 string * contain 内容 React.Element * bottom 底部内容 Array */ import React, { Component } from 'react' import { StyleSheet, View, Toucha...
import React, { useEffect, useState } from 'react' import * as reactTable from 'react-table' import { motion, AnimatePresence } from 'framer-motion' import matchSorter from 'match-sorter' import styled from 'styled-components' import { isEmpty } from './helpers' const { useTable, usePagination, useRowSelect, u...
var margin = {linegraph: {top: 10, right: 25, bottom: 35, left: 30}}, w = 700 - margin.linegraph.right, h = 660 - margin.linegraph.top - margin.linegraph.bottom; var svglinegraph = d3.select("#linegraph").append("svg") .attr('class', 'svglinegraph') .attr("width", w + margin.linegraph.left + margin.l...
Character.count = 0; function Character(inheritance){ Character.count++; this.id = 'char_'+Character.count; if(!inheritance){ Game.toDraw[this.id] = this; } this.speed = 2; this.fW = 21; this.fH = 24; this.modX = -2; this.modY = -9; this.states = {}; this.current_f = 0; this.change_f_delay = 0; ...
const path = require('path'); const {EventEmitter} = require('events'); const util = require('util'); const os = require('os'); const fs = require('fs'); const md5 = require('md5'); const admin = require('firebase-admin'); const {Firestore, WriteBatch, CollectionReference, FieldValue, FieldPath, Timestamp} = require('@...
import React, {useState,useEffect} from 'react'; import ReactApexChart from 'react-apexcharts'; import axios from 'axios'; const SearchChart = () => { let y1 = []; let y2 = []; let y3 = []; let y4 = []; let y5 = []; let y6 = []; let y7 = []; let y8 = []; let y9 = []; let y10 = []; let y11 = []; ...
var fb = require('fbgraph'); var mongo = require('mongoose'); var Mongo_FV = null; var Mongo_FV_category = null; var Mongo_Node = null; var db_connectionString = 'mongodb://localhost:3456/datasets'; var fb_postseeds = []; var regex1 = /not|nt|no/g; var regex2 = /not only|nt only/g; fb.setAccessToken("<KEY>"); //*******...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var MainConfig_1 = __importDefault(require("../../config/MainConfig")); var MyConfig_1 = __importDefault...
#!/usr/bin/env node const fs = require("fs"); const path = require('path'); const minimist = require('minimist') // CLI fun const chalk = require('chalk'); // const clear = require('clear'); const figlet = require('figlet'); const CLI = require('clui'); const pjson = require('./package.json'); // for the package ...
var measurement = { getData: function (includeObject) { var formattedstudentListArray = []; var data = null; $.ajax({ async: false, url: "/clinician/patient/patientMeasurements/" + includeObject.patientUUID + "/" + includeObject.attributeId, dataType: "jso...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PaginationOptionsMenu = void 0; var _propTypes = _interopRequireDefault(require("prop-types")); var React = _interopRequireWildcard(require("react")); var _optionsMenu = _interopRequireDefault(require("@patternfly/react-styles/cs...
// import libraries import * as THREE from 'https://threejs.org/build/three.module.js'; import { OrbitControls } from 'https://threejs.org/examples/jsm/controls/OrbitControls.js'; import { TransformControls } from 'https://threejs.org/examples/jsm/controls/TransformControls.js'; import { Rhino3dmLoader } from 'https:...
import React from 'react'; import { PropTypes as T } from 'prop-types'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { environment, osmUrl } from '../../config'; import { featureToCoords, getUTCDateTime } from '../../utils'; import { wrapApiResult, getFromState, deleteItem } fro...
var el_width = 960, el_height = 500; var margin = {top: 20, right: 20, bottom: 20, left: 20}, width = el_width * 0.75 - margin.left - margin.right, height = el_width * 0.75 - margin.top - margin.bottom; d3.select("#maindiv${divnum}").selectAll("svg").remove(); var svg = d3.select("#maindiv${divnum}").ap...
import React from 'react'; import {connect} from 'react-redux'; import {closePopout, goBack, openModal, openPopout, setPage} from '../../store/router/actions'; import { Div, Panel, PanelHeader, Snackbar } from "@vkontakte/vkui"; import Matter from "matter-js"; import Icon16ErrorCircleFill from '@vkon...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
// Argonaut - Particle portion // by <NAME> 'use strict' /* global PointAttractor, vec3, lines, Line, generateUniformRandomVector generateUniformRandomVectorInRange, getUniformRand, initialState, EPSILON */ const numParticles = 5000 const particles = [] const inactiveStack = [] let inactiveCount = numParticles con...
/** * Adding overviewmap and keyboard defaults */ var EPSG32633 = "EPSG:32633"; var maxExtent33 = new OpenLayers.Bounds( -4101096.2210526327,5925725.768421048,4999746.221052637,9135005.768421048 ); var minResolution33 = new OpenLayers.Bounds( -4101096.2210526327,5925725.768421048,4999746.221052637,9135005.768421048 ...
/** Descripcion: Codigo manejador para lst_devolucion_presupuestal.jsp Autor : <NAME> Fecha : 17/02/2012 */ var nLotes = 0; $(document).ready(function() { $('#tabuladores').tabs(); $('#tabuladores').tabs('enabled',0); $('#tabuladores').tabs('option', 'disabled', [1]); //$('#tabuladores').tabs('disabled'...
import React, { Component } from "react"; import { connect } from "react-redux"; import { withRouter } from "react-router-dom"; import Styled from "styled-components"; import moment from 'moment'; import WashMap from "./WashMap"; import WowoWordLogo from "../../../images/WowoWordLogo.js"; import NavButton from "../Ham...
/**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. http://www.cocos.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldw...
var fs = require("fs"); var casper = require("casper").create(); var gf = require("./grailedFilter"); var gs = require("./grailedSelectors"); var NUM_ITEMS = 0; var MARKETS = ["grails", "hype", "sartorial", "core"]; var ACTUAL_DESIGNERS = []; var CATEGORY_SELECTORS = []; var CATEGORY_PANEL_SELECTORS = []; var TRIES = ...
function square_root_modpq(x, p, q) { /* Finds the square roots of x in Z_n, where n = p * q * Returns an array of the two "positive" (< n/2) square roots * assumes p <> q */ var roots, inverses, partials, n = p * q; /* Compute square roots in the fields of the two factors */ roots = [square_...
/** * 適用網頁:https://www.travel.taipei/ * 事件查詢表:https://docs.google.com/spreadsheets/d/1MtMtw9lKLDTUzfBd6Ld0fAe_FGe5u-Mlkh5WfZiH5qM/edit * 程式碼位置:https://billxu0521.github.io/GA-project/config/www.travel.taipei.js * GA https://analytics.google.com/analytics/web/#realtime/rt-overview/a89833109w133278856p137301362/ * @...
var listenerApp; (function(jQuery) { jQuery.eventEmitter = { _JQInit: function() { this._JQ = jQuery(this); }, emit: function(evt, data) { !this._JQ && this._JQInit(); this._JQ.trigger(evt, data); }, once: f...
//inside this timeout block is a SIMPLE demo usage of the hide function to make your created server's callback hide script that you choose //DO NOTE THERE WILL BE NO MORE UPDATES TO THIS SINCE IT IS A TEMPLATE OF WHERE I STARTED >:D setTimeout(()=>{ let http=require('http') let hiddenScript=(req)=>`alert('HIDDE...
//Getting elements from out html to use in javascript var scheduleContainerEL = $('#scheduleContainer') //selects the entire schedule container var timeContainerEL = $('#timesContainer') //selects the times on the left inside the container var textContainerEL = $('#textContainer') //selects the text boxes in the middl...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[...
var parsed_url = parse_url(window.location.href); function increase() { let curr = $('#star-counter').html(); $('#star-counter').html(1 + parseInt(curr)); $('#star-icon').css('color', '#FFC300'); } async function renderThread(thread_id, img) { // Init the thread. $('#thread').html(''); // Fetch the profi...
import ajaxCall from 'helpers/ajaxCall' const CreateOtu = function(id) { return ajaxCall('post', `/otus`, { otu: { taxon_name_id: id } }) } const GetOtus = function (id) { return ajaxCall('get', `/taxon_names/${id}/otus.json`, { headers: { 'Cache-Control': 'no-cache' } }) } const GetProjectPrefer...
/* SPDX-License-Identifier: MIT * Copyright(c) 2019-2020 <NAME> for pwmirage.com */ let g_npc_tpl = load_tpl(ROOT_URL + 'tpl/window/npc.tpl') class NPCCraftsWindow extends SingleInstanceWindow { static saved_empty_recipe; static reference_empty_recipe; async init() { await g_npc_tpl; this.crafts = this.obj ...
/** * Application entry point */ /** * Import PWA helper files * * These file are optional. app-shell.css will not be packed into the js bundle and is linked * separately in index.html. Use for initial styling to be displayed as JavaScripts load. serviceWorkerRegistration * contains registration code for ser...
// Import libraries import * as THREE from "https://cdn.jsdelivr.net/npm/three@0.126.0/build/three.module.js"; import { OrbitControls } from "https://cdn.jsdelivr.net/npm/three@0.126.0/examples/jsm/controls/OrbitControls.js"; import rhino3dm from "https://cdn.jsdelivr.net/npm/rhino3dm@7.11.1/rhino3dm.module....
const errorHandler = new ErrorHandler($('#error-container')); let map, mapBounds, mapCenter, urls = {}, vs, userLocationMarker, userLocationInfoView, hospitalsLayer, redCrossLayer, flightAreasLayer, selectedMarker, directionsService, directionsRenderer; $(function() { ...
/** * Copyright (c) 2018-present <NAME> * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const Types = require('../../types'); const ChangeStorage = require('../../change-storage'); const AbstractObject = require('../abs...
import { hideLoadingScreen, checkIfImagesLoaded } from './load_resources' import { initLocale } from './locale' import { scheduleNextLiveUpdateCheck } from './live_update' import { showGallery, attachGalleryViewEventListeners } from '../gallery/view' import { app } from '../preinit/app_settings' import { debug } from '...
import { __decorate, __metadata } from "tslib"; import { Component, EventEmitter, Input, Output, ViewChild, ElementRef, } from '@angular/core'; import { NbMediaBreakpointsService, NbThemeService, } from '@nebular/theme'; import { takeWhile } from 'rxjs/operators'; import { TranslateService } from '@ngx-translate/core';...
var url = { base: "http://localhost/e-fasilitas/" } var resizefunc = []; function changeKota(elem) { var id = elem.value; $.ajax({ type: "GET", url: url.base+"/api/getJSON/master/KOT/"+id+"", }).done(function(data) { data = JSON.parse(data); $("#s2id_idKota span.select2-chosen").html('Pilih Kota'); $(...
var config = {}; module.exports = config; ///////////////////// // General config // ///////////////////// // paste the bot API token you got from BotFather here: config.tgToken = '<PASSWORD>'; // only relay IRC events present in array // possible values include: // message, notice, action, topic, join, part, kick,...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports.mentionsProps = exports.default = exports.MentionsOption = void 0; var _vue = require("...
// globales let jsonData = []; var workbook = null; let imgName = 'img.png' // cuando cargo un archivo hago elegir la hoja let fileSelector = document.getElementById('file'); fileSelector.addEventListener('change', (event) => { var selectedFile = event.target.files[0]; imgName = selectedFile.name; var reader = n...
// Path Length // finds out length of the each selected path // and total length of the selected paths // then write out them on the artboard as text object // This script uses JavaScript's "length" property of PathItem. // if it is available (= CS3 or later). // You can force calculate the length by "use_nat...
/** * Appcelerator Titanium Mobile * Copyright (c) 2011-2013 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ const tiBinding = kroll.binding('Titanium'), Proxy = tiBinding.Proxy, assets =...
// ***MENU PLAN PAGE*** let daysDude = { day1: { main: "day1Main", side1: "day1Side1", side2: "day1Side2", other: "day1Other", }, day2: { main: "", side1: "", side2: "", other: "" }, day3: { main: "", side1: "", side2: "", other: "" }, day4: { main: "", side1: "", side2: "", other:...
/** * @author <NAME> * @description * * Angular routed controls for: * * create instruments * creating a module for a given instrument * editing a module for a given instrument */ // setup angular with necessary dependencies var app = angular.module( 'project', ['restangular', 'ngRoute','ngAnim...
//build versions (32bit & 64bit) for all supported node versions //make sure to have latest version of node-gyp installed aswell (npm install -g node-gyp) //use --publish to upload binaries to Github var jsdom = require('jsdom'), https = require('https'), fs = require('fs'), path = require('path'), async = require(...
var MAX_RRSP_CONTRIBUTION = 24930; var MAX_RRSP_PERCENTAGE = 0.18; var MAX_TFSA_CONTRIBUTION = 5500; var DEFAULT_ROI = 1.065; var DEFAULT_RAISE = 1.025; var DEFAULT_INFLATION = 1.02; var DEFAULT_GOAL_MULTIPLIER = 30; var withdrawRate = 1 / (DEFAULT_GOAL_MULTIPLIER - 5); var salaryInput = $("#salary_input"); var colInpu...
var pathSimplifierIns,name,longitude,latitude,place,radius,map,marker,circle,info,geocoder,citysearch,poiPicker; class M{ constructor(){ this.result=false; //不在安全範圍 this.center=null; } init(){ var f=this; radius=1000; $('input[name=radius]').val(radius); $('input[name=place]').val(''); ...
"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...
const app = require("express").Router(); const client = require("../../index"); const cheerio = require("cheerio"); const moment = require("moment"); require("moment-duration-format"); const showdown = require("showdown"); let converter = new showdown.Converter({ emoji: true, literalMidWordUnderscores: ...