text
stringlengths
8.5k
48.7k
// USAToday Registration Module /* * Design and initial implementation by <NAME> * minor changes by <NAME> */ var usatAuth= new usatAj("http://my.usatoday.com/"); // location of UAS off of the root url usatAuth.uasLocation= "asp/uas/"; // container for event support function ahahEventMana...
import GAME from '../game'; import constants from './constants'; var map = {}; var MAP_HEIGHT = constants.MAP_HEIGHT; var MAP_HEIGHT_16 = 416; var MAP_HEIGHT_32 = 400; var MAP_HEIGHT_48 = 384; map.buildYoshisIsland1 = function () { // SLOPES buildSlopes(); // Sky background for (var i = 0; i < 10; i++){ ...
var locale = navigator.language; let song_list_cache = []; let target_records = []; let is_medley_mode = false; function song_name_to_base64(song_name) { return window.btoa(unescape(encodeURIComponent(song_name))); } function clear_active() { $('#p-live-list').removeClass('active'); $('#p-song-...
/* * design.js * Author: <NAME> * Date: March 1, 2011 * * This javascript library contains functionality that is relevant to the * design page in the GenoCAD system. * */ /************************************************************************************* * Global Variables ******************...
import React,{useState,useEffect} from "react"; // @material-ui/core components import {makeStyles} from "@material-ui/core/styles"; import {TextField,FormControl,InputLabel,Popover,Snackbar,Select,MenuItem,CircularProgress,Table,TableHead, TableRow, TableBody, TableCell, TableFooter, Paper, Grid, Icon, AppBar, Tab, ...
import { fillString as stringFill, left as stringLeft } from '../utils/string'; import { isStringValue, cleanString } from '../utils/helper'; import CommandParser from './CommandParser'; import Memory from './Memory'; class Parser { #dataStack; #gotoMarkMemory; #memory; #cb; #lines; /** * Max Count f...
'use strict'; var analytics = require('../lib/analytics'); var isBrowserSupported = require('./shared/supports-venmo'); var browserDetection = require('./shared/browser-detection'); var constants = require('./shared/constants'); var errors = require('./shared/errors'); var querystring = require('../lib/querystring'); ...
'use strict' const glob = require("glob") const fs = require('fs') const yaml = require('js-yaml') const path = require('path') const _ = require('lodash') const mkdirp = require('mkdirp') const rimraf = require('rimraf') const semver = require('semver') const sortObj = require('sort-object') rimraf.sync(path.resolve...
import React, { PureComponent } from 'react'; import { Text, StyleSheet, ScrollView, TouchableOpacity, InteractionManager, ToastAndroid, Platform, BackHandler, FlatList, Animated, Image, LayoutAnimation, View, NetInfo, NativeModules } from 'react-native'; impo...
/* global require, arango, print, db */ 'use strict'; // ///////////////////////////////////////////////////////////////////////////// // @brief ArangoDB Doctor // // @file // // DISCLAIMER // // Copyright 2018 ArangoDB GmbH, Cologne, Germany // // Licensed under the Apache License, Version 2.0 (the "License") // ...
const syncAssets = require('../sync-conflict-handler-assets/syncAssets'); const inquirer = require('inquirer'); const fs = require('fs-extra'); const uuid = require('uuid'); const path = require('path'); const open = require('open'); const TransformPackage = require('graphql-transformer-core'); const { ServiceName: Fun...
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: <NAME>, <NAME>, <NAME>. Dual MIT/BSD license */ /*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */ window.matchMedia = window.matchMedia || (function( doc...
import { Meteor } from 'meteor/meteor'; import { Template } from 'meteor/templating'; import { Tracker } from 'meteor/tracker'; import Providers from '/logic/providers/schema'; import Settings from '/logic/core/settings'; import geoXML3 from './geoxml3'; import MapLabel from '/views/lib/maplabel'; // Subscribe to Prov...
import { parse, Kind, isInputObjectType } from 'graphql'; import { unwrapNamedType, isListTypeField } from './augment/fields'; import { Neo4jTypeFormatted } from './augment/types/types'; import { isRelationshipMutationOutputType, isReflexiveRelationshipOutputType } from './augment/types/relationship/query'; import ...
"use strict" const fs = require('fs'); const path = require('path'); const { performance } = require('perf_hooks'); const assert = require('assert'); const Yadamu = require('./yadamu.js'); const YadamuConstants = require('./yadamuConstants.js'); const YadamuLibrary = require('./yadamuLibrary.js'); const YadamuLogger...
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(generator["throw"]...
'use strict'; var autoprefixer = require('gulp-autoprefixer'); var del = require('del'); var format = require('gulp-clang-format'); var fork = require('child_process').fork; var gulp = require('gulp'); var gulpPlugins = require('gulp-load-plugins')(); var sass = require('gulp-sass'); var shell = require('gulp-shell');...
import GL from '@luma.gl/constants'; import {isWebGL2, assertWebGL2Context, withParameters, log} from '@luma.gl/gltools'; import {global} from 'probe.gl/env'; import Resource from './resource'; import Buffer from './buffer'; import { TEXTURE_FORMATS, DATA_FORMAT_CHANNELS, TYPE_SIZES, isFormatSupported, isLin...
const fs = require('fs'); const fetch = require('isomorphic-fetch'); const Enmap = require('enmap'); const chalk = require('chalk'); const CronJob = require('cron').CronJob; const profileLink = 'https://www.torn.com/profiles.php?XID='; module.exports = (client) => { // Attach public methods to the client. Object...
//V1 TO DO //Work on Diplay Text Design (transparen overlay) //Resize User input boxes //GUI for User input? //TO DO - These require a configuration of the Logic. A potential future project. The code will be made available via Github // Allow users to change the number of decision-making units: // Allow users to cha...
function closetopTabs(me) { var a = $(me).data('trigger'); if ($('.'+a).is(":visible") == true) { $('.'+a).slideToggle(); }else{ $('.toptabs').fadeOut(); $('.'+a).slideToggle(); } } function clickA(me){$(me).find('a')[0].click();} var myStr = ""; function fixcamelcase(me, _case, field){ $('....
const cheerio = require('cheerio'); const htmlparser = require('htmlparser2'); require('../patches/htmlparser2'); const fm = require('fastmatter'); const Promise = require('bluebird'); const slugify = require('@sindresorhus/slugify'); const _ = {}; _.isArray = require('lodash/isArray'); _.cloneDeep = require('lodash/c...
// global vars var $graphic = null; var graphicD3 = null; var pymChild = null; var HOME_DATA_URL = 'home-data.csv'; var STATE_DATA_URL = 'state-data.csv'; var GRAPHIC_DEFAULT_WIDTH = 600; var GRAPHIC_OUTER_PADDING = 22; var GUTTER_WIDTH = 22; var MEDICARE_PATH = 'http://www.medicare.gov/nursinghomecompare/profile.html...
const { ok, equal } = require('assert'); const { isRegExp } = require('util'); const contains = (a, b) => ok((isRegExp(b) ? a.filter(x => b.test(x)) : a.filter(x => x == b)).length); const notContains = (a, b) => ok(!(isRegExp(b) ? a.filter(x => b.test(x)) : a.filter(x => x == b)).length); const empty = (a) => ok...
//格式化数字 function toDecimal(x){ var f = parseFloat(x); if (isNaN(f)) { return '-'; } f = Math.round(x * 10) / 10; var s = f.toString(); var rs = s.indexOf('.'); if (rs == -1) { s += '.0'; } return s; } //时间戳处理 function formatNumber(n) { n = n.toString() return n[1] ? n : '0' + n } //时间格式转换 funct...
var google = google || {}; // instantiated TheatreMapViewModel from app.js var mapManager = mapManager || {}; var ko = ko || {}; var TheatreMapViewModel = TheatreMapViewModel || {}; /** * mapManager is responsible for holding the map, markers data, and * related logic */ var mapManager = (function(self, ko, Theatr...
var camera, scene, renderer; var scale = 4; var rotate_v1_r, rotate_v1_l, rotate_v2_r, rotate_v2_l, rotate_v3_r, rotate_v3_l; var leftArrow, topArrow, rightArrow, downArrow; var camera1, camera2, camera3; var near = 1, far = 1500 * scale; var grey = new THREE.Color("rgb(150, 150, 150)"); var yellow = new THREE.Color("r...
window.onload = function() { if(window.location.pathname=="/"){ setCookie("current_user_query","") googleAutocomplete.autocompleteField("address-input"); initMap(); var user_latitude = getCookie("user_latitude"); var user_longitude = getCookie("user_longitude"); if ((user_latitude !="") && (user_longitu...
const { app, Menu, ipcMain, shell, dialog, Notification, BrowserWindow, systemPreferences, nativeTheme, clipboard } = require('electron'), {join, resolve} = require('path'), {readFile, readFileSync, existsSync, watch} = require(...
var setupselect = document.getElementById('setupselect'); var progCoreCourses = document.getElementById('progCoreCourses'); var progElectiveCourses = document.getElementById('progElectiveCourses'); var class_selection = document.getElementById('class_selection'); var term_selection = document.getElementById('term_selec...
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Link } from 'react-router'; import classnames from 'classnames'; import unzip from 'lodash/unzip'; import chunk from 'lodash/chunk'; import Cookies from 'js-cookie'; import {...
"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...
import { POINTERSTART, POINTEROUT, POINTEROVER, MOVE, END, IF, PREVENT, SUBSCRIBE } from "el/base/Event"; import { Length } from "el/editor/unit/Length"; import { clone } from "el/base/functions/func"; import { mat4, vec3 } from "gl-matrix"; import { Transform } from "el/editor/property-parser/Transform"; import { Tra...
const Gio = imports.gi.Gio const GLib = imports.gi.GLib; const Shell = imports.gi.Shell; const Main = imports.ui.main; const Util = imports.misc.util; const ByteArray = imports.byteArray; const Signals = imports.signals; const Mainloop = imports.mainloop; const ME = imports.misc.extensionUt...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
//============================================================================= // File: bequiesce/examples/01-hello-world/test/cases/hello-world.test.js // Language: Bequiesce // Copyright: <NAME> © 2015 // License: CC-BY-NC-ND 4.0 // Initial date: Sep 12, 2015 //===================================...
/* 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 Unless required by applicable law or agreed to in writing, software distr...
/** * MobileControlsComponent * Virtual game controls for use on mobile devices */ var MobileControlsComponent = IgeEntity.extend({ classId: 'MobileControlsComponent', componentId: 'mobileControls', init: function (entity) { IgeEntity.prototype.init.call(this); var self = this; ...
import axios from "axios"; import { normalizeSouborAttrs, getAdresyProMapuForPoslanec, getCasovaOsaDataForPoslanec, stripHTMLTags } from './utils/functions'; const createFilterSettingsFactory = (nabozenske_vyznani, narodnosti, parlamenty, vysoka_skola) => { // setting the filter validation //////////////...
import latestTime from "./helpers/latestTime"; import { catchRevert } from "./helpers/exceptions"; import { takeSnapshot, increaseTime, revertToSnapshot } from "./helpers/time"; import { setUpPolymathNetwork } from "./helpers/createInstances"; const SecurityToken = artifacts.require("./SecurityToken.sol"); const DataSt...
// coreui stuff import React, { Component, lazy } from "react"; import { CBadge, CButton, CButtonGroup, CCard, CCardBody, CCardFooter, CCardHeader, CCol, CProgress, CRow, CCallout, CDropdown, CDropdownDivider, CDropdownHeader, CDropdownItem, CDropdownMenu, CDropdownToggle, CWidgetDro...
/*jslint browser: true*/ /*global $, console, PIXI, requestAnimFrame*/ // global variables var canvas; var renderer; var stage; var game; var levels = [ { name: 'level1', keys: ['green'] }, { name: 'level2', keys: ['green', 'red'] }, { name: 'level3', keys: ['green', 'red', 'blue'] }, { name: 'le...
const {app, BrowserWindow, BrowserView, ipcMain, Menu, globalShortcut} = require('electron') const { fork , spawn , execSync } = require('child_process'); const fs = require('fs') const path = require('path') let args = process.argv const util = require('./lib/utility.js') let cloneObj = function(obj){ return JSON.p...
const { LogisticRegressionNLU } = require('node-nlp'); async function train() { const classifier = new LogisticRegressionNLU({ language: 'es' }); classifier.add('No me interesa', 'perdidaInteres'); classifier.add('Ya no', 'perdidaInteres'); classifier.add('Ya no me interesa', 'perdida...
/* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2015 <NAME> <<EMAIL>> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT...
"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[k]; })...
$(function () { Cons_movimiento(); }); var lote = "19830906"; var cantidad = 0; var costo = 0; var neto = 0; var almacen_cod = ""; var producto_cod = ""; var producto_des = ""; var alm_origen = "" var alm_destino = ""; var Ped_detalle = []; var reng_num = 0; var index =...
const commandsMap = require('./commandsMap'); const moment = require('moment'); const commands = Object.keys(commandsMap).filter(c=>c!=='list'); const path = require('path'); function renderTagLink(tag,root){ const {tag_name,tag_id} = tag; return `<span class="tagLink"><a href="${root}tag/${tag_id}">${tag_name}</a><...
'use strict'; var gl,//obal Gradient = { color: new Array(256), init: function(){ var min=1e9,max=-1e9,dir=true; this.color[0] = 0; for (var i=1;i<256;i++) { dir = Math.random()>0.25?dir:!dir; var c = this.color[i-1]+(dir?0.1:-0.1)*Math.random(); if (c<min) min=c; if (c>max) max=c; this....
const width = 904; const height = 1414; const defaultPlaybackSpeed = 0.15; const validExtension = "sotnr"; const scrollContainer = document.getElementById('scroll-container'); const replayFiles = $('#replay-files'); const replayAtitle = $('#replay-A-title'); const replayBtitle = $('#replay-B-title'); const selectPlaye...
var defaultTheme = getRandom(4); var today = new Date(); var events = [ { id: 'imwyx6S', name: "Event #2", date: today.getMonth()+1 +'/18/'+today.getFullYear(), type: "event" }, { id: '9jU6g6f', name: "Holiday #1", date: today.getMonth()+1 +'/10/'+today.getFullYear(), type: "holiday" }, { id: '0g5G6ja', nam...
/** * @omiu/table v0.0.6 http://omijs.org * Front End Cross-Frameworks Framework. * By dntzhang https://github.com/dntzhang * Github: https://github.com/Tencent/omi * MIT Licensed. */ import { h, extractClass, tag, WeElement, classNames } from 'omi'; /*! *********************************************************...
// Copyright 2020 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 agreed to in ...
import $ from 'jquery'; import _ from 'underscore'; import videojs from 'video.js'; import {formatMilliseconds, formatTime} from './utils'; /** * VideoJs Range Control Bar */ const Component = videojs.getComponent('Component'); const icons = ` <svg style="position: absolute; width: 0; height: 0;" width="0" height="...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WebAuthnIdentityChip = exports.Web3IdentityChip = exports.IdentityPopover = exports.IdentityChip = exports.GoogleIdentityChip = exports.FingerPrintIdentityChip = void 0; var _material = require("@mui/material"); var _clsx = _inter...
var boolError; var api = { operation: function (type, url, callback){ var xhr= new XMLHttpRequest(); xhr.open(type, getOptions().address + '/api/v1/' + url, true); xhr.timeout=2000; xhr.onreadystatechange=function() { if (xhr.readyState==4) { if(xhr.status === 200 && callback) { ...
/** * # Introduction * PathRoutifier transforms a directory structure into a set of express routes corresponding to a * directory layout. Thus, the directory layout handily reflects the supported RESTful routes. Main * features include: * * - Arbitrary middlewares both globally and per-route * - Route middleware...
let config = { type: Phaser.AUTO, width: 800, height: 600, resolution: window.devicePixelRatio, parent: "phaser-div", physics: { default: "arcade", arcade: { gravity: {}, debug: false, }, }, scene: { preload: preload, create: create, update: update, }, }; let playe...
let mHandlePixi = { data (){ return { img: {width: 282, height: 156}, app: {view:null,stage :null}, start: {x: 10, y: 10}, width: 47, debug: false, fillData: [ [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0...
import alt from 'alt'; import game from 'natives'; const GangController = { balance: 0, storage_rank: 100, weapon_rank: 100, ammo_rank: 100, drugs_rank: 100, money_rank: 100, drugs: [0, 0, 0, 0], drugs_in: [0, 0, 0, 0], drugs_name: ["Марихуана", "МДМА", "Кокаин", "Метамфетамин"], ammo: [0, 0, 0, 0]...
'use strict'; // A pin is one pin of a part. It can be in various states (floating, low, // high) and it's possible to sample the current state (low, high) from it. class Pin { constructor(id, part, state) { this.id = id; this.part = part; this.state = state ? state : 'floating'; this.net = null; ...
/*+*********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Dev...
/* Manages the creation of inspectors and dispatch of events to proper inspector. */ function InspectorsManager($container, agent) { var self = this; self._agent = agent; self._$container = $container self._$selector = null; self._selectizeName = null; // param name -> ParamPicker instance ...
import React, { useState, useEffect, useRef } from "react"; import { useParams, withRouter } from 'react-router-dom' import "./ArtistDetail.less"; import HTTPUtils from "@/HTTPUtils/HTTPUtils"; import SubPng from "@/images/NewestSong/sub.png"; import NoShoucangPng from "@/images/Playlist/noshoucang.png"; import Downloa...
function humanize(num, size, units) { var unit; for (unit = units.pop(); units.length && num >= size; unit = units.pop()) { num /= size; } return [num, unit]; } // Following the IEC naming convention function humanizeIEC(num) { var ret = humanize(num, 1024, ["TiB", "GiB", "MiB", "KiB", ...
function $(id){return document.getElementById(id)} var Diagrammer = { objects : { typical : [ { name : 'Квадрат', shape : 'rectangle', caption : 'Квадрат', icon : 'fa-square-o', id : 'square', width : 100, height : 100 }, { name : 'Коло', shape : 'circl...
/** * Synthy.js v0.2.0 * * A polyphonic customizable synthesizer * @author <NAME> - Monday, February 18, 2013 * * MIT Licensed */ var Synthy = (function(Synthy) { Synthy.Emitter = function() {}; Synthy.Emitter.prototype = { on : function(event, listener, context) { var events = event.split(" "); ...
/** * dat-guiVR Javascript Controller Library for VR * https://github.com/dataarts/dat.guiVR * * Copyright 2016 Data Arts Team, Google 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 * *...
var today = new Date(); var animDuration =1000, min = 0, max=100; function getMaxTrades(data) { return data.reduce((max, p) => p.trades > max ? p.trades : max, data[0].trades); } d3.selection.prototype.moveToFront = function() { return this.each(function(){ this.parentNode.appendChild(this); }); }...
"use strict"; Socket.topologyChanged = function (shouldRenderVolumes) { if (shouldRenderVolumes) renderVolumes(); reRenderZones(); updateControllerState(); updateCurrentStatus(); } Socket.transportStateChanged = function (player) { reRenderZones(); updateControllerState(); updateCurrentStatus(); ...
var ANNUAL_GOALS = { "2018" : { retime_goal: 250, travel_time_reduction: .05, stops_reduction: 0, }, "2017" : { retime_goal: 225, travel_time_reduction: .05, stops_reduction: 3, }, "2016" : { retime_goal: 200, travel_time_red...
const db = wx.cloud.database() const _ = db.command const app = getApp() const templateIds = { //viewList_id: 'V09GAzDTujaHcRj78xkwlsVtWM9H0iZ0GK2OwU7ZV5M', viewList_id: 'subAzhXR7X1gWqXc759FsAo7Pi_j35vaxF3zqDbFdmc', //新成员加入通知 newMembersToGroup_id: 'mBNg9kaQNWvgPPY9uraJix1D43Fvci8EoqwaOuSEg6E' } function vibra...
"use strict"; // import "../css/sample.css"; import sample from "./doc/sample.js"; import doc from "./doc.js"; import $ from "./component.js"; const db_menu = [ { type: "menu", title: "Getting started", item: [{ title: "Introduction", source: doc.intro }], }, { type: "menu", title: "Layout", item: [ ...
var src = false; var tab = " "; var option = {}; var syntax = {}; var xmode = "script"; var prereg = true; var jsonmode = false; var errorAt = function(msg, line, from){console.error(msg, line, from)}; var warningAt = function(msg, line, from){console.warn(msg, line, from)}; function F() {} if (typeof Object.crea...
/* eslint-disable graphql/template-strings */ import React, { Fragment } from 'react'; import PropTypes from 'prop-types'; import { graphql, withApollo } from '@apollo/client/react/hoc'; import dayjs from 'dayjs'; import { cloneDeep, debounce, get, includes, sortBy, uniqBy, update } from 'lodash'; import memoizeOne fro...
const inquirer = require('inquirer'); const fs = require('fs') const markdown = require('./utils/generateMarkdown') // array of questions for user const questions = [{ name: 'title', type: 'input', message: 'title?' }, { name: 'description', type: 'input', message: 'description?' }, { name...
'use strict'; const Point = require('point-geometry'); const Bucket = require('../bucket'); const EXTENT = require('../extent'); const Anchor = require('../../symbol/anchor'); const getAnchors = require('../../symbol/get_anchors'); const resolveTokens = require('../../util/token'); const Quads = require('../../symbol...
import { GPUIndexFormat, GPUTextureFormat, GPUStoreOp } from './constants.js'; import WebGPUObjects from './WebGPUObjects.js'; import WebGPUAttributes from './WebGPUAttributes.js'; import WebGPUGeometries from './WebGPUGeometries.js'; import WebGPUInfo from './WebGPUInfo.js'; import WebGPUProperties from './WebGPUPrope...
/* * Copyright 2018 The CodeWorld Authors. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://w...content-available-to-author-only...e.org/licenses/LIC...
/* globals webkitAudioContext */ /* eslint-disable new-cap */ /* eslint-disable no-console */ /* eslint-disable no-await-in-loop */ 'use strict'; const sinon = require('sinon'); const { EventEmitter } = require('events'); const { capitalize } = require('../../lib/util'); const { isSafari } = require('./guessbrowser');...
import Immutable from 'immutable'; import {expandTreePath, expandTreeSubpath, getItemByPath, fixPathsInTree} from '../utils/treeUtils'; import {defaultRuleProperties, defaultGroupProperties, defaultOperator, defaultOperatorForFunction, defaultOperatorOptions, defaultRoot} from '../utils/defaultUtils'; import {getFir...
import { destroy, detach, getEnv, getParent, getRoot, isAlive, onSnapshot, types } from "mobx-state-tree"; import Constants from "../core/Constants"; import { Hotkey } from "../core/Hotkey"; import RegionStore from "./RegionStore"; import Registry from "../core/Registry"; import RelationStore from "./RelationStore"; i...
String.prototype.capitalize = function () { return this.replace(/(^|\s)([a-z])/g, function (m, p1, p2) { return p1 + p2.toUpperCase(); }); }; var RTCPeerConnection = null; var getUserMedia = null; var attachMediaStream = null; var reattachMediaStream = null; var webrtcDetectedBrowser = null; var webrt...
import PropTypes from 'prop-types'; export const PROGRESS = { CONNECTING: 0, CONNECTED: 1, OBJECTS_LOADED: 2, READY: 3 }; class Connection { constructor(props) { props = props || {}; this.props = props; this.autoSubscribes = this.props.autoSubscribes || []; this....
const axios = require("axios"); const Three = require("three"); const fs = require("fs"); const path = require("path"); const jsdom = require("jsdom"); const {VirtualConsole} = require("jsdom"); const {JSDOM} = jsdom; const idChanges = { 3724: 1618, 3725: 1617, 3726: 1619, 3727: 1620, 3729: 1621, ...
/* * Copyright(c) 2017 Microsoft Corporation. All rights reserved. * * This code is licensed under the MIT License (MIT). * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without rest...
const lS = localStorage; var addbatchServerURL = lS.getItem('serverAddress'); const shortid = require('shortid'); const fs = require('fs'); const path = require('path'); const uniqueTempDir = require('unique-temp-dir'); const exec = require('child_process').exec; var count = 1; var ticketsValues = []; var log4...
var healthDeclarationParams = { Psychiartic : '', Epilepsy : '', Migraine : '', Hysteria : '', Allergic_Rhinitis : '', Asthma : '', Tuberculosis : '', Hypertension : '', Diabetes_Mellitus : '', Heart_Diseases : '', Thyroid_Disease : '', Kidney_Diseases : '', Gastric : '', HIV : '', cancer:'', Venereal_D...
var play=0; // Start and Stop game trigger //Pacman(red dot previously in game) var redX=705; // Left of red ball var redY=405; // Top of red ball var redRadius=20; var redWidth=redRadius; var redHeight=redRadius; // Always keep width and height same var currentScore=0; var bestScore=0; // in Cookie const gameOverShow...
/** * @file This is the central application logic and window management src file. * This is the central render process main window JS, and has access to * the DOM and all node abilities. **/ /*globals document, window, $, _, toastr, paper, Promise */ "use strict"; // Add Promise done polyfill. "function"!=typeof...
$(document).ready(function(){ $('#barraMaquinas').attr('aria-expanded','true'); $('#maquinas').removeClass(); $('#maquinas').addClass('subMenu1 collapse in'); $('#procedimientos').removeClass(); $('#procedimientos').addClass('subMenu2 collapse in'); $('#movimientos').removeClass(); $('#movimientos').addCl...
import _ from 'underscore'; import html from 'html/Client/Games/BusGame/Win.html!text'; //win screen html import gameHtml from 'html/Client/Games/BusGame/Game.html!text'; //game itself html export default { Start, GetImagesFromFolder, Animate} //export functions for use outside of this script /* ---------------------...
import * as Kit from "./kit"; import { Tag, symbol, invariant } from "./kit"; import { recalcEff } from "./propagate"; import * as Ctrl from "./control"; import * as Bind from "./bind"; import * as Block from "./block"; import * as Policy from "./policy"; export const repeatId = Kit.sysId("repeat"); export const forPa...
// 初始化 var createElement = document.createElement.bind (document); var H = { scriptName: 'CUWCL4C', scriptHome: 'https://greasyfork.org/zh-CN/scripts/2600', reportUrl: 'https://greasyfork.org/forum/post/discussion?Discussion/ScriptID=2600', isFrame: (function () { try { return unsafeWindow.top != unsafeWindo...
const sequelize = require('./entityes/index') const relation = require('./enuns/relation') const _ = require('lodash') const utilModel = require('../extras/utils-model') const utils = require('../../../helpers/_utils/utils') const Op = sequelize.Sequelize.Op const async = require('async') let conexao = sequelize.cone...
/* * Author: <NAME> * Website: http://digitalzoomstudio.net/ * Portfolio: http://codecanyon.net/user/ZoomIt/portfolio * * Version: 1.32 * */ (function($) { $.fn.dzsparallaxer = function(o) { var defaults = { settings_mode : 'scroll' // scroll or mouse or mouse_body , mod...
//import { fromJS, Set, List } from 'immutable'; import { call, put, select, fork, takeLatest } from 'redux-saga/effects'; import { api, auth } from '@blurtfoundation/blurtjs'; import { PrivateKey, Signature, hash, } from '@blurtfoundation/blurtjs/lib/auth/ecc'; import { accountAuthLookup } from 'app/redux...
/* * @Author: Rhymedys * @Date: 2017-01-31 17:40:52 * @Last Modified by: Rhymedys * @Last Modified time: 2017-05-28 15:29:06 */ 'use strict' import VueResource from 'vue-resource' import commonUtils from '../utils/CommonUtils' import { LOCAL_STORAGE_TOKEN } from '../utils/LocalStorage' import Vue from 'vu...
// framework7 var $$ = Dom7; app = new Framework7({ id: "ambulancetracker", root: "#app", theme: "md", routes, }); window.matchMedia("(display-mode: standalone)").addEventListener("change", (evt) => { location.reload(); // bhuilt in html method to reload page }); // firebase init var firebaseConfig ...
const ArrayKeyedMap = require('array-keyed-map') const deepObjectDiff = require('deep-object-diff').detailedDiff const rootOfProxy = new WeakMap() const pathOfProxy = new WeakMap() const proxy = (obj, rootArg, path=[]) => { // Primitive values can't have properties, so need no wrapper. if (!isObject(obj)) return ...