text stringlengths 8.5k 48.7k |
|---|
//REQUERINDO MODULOS
const menu = require('../lib/menu')
const moment = require("moment-timezone")
const { version } = require('../package.json');
const msgs_texto = require('../lib/msgs')
const {criarTexto,erroComandoMsg, removerNegritoComando} = require('../lib/util')
const {desbloquearComandosGlobal, bloquearComando... |
var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => {
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
re... |
// set up a two-dimensional array //////////////////////////////////////////////////////// fn: createArray
// ref: https://stackoverflow.com/questions/966225/
function createArray(length=0) {
var arr = Array(length);
var i = length;
if (arguments.length > 1) {
var args = Array.prototype.slice.call(arguments, 1);
... |
import React, { Component } from 'react';
import {
View,
StyleSheet,
TouchableOpacity,
Image,
Text,
ScrollView,
SafeAreaView,
TextInput,
KeyboardAvoidingView,
FlatList,
Platform,
} from 'react-native';
import { CheckBox } from 'react-native-elements';
import InputCard from '../inputCardView/Input'... |
'use strict';
// Copyright © 2015 OnlineGroups.net and Contributors.
// All Rights Reserved.
//
// This software is subject to the provisions of the Zope Public License,
// Version 2.1 (ZPL). http://groupserver.org/downloads/license/
//
// THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
// WARRANTI... |
let htmlspecialchars = require('htmlspecialchars');
function getLongParameterName(name) {
const longParameterNames = {
"r" : "ref", "p" : "period",
"q" : "qp", "n" : "frames",
};
if (longParameterNames.hasOwnProperty(name))
return longParameterNames[name];
return name;... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import Ember from 'ember';
const { get } = Ember;
export function isGroup(entry) {
return !!entry && !!get(entry, 'groupName') && !!get(entry, 'options');
}
export function countOptions(collection) {
let counter = 0;
(function walk(collection) {
if (!collection) { return null; }
if (!collection.objectA... |
var currentStep = 1;
$(function() {
$("#scrape_data").on("click", function(){
$("#scrape_url").submit();
});
$('.qtyplus').click(function(e){
e.preventDefault();
fieldName = $(this).attr('field');
//Fetch qty in the current elements context and since you have used class... |
/*!
* Calendar interface v1.23 / Interface du calendrier v1.23
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* www.tbs.gc.ca/ws-nw/wet-boew/terms / www.sct.gc.ca/ws-nw/wet-boew/conditions
*/
var calendar = {
// Used to store localized strings for your plugin.
dictionary : {
... |
/** ScatterPlot Visualization. */
// TODO refactor this to avoid loading on startup. See issue #985 .
loadScript('https://d3js.org/d3.v4.min.js')
loadStyle('https://fontlibrary.org/face/dejavu-sans-mono')
let shortcuts = {
zoomIn: e => (e.ctrlKey || e.metaKey) && e.key === 'z',
showAll: e => (e.ctrlKey || e.me... |
import {
newAddressPubKeyHash,
newAddressScriptHashFromHash
} from "./addresses";
import {
OP_0,
OP_1,
OP_16,
OP_DUP,
OP_HASH160,
OP_DATA_20,
OP_EQUAL,
OP_EQUALVERIFY,
OP_CHECKSIG,
OP_SSTX,
OP_SSGEN,
OP_SSRTX,
OP_SSTXCHANGE,
OP_DATA_33,
OP_DATA_65,
OP_CHECKSIGALT,
OP_PUSHDATA4,
o... |
/* LICENSE
_This file is Copyright 2018 by the Image Processing and Analysis Group (BioImage Suite Team). Dept. of Radiology & Biomedical Imaging, Yale School of Medicine._
BioImage Suite Web is licensed under the Apache License, Version 2.0 (the "License");
- you may not use this software except in complianc... |
console.log('--------------\n'+document.title);
//-- reader variables ----------------------------------------------------
var reader = {
latest_w: "p0s0w0", latest_s: "p0s0", latest_p: "p0",
id_prev: "p0s0w0", id_curr: "p0s0w0",
ischanged_text: false,
ineditor: false,
iter: 0,
se... |
import { vector3Factory, vector3CrossProduct, vector3Normalise, vector3UnitY, vector3UnitZ, vector3Zero } from "./vector3.js";
/*
matching openGL documentation
0_0, 0_1, 0_2, 0_3(x),
1_0, 1_1, 1_2, 1_3(y),
2_0, 2_1, 2_2, 2_3(z),
3_0, 3_1, 3_2, 3_3
how i like to think of memory, (row_column)
0_0, 1_0, 2_0, 3... |
var FormHelper = {
messageAnimDurationMs: 200
};
FormHelper.initInputPlugins = function (container) {
var $container = (container);
$container
.find('.selectpicker')
.each(function () {
// somehow it is loosing value that was set by $('select').val('val');
var $sele... |
function formate_date(date) {
var str_date = "";
var day = date.getDate();
var mon = date.getMonth()+1;
var year = date.getFullYear();
str_date = day<10?"0"+day:day;
str_date += mon<10?".0"+mon:"."+mon;
str_date += "."+year;
return str_date;
}
function notify(type,msg) {
Command: to... |
// extracted from CT website
// Dropdown on http://www.calgarytransit.com/schedules-maps
// manually remove parentheses and then duplicates with ^(.*)(\r?\n\1)+$
// manually adjust C-Train names
const routeNames = {
1: "Bowness - Forest Lawn",
1: "Bowness - Forest Lawn",
2: "Mt. Pleasant / Killarney 17 Av... |
import _ from 'lodash';
import * as turf from '@turf/helpers';
import area from 'area-polygon'
import { union, difference, intersection } from 'polygon-clipping';
import booleanPointInPolygon from '@turf/boolean-point-in-polygon';
import { dropConsecutiveDups } from '../../../utilities';
import idFactory from './../../... |
import React, { useState, useEffect } from 'react'
import { check } from '../../utils/helpers';
import axios from 'axios';
import Img from 'gatsby-image';
import { Link, useStaticQuery, graphql, navigate } from 'gatsby';
import Loader from '../loader';
import Jobitoassistant from './jobitoassistant';
import { useForm }... |
require('rootpath')();
var logger = require('config/winston');
var mongoose = require('mongoose');
var shortid = require('shortid')
var hv = require('public/javascripts/shared/hierarchy_validator');
DOCUMENT_GROUP_TOTAL_MAXCOUNT = 11000; // Number of groups that can be in a project.
USERS_PER_PROJECT_MAXCOUNT = 100;... |
function noop() { }
function run(fn) {
return fn();
}
function blank_object() {
return Object.create(null);
}
function run_all(fns) {
fns.forEach(run);
}
function is_function(thing) {
return typeof thing === 'function';
}
function safe_not_equal(a, b) {
return a != a ? b == b : a !== b || ((a && typ... |
var $window = $(window);
var $inputMessage = $('.inputMessage'); // Input message input box
var $currentInput = $inputMessage.focus();
var $messages = $('#chatArea'); // Messages area
var socket = io();
var connected = false;
var isIdValidate = false;
var isMemberJoin = false;
var currentRoomUserCount = 0;
var roomid... |
const fs = require('fs-extra');
const EventEmitter = require('events');
const LRU = require('lru-cache');
const pThrottle = require('p-throttle');
const DictionarySync = require('./dictionary-sync');
const UserDictionary = require('./user-dictionary');
const {normalizeLanguageCode} = require('./utility');
let Spellch... |
/**
* Copyright (C) 2016-2020 <NAME>
* Licensed under the Apache License, Version 2.0
*/
var qdate = require("./");
var timeit = require('qtimeit');
var x = 0, dt = new Date();
//timeit(100000, function(){ x = qdate.adjust("2016-10-13 01:23:45.678", +1, "weeks") });
// 760k/s v6.2.2, 1.15m/s v5.10.1, v0.10.42
//t... |
$(function () {
let output = "";
//get registration centers
$.get(regCenterUrl, function (data) {
regCenterData = data;
//observerNumberList
}).done(function () {
//get getObservers
$.get(observerUrl, function (data) {
observerData = data;
//obser... |
/************************************************************************/
/* FILE: DMAppAVPlayerComponentBehaviour.js */
/* DESCRIPTION: Polymer DMApp component behaviour template */
/* for video players, applies on top of */
/* ... |
import { __decorate, __metadata } from "tslib";
import { Component, Input, Output, ViewEncapsulation, EventEmitter } from '@angular/core';
import * as go from 'gojs';
import { ModelserviceService } from 'src/app/services/modelservice.service';
// import * as figure from '../../../assets/figure.js';
const $ = go.GraphOb... |
function dump(text) {
console.log(text);
}
function float_fix(num) {
//Rounds floating points
return Math.round(num * 10000000) / 10000000
}
function JSgCalc (element){
this.graph = document.getElementById(element);
this.graphElement = $("#"+element);
this.width = $("#wrapper").width();
this.height = $("#wra... |
/*NOTES
- Each primitive corresponds to one draw call
- Min/Max can be used to create the bound box.
- When a primitive's indices property is defined, it references the accessor to use for index data, and GL's drawElements function should be used. When the indices property is not defined, GL's drawArrays function sho... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
//Handles functionality of Probability
$(window).load(function () {
drawCoin();
drawDie();
// drawPi();
});
//Handles Window Resize
$(window).on("resize", function () {
drawCoin();
drawDie();
// drawPi();
});
//Handles CSS animation for coin and die
//Adapted from http://jsfiddle.net/byrichard... |
/**
* Copyright 2018 The AMP HTML 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 require... |
function map_alignment(query_aln, subject_aln) {
pos_map = {}
i = 0
query_gaps = 0
$.each(query_aln, function(j, x) {
if (query_aln[j] == "-") {
query_gaps = query_gaps + 1
}
query_pos = j - query_gaps
if (subject_aln[j] == "-") {
pos_map[query_pos] = None
} else {
pos_map[query_pos] = i
i = i... |
function motvis(dictionary, scp ,genes,tree,width,height,pack,circulardiv,treediv,bool){
// Init root node.
// GLOBAL VARIABLES
d3.select("#circular").select("canvas").remove();
d3.select("#tree").select("canvas").remove();
var canvas = d3.select("#circular").append("canvas")
.attr("width",circul... |
module.exports = AlgoliaSearchCore;
var errors = require('./errors');
var exitPromise = require('./exitPromise.js');
var IndexCore = require('./IndexCore.js');
var store = require('./store.js');
// We will always put the API KEY in the JSON body in case of too long API KEY,
// to avoid query string being too long and... |
var WheelManager = function(config, ozui) {
this.config = config;
this.ozui = ozui;
this.shown = false;
this.ready = false;
};
WheelManager.prototype = {
setUp: function() {
this.setUpIntent();
this.setUpTimeout();
this.setUpLinkClick();
this.setUpEmbeddedIframe();
},
log: function() {
console.debug.... |
var lang_table = {
'en' : {
'Trái cây văn phòng | Yaourt trái cây | Trái cây tươi': 'Fresh Fruit | Smoothies | Juice - eFruit ',
'Đặt hàng': 'Place order',
'Nhấn chuột vào menu để chọn món': 'You can order items in the menu on the left',
'Trình duyệt IE của bạn không tương thích với ... |
var locStatusAlter = "";
var locIdAlter = "";
var lcNumberAlter = "";
$(document).ready(function(){
$(".trade-main").show();
$(".lc-from-response").hide();
$(".lc-form-content").hide();
$(".lc-app-list").hide();
$('#lc-form').click(function(){
... |
/* _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Seaice Monitor
海氷モニタ表示用 Javascript
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ */
/* *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Global Value
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*... |
function generate_population() {
a = lower_bound;
b = upper_bound;
size = [$("#population_size").val(), $("#board_size").val()];
let generated_population = [];
for (let i = 0; i < size[0]; i++) {
generated_population.push([]);
for (let j = 0; j < size[1]; j++)
generated_p... |
var data_full;
var data;
var i = 0;
function init() {
// var data = d3Load("../assets/data/r05_sr01_e000.json");
// d3Load("../assets/data/r05_sr01_e000.json");
console.log(data_full);
// listen to the resize events
window.addEventListener('resize', onResize, false);
var camera;
var sc... |
// VARIABLES
// data variables
let keys = [];
let decadesList = [];
let countriesList = [];
let originsData = [];
let eventsKeys = [];
let eventsData = [];
// update on scroll
let currentScrollPos = $("#open").scrollTop();
let lastScrollPos = $("#open").scrollTop();
let scrollDirection = "forward";
let eventProgress ... |
var objectID = 0;
const oscMap = {
'@sin': "sinewave",
"@saw": "saw",
"@square": "square",
"@tri": "triangle",
"@pha": "phasor"
};
const jsFuncMap = {
// Synthesis functions
'amsynth': {
"setup":(o,p) => `${o} = new Module.maxiOsc();
${o}mod = new Module.maxiOsc();
${o}.phaseReset(${p.le... |
import assertRevert from './helpers/assert_revert.js';
import { newPlan, newSubscription, newActiveSubscription, setTimes } from './helpers/volume_subscription.js';
import * as Payroll from './helpers/payroll.js';
var MockVolumeSubscription = artifacts.require("./tests/MockVolumeSubscription.sol");
var MockPayrollSubs... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var path = require('path');
var iobuffer = require('iobuffer');
var jszip = _interopDefault(require('jszip'));
var brukerconv... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.hydrateInitialOutputs = hydrateInitialOutputs;
exports.getCSRFHeader = getCSRFHeader;
exports.notifyObservers = notifyObservers;
exports.handleAsyncError = handleAsyncError;
exports.revert = exports.undo = exports.redo = exports.dis... |
const path = require('path');
const get = require('lodash/get');
const has = require('lodash/has');
const omit = require('lodash/omit');
const groupBy = require('lodash/groupBy');
const fs = require('fs');
const os = require('os');
const Boom = require('@hapi/boom');
const { CompaniDate } = require('./dates/companiDate... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.configureAsync = configureAsync;
function _fsExtra() {
const data = _interopRequireDefault(require("fs-extra"));
_fsExtra = function () {
return data;
};
return data;
}
function _path() {
const data = _interopRequi... |
import '@brightspace-ui/core/components/button/button-icon';
import '@brightspace-ui/core/components/colors/colors';
import 'd2l-outcomes-overall-achievement/src/trend/mini-trend';
import '@polymer/iron-collapse/iron-collapse.js';
import './partial-bold.js';
import { bodySmallStyles, bodyStandardStyles, heading2Styles,... |
var GlobalEvents, EndPoints;
var isArray = function(obj) {
return Object.prototype.toString.call(obj) === '[object Array]';
};
var isFunction = function(obj) {
return typeof obj === 'function';
};
/*
Deals with array and object, even when empty.
The signature of the given function for an array is (value, index)... |
/**
`d2l-enrollment-hero-banner`
Polymer-based web component for a organization name.
@demo demo/d2l-enrollment-hero-banner/d2l-enrollment-hero-banner-demo.html Organization Name
*/
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
import 'd2l-link/d2l-link-behavior.js';
import 'd2l-offscree... |
// 2D brushing
// brush on, off
// on brush, class as 'selected'
function populate_imageGrid(selected_samples, col_scale, row_scale){
var imgCols = col_scale.domain().length
d3.selectAll('#imgGrid').selectAll('.img').remove()
// update selection with new images
d3.select('#imgGrid').selectAll('g').data(... |
function app_ready(){
$(document).ready(function(){
/*
* To not make the UI show light when preference is set to dark mode, we are going
* to load the app settings without a timeout. Because the 2000ms delay is there
* for a reason, we will also re-apply any settings in the below... |
// <NAME> <<EMAIL>>
"use strict";
// modules
const assert = require('../assert.js');
const PackedArray = require('../ds/packedarray.js');
const { U8, U32, I32, F32, B32 } = PackedArray;
// constants
let OPC = 0;
const K = {
// fields
OPCODE: 'op',
ARG0: 'a0',
ARG1: 'a1',
ARG2: 'a2',
ARG: function(num){
... |
//////////////////////////////
//This is 'game' variable is the soul of the game
/////////////////////////////
var game = new Phaser.Game(640, 480, Phaser.AUTO, 'game-canvas');
//var game = new Phaser.Game(640, 480, Phaser.AUTO, 'game-canvas', { preload: preload, create: create, update: update, render: render });
/... |
/*
Contains functions for scraping and storing / updating documents in the database.
Exported functions:
------
scrapeSemester(semesterId)
imports the semester detail from ./hardcode/SEMESTERS.js
scrapes the list of courses for that semester into the database
scrapeDepartments()
imports ... |
if (typeof urlApi == "undefined") {
var erc20contract_address = "0x030D1a87a36C9442E25416c3D36611Af5c29Eba9";
var erc20contract_function_address = "0xe2eB8871aeCaB528E3A36BF8a9b2D9A044b39626";
var token_owner_address = "0x030D1a87a36C9442E25416c3D36611Af5c29Eba9"
var option_etherscan_api = 'https://api.ethersc... |
// JavaScript Document
// HASH
var locationHash = window.location.hash;
if( locationHash ) window.location.hash = '';
// LOAD
$('html').addClass('loadWait');
// $window load timeout.
var commonloadTimeoutTime = 3000;
var commonloadTimer = setTimeout(
function(){
$( window ).load();
}, commonloadTimeoutTime... |
import fs from 'fs';
import readline from 'readline';
import {
once
} from 'events';
import {
Readable,
PassThrough
} from 'stream';
import {
pipeline
} ... |
import React from "react";
import { useState, useEffect, useContext } from "react";
import axios from 'axios';
// @material-ui/core components
import Typography from '@material-ui/core/Typography'
import { makeStyles } from "@material-ui/core/styles";
import MUIDataTable from "mui-datatables";
// layout for this page
i... |
var terms;
var schools;
var subjects;
var request_term = null;
var request_subject = null;
var request_school =null;
var courses = [];
var all_courses =[];
var select_flag=0;
var url_head = 'http://vazzak2.ci.northwestern.edu/';
var search_result =[];
//var keywords;
//var tempChunkId = null;
$(document).ready(function... |
'use strict';
function create_shader(gl, source, type) {
var shader;
shader = gl.createShader(type);
gl.shaderSource(shader, source);
gl.compileShader(shader);
if (gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
return shader;
} else {
console.log(gl.getShaderInfoLog(shader)... |
/*!
=========================================================
* Material Dashboard PRO - v2.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/material-dashboard-pro
* Copyright 2019 Creative Tim (http://www.creative-tim.com)
* Designed by www.inv... |
// <NAME> <<EMAIL>>
"use strict";
const assert = require('../assert.js');
const { SIDE_FROM_STR, FRONT_SIDE } = require('../bed.js');
const UserPattern = require('../userpattern.js');
const { patternColor } = require('./colors.js');
const { editPattern } = require('./pattern.js');
function renderSkeleton(...args){
... |
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
var dayjs = _interopDefault(require('dayjs'));
var clsx = _interopDefault(require('clsx'));
function _extends() {
_extends = O... |
// Copyright 2022 Polar Tech. All rights reserved. MIT license.
const version = "0.2.3";
const requiredMinDenoVer = "1.2.0";
const { baseDepsPath, baseGenPath } = await obtainCacheLocation();
class ModuleData {
data = {};
get allUrlList() {
return Object.keys(this.data);
}
get targetedUrlList() {
re... |
'use strict';
/**
* @ngdoc filter
* @name currency
* @kind function
*
* @description
* Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default
* symbol for current locale is used.
*
* @param {number} amount Input to filter.
* @param {string=} symbol Currency symbol or iden... |
/*
* Poll chat plugin
* By bumbadadabum and Zarel.
*/
'use strict';
const moment = require('moment');
class Poll {
constructor(room, questionData, options) {
if (room.pollNumber) {
room.pollNumber++;
} else {
room.pollNumber = 1;
}
this.room = room;
this.question = questionData.source;
this.suppor... |
//订单管理路由跳转结束
//获取当前时间
var myDate = new Date();
var year=myDate.getFullYear(); //获取当前年
var month=myDate.getMonth()+1; //获取当前月
var date=myDate.getDate(); //获取当前日
var now_time=year+'.'+month+"."+date;
//展示选择地址
function showAddr(){
$(".user_ares").html('')
$.ajax({
... |
$(document).ready(initializeApp);
//Global Variables
var movieListings = [];
var summary;
var linkToReview;
var addTrailerRow;
var lat;
var lng;
var yelpResult;
var moviePagesLoaded = 4;
var titleOfMovie;
var reviewHeadline;
var reviewShort;
var releaseDate;
var infoWindowArray = [];
var movieRow;
var movieTitle;
var ... |
import $ from'jquery';
import Uppie from './js/uppie.js';
function convertFileList(fl) {
for (var i = 0; i < fl.length; i++) {
var elements = fl[i].split(",");
fl[i] = new Array();
fl[i]["r_uri"] = elements[0];
var f = elements[1];
fl[i]["fname"] = f;
fl[i]["fsize"] = Number(elements[2]);
fl[i]["attr"] ... |
function carregaUsuario() { //pega o id do usuario logado que foi passado para a hash da url e entao acha o seu indice no array de usuarios
let ObjDadosUsuario = JSON.parse(localStorage.getItem('db_usuarios'));
function idParaIndice() {
for(let i = 0; i < ObjDadosUsuario.usuarios.length; i++) {
... |
// VARIABLES
// canvas settings
var canvasWidth = 1280
var canvasHeight = 720
var score = 0
var bpm = 0
var notes = []
var enemyNotes = []
var loadSong = new Audio()
var songs = [
{song: "Dad Battle", path: "./songs/Dadbattle_Voices.ogg", songName: "DadBattle", inst: "./songs/Dadbattle_Inst.ogg", map: "./... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TableControlRenderer = void 0;
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
var Item_1 = require("./Item");
var classnames_1 = tslib_1.__importDefault(require("classnames"));
var Button_1 = t... |
//rezki
$.validate({
modules : 'file'
});
//rezki
//Fungsi Form Absensi
//Proses Ambil Latitude & Longitude
var y = document.getElementById("nonsupport");
function getUserLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(g... |
const glob = require('glob');
const JSON5 = require('json5');
const fs = require('fs');
const helper = require('./helper');
const _ = require('lodash');
const RefsGraphGenerator = require('./refs_graph_generator');
const {getPhiSchemesFlags, getRefs} = require('./lookup_refs_generator');
const {getDomainResourceFields,... |
const mongoose = require("mongoose");
const config = require("./config");
const common = require("./common"); //circular?
mongoose.set("debug", config.mongoose_debug);
exports.init = (cb)=>{
mongoose.connect(config.mongodb, {
//TODO - move to config
/*
readPreference: 'nearest',
... |
// Copyright (c) 2018 <NAME>
// License: LGPL-3.0+
//
const Contract = require("./evmasm");
const G2 = require("snarkjs").bn128.G2;
const bigInt = require("snarkjs").bigInt;
function toHex256(a) {
let S = a.toString(16);
while (S.length < 64) S="0"+S;
return "0x" + S;
}
function createCode(P, w) {
... |
'use babel';
/* global WeakMap */
import $ from 'jquery';
import {packageManager} from 'content-manager';
import {StateManager} from '../../system/state-manager';
import {Interaction} from '../interaction';
import {DressElement} from '../../utils/dress-element';
import {elementSelector} from '../element-selector';
im... |
/**
* A module for configuring the reverse proxy, a local server to process and make requests and
* middleware for authenticating Github requests and serving local test reports.
*/
const fs = require('fs');
const path = require('path');
const express = require('express');
const srv = express();
const app = require(... |
//footer 展开显示
$(document).ready(function(){
$(window).scroll(function () {
if($(this).scrollTop() > 70 && $('body').height() > $(window).height() + $('.mzt-header_box').height() + 100) {
$('.mzt-header_box').addClass('fixed');
}else {
$('.mzt-header_box').removeClass('fixed')... |
// freezr.info - nodejs system files - file_handler
/* todo 2021
- later do:
- clean up ugliness
- redo other variables so it is an object not a string
*/
exports.version = '0.0.200'
const path = require('path')
const fs = require('fs')
const async = require('async')
const helpers = require('./helpers.j... |
/**
* @name Costello
* @author <NAME>
* @description Save and send a collection of images right inside Discord
* @version 0.0.7
* @source https://github.com/jasonliang-dev/costello
*
* See end of file for license information
*/
// eslint-disable-next-line no-undef
const {
React
} = BdApi;
const VERSION = "0.0... |
/*!***************************************************
* mark.js v8.9.1
* https://github.com/julmot/mark.js
* Copyright (c) 2014–2017, <NAME>
* Released under the MIT license https://git.io/vwTVl
*****************************************************/
"use strict";
function _classCallCheck(a, b) {
if (!(a instan... |
$(document).ready(function () {
App_.init();
});
var base_url = window.location.href + 'index.php/';
var App_ = App_ || {
init: function () {
// alert(this.nameFilterValue);
Filters.FunctionFilter();
// Filters.FunctionFilterShowMore();
}
};
var Filters = {
init: function () {
},
FunctionFilter: fun... |
import { participantScheduledMatchUps } from '../../governors/queryGovernor/participantScheduledMatchUps';
import { addNationalityCode } from '../../governors/participantGovernor/addNationalityCode';
import { getPositionAssignments } from '../../../drawEngine/getters/positionsGetter';
import { findExtension } from '../... |
//Handles functionality of Probability
$(window).load(function () {
chance();
expectation();
variance();
});
//Handles CSS animation for coin and die
//Adapted from http://jsfiddle.net/byrichardpowell/38MGS/1/
$.fn.animatecss = function(anim, time, cb) {
if (time) this.css('-webkit-transition', time /... |
// team search
var teamsJson2014 =_([
{"id": 5182111044599808, "name": "Radicals", location: "Madison"},
{"id": 5638404075159552, "name": "<NAME>", location: "Minnesota"},
{"id": 6220853180104704, "name": "Empire", location: "New York"},
{"id": 4868028676177920, "name": "Breeze", location: "DC"},
{"id": 57329105355407... |
// Define default variables
var uploadInput;
var layerSlider = {
g : {
dragContainer : null,
advanced : [5,6,7,10,14,15]
},
init : function() {
// Bind an event to add new slide
jQuery('.layerslider_add_slide').live('click', function(e) {
e.preventDefault();
layerSlider.addSlide(this);
});
... |
/**
* jquery.flips.js
*
* Original work Copyright 2011, <NAME> / Codrops
* Modified work Copyright 2015 <NAME> - thang.buinguyen at g<EMAIL>, - All Rights Reserved
* Free to use under the MIT license.
*
* Date: Fri Sep 2 2015
*/
/**
* Note: This is highly experimental and just a proof-of-concept!
* There ar... |
AOS.init();
var home_top = (document.querySelector('.home') != null) ? document.querySelector('.home').offsetTop : '';
var factsheet_top = (document.querySelector('.fact-sheet') != null) ? document.querySelector('.fact-sheet').offsetTop : '';
var design_top = (document.querySelector('.production-design') != null) ? doc... |
var model = { //Variables
i1 : (' 2357 '),
j1 : ('xxyabm'),
k1 : (' yzbcn'),
nivel : 0,
a : 0, //Valor del factor comun
n : 0,
m : 0,
b : 0,
b_i1 : "",
c : 0,
d : 0,
d_j1 : "",
e_k1 : "",
f : 0,
g : 0,
t : 0,
h : 0,
hh : "",
h1 : "",
h2 : ... |
import {
PlayerShip,
Projectile,
Space,
SquareEnemy,
FollowEnemy,
ClawEnemy,
SpiralEnemy,
BasicEnemy,
PowerUp,
Star,
draw_projectile,
draw_spiral_enemy,
draw_player_ship,
draw_shockwave,
draw_power_up,
draw_square_enemy,
draw_basic_enemy,
draw_enemy_projectile,
draw_follow_... |
const defaultConfig = {
arrowSize: 15,
arrowStyle: 0,
shadowStyle: 1,
minWidth: 50,
arrowPosition: 50,
padding: 10,
borderWidth: 1,
borderColor: '#ccc',
borderRadius: 10,
backgroundColor: '#fff',
closeSrc: 'https://maps.gstatic.com/intl/en_us/mapfiles/iw_close.gif',
disableAutoPan: false,
disa... |
// Number to floor value
function toInteger(number) {
var floorValue = Math.floor(number);
return floorValue;
};
// Functions for Length Converter
function inchTo() {
// Taking input
var a = document.getElementById('inputInch').valueAsNumber;
// inch to ft-in
var inFt = Math.floor(a / 12);
var inIn = ... |
iris.topologyWidth = 1160;
iris.topologyHeight = 700;
var switchStats = {};
iris.getSwitches = function() {
$.get("/wm/core/controller/switches/json")
.success(function(data) {
_.each(data, function(obj) {
var dpid = obj.dpid;
switchStats[dpid] = {};
iris.getStatistics(dpid);
});
iris.getLinks();
... |
console.info("%c WEATHER CARD \n%c Version 1.3.1 ",
"color: orange; font-weight: bold; background: black",
"color: white; font-weight: bold; background: dimgray");
const LitElement = Object.getPrototypeOf(
customElements.get("ha-panel-lovelace")
);
const html = LitElement.prototype.html;
const css = LitElement.... |
import levels from 'nightingale-levels';
import t from 'flow-runtime';
const RecordType = t.type('RecordType', t.object(t.property('level', t.number()), t.property('key', t.string()), t.property('displayName', t.nullable(t.string())), t.property('datetime', t.ref('Date')), t.property('message', t.string()), t.property... |
/**
* H3 v0.11.0 "<NAME>"
* Copyright 2020 <NAME> <<EMAIL>>
*
* @license MIT
* For the full license, see: https://github.com/h3rald/h3/blob/master/LICENSE
*/
const checkProperties = (obj1, obj2) => {
if (Object.keys(obj1).length !== Object.keys(obj2).length) {
return false;
}
for (const key in obj1) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.