text stringlengths 8.5k 48.7k |
|---|
const debug = require('debug')('ring-mqtt')
const utils = require( '../lib/utils' )
const clientApi = require('../node_modules/ring-client-api/lib/api/rest-client').clientApi
const P2J = require('pipe2jpeg')
const net = require('net');
const getPort = require('get-port')
class Camera {
constructor(deviceInfo) {
... |
const VALUE_SET_PATTERN = /\{(('.*'),?)+}/;
var nodes = null;
var edges = null;
var network = null;
var seed = 2; // Want the nodes to be rendered the same way every time (rather than based off a random seed)
var data = {};
var currGraphVersion = 0;
var keepGraphUpToDate = true;
var options = {
locale: 'en',
i... |
/** @fileOverview
========================================================================================= <BR/>
<b>File:</b> core/date.js <BR/>
<b>Author:</b> <a href="https://www.linkedin.com/in/federicolevis" target="_self"><NAME></a> <BR/>
<b>LoadingDiv Doc:</b> <a href="https://rawgit.com/FedericoLevi... |
/** constants HTML id */
const CANVAS_ID = "canvas-main";
const TXT_SMILE_ID = "txt-canvas-smile";
const HIDDEN_SMILE_ID = "hidden-canvas-small-";
const CANVAS_SMALL_ID = "canvas-small-";
const CANVAS_LARGE_ID = "canvas-large";
const FORM_MAIN = "form-main";
const SEQUENCE_TYPE = "sel-sequence-type";
const SEL_N_MODIFI... |
// <NAME>
// 11/19/18
//Makes the top naviagation circle
var curNode = "initalCurNode";
var parNode = "initalParNode";
var width = window.innerWidth-300,
height = window.innerHeight-300,
maxRadius = (Math.min(width, height) / 2) - 5;
var formatNumber = d3.format(',d');
var x = d3.scaleLinear()
.range([0, ... |
// Copyright (c) 2020 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 * as Host from '../../../core/host/host.js';
import * as Platform from '../../../core/platform/platform.js';
import inspectorScrollbarsStyles fr... |
/* jshint latedef:false */
/* jshint forin:false */
/* jshint noempty:false */
//
// Copyright (c) Microsoft and contributors. 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 th... |
var Twitter = require('twitter')
var request = require('request')
var client = new Twitter({
consumer_key: '',
consumer_secret: '',
access_token_key: '',
access_token_secret: ''
})
function tweetWeather() {
var lat = ((Math.random() * 181) - 90).toFixed(3)
var lng = ((Math.random() * 361) - 1... |
import React from "react";
import { useRef, useState, useEffect } from "react";
import { Link, useNavigate, useLocation } from "react-router-dom";
import "./Styles/Signup.css";
import axios from "./api/axios";
import Modal from 'react-modal';
import App from "../App";
const GLOBALUSERIDENTITY = null;
// regez for vali... |
$(function(){
var maskOptions = {
/* completed: function() {
$("button#calc").addClass('enabled');
}, */
placeholder: '_'
};
$("#ccc").mask('9999-9999-99-9999999999', maskOptions);
$("#ccc").keyup(function(){
if(!isAccountComplete()){
//$("button#calc").attr("disabled");
$("button#calc").at... |
// game.js
// Tree
function Tree(bounds)
{
this._Sprite(bounds);
this.zorder = -1;
this.height = 0;
this.cells = [];
this.growq = [];
}
define(Tree, Sprite, 'Sprite', {
getRect: function (x, y) {
return new Rect(this.bounds.x+this.bounds.width*x,
this.bounds.y-this.bounds.height... |
import React, { useState } from "react";
import renderHTML from "react-render-html";
import {
Box,
Card,
Table,
Button,
TableRow,
TableBody,
TableCell,
Checkbox,
TableHead,
CardHeader,
TableContainer,
IconButton,
Menu,
MenuItem,
Avatar,
Typography,
Toolbar,
Paper,
Tooltip,
Grid,... |
// SET VARIABLES
const _canvas = document.getElementById('cavas-area');
const _descSec1 = {title: "Avocado’s nutrition and feature.",
body: "The avocado is prized for its high nutrient value and is added to various dishes due to its good flavor and rich texture (healthline.com). \nThese days, this f... |
// @flow
import Relay from 'ember-changeset/-private/relay';
import objectToArray from 'ember-changeset/utils/computed/object-to-array';
import isEmptyObject from 'ember-changeset/utils/computed/is-empty-object';
import inflate from 'ember-changeset/utils/computed/inflate';
import transform from 'ember-changeset/utils... |
/**
* Module dependencies
*/
var util = require('util');
var _ = require('@sailshq/lodash');
var flaverr = require('flaverr');
var getModel = require('../../ontology/get-model');
var getAttribute = require('../../ontology/get-attribute');
var isValidAttributeName = require('./is-valid-attribute-name');
/**
* norm... |
/**
* Copyright 2020 The Pennsylvania State University
* @license Apache-2.0, see License.md for full text.
*/
import { LitElement, html, css } from "lit-element";
import { ElmslnStudioUtilities } from "./elmsln-studio-utilities.js";
import "@lrnwebcomponents/lorem-data/lorem-data.js";
/**
* `elmsln-studio-loremda... |
/**
* calls to read/write utf8 text into buffers
*
* Copyright (C) 2016-2021 <NAME>
* Licensed under the Apache License, Version 2.0
*
* 2016-05-06 - AR.
*/
'use strict';
module.exports = {
encodeUtf8: encodeUtf8,
encodeJson: encodeJson,
decodeUtf8: decodeUtf8,
scanStringZUtf8: scanStringZUtf8,... |
"use strict";
/*!
* Copyright 2017 Google Inc. 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 req... |
/*
These are the implementation-specific parts of the OptiMap application at
http://www.gebweb.net/optimap
This should serve as an example on how to use the more general BpTspSolver.js
from http://code.google.com/p/google-maps-tsp-solver/
Author: <NAME>
*/
var tsp; // The BpTspSolver object which handles t... |
// 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.
'use strict';
/**
* @fileoverview The Advanced Font Settings Extension implementation.
*/
function $(id) {
return document.getElementById(id);
}... |
"use strict";
var _ = require("lodash"),
Promise = require("bluebird");
var DSModel = require("../datasys/datasys_model"),
commonOpsListing = require("./commonOps_listing"),
summaryGenerators = require("./ops_library/summary_generators");
// var logPrefix = "[commonOps_runner]";
var groupPrefix = "... |
'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 ("... |
var ui_lang = "en"; // SET DEFAULT UI LANGUAGE HERE!
var proxy_photos_by_user = proxy + "proxy.php?command=flickr.people.getPhotos&user_id="
var proxy_photos_by_album = proxy + "proxy.php?command=flickr.photosets.getPhotos&photoset_id="
var proxy_photo_info = proxy + "proxy.php?command=flickr.photos.get... |
'use strict';
var _ = require('underscore');
var CodeGenerator = require('./code-generator');
var filters = require('./filters');
var FilterSimplifier = require('./filters/filter-simplifier');
var StaticFilterChecker = filters.StaticFilterChecker;
var DynamicFilterChecker = filters.DynamicFilterChecker;
var FilterJSCo... |
"use strict";
window.requestAnimationFrame = window.requestAnimationFrame
|| window.mozRequestAnimationFrame
|| window.webkitRequestAnimationFrame
|| window.msRequestAnimationFrame
|| function(f){return setTimeout(f, 1000/60);};
window.cancelAnimationFrame = window.cancelAnimationFrame || window.mozCancelAnim... |
const m = require('mithril')
const Status = require('../components/Status')
const jsonstore = require('../utils/jsonstore')
const x = require('../utils/xhr-with-auth')(m)
const _ = require('underscore');
const columnChangeColumnName = 'column-change'
const columnColorName = 'color'
const Asana = {
workspaceId: '',
... |
/**
* Created by salbo_000 on 04/11/2014. (swarmComImpl)
* Modified to use PubSubShare module (PSS) to implement executable choreographies between organisations
*/
//All proper adapters using SwarmCore should provide a set of functions in the globalObject: swarmComImpl
var redis = require("redis");
var dslUtil ... |
var imgSrc = '';
var imgVal = '';
var laidLetters = new Array();
var userLetters = new Array();
var undoHist = new Array();
var rows = 15, cols = 15;
var vertWords = new Array();
var horzWords = new Array();
var filledSpots = new Array();
var userLettersPost = '';
var horzPost = '';
var vertPost = '';
var selectedTile ... |
/**
* JQuery Solr client default options and utitlity functions
* @param {type} $
* @returns {undefined}
* @requires renderersUtil.js
* the semi-colon before function invocation is a safety net against concatenated
scripts and/or other plugins which may not be closed properly.
* Requires jQueryRenderersAPI
*/
;... |
import { select } from "d3-selection";
import { scaleOrdinal, scaleLinear } from "d3-scale";
import { zoomIdentity } from "d3-zoom";
import { linkVertical } from "d3-shape";
import { tree, cluster } from "d3-hierarchy";
import { easeCubic, easePolyOut } from "d3-ease";
import { legendColor } from "d3-svg-legend";
impor... |
var args = arguments[0] || {};
var context;
var gameID = args.gameID;
var topView;
var botView;
var refresher;
var swipeRefresh = null;
var headerScoreLabel;
var view;
var uie = require('lib/IndicatorWindow');
var indicator = uie.createIndicatorWindow({
top : 200,
text : Alloy.Globals.PHRASES.loadingTxt
});
v... |
/*
The MIT License (MIT)
Copyright (c) 2015 <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, modify, merge, publi... |
/* JQuery Curvy Corners by <NAME> - http://blue-anvil.com*/
jQuery.fn.corner = function(options) {
var settings = {
tl: { radius: 8 },
tr: { radius: 8 },
bl: { radius: 8 },
br: { radius: 8 },
antiAlias: true,
autoPad: true,
validTags: ["... |
/**
* @memberOf Qualifiers
* @description This namespace contains all the colors used in the SDK
* @namespace Color
* @example
* // Reference only, do NOT use within your code for tree-shaking reasons
* // SDK functions that require color accept a string (like 'red') or a hex value, like 'ffffff'
* import {Color... |
//http://www.rhymezone.com/r/rhyme.cgi?Word=back&typeofrhyme=perfect&org1=syl&org2=l&org3=y
//if this seems like it will work, move to random tables. based on recursiveSlacker's idea.
var comedyInterestNouns = ["joke","clown","fun", "folk", "bloke","quack","flashback","piece of cake","shell game","skunk","debunk", "gru... |
'use strict';
let statisticsStatements = {
fastest:
'SELECT DISTINCT(`user_id`) AS `user_id`, ( SELECT `id` FROM `judge_state` `inner_table` WHERE `problem_id` = `outer_table`.`problem_id` AND `user_id` = `outer_table`.`user_id` AND `status` = "Accepted" AND `type` = 0 ORDER BY `total_time` ASC LIMIT 1 ) AS `id`, (... |
function shuffle(arr)
{
for (let i = arr.length - 1; i > 0; i--)
{
const j = Math.floor(Math.random() * (i + 1));
[arr[i], arr[j]] = [arr[j], arr[i]];
}
return arr;
}
// generates random color
function getRandomColor()
{
return {
h: Math.round(Math.random() * 360),
s: Math.round(Math... |
/* eslint-disable */
/**
* after react-dashboard refractor, this file can be renamed to 'dashboard.js'
* and it will:
* - setup global objects, so any assignements like 'NETDATA.options.current.destroy_on_hide = true'
* will not break. we need to add it in places where 'dashboard.js' is
* - create react ro... |
'use strict';
var _ = require('lodash');
function Enum(values) {
var keys = [];
var map = {};
function add(id, name) {
keys.push(id);
map[id] = name;
}
if (values) {
values.forEach(function(v) { add(v.id, v.name); });
}
return _.extend(map, {
add: add,
keys: function() { return k... |
var isIOS = false;
var isIOSMobile = false;
var isIE = false;
function toggleFullScreen(target) {
// if already full screen; exit
// else go fullscreen
// If slider, toggle small-slider class.
if(target === "#sliderBox") {
$('#sliderBox').toggleClass("small-slider");
$('#sliderBox').tog... |
"use strict";
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 ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
function xoaTab(e, item) {
e.preventDefault();
var txt;
if (confirm("Bạn có chắc chắn xóa nó?")) {
$(item).parents('li').remove()
var u = $(item).attr('data-id')
var m = $(item).parents('li').attr('data-tab-name')
deleteArrayPage(m)
$('#' + u).remove()
$('#myTab li:first-child > a').trigger('click')
} e... |
/**
* Indicia, the OPAL Online Recording Toolkit.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
* This program is distributed ... |
Pencil.behaviors.Attr = function (name, value, ns) {
if (value != null) {
if (ns) this.setAttributeNS(ns, name, value);
else this.setAttribute(name, value);
} else {
if (ns) this.removeAttributeNS(ns, name);
else this.removeAttribute(name);
}
};
Pencil.behaviors.Box = functio... |
// Tooltip "Class" (Built as a renderless Vue instance)
//
// Handles trigger events, etc.
// Instantiates template on demand
import Vue from '../../../utils/vue'
import getScopId from '../../../utils/get-scope-id'
import looseEqual from '../../../utils/loose-equal'
import noop from '../../../utils/noop'
import { arra... |
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import Outputs from '../../../../../resources/outputs';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
// EDEN'S PROM... |
// NÃO REMOVA OS CREDITOS POR FAVOR, LEVOU MUITO TEMPO PRA SE FAZER UM BOT ASSIM!
exports.help = help()
function help() {
return ` *☾ Meus comandos ☽*
_ℹ️ - Grupo oficial do programador deste bot!_ */Legiao*
_ℹ️ - Se quiser saber da Íris ou como construir "ela", use_ */About* .
_ℹ️ - Caso algum comando não f... |
'use strict';
var _rollupPluginBabelHelpers = require('./_rollupPluginBabelHelpers-8f9a8751.js');
var React = require('react');
var useIsomorphicEffect = require('reakit-utils/useIsomorphicEffect');
var useSealedState = require('reakit-utils/useSealedState');
var applyState = require('reakit-utils/applyState');
var Id... |
var gulp = require('gulp');
var gulpPlugins = require('gulp-load-plugins')();
var shell = require('gulp-shell');
var runSequence = require('run-sequence');
var madge = require('madge');
var merge = require('merge');
var path = require('path');
var gulpTraceur = require('./tools/transpiler/gulp-traceur');
var clean = ... |
var tab = "csv", header_alignment=[], array_storage="", form_rows=0, form_cols=0, prettify_md=true, debug=false;
var example_csv='Feature, Description, Example\n'+
'Renders markdown, Uses showdown library to render contents of table cells, **Just** *like* ``this``\n'+
'Escapes quote... |
// -------------------------
// mininode_compiler.js - Mini Node.js Compiler by Node.js
// - 01: i32 literal
// - 04: binary operator
// - 01: +
// - 04: -, *, /, %
// - 06: compare (===, !==, >, >=, <, <=)
// - 05: multi lines
// - 05: local variable
// - CAN NOT USE 'tempIdx'/'tempType' as local variable (rese... |
var mydata = [];
var vm = new Vue({
el:'#rrapp',
data:{
werks:"",
workshop:"",
workshop_list :[],
line:"",
line_list :[],
order_no: '',
batchplanlist: [],
zzj_plan_batch: '',
prod_process: '',
tab_id: '',
formUrl: '#',
columnModel: [],
report_type: ''
},
created:function(){
this.werk... |
// -*- mode: js; indent-tabs-mode: nil; js-basic-offset: 4 -*-
//
// This file is part of Genie
//
// Copyright 2020 The Board of Trustees of the Leland Stanford Junior University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
//... |
var overlayNodeInfo = "<section class='InfoPanel'><section class='leftColumn'><div>ID </div><div>Nodes</div><div>Links</div></section><section id='rightColumn'><div> $overlayid</div><div> $numnodes</div><div> $numlinks</div></section></section>"
var mouseOverNodeInfo = "<section class='InfoPanel'><s... |
/*
* Color Cycle Picker
* Copyright (c) 2017-2018 <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, ... |
/* ID="editor" な div をエディタにする */
var editor = ace.edit("editor");
/* 諸々の設定 */
editor.setTheme("ace/theme/sqlserver");
editor.getSession().setMode("ace/mode/hydla")
editor.getSession().setTabSize(4);
editor.getSession().setUseSoftTabs(true);
editor.setHighlightActiveLine(false);
editor.$blockScrolling = Infinity;
edito... |
'use strict';
const { BufferList, BufferListStream } = require('bl')
const iconv = require('iconv-lite')
const decodeImplode = require('implode-decoder')
const { Transform, Writable } = require('stream')
const zlib = require('zlib')
// The replay file contains 6 separate blocks, which are in the following format:
//... |
/* TABLE OF CONTENT
1. Common function
2. Initialing
*/
/*================================================================*/
/* 1. Common function
/*================================================================*/
function path(){
var args = arguments,result = [];
for(var i = 0; i < args.le... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _classnames = _interopRequireDefault(require("classnames"));
var _ListGroup = requir... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
var Scales = [
// C=0, D=1, E=2, F=3, G=4, A=5, B=6, C=7, D=8, E=9, F=10, G=11, A=12, B=13, C=14, D=15
{
// Note that we should never get this. Pentatonic Minor can
// cover every note within a half-step on it's own, so the
// calculations should never result in a "red" scale.
... |
const path = require('path');
const fs = require('fs');
const _ = require('underscore');
_.templateSettings.interpolate = /\{\{(.+?)\}\}/g;
const TOPDIR=path.resolve(__dirname, '..');
const OUTDIR=path.join(TOPDIR,"output");
const DATADIR=path.join(TOPDIR,"data");
const TEMPLATEDIR=path.join(TOPDIR,"style");
const ... |
/*
Rest Query (shared lib)
Copyright (c) 2014 - 2020 <NAME>
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 restriction, including without limitation the righ... |
var app = {
// Application Constructor
initialize: function() {
this.bindEvents();
},
// Bind Event Listeners
//
// Bind any events that are required on startup. Common events are:@
// 'load', 'deviceready', 'offline', and 'online'.
bindEvents: function() {
document.addE... |
/**
* Common helpers to be used in catalogue or videoplayers
*
* @module Common
*/
/***
Time/Date helpers
***/
function twoDigitString( number ){
return ('0'+number).substr(-2);
}
function toTime( s ){
return twoDigitString( Math.floor(s / 60) ) + ":" + twoDigitString( Math.floor(s % 60) );
}... |
/* * * * * * * * * * * * * * * * * *
* RisingInsightMorphVis *
* * * * * * * * * * * * * * * * * */
// helper to sum the count in the array
const v2SumArrayReducer = (accumulator, currentValue) => accumulator + currentValue;
// A guide on how to filter by checkbox selection
const v2CheckBoxGuide = {
... |
var estado= 0;
var series_correlativo;
var condicionNuevaserie=0;
var cambioCorrelativo = 0;
//Validar formulario *******************************************
$('#fecha').datepicker({}); //calendario mas chingon
function validarFormulario($imprimir){
total2 = 0;
validar_cantidad = 0;
document.getElementById(... |
// set up for Firebase
var config = {
apiKey: "<KEY>",
authDomain: "trello-290-28956.firebaseapp.com",
databaseURL: "https://trello-290-28956.firebaseio.com",
projectId: "trello-290-28956",
storageBucket: "trello-290-28956.appspot.com",
messagingSenderId: "237477910372"
};
// global access to ... |
/*jslint browser: true, indent: 4, regexp: true */
/*global chrome, MouseEvent, MutationObserver */
"use strict";
var YOUTUBE_AJAX = false,
YOUTUBE_FEATHER = false,
YOUTUBE_OBSERVER = null,
YOUTUBE_PLAYER = null,
YOUTUBE_CONTAINER = null,
YOUTUBE_WATCH = null... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var pako = _interopDefault(require('pako'));
var glMatrix = require('gl-matrix');
/**
* This is the mapping from the NRRD d... |
'use strict';
// this is a weird way to have file svg's that can be recolored by css
customElements.define("load-svg", class extends HTMLElement {
async connectedCallback(
shadowRoot = this.shadowRoot || this.attachShadow({mode:"open"})
) {
shadowRoot.innerHTML = await (await fetch(this.getA... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// calculate solar position
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/... |
import interact from "interactjs";
import html2canvas from "html2canvas";
import defaultIcon from "./img/unknown.png";
import startActive from "./img/startactive.png";
import startHover from "./img/starthover.png";
import startRegular from "./img/startregular.png";
import errorImg from "./img/error.png";
import { findP... |
/*!
* hnscan.js - hnscan api
* Copyright (c) 2017-2018, <NAME> (MIT License).
* Copyright (c) 2018-2019, Handshake Alliance Developers (MIT License).
* https://github.com/handshakealliance/hnscan-backend
*/
"use strict";
const EventEmitter = require("events");
const path = require("path");
const { Network, Addre... |
/* eslint no-console:0, max-len:0 */
/* global getXMSSDetails, anyAddressToRawAddress, hexToBytes, SHOR_PER_QUANTA,
selectedNetwork, wrapMeteorCall, nodeReturnedValidResponse, XMSS_OBJECT, concatenateTypedArrays,
toUint8Vector, toBigendianUint64BytesUnsigned, binaryToBytes, POLL_TXN_RATE, POLL_MAX_CHECKS, DEFAULT_NETWO... |
console.clear()
var ttSel = d3.select('body').selectAppend('div.tooltip.tooltip-hidden')
var states = ["AK","AL","AR","AZ","CA","CO","CT","DC","DE","FL","GA","HI","IA","ID","IL","IN","KS","KY","LA","MA","MD","ME","MI","MN","MO","MS","MT","NC","ND","NE","NH","NJ","NM","NV","NY","OH","OK","OR","PA","RI","SC","SD","TN",... |
var CONFIG = { debug: false
, nick: "#" // set in onConnect
, id: null // set in onConnect
, last_message_time: 1
, focus: true //event listeners bound in onConnect
, unread: 0 //updated in the message-processing loop
, onlin... |
// Shortcodes init
jQuery(document).ready(function() {
"use strict";
initShortcodes(jQuery('body').eq(0));
});
function initShortcodes(container) {
"use strict";
// Tabs
if (container.find('.sc_tabs:not(.inited)').length > 0) {
var sc_tabs_effetcs = container.find('.sc_tabs:not(.inited)').hasClass('sc_tabs_effe... |
function sanitize(string) {
const map = {
'&': '&',
'<': '<',
'>': '>',
'"': '"',
"'": ''',
"/": '/',
};
const reg = /[&<>"'/]/ig;
return string.replace(reg, (match)=>(map[match]));
}
var existingSlideNames = [];
var permissions;
const allowedExtensions = ['svs',... |
// This file is building the container.
// three.js webgl - loaders - kicad pcb loader
var inserter_version = "1.2.2"
//var rotate = false;
var cameraZ; var r;
var divId; var debug=false; // offs; speed;
// var cvname;
if ( WEBGL.isWebGLAvailable() === false ) {
//document.body.appendChild( WEBGL.getWebGLError... |
function rbush(maxEntries, format) {
// jshint newcap: false, validthis: true
if (!(this instanceof rbush)) return new rbush(maxEntries, format);
// max entries in a node is 9 by default; min node fill is 40% for best performance
this._maxEntries = Math.max(4, maxEntries || 9);
this._minEntries = ... |
/**
* HTML5 no canvas Asteroids clone
*/
/**
* Returns rotation in degrees when obtaining transform-styles using javascript
* http://stackoverflow.com/questions/8270612/get-element-moz-transformrotate-value-in-jquery
*
* @{link | https://gist.github.com/adamcbrewer/4202226}
*/
function getRotationDegrees(obj) ... |
getNoInvoice()
setInterval('getDateTime()', 1000)
$('#btnSimpan, #btnCetak, #btnAdd').css({
cursor: 'not-allowed'
})
// Data barang yang akan tampil di jquery autocomple
// key:label adalah bawaan jquery autocomple, sebaiknya jangan diganti saja
const dataBarang = [
{
label: "<NAME>",
harga: ... |
/*greybox/redux/amix.dk*/
var ihBox_ANIMATION = true;
var ihBox_DONE = false;
function ihBox_show(caption, url, option) {
// build answer.
$('#kopageBarFAQ').remove();
$('.kopageBarContent').append('<div id="kopageBarFAQ"><div id="kopageBarFAQ_Title" class="">'+caption+'<a id="kopageBarFAQ_Close" href="javascri... |
// DEFINE VARIABEL
var tot_belanja = 0;
var i = 1;
var row_bar = 1;
var row_d_combo = 1;
var row_combo = 1;
var urutan = "";
var u_dc = "";
var active_dc = 0;
var jml_row_combo = 1;
var array_kode_barang = [];
var array_nama_barang = [];
var array_stok_barang = [];
var items_barang = [];
var items_combo = [];
var al... |
const run = require('../src/run')
const checkCharType = require('../src/check-char-type')
const parse = require('../src/parse')
const travel = require('../src/travel')
const join = require('../src/join')
const processRule = require('../src/process-rule')
const findIgnoredMarks = require('../src/find-ignored-marks')
co... |
/*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import AccountManager from 'lib/AccountManager';
import AppsManager from 'lib/App... |
//Message Type用
var CONSOLE = 1;
var STATUS = 2;
var MACHINE = 3;
var NETWORK = 4;
var ETC = 10;
var RETRYTIME=5;
var SERVER = 0;
var ROUTER = 1;
var SWITCH = 2;
var ws;
//var sdb;
var retryCount=0;
var myDisconnect = false;
var sendMsg = {
msgType : "",
data : ""
}
//var machineDB = [{name:"_host_", type:"1", t... |
"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];
... |
var paused = false;
var isQuestionAsked = false;
var mask = $ ('#mask');
var maskWin = $ ('#maskWin');
var maskLose = $ ('#maskLose');
var tx_question = $ ('#question');
var time_text = $ ('#time');
var name_text = $ ('#name');
var score_text = $ ('#score');
var volume_bar = $ ('#volume');
var vol = getVolume ();
var p... |
/*
*
Fonction main qui se lance une fois au début au chargement de la page
*
*/
$(function () { //diminutif JQuery de la fonction javascript de base document.ready(function{...}); s'appel donc une fois dès que la page est prète (genre de main() )
Observable=new Subject();
//on ajoute les obse... |
$(document).ready(function() {
store.set("searchCustomer", false);
if (store.get("print")) {
window.open("../printform/printform.php", "_blank");
store.set("print", false);
}
$.ajax({
url : api + "api-pawn-shop/counter.php",
method: "GET",
processData: false,
contentType: false,
da... |
"use strict";
/* globals THREE qx desk _ async*/
var file = "data/POPI.mhd";
var viewer;
var win;
var lutContainer;
var preLUTSlider;
var brightnessSlider;
var cutSlider;
var cutButton;
var cutDirectionButton;
var loadLabel;
var canvas, context, imageData;
var lastPosition;
var clicked;
var cutOrientation = -1;
va... |
/* istanbul ignore if */
if (!Error.prepareStackTrace) {
require('source-map-support/register');
}
import ejs from 'ejs';
import fs from 'fs-extra';
import globalModules from 'global-modules';
import HookEmitter from 'hook-emitter';
import hostedGitInfo from 'hosted-git-info';
import inly from 'inly';
import pacote f... |
/**
* @author: zeyongchen<EMAIL>
* Date: 17/3/31
* Time: 下午8:41
*/
var jrnl = new Array();
var scihub = new Array();
var pmids = new Array();
var url = window.location.href;
/**
* js aes加密
* @param {[type]} text [文本]
* @param {[type]} key [密钥]
* @param {[type]} iv [密钥向量]
* @return {[type]} [des... |
/*
@@ LEAD-MANAGEMENT.JS
@@ By Zheng
@@ 2020-02-15
*/
var managementTB;
var expirationTimes = [];
var startTimes = [];
var closedByUsers = [];
var statuses = [];
var rows = [];
var phone;
// column data
var columnData = [
{
"title" : "",
sortable : false,
render : function(data, type, full... |
function radicals(txt) {
const ls = split(radicalsList(), ['stroke', 'radical', 'position', 'meaning', 'notes', 'important']).map((x) => {
return x
})
if (txt) {
const out = []
for (const chr of txt) {
const rad = ls.filter((x) => x.radical == chr)
if (rad.length) {
out.push(rad[0])
} else {
i... |
import React, { Component } from "react";
import { StyleSheet, Dimensions, StatusBar,Text, View } from "react-native";
import { GameLoop } from "react-native-game-engine";
import PuzzlePanel from "./puzzlePanel";
import NextButton from "./nextButton";
import { LinearGradient } from "expo-linear-gradient";
import {Error... |
/**
*
* @auther SM@K<<EMAIL>>
* @description website: smak.pk
*/
(function() {
var root = this;
var SmartPhone = function(obj) {
if (obj instanceof SmartPhone)
return obj;
if (!(this instanceof SmartPhone))
return new SmartPhone(obj);
this._wrapped = obj;
... |
//Code written by <NAME>, 2016. Contact at <EMAIL>.
var CTPS = {};
CTPS.demoApp = {};
var f = d3.format(".2")
var e = d3.format(".1f");
var projection = d3.geoConicConformal()
.parallels([41 + 43 / 60, 42 + 41 / 60])
.rotate([71 + 30 / 60, -41 ])
.scale([24000]) // N.B. The scale and translation vecto... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.