text
stringlengths
5.97k
41.2k
/*! * Copyright 2014 Apereo Foundation (AF) Licensed under the * Educational Community 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://opensource.org/licenses/ECL-2.0 * * Unless required by applicab...
/** * class Panino * * Handles documentation tree. **/ "use strict"; var Fs = require("fs"); var Path = require("path"); // Node < 0.8 shims if (!Fs.exists) { Fs.exists = Path.exists; Fs.existsSync = Path.existsSync; } // 3rd-party var _ = require("underscore"); var Async = require("async"); var Wrench =...
/** * Contains the business logic for constructing responses */ const _ = require('lodash'); const accounting = require('accounting'); const logger = require('@the-brain-trust/logger'); const moment = require('moment'); const number = require('../lib/number'); const parseString = require('xml2js').parseString; const ...
//define the grid objects class GridSquare { constructor(position, height, occupant, adjacencies) { this.position = position; this.height = height; this.occupant = occupant; this.adjacencies = adjacencies; } increaseHeight() { this.height++; } occupiedByPlayer1() { this.occupant = "...
/** * @license * Copyright 2020 <NAME> * SPDX-License-Identifier: BSD-3-Clause */ /** * @fileoverview Accessibility functions, forked from https://github.com/google/blockly/commit/21763b7e00fbfe8010595382bf196410cd30844e * @author <EMAIL> (<NAME>) */ // Custom requires for the playground. goog.require('Blockly...
const log = require("./log.js").log; const Ban = require("./ban.js"); const Utils = require("./utils.js"); const io = require('./index.js').io; const settings = require("./settings.json"); const sanitize = require('sanitize-html'); let roomsPublic = []; let rooms = {}; let usersAll = []; exports.beat = function() { ...
/** * Copyright 2018 <NAME> (<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
let history = sendSync('getbird'); let listIdName = document.getElementById('list'); let historyIds = Object.keys(history); /* Geçmiş Listesini Filtrele Tarihlere Göre Süz */ function range(selectedRange) { const current = new Date(); const day = current.getDate(); const month = current.getMonth(); const year = curre...
var bool_all_ok = false; var alert_forgot_script = '<strong>Oh snap!</strong> Did you perhaps forget to add this javascript code ? Reload this page once you\'re ready.'; $(document).ready(function() { $('#alertMsg').html(alert_forgot_script); if (typeof(Wpb_Reps) !== 'undefined' && typeof(Wpb_Reps.vars) !== 'undef...
// TODO fix this file so that it no longer needs to disable these rules /* eslint-disable no-use-before-define */ /* eslint-disable global-require */ /* eslint-disable import/no-dynamic-require */ const fg = require('fast-glob'); const fs = require('fs'); const chai = require('chai'); const path = require('path'); con...
/*------ 扩展对象方法的函数 ------*/ Object.extend = function(destination,source){ for (var property in source){ destination[property] = source[property]; } return destination; } /*-- 扩展document对象的方法getElementsByClassName函数 --*/ Object.extend(document,{ getElementsByClassNam...
var v0 = (function (v1, v2, v3){ "use strict"; var v4 = v3(305), v5 = v3(304), v6 = v3(206), v7 = v3(1759), v8 = v3(418), v9 = v3(1758); (v1.exports) = ({isAndroid : v4, isChrome : v5, isIos : v6, isIosSafari : v7, isSamsungBrowser : v8, isMobileFirefox : v9}); }); var v1 = (function (){ var v1 = []; try{ Object.define...
/** * Collection of extensions related to events. * * @module Extensions * * @author <NAME> * * @since 2021-03-20 * * parseZoneGroupToArray copied from sonos-plus */ 'use strict' const { PACKAGE_PREFIX } = require('./Globals.js') const { isTruthyPropertyStringNotEmpty, isTruthyProperty, isTruthyStringNot...
var Rect = require('pex-geom/Rect'); var rgb2hex = require('rgb-hex'); function floatRgb2Hex(rgb) { return rgb2hex(Math.floor(rgb[0] * 255), Math.floor(rgb[1] * 255), Math.floor(rgb[2] * 255)); } /** * [HTMLCanvasRenderer description] * @param {[type]} ctx [description] * @param {[type]} width [description...
const fs = require('fs'); const date = require('date-and-time'); const nunjucks = require('nunjucks'); const { dirname, basename } = require('path'); //const createSchedule = require('./src/schedule/script/create-schedule'); //const createWorkshops = require('./src/schedule/script/create-workshops'); const createCalen...
const express = require('express'); const app = express(); const bodyParser = require('body-parser'); const { HLTV } = require('hltv'); const https = require("https"); const moment = require("moment"); require('moment-timezone'); var recentUpdates = {}; var recentLogs = {}; var connectedScorebots = []; var requestedSc...
function WalletCreationViewModel() { var self = this; self.shown = ko.observable(false); self.generatedPassphrase = ko.observable(''); self.passphraseSaved = ko.observable(false); self.step = ko.observable(1); self.quickAccessPassword = ko.observable(''); self.showQuickAccessFrame = ko.observable(false...
"use strict"; /* * Created with @iobroker/create-adapter v1.15.1 */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (...
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import {assert, assertNotReached} from 'chrome://resources/js/assert.m.js'; import {EventTracker} from 'chrome://resources/js/event_tracker.m.js'; import ...
import * as R from 'ramda'; import passport from 'passport/lib'; import GitHub from 'github-api'; import jwtDecode from 'jwt-decode'; import FacebookStrategy from 'passport-facebook'; import GithubStrategy from 'passport-github'; import LocalStrategy from 'passport-local'; import LdapStrategy from 'passport-ldapauth'; ...
/** * Implementation of the data synchronisation protocol that brings a local and a remote document * into the same state. This is typically used when two nodes have been disconnected for some time, * and need to exchange any changes that happened while they were disconnected. The two nodes that * are syncing could...
"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...
"use strict"; /** * A tool for for running and testing example scenes. * @module Demo */ const Demo = module.exports = {}; const Gui = require('Gui'); const Inspector = require('Inspector'); const ToolsCommon = require('./Common'); const Matter = require('matter-js'); const Common = Matter.Common; Demo._isIOS =...
'use strict'; var debug = require('debug')('eBay:eBayResource'); var http = require('http'); var https = require('https'); var objectAssign = require('object-assign'); var path = require('path'); var xml2js = require('xml2js'); var qs = require('qs'); var iconv = require('iconv-lite'); var utils = require('./utils');...
function createElement(editor, tagName, className, text, parent) { var element = editor.document.createElement(tagName); if(className){ var classNames = className.split(' '); for (var idx in classNames) { element.addClass(classNames[idx]); } } if(text) { element.appendHtml(text); } if(...
import React, { useState, useRef, useEffect, Children, Fragment, cloneElement } from 'react'; import { useId } from '@reach/auto-id'; import { useForkedRef, checkStyles, getOwnerDocument, makeId, wrapEvent, forwardRefWithAs, warning, getDocumentDimensions } from '@reach/utils'; import Portal from '@reach/portal'; impor...
// ==UserScript== // @name s/your reality/my own/ // @namespace https://github.com/roukaour/ // @description I reject your reality and substitute my own! // @include * // @version 1.1 // @grant none // @run-at document-end // ==/UserScript== function handleText(textNode) { var v...
import $ from '../../core/renderer'; import { extend } from '../../core/utils/extend'; import { isDefined, isFunction } from '../../core/utils/type'; import { getPublicElement } from '../../core/element'; import { executeAsync, noop, ensureDefined } from '../../core/utils/common'; import registerComponent from '../../c...
import { Bank } from './afx'; import { $ } from '../lib/$'; import track from '../lib/track-down'; import drop from '../lib/dnd'; import save from '../lib/save.js'; import debounce from 'lodash.debounce'; /** * @typedef { import("./afx").Effect } Effect * @typedef { import("./afx").Bank } Bank */ let emptyBanks = ...
'use strict'; const merge = require('lodash.merge'); const defaultFields = require('./fields'); const bitSyntax = require('ut-bitsyntax'); const template = require('ut-function.template'); const maskSymbol = Buffer.from('*', 'ascii').toString('hex'); function convertError(msg) { return Object.keys(msg).reduce((pre...
// 倒计时 var djsTime; function djs(time){ if(time > 1){ $("#baoming .getCode").addClass("false").html(time+"s后重新获取"); time--; setTimeout(function(){ djsTime = djs(time); },1000) }else{ getImgCode(); $("#baoming .getCode").removeClass("false").html("获取验证码...
var sum_allocated, sum_claimed, allocated_percent, claimed_percent; var total_supply; var contract_address; var BigNumber = require("bignumber.js"); // const Web3 = require("web3"); // const ropsten_address = "0xaa663579e3241d569ca3e8e60d2539456bdafd8d"; const ropsten_address = "0x75E2B469D92e90AeCa511BE20384AF...
// 0x07005850 - 0x07005868 import { gdSPDefLights1, gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPLight, gsSPVertex, gsSP2Triangles, gsSP1Triangle, gsSPEndDisplayList, gsDPPipeSync, gsDPSetCombineMode, gsSPClearGeometryMode, gsDPSetTile, gsSPTexture, gsDPTileSync, gsDPSetTileSize, gsSPDisplayLi...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * Responsible for showing banners in the file list. * @param {DirectoryModel} directoryModel The model. * @param {VolumeManager} volumeManager ...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ const Cookies = require("cookies"); const crypto = require("crypto"); const util = require("util"); const COOKI...
import { createGlobalStyle } from 'styled-components' import PrismStyles from './PrismStyles' const GlobalStyles = createGlobalStyle` *, *::before, *::after { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--scrollbar-bg) transparent; } /* Scaffolding */ html { font-f...
var genericSlackFunction = function(options) { options = options || {}; return endpoint.__request(options); }; var slackFunction = function(path, options) { options = options || {}; return genericSlackFunction({ path: path, params: options }); }; var downloadFile = function(opti...
// === Página de receitas === //Guarda na variável recipes todos so elementos que tiverem a classe .recipe const recipes = document.querySelectorAll('.recipe'); //Percorre todos od elementos de recipes for(let recipe of recipes) { //Fica ouvindo o click nos elementos dentro do recipe recipe.addEventListener("click"...
import React from 'react' import ReactDOM from 'react-dom' import { connect } from 'react-redux' import c from 'classnames' import _ from 'lodash' import fc from 'turf-featurecollection' import union from 'turf-union' import buffer from 'turf-buffer' import bbox from 'turf-bbox-polygon' import inside from 'turf-inside'...
/* Test bangle.js input interface */ var v_mode_debug = 0; //1=yes, 0=no (to disable console msg) if (v_mode_debug == 1) console.log("Debug mode enabled"); else console.log("Debug mode disabled"); var v_model = process.env.BOARD; if (v_mode_debug == 1) console.log("device=" + v_model); var v_str_version = 'v0.06'; //...
/** * @author <NAME> (https://crlfe.ca) * @license MIT */ import { webglHelper } from "./webgl-helper.js"; const VERTEX_SHADER = ` precision mediump float; attribute vec2 aPosition; attribute vec3 aOuterArc; attribute vec3 aInnerArc; attribute vec2 aFlowVelocity; varying vec2 vPosition; ...
/** * @license Copyright 2018 The Lighthouse 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://www.apache.org/licenses/LICENSE-2.0 * Unless required by applica...
/* * @Description: * @Author: gmm * @Date: 2019-08-21 14:44:31 * @其他: */ import { getUserInfoAdmin } from './../libs/util.js' import {OMPayInvoiceTypeStr,OMTypeListStr,OMstatusStr,OMst,getInvoiceStatusLabel,getReceiptStatusLabel,lixi} from './../libs/allStatus.js' const global = { } global.testglobal = function...
/** * Created by krause on 2014-05-15. */ var headList = []; var headPrefix = "pHeadList_" function refreshInfo(pid, person) { headList.forEach(function(sel) { sel.remove(); }); headList = []; var sel = d3.select("#pHeadList"); var hasId = false; var id = pid; var selId = null; function addIte...
import React from 'react' export let queries = [] const cancelledError = {} export let globalStateListeners = [] let uid = 0 const configContext = React.createContext() // Focus revalidate let eventsBinded = false if (typeof window !== 'undefined' && !eventsBinded) { const revalidate = () => { const { refetchAl...
import './styl/index.styl'; import { marked } from 'marked'; import katex from 'katex'; import "katex/dist/katex.min.css" import * as indentation from 'indent-textarea'; import hljs from 'highlight.js'; import 'highlight.js/styles/a11y-dark.css'; import { Octokit } from "@octokit/core"; import emoji_data from './em...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _utils = require('./lib/utils'); var _TableCell = require('...
/** * このファイルは、fujihiro_sn氏による * http://codepen.io/fujihiro_sn/pen/LGVKgx * (MITライセンス)をもとに作成したものです。 * * fujihiro_sn氏によるQiita記事:「d3.j3で日本語配列キーボードを作る方法」 * http://qiita.com/fujihiro_sn/items/00903195b4d1c8bafc58 */ var d3 = require('d3'); // キーボードを生成するために必要な情報を定義する var keymaps = { jp: { codes: [// キーコー...
// =================================================================== // Author: <NAME> <<EMAIL>> // WWW: http://www.mattkruse.com/javascript/date/source.html // // NOTICE: You may use this code for any purpose, commercial or // private, without any further permission from the author. You may // remove this notice fro...
"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]; })...
'use strict'; const $ = require('jquery'); const regexQuote = require('./regexquote'); const DJNesting = require('./utils'); const grappelli = require('grappelli'); var pluginName = 'djangoFormset'; class DjangoFormset { constructor(inline) { this.opts = { emptyClass: 'empty-form grp-empty-fo...
'use strict'; /* global document, context */ var d3 = require('d3'); var $ = require('jquery'); var _ = require('underscore'); var chroma = require('chroma-js'); var moment = require('moment'); var dropdown = require('../modules/dropdowns'); var coverageEndDate = require('../templates/coverageEndDate.hbs'); var fip...
var i2c = require('i2c'); var Oled = function(opts) { if (opts == null) { opts = {} } this.HEIGHT = opts.height || 32; this.WIDTH = opts.width || 128; this.ADDRESS = opts.address || 0x3C; this.DEVICE = opts.device || '/dev/i2c-1'; this.MICROVIEW = opts.microview || false; // create command buffe...
import mapToZero from './mapToZero'; import stripStyle from './stripStyle'; import stepper from './stepper'; import mergeDiff from './mergeDiff'; import defaultNow from 'performance-now'; import defaultRaf from 'raf'; import shouldStopAnimation from './shouldStopAnimation'; import {Component, createElement} from 'rax'...
var spSketchImg; var spRefereneImg; var spResultImg; var spColorImg; var spHintNode; var spBTN; var spLAB; var fileInputForSketch; var fileInputForReferene; var mousePosition; var mouseInReference = false; var loaded = false; var getMouseDown = false; var preMouseInRef = false; var selectingColor = false; var paint...
import React, {PureComponent} from 'react'; import {connect} from 'dva'; import { Input, Card, Badge, Row, Col, Button, Tag, Spin, Divider } from 'antd'; import round from 'lodash/round'; import ceil from 'lodash/ceil'; import moment from 'moment'; import PageHeaderLayout from '../../../layouts/PageHe...
var demo_canvases = document.getElementsByClassName("demo-canvas"); var score_elems = document.getElementsByClassName("score"); var hiscore_elems = document.getElementsByClassName("hiscore"); var latency_inputs = document.getElementsByClassName("latency-input"); var latency_indicators = document.getElementsByClassName(...
// WALLET let web3 = null; async function onConnect(info) { console.log('onConnect', info); // info.chainId window.DaVinci.setNetwork(info.chainId); //loadWallet(); } async function onDisconnect(info) { console.log('onDisconnect', info) if(window.DaVinci.wallet.isOneWallet){ window.DaVinci.wallet....
/* * Copyright (c) 2014, <NAME> All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and t...
import React from 'react'; import { Link } from 'react-router-dom'; import cookie from 'react-cookie'; import PropTypes from 'prop-types'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import Dialo...
const $canvas = document.querySelector("canvas"); const $container = document.querySelector(".container"); const $scoreboard = document.querySelector(".scoreboard"); const ctx = $canvas.getContext("2d"); const $lifeBar = document.querySelector(".bar"); const $record = document.querySelector(".record-number"); const $ke...
"use strict"; //ECMAScript v6.5.0 //Supporting Homework #4, refactored from HW#1 //25-SEP-2016 //<NAME>, University of Colorado Denver //<EMAIL> var log = require('winston'); var Readable = require('stream').Readable; log.level = "info"; var Action = { ERROR: 8, //1000 MOVE_APPEND: 5, //0110 MOVE_NOA...
#!/usr/bin/env node /* eslint-disable no-throw-literal */ /* eslint-disable no-await-in-loop */ 'use strict'; // windows: running "xible x" in this folder will invoke WSH, not node. /* global WScript */ if (typeof WScript !== 'undefined') { WScript.echo( 'xiblepm does not work when run\n' + 'with the Windo...
/*jslint node: true */ 'use strict'; var helpers = require('../lib/helpers.js'), measurement = require('../lib/measurement.js'), Dimension = require('../lib/dimension.js'); var Quantity = (function () { function QuantityImpl(paramA, paramB) { if (!paramB && helpers.isString(paramA)) { constructFromJson(this, ...
'use strict'; /* global document, navigator, window, cancelAnimationFrame, requestAnimationFrame, THREE */ const throttle = require('o-viewport/src/utils').throttle; const spriteScale = 0.05; const DEG2RAD = Math.PI / 180.0; const CameraInteractivityWorld = require('./camera-interactivity.js'); let rotWorldMatrix; let...
/** @file Provides code to interact with the room page. */ /** * A global variable which maps ids to their corresponding threads. * @type {Map<number, Thread>} */ let threads = new Map(); /** The logical representation of a message (as opposed to HTML). */ class Message { /** * Creates a message. * @...
var ModulationController = require('chibitronics-ltc-modulate'); var CodeMirror = require('codemirror'); require('codemirror/mode/clike/clike'); require('codemirror/addon/lint/lint'); require('./chibi-lint.js'); var editor; var codeobj = {}; var modController; var autosaveGeneration = null; var isIE11 = /Trident.*rv[...
"use strict" // Get our tools. const joi = require("joi") const extend = require("util")._extend const waterline_joi = require("waterline-joi") const utils = require("./utils") const Waterline_JSONAPI = require("waterline-jsonapi") // Used a lot below. const CN_NAME = "application/vnd.api+json" class Multicolour_Hap...
var wxs3 = wxs3 || {}; d3.ns.prefix.x3da="http://www.web3d.org/specifications/x3d-namespace"; d3.ns.prefix.x3d="http://www.web3d.org/specifications/x3d-namespace"; var counter = 0; var light1; var map; //(function (ns) { var render = function(ns, divid, config){ 'use strict'; var loadlist = config.loadlist; ...
//common.js is a collection of commonly used functions by the main app.js and all submodules. var pg = require('pg'), querystring = require('querystring'), http = require("http"), settings = require("./settings/settings"), fs = require("fs"), shortid = require("shortid"), mercator = require('./u...
var map; var tdt = {}; //轨迹数据 tdt.trackData = { 'friend1': [ [106.549 ,29.560], [112.474, 34.554], [126.187, 41.156] ], 'friend2': [ [113.602, 38.977], [103.0003, 30.831], [107.759, 29.3259] ], 'friend3': [ [118.1214, 24.47001367120], [...
var filters = document.querySelector('.filters'); class gaussianKernel { constructor(sigma = 1, w = 13, h) { this.w = w this.h = h || w //console.log('making kernel', sigma, this.w, 'x', this.h) this.kern = new Float32Array(this.w * this.h) this.cx = Math.floor(this.w / 2);...
var gui = require('nw.gui'); //for debugging... // gui.Window.get().showDevTools(); var fs = require('fs'); var path = require('path'); var pack = require('./package.json'); var fdialogs = require('node-webkit-fdialogs'); var uuid = require('uuid-v4'); var jwt = require('jsonwebtoken'); var APP_VERSION = pack.version...
/// <reference path='../ui/controls/formbase.ts'/> /// <reference path='../scripts/authoring.ts'/> /// <reference path='../scripts/settings.ts'/> /// <reference path='../scripts/typings/jquery/jquery.d.ts'/> /// <reference path='../scripts/media.ts'/> /// <reference path='../ui/media/skydrive-mediapicker.ts'/> var __ex...
function providerInvoke(networkToCall, contract_scripthash, neo, gas, mynetfee, neonJSParams){ checkProviderNetwork(networkToCall); const argConversion = { 7:'String' , 2:'Integer', 16:'Array', 5:'ByteArray', //5:'Address' //1:'Boolean', //3:'Hash160', //4:'Hash256', } let tx = { scriptHash: contr...
/* page: Kiem ke kho url: quan-ly-kho/kiem-ke-kho * */ import React, { Component } from 'react'; import { createStructuredSelector } from 'reselect'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { Form } from 'formik'; import * as PropTypes from 'prop-types'; import injectSaga from 'ut...
const prefs = require("./prefs"); const electron = require("electron"); const window = require("./window"); const menu = require("./menu"); const touchbar = require("./touchbar"); const path = require("path"); const docs = {}; let last_win_pos; const darwin = (process.platform == "darwin"); const win32 = (process.platf...
const path = require('path') const fs = require('fs-extra') const multer = require('multer') const getUuid = require('uuid/v4') const axios = require('axios') const config = require('./config') const Utils = require('./utils') const DiskManager = require('./diskManager') const { logger: genericLogger } = require('./lo...
const colors = new Set([ 'indian red', 'crimson', 'lightpink', 'lightpink 1', 'lightpink 2', 'lightpink 3', 'lightpink 4', 'pink', 'pink 1', 'pink 2', 'pink 3', 'pink 4', 'palevioletred', 'palevioletred 1', 'palevioletred 2', 'palevioletred 3', 'palevioletred 4', 'lavenderblush 1', ...
export class CanvarDrawer { constructor() { this.reset(); } reset() { CanvarDrawer.clearMemoryState(); this.selectColorIndex = 0; } static clearMemoryState() { $('canvas').removeLayers(); $('canvas').clearCanvas(); } drawMemoryState(data) { //一度全て削除する this.reset(); $.jC...
/* global L */ import { FrameView } from '../../../components/map/labMap/frame.module.js'; import LabActions from '_redux/actions/lab-actions'; import NodeActions from '_redux/actions/node-actions'; class LabAnalysisController { constructor( $ngRedux, $scope, $rootScope, $state, $timeout, $element, $window...
import React, { Component } from 'react'; import { fabric } from 'fabric'; import { GlobalContext } from '../config/global'; import UtilsCanvas from '../utils/UtilsCanvas'; import UtilsObject from '../utils/UtilsObject'; import Exports from './Exports'; import GlobalEvents from '../event/GlobalEvents'; class Canvas ex...
/**************** GLOBAL VARIABLES ************************/ /* BUTTONS */ let playButton = document.getElementById("play-btn"); // main user interface button for game let answerButton = document.getElementById("answer-btn"); let chQuestion = document.getElementById("ch-question"); // challenge question /* DISPLAY ...
/*swanalekha starts here*/ var pattern=null; var tabCount=1; function bindSwanalekha(widget){ if(widget.aBound){ widget.aBound=false; disable(); return; } var A={ a:'அ', A:'ஆ', i:'இ', I:'ஈ', u:'உ', U:'ஊ', e:'எ', E:'ஏ', o:'ஒ', O:'ஓ', q:'ஃ', aa:'ஆ', ii:'ஈ', uu:'ஊ', ee:'ஏ', oo:'ஓ', ai:'ஐ', au:'ஔ', k:'க்', ka:'க', k...
#!/usr/bin/env node var package = require('./package.json'); var fs = require('fs-extended'); var path = require('path'); var _ = require('underscore'); var program = require('commander'); var inquirer = require('inquirer'); var prompt = require('prompt'); var ga = require('universal-analytics')(package.ua); var chil...
import React from 'react'; import { translate } from '../../translate/translate'; import LoginSettingsModal from '../dashboard/loginSettingsModal/loginSettingsModal'; import ZcparamsFetchModal from '../dashboard/zcparamsFetchModal/zcparamsFetchModal'; import QRModal from '../dashboard/qrModal/qrModal'; import Select fr...
document.getElementById("SigOut").addEventListener("click", function sigOut(){ firebase.auth().signOut().then(() => { location.href= "index.html" }).catch((error) => { console.log(error); }); }) setTimeout(() => { firebase.auth().signOut().then(() => { location.href= "index.html" }).catch...
import CustomFeatureControl from 'components/AnalysisPanel/CustomFeatureControl'; import CompositionPieChart from 'components/AnalysisPanel/CompositionPieChart'; import AnalysisTypeSelect from 'components/AnalysisPanel/AnalysisTypeSelect'; import TimeSeriesChart from 'components/AnalysisPanel/TimeSeriesChart'; import R...
/* * Copyright 2012 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
var truee = false; var botaoCalcular = document.getElementById("botaoCalcular"); var botaoCalcular2 = document.getElementById("botaoCalcular2"); var botaoCalcular1 = document.getElementById("botaoCalcular1"); var inputCalculadora = document.getElementById("inputCalculadora"); var exibidor = document.getElementById("exi...
"use strict"; import tippy from "tippy.js"; import swal from "sweetalert2"; import { library, dom } from "@fortawesome/fontawesome-svg-core"; import { faSpinner, faGlobe, faMapMarkerAlt, faExclamationTriangle, faArrowAltCircleDown, faArrowAltCircleUp, faBan, faSignal, faLongArrowAltDown, faLongArrowAltUp, faExtern...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Position = mongoose.model('Position'), Lot = mongoose.model('Lot'), SoldLot = mongoose.model('SoldLot'), BrokerageAccount = mongoose.model('BrokerageAccount'), errorHandler = require('./errors.server.controller'), ...
/** * Note: this code was hacked together really quickly. Sorry for the messiness */ /** * Config */ var config = require('./config.json'); /** * General Includes */ var fs = require('fs'); /** * Express */ var express = require('express'); var http = require('http'); var app = express(); var server = http...
var href = window.location.href; var index = href.lastIndexOf('='); var tea_id = href.slice(index + 1, href.length); var ipconfig = window.location.hostname; function printf(str){ // console.log(str); } if(window.location.href.indexOf('login') === -1 && window.location.href.indexOf('manage') === -1 && window.lo...
'use strict'; const url = require('url'); const querystring = require('querystring'); const UAParser = require('ua-parser-js'); const Service = require('egg').Service; const fs = require('fs'); const path = require('path'); class DataTimedTaskService extends Service { constructor(params) { super(params); ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var tpl_1 = require("./tpl"); var moment_1 = tslib_1.__importDefault(require("moment")); var isPlainObject = require("lodash/isPlainObject"); var helper_1 = require("./helper"); var UNITS = ['B', 'KB', 'MB', 'GB...
window.addEventListener('DOMContentLoaded', init); const boardMap = { x:[-440,-315,-190,-65,60,185,310,435], z:[-430,-305,-180,-55,70,195,320,445], } const turnInfo = { "1":"黒", "-1":"白" } // シーンを作成 const scene = new THREE.Scene(); let randomplayer = false; let board = [ [0,0,0,0,0,0,0,0], ...
function ordenarPrecios(){ var myList = $('#hotel-list-content'); var listItems = myList.children('.hotel-list').get(); listItems.sort(function(a, b){ var aPrice=a.getAttribute("rel"); var bPrice=b.getAttribute("rel"); aPrice=parseFloat(aPrice); bPrice=parseFloat(bPrice); return aPrice > bPrice ? 1 : ...
$(() => { if (window.location.hash && window.location.hash == '#_=_') { if (window.history && history.pushState) { window.history.pushState("", document.title, window.location.pathname); } else { var scroll = { top: document.body.scrollTop, left: document.body.scrollLeft }; window.locat...
/* * Copyright 2011 eBay Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...