text
stringlengths
5.97k
41.2k
'use strict'; var validOperator = { '$gte': '>=', '$gt': '>', '$eq': '=', '$lte': '<=', '$lt': '<', '$ne': '!=', '$in': 'in', '$like': 'like' }; function fieldsToReturningClause(fields) { var returnClause = ''; if (fields.length > 0) { if (fields[0] == '*') returnClause += ' returning *'; else { ...
/** * Game channels */ $(function() { var script_tag = document.getElementById('websocket_js'); var url = script_tag.getAttribute("data-game"); var gameSocket = new WebSocket( 'ws://' + window.location.host + '/ws/game/' + url + '/'); window.onbeforeunload = function() { ...
$(document).ready(function () { $("#btnClose").click(function () { $("#data").html(""); $("#search_name").val(""); $("#myModal").modal('hide'); }); $("#btnSearch").click(function () { searchCompany($("#search_name").val()); }); $("#search_name").keyup(function (e) { ...
// <NAME> // MAT 385 var maze; var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); var curPath = []; var source = 0; // We will start at the top left, feel free to change var goal; var halt = 1; //This is the main script that controll everything on screen function randomMaze() {...
/* get node modules */ var fs = require('fs'); var path = require('path'); var eventId = "32c3"; /* get npm modules */ var scrapyard = require('scrapyard'); var moment = require('moment'); var ent = require('ent'); var cheerio = require('cheerio'); var sanitizeHtml = require('sanitize-html'); var parseCSV = require('c...
var MCDU_SelfTestCompleted = 0; var MCDU_SecondsSelftesting = 0; var ff = new FlightFactor(''); var scratchPad = ''; var colorYellow = "rgb(226,226,75)"; //Y var colorWhite = "rgb(382,382,382)"; //W var colorGreen = "rgb(79,238,79)"; //G var colorBlue = "rgb(62,153,184)"; //B var colorMagenta = "rgb(202,191,382)"; //M...
'use strict'; var Camera = { _started: false, _cameras: null, _camera: 0, _captureMode: null, // In secure mode the user cannot browse to the gallery _secureMode: window.parent !== window, _currentOverlay: null, CAMERA: 'camera', VIDEO: 'video', THUMBNAIL_LIMIT: 4, _videoTimer: null, _vid...
'use strict'; // (C)2018 ModusBox Inc. // TODO: // - test queueing of messages works correctly. // - can we queue multiple messages simultaneously? // - does the queue empty after all messages are processed? // - does the queue continue to function correctly if we disconnect while // it's non-empty? // - ...
import React, { Component } from 'react'; import { Platform, Modal, TouchableOpacity, TouchableWithoutFeedback, FlatList, } from 'react-native'; import PropTypes from 'prop-types'; import UI from './Styles'; class SegmentedPicker extends Component { constructor(props) { super(props); this.state = {...
/* * Copyright (c) 2009, 2010 and 2011 <NAME>, Jr. All Rights * Reserved. * * The contents of this file are subject to the Common Public * Attribution License Version 1.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://bi...
let shortestPermittedCardLength; const CardType = {}; CardType.__NO_BRAND = 'noBrand'; CardType.cards = []; CardType.cards.push({ cardType: 'mc', displayName: 'Mastercard', startingRules: [51, 52, 53, 54, 55, 22, 23, 24, 25, 26, 27], permittedLengths: [16], pattern: /^(5[1-5][0-9]{0,14}|2[2-7][0-...
import React, { PureComponent } from "react"; import PropTypes from "prop-types"; import { max as d3Max } from "d3-array"; import { scaleTime, scaleLinear } from "d3-scale"; import { event as d3Event, select as d3Select } from "d3-selection"; import { axisBottom as d3AxisBottom, axisLeft as d3AxisLeft } from "d3-axis";...
const { CSG } = require('@jscad/csg') const { vt2jscad } = require('./vt2jscad') const { BinaryReader } = require('@jscad/io-utils') // STL function from http://jsfiddle.net/Riham/yzvGD/35/ // CC BY-SA by Riham // changes by <NAME> <<EMAIL>> // changes by Mark 'kaosat-dev' Moissette // 2017/10/14: refactoring, added s...
// load zotero api var script = document.createElement('script'); script.src = "https://unpkg.com/zotero-api-client"; document.head.appendChild(script); var zoteroApi; // will be set after load const str_token = '::'; /* get author information */ function get_author(authors) { if (typeof authors === 'undefined' || a...
var fs = require('fs'); var url = require("url"); var wpapi = require("./wpapi"); var sendmail = require("./sendmail"); var pages = {'/':'./static/index.html','/robots.txt':'./static/robots.txt'}; var scripts = {'/ajax.js':'./scripts/ajax.js','/main.js':'./scripts/main.js'}; var templates = {}; var images = {}; var mi...
load("7fe0f1bf313bbf91780e927100d557ab.js"); // Copyright 2013 the V8 project authors. All rights reserved. // Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following co...
import React, { Component } from "react"; import PropTypes from "prop-types"; import uniqueId from "lodash.uniqueid"; import isEmpty from "lodash.isempty"; import { Form } from "reacto-form"; import styled from "styled-components"; import { applyTheme, CustomPropTypes, getRequiredValidator } from "@reactioncommerce/com...
export const gnssIdentifiers = { GPS: 0, SBAS: 1, Galileo: 2, BeiDou: 3, IMES: 4, QZSS: 5, GLONASS: 6, }; export const gnssIdentifiersInversed = { 0: 'GPS', 1: 'SBAS', 2: 'Galileo', 3: 'BeiDou', 4: 'IMES', 5: 'QZSS', 6: 'GLONASS', }; export const gnssSignalIdentifiersInversed = { 0: { ...
// // Copyright (c) 2019 by SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with t...
const SCREENSHOT_SIZE = 400; const THEME_BASE_URL = "chrome://fastdial-profile/content/themes/current/"; var wnd = fastdial.Utils.getBrowserWindow(); var content = wnd.content.wrappedJSObject; var images = {}; function initialize() { fastdial.Dom.get("folder").value = fastdial.Bookmark.getHome().title; initOpt...
import { cloneDeep } from 'lodash-es'; import { useCallback, useEffect, useRef, useState } from 'react'; import { settings } from '../../constants/Settings'; import { PICKER_KINDS, INTERVAL_VALUES, RELATIVE_VALUES } from '../../constants/DateConstants'; import dayjs from '../../utils/dayjs'; const { iotPrefix } = set...
var annotateAssetIndex = 0; var annotateAssetColors = ["E6194B", "3CB44B", "FFE119", "4363D8", "F58231", "911EB4", "42D4F4", "F032E6", "BFEF45", "FABEBE", "469990", "E6BEFF", "9A6324", "FFFAC8", "800000", "AAFFC3", "808000", "FFD8B1", "000075", "A9A9A9", "FFFFFF", "000000"]; function annotateAssetResize(){ var eleme...
// Module dependencies var express = require('express'), when = require('when'), _ = require('underscore'), colors = require('colors'), semver = require('semver'), fs = require('fs'), slashes = require('connect-slashes'), errors = require('./s...
var EventUtil = { addHandler: function(element, type, handler) { if (element.addEventListener) { element.addEventListener(type, handler, false) } else if (element.attachEvent) { element.attachEvent('on' + type, handler) } else { element['on' + type] = handler } }, /**  / THIR...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var url = require('url'); var fs = require('fs-extra'); var path = require('path'); var sade = require('sade'); var configLoader = require('@web/config-loader'); var cli$1 = require('cli'); var devServer = require('@web/dev-server'); var tes...
"use strict"; const namesArr = [ "Aaron", "Adam", "Adlai", "Adrian", "Agatha", "Ahmed", "Ahmet", "Aimee", "Al", "Alain", "Alan", "Alastair", "Albert", "Alberto", "Alejandro", "Alex", "Alexander", "Alexis", "Alf", "Alfred", "Alison", "Allan", "Allen", "Alvin", "Amanda", "Amarth", "Amedeo", "Ami", "Amigo", "Amir", "Amos...
/* * Copyright 2018 Adobe. All rights reserved. * This file is licensed 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/licenses/LICENSE-2.0 * * Unless required by appli...
import React, {Component} from 'react'; import {StyleSheet, Alert, Text, View, Linking,Platform, TouchableOpacity} from 'react-native'; import Steps from 'react-native-steps'; import MaterialIcon from 'react-native-vector-icons/MaterialIcons'; import ViewPager from '@react-native-community/viewpager'; import Carrito f...
const chalk = require('chalk'); const commandLineArgs = require('command-line-args'); const getUsage = require('command-line-usage'); const randomString = require('randomstring'); const fs = require('fs'); const TrueVaultClient = require('truevault'); const apiHelpers = require('../src/api-helpers.js'); const dateForma...
"use strict"; // MIT License // Copyright (c) 2020 <NAME> // 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, mo...
// Copyright 2018. Akamai Technologies, Inc // // 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 appli...
import React, { Component } from 'react' import { StyleSheet, Text, View, SafeAreaView, TouchableOpacity, TextInput, FlatList, ImageBackground, Modal, YellowBox, Alert, Dimensions, ScrollView, ActivityIndicator, } from 'react-native' import { render } from 'react-dom' import _ from 'lodash' import ListI...
const DATA_DIR = "/media/internal/appdata/com.dta3team.app.wherigo/"; const CONF_DIR = DATA_DIR; const DEBUG = false; const PREFS_COOKIE = "appPrefs"; const MAP_MAP_TOOL = 1; const MAP_HP = 2; const MAP_GOOGLE = 3; enyo.kind({ name: "WIGApp", kind: "VFlexBox", components: [ {kind: "WIGApp.Plugin", name: "plugin"...
import React from 'react' import PropTypes from 'prop-types' import _ from 'lodash' import keygen from 'keygenerator' import shallowCompare from 'react-addons-shallow-compare' import ContentContainer from 'components/ContentContainer' import Roulette from 'components/Roulette' import Loading from 'components/Loading' ...
#!/usr/bin / env node /* eslint-disable max-statements */ /* eslint no-process-exit: 0 */ "use strict"; const path = require("path"); const fs = require("fs"); const assert = require("assert"); const chalk = require("chalk"); const yargs = require("yargs/yargs"); const envPaths = require("env-paths"); const { OPCUAS...
'use strict'; import test from 'ava'; import { Figure } from '../lib/models'; import { Chart, ChartSequence, addUnique, getAttributeArray } from '../lib/charts'; const populus = Figure.byName('populus'); let seq; test.before(t => { seq = new ChartSequence(); }); test('Chart Sequence should start with populus', t =...
"use strict"; (function() { var requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame; window.requestAnimationFrame = requestAnimationFrame; })(); var puzzle = { infos: { ...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.ref = exports.design = exports.animation = exports.align = exports.size = exports.accessibilit...
function CameraDistance(origin = new THREE.Vector3(0., 0., 0.)){ return camera.position.distanceTo(origin); } function getAllIndices(arr, val) { var indices = [], i; for(i = 0; i < arr.length; i++) if (arr[i] === val) indices.push(i); return indices; } //after the data is loaded, include the buttons function...
import React from 'react'; import styrofoamPunchers from './images/styrofoam-punchers.jpg'; import tinCan from './images/tin-can-styro-cup-fit.jpg'; import bambooSticks from './images/bamboo-stick-pair.jpg'; import tinSnips from './images/tin-snips.jpg'; import pointedBamboo from './images/bamboo-stick-with-pointed-end...
var southWest = L.latLng(33.5, -85), northEast = L.latLng(37, -75), bounds = L.latLngBounds(southWest, northEast); var map = L.map("map", { // center: [35.7806, -78.6389], minZoom: 7, maxBounds: bounds }); map.fitBounds(bounds); L.tileLayer('http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Ma...
import { delay } from 'async-agent'; import keyCodes from 'keycodes'; import { applySettings, AUTO, DockPoint, enforceCssSize, HUNDRED_PERCENT, isString, methodArray, methodBoolean, methodString } from 'type-enforcer-ui'; import controlTypes from '../controlTypes'; import Div from '../elements/Div'; import Hea...
var Shapes, hasProp = {}.hasOwnProperty; import { vis } from '../../../lib/pub/draw/Vis.js'; import Convey from './Convey.js'; import * as d3 from 'd3'; Shapes = class Shapes { constructor(stream) { this.stream = stream; this.cos30 = 0.86602540378; //@cos15 = vis.cos(15) this.fontText = "Robot...
/** * Theme functions file * * Contains handlers for navigation, accessibility, header sizing * footer widgets and Featured Content slider * */ var longform = {}; ( function( $ ) { var body = $( 'body' ), _window = $( window ); $(window).scroll(function () { if ($(this).scrollTop() > 100) { $('.sc...
'use strict'; var connections = {}; Object.size = function(obj) { var size = 0, key; for (key in obj) { if (obj.hasOwnProperty(key)) size++; } return size; }; var isChannelReady = false; var isInitiator = false; var isStarted = false; var localStream; var pc; var pc2; var remoteStream; var turnReady; ...
/* This component is responsible for creating cryptocurrency buy orders, and pushing them to the confirmation screen */ import React, { Component } from "react" import Button1 from "../../../symbols/button1" import { View, ScrollView, Keyboard, RefreshControl, Text, TouchableWithoutFeedback, } from "r...
let AgreementDeliver = artifacts.require("./AgreementDeliver.sol"); let AgreementReturn = artifacts.require("./AgreementReturn.sol"); let AgreementData = artifacts.require("./AgreementData.sol"); let Dapp = artifacts.require("../DApp.sol"); let Token = artifacts.require("./Token.sol"); let Sale = artifacts.require("./S...
const distance = require('@turf/distance').default; const {point} = require('@turf/helpers'); const circle = require('@turf/circle').default; const transformRotate = require('@turf/transform-rotate').default; const inPolygon = require('@turf/boolean-point-in-polygon').default; const natural = require('natural'); const...
const express = require("express"), app = express(), bodyParser = require("body-parser"), Database = require("fs-database"), dataJSON = require(__dirname + "/public/data/data.json"), Discord = require("discord.js"), bot = new Discord.Client(), cookieParser = require("cookie-parser"), htt...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ListView, View, TouchableOpacity, StyleSheet, Text, LayoutAnimation } from 'react-native'; import { actions } from './const'; import { SetFontSizeSvg, FrontColorSvg, SetTextColorSvg, SetBackgroundColorSvg, InsertImageSvg, SetBoldSvg,...
import _ from 'lodash' import { getWaringProperty } from './config' /** * 从el元素向上选取第一个selector选择器匹配的元素 * @param {Element || Node} el DOM元素 * @param {string} selector 选择器 * @return {Element} 按照选择器筛选后的元素 */ export function closest(el, selector) { if (el) { const matchesSelector = el.matches || el.webkit...
'use strict'; 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]; } } } return target; }; function _classCallCheck(instance, Constructor...
import 'core-js/fn/array/find' import WebSocketController from '../controllers/ws' import BuffersController from '../controllers/buffers' // import MediaSourceController from '../controllers/mediaSource' import * as mseUtils from '../utils/mseUtils' import {logger, enableLogs} from '../utils/logger' import {MSE_INIT...
var xlauch = $.extend({} , xlauch); xlauch.RES_SUCC = 99999 ; /** * 获取工程名称 */ xlauch.getpn = function(){ return top.document.location.pathname.substring(0, top.document.location.pathname.indexOf('\/', 1)); //return ""; }; /** * 弹出提示框 */ xlauch.alert = function(msg , callback){ parent.$.messager.alert('...
// // Copyright 2020 Perforce Software // const fs = require('fs') const path = require('path') const express = require('express') const router = express.Router() const passport = require('passport') const { MultiSamlStrategy } = require('passport-saml') const { fetch, MetadataReader, toPassportConfig } = require('pass...
/* * Copyright (c) 2013-2014 BlackBerry Limited. * * 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 ...
'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 ? "symbol" : typeof obj; }; var _createClass = function () { function defineProperties(tar...
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; Object.defineProperty(ex...
import { useRef, useState, useEffect, createContext, createElement, useCallback, useDebugValue, useContext } from 'react'; function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { i...
var request = require('request'); var cheerio = require('cheerio'); var nconf = require('nconf'); var fs = require('fs'); var url = require('url'); var async = require('async'); // local library var Timeline = require(nconf.get('base')+'/lib/timeline'); var utils = require(nconf.get('base')+'/lib/utils'); var Datepars...
'use strict'; 'require view'; 'require fs'; 'require poll'; 'require ui'; 'require dom'; var pollIval = 2; var chartRegistry = {}, trafficPeriods = [], trafficData = { columns: [], data: [] }, hostNames = {}, hostInfo = {}, ouiData = []; function createValueCell(value, prettify) { return E('d...
/** * `app-checkout` * * * Properties: * * passthrough: Object ({items, ...}) * 'items' is the only required prop, all others get passed through to 'pay' cloud func * Each item requires 'amount' and 'orderQty' props * 'amount' needs to be a string toFixed(2) * 'orderQty' is a...
import React from 'react' import { View, Text, StyleSheet, TextInput, AsyncStorage, TouchableOpacity, Keyboard, StatusBar, Image, Animated, Easing, ImageEditor} from 'react-native' import config from '../../config' import Turbo from 'turbo360' import { Entypo, MaterialCommunityIcons, Ionicons } from '@expo/vector-icons...
var Traveler = require('the-traveler').default var Manifest = require('the-traveler/build/Manifest').default const fs = require('fs') const traveler = new Traveler({ apiKey: '<KEY>', userAgent: 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0', debug: true, }) const manitfes...
/* eslint-disable */ /** * @fileoverview * @enhanceable * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! var jspb = require('google-protobuf') var goog = jspb var global =...
/* scspg.js Semi-circle segmented path generator <NAME> | https://github.com/dudung/butiran.js 20120305 From arXiv article. 20190528 2037 Start recreating this app. 20190529 0824 Continue at campus. 0926 Test Path class and it works. 0944 Get good result for this stage. 1046 Finish making an example of 2...
// JavaScript Document //OEGraph.js //Converts commands (function calls) given in an Open Epi application to javascript //text that can be run (using eval) against the graphing module, wz_jsgraphics.js. //The latter is a Javascript file from <NAME> that provides the ability to draw //lines, rectangles, polygons, and e...
// Enter your custom JavaScript code here var $vSelect = $('#vehWidgetOperator'); var vSelectData = ''; //var marker; var markers = []; var idMarker; var rtMarker; var group; var ctable; var realtime; var vUrl; var cfeatureId; /******************************************************************************************...
/** * win32-api * FFI definitions of windows win32 api for node-ffi * * @version 6.1.0 * @author waiting * @license MIT * @link https://github.com/waitingsong/node-win32-api#readme */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var win32Def = require('win32-def'); var ffi = r...
var standardHeight = "550"+"px"; var initialMessageBoxDivHeight; var adjustMessageFieldWidthInterval; var missedMessageCounter = 0; var minimized = true; var chatSessionStatusKey = 'chat-session-connected'; var proactiveContainer; var proactiveTimer = null; var ProactiveServiceProtocol = 'https'; var ProactiveServiceP...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("...
/* * Copyright 2012, Mozilla Foundation and contributors * * 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 applica...
import React, {PureComponent} from 'react'; import {Tabs, Table, Icon, Row, Col, Form, Tooltip } from 'antd'; import { routerRedux } from 'dva/router'; import styles from './TaskDetail.less'; import appEvent from '../../utils/eventBus'; import EcityMap from '../../components/Map/EcityMap'; import { connect } from 'dva'...
import { aframeHelper, attribute, interpolation, pseudorandom } from "harlyq-helpers" const toLowerCase = x => x.toLowerCase() const TWO_PI = 2*Math.PI const PI_2 = .5*Math.PI const VECTOR3_UP = new THREE.Vector3(0,1,0) const degToRad = THREE.Math.degToRad function vec3DegToRad(vec3) { return { x: degToRad(vec3.x)...
// Based on the OaklandOpenBudget's flow.js but with dynamic groupings for revenues and expenses. // Group Data: var revenue_title = ["Ingresos: Por Capítulo","Ingresos: Por Artículo"], expense_title = ["Gastos: Por Política de Gasto","Gastos: Por grupos de programas", "Gastos: Por Capítulo", "Gastos: Por Artículo...
function get_pending_booking() { $("#current_table").html("Pending_booking"); $("#filter_info").html("'All'"); $("#confirm_table>tbody").html(""); $.post('include/get_booking.php', {'status': 0}, function(pending_bookings) { //0 refer to BOOKING_STATUS_PENDING pending_bookings = JSON.parse(pending_bookings); fu...
import React from 'react'; import {makeStyles} from '@material-ui/core/styles'; import Button from "@material-ui/core/Button"; import Checkbox from "@material-ui/core/Checkbox"; import FormControl from "@material-ui/core/FormControl"; import FormControlLabel from "@material-ui/core/FormControlLabel"; import FormGroup f...
const fs = require('fs'); const db = require('quick.db') const moment = require("moment-duration-format") const prettyMilliseconds = require('pretty-ms'); const Moment = require('moment') const mongoose = require("mongoose"); const distub = require("discord-buttons"); const Discord = require('discord.js'); const clien...
'use strict'; const https = require('https'); const path = require('path'); const os = require('os'); const execSync = require('child_process').execSync; const fs = require('fs-extra'); const {Command} = require('commander'); const validateNPMPackageName = require('validate-npm-package-name'); const semver = require('...
// Copyright (c) 2011-2013 Turbulenz Limited ; ; var CustomMetricEvent = (function () { function CustomMetricEvent() { } CustomMetricEvent.create = function () { return new CustomMetricEvent(); }; return CustomMetricEvent; })(); ; var CustomMetricEventBatch = (function () { function C...
'use strict'; /* TODO Considerations: have section, discussion, and lab inherit from time so .time can be used to access the time of any of them */ var s = []; // schedules var classes = []; // classes var courseURL = "/search/courses"; var courseList = {}; var PAGECAP = 20; var loadDate; var firstTime = true; var a...
var aMapVersion=1;//高德地图版本1:1.4.15,2:2.0 var moduleType = null; // 模块类型 0:首页,1:消防管控,2:车辆管控,3:门禁管控,4:报警信息,5:安防运维,6:消防 7:其他 var oMAPsrc = ""; var AuthList = []; var Campussecurity = []; var allCharts=[];//所有echarts图表 var fontSize=20;//字体大小 var oMaxmap=null; var mapLatJson=null; GetRequest(); scale(); // 页面缩放 var OHTTPC ...
/** * Datafund Consent generator & viewer * Licensed under the MIT license * Created by <NAME>, <NAME>, <NAME> */ import React, {Component} from 'react'; import { Collapse, ListGroup, ListGroupItem, ListGroupItemHeading, Button, ButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem, Mo...
var sim_params = new Object(); sim_params.beta = 2.3E-3; sim_params.gamma = 0.02; sim_params.v = 0; sim_params.mu = 0.5; sim_params.m = 1000 sim_params.N = 3E8; sim_params.y0 = 10000; var selectCountryValue = "World"; var display_params = new Object(); display_params.logy = 7; display_params.startx = 20; display_para...
import React, { Component } from "react"; import { observer, inject } from "mobx-react"; import { Route, withRouter, Link } from "react-router-dom"; import { adminAuditTypeMap, adminAuditLabelMap, rejectReasonMap } from "CONST/map"; import { Tabs, Pagination, Button, Checkbox, Radio, ...
/* Based partially off code designed and written by <NAME> https://auxenta.com/blog_User_Authentication_and_Authorization_with_AWS_Cognito.php Rewritten by <NAME> and <NAME> - Skroot Labs Inc. */ /// ************ Press button when enter is pressed *************** /// var input = document.getElementById("passwordInpu...
const admin = require("firebase-admin"); const functions = require("firebase-functions"); admin.initializeApp(functions.config().firebase); const path = require("path"); const EasyFit = require("fit-file-parser").default; const CSV = require("./csv"); const fs = require("fs"); const os = require("os"); const util = r...
'use strict'; import React, { Component, View, Text, StyleSheet,TextInput,TouchableHighlight } from 'react-native'; import { Actions } from 'react-native-router-flux'; var json = { "a" : [ {'name':'alarm', 'value':'\u{23F0}'}, {'name':'alembic', 'value':'\u{2697}'}, ...
import React, { useState, useEffect } from "react"; import { RWebShare } from "react-web-share"; import Layout from "./Layout"; import faqData from "../data/faq"; import heroImg from "../img/hero-landing.svg"; import writeIcon from "../img/write-icon.svg"; import deliveryIcon from "../img/delivery-icon.svg"; import ...
//visualization 3 - animated legal process var caseInfo; var cases; var buckets; var levels; var marginX; var marginY; var width; var height; var velocity = 5; //colors: declare all color variables var start = "#F8F4F3" var A0 = "#F9BCA0" var A1 = "#F3A57F" var A2 = "#DB6E5A" var A3 = "#CE5246" var A4 = "#C13738"...
const webpack = require("webpack"); const cssnano = require("cssnano"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin; const config = require("../Config"); const debug = require("debug")("app:webpack:config"); const path = ...
var app = angular.module('app', ['angularFileUpload', 'datePicker', 'ngMask']); function ServicoCtrl($scope, $http, $upload, $interval, $timeout) { $scope.ordensServico = new Array(); $scope.ordemServico = null; $scope.retorno = null; $scope.carregarMais = true; $scope.carregando = false; $scope.exibir...
import React, { useState, useEffect, useRef, useLayoutEffect } from "react"; import { Container, Row, Col } from "../../components/Grid"; import { InputText, InputTextOneLine, FormBtn, InputCheckbox } from "../../components/Form"; import lastFMAPI from "../../utils/lastFMAPI"; import Header from "../../components/Heade...
'use strict'; const EventEmitter = require('events'); const event = new EventEmitter(); const moment = require('moment'); module.exports = event; const stateSS = { recStatus: { 0: 'None recording schedule', 1: 'Continue recording schedule', 2: 'Motion detect recording schedule', 3:...
/*************************Reference***************** Tetris by R.M. Ver.9 Last modified 1/3 Dynamic global variables begin with a capitalized letter followed by small letters. Static global variables have all of the letters in its name capitilized. Modification: 1/3 Rows and cols can be general numbers **************...
////////////////////////////////////////////////////////////////////////////////////// /*NOTE------------------>>>the ratios that I mentioned it is random ratios<<-------*/ /*NOTE------------------>>>the colors that I mentioned it is random colors<<-------*/ /* the main idea of the project make a clock change the id...
function complex(r, i) { this.r = r; this.i = i; } var real = function (c) { if (c instanceof complex) { return c.r; } return float(c); }; complex.from = function (c) { if (c instanceof complex) { return c; } return new complex(c, 0); }; complex.prototype.toString = fu...
import { defineMessages } from 'react-intl'; const MESSAGES = defineMessages({ polio: { defaultMessage: 'Polio', id: 'iaso.label.polio', }, campaigns: { defaultMessage: 'Campaigns', id: 'iaso.polio.label.campaigns', }, delete: { id: 'iaso.label.delete', ...
/*! * Copyright (c) 2018-2022 Digital Bazaar, Inc. All rights reserved. */ 'use strict'; const jsigs = require('jsonld-signatures'); const utils = require('./utils'); const {ControllerProofPurpose} = jsigs.purposes; /* Note: This class is just an abstract base class for the `CapabilityInvocation` and `CapabilityDel...