text stringlengths 5.97k 41.2k |
|---|
/* Native JavaScript for Bootstrap 5 | Carousel
----------------------------------------------- */
import mouseenterEvent from 'shorter-js/src/strings/mouseenterEvent';
import mouseleaveEvent from 'shorter-js/src/strings/mouseleaveEvent';
import mouseclickEvent from 'shorter-js/src/strings/mouseclickEvent';
import keyd... |
/* eslint camelcase: 1 */
import extend from 'extend';
import EventEmitter from '../utils/event-emitter';
import extractData from '../data/extractor';
import tween from './tween';
import settingsResolver from './settings-resolver';
import {
styler as brushStyler,
resolveTapEvent,
resolveOverEvent,
brushFromScen... |
var domain= document.location.origin;
$(document).ready(function(){
// Carga();
if ($("#user_type_id").length > 0) {
getCredential();
$("select#user_type_id").change(getCredential);
}
if ($("#departamento").length > 0) {
getCities();
$("select#departamento")... |
const path = require('path')
const fs = require('fs')
const { Buffer } = require('ipfs-http-client')
const config = require('../config.js')
const { getSegmentsDuration } = require('../segmentDuration')
const models = require('../models')
const { saveFileFromBuffer, saveFileToIPFSFromFS, removeTrackFolder, handleTrackC... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import {
Form,
Breadcrumb,
Input,
InputNumber,
Button,
Upload,
Icon,
message,
DatePicker,
Select,
Cascader,
Modal
} from 'antd';
import ReactDOM from "react-dom";
import ReactCr... |
/*===========================================================================*/
// Get Service Area
// Sample map by ThinkGeo
//
// 1. ThinkGeo Cloud API Key
// 2. Map Control Setup
// 3. ThinkGeo Map Icon Fonts
// 4. Routing Setup
// 5. UI control setup
// 6. Derive the Custom Class Drag
// 7. Event Lis... |
import React from 'react';
import {HotKeys} from 'react-hotkeys';
import Block from './lib/Block';
import Spline from './lib/Spline';
import SVGComponent from './lib/SVGComponent';
import { ObjectID } from 'bson';
import PropTypes from 'prop-types';
import { DropTarget } from 'react-dnd';
import ItemTypes from '../../... |
/**
* @license apache-2.0
* @file bluefile.js
* Copyright (c) 2012-2020, LGS Innovations Inc., All rights reserved.
*
* This file is part of SigFile.
*
* Licensed to the LGS Innovations (LGS) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional in... |
var path = window.location.pathname;
var host = window.location.hostname;
$(document).ready(function () {
// Material Select Initialization
$('.mdb-select').material_select();
// Sidenav Initialization
$(".button-collapse").sideNav();
});
$(function () {
// Hashchange
$(window).hashchange(function () {
var... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
function createCommonjsModule... |
import { AcyModal } from '@/components/Acy';
import React, { useState, useEffect, forwardRef, useRef } from 'react';
import styles from '@/pages/Farms/Farms.less';
import DatePicker from 'react-datepicker';
import { AcySmallButtonGroup } from '@/components/AcySmallButton';
import { useWeb3React } from '@web3-react/core... |
$(document).ready(function() {
$('.edit-form').on('submit', function(e) {
var idNumForm = $(this).attr('id');
idNumForm = idNumForm.replace("edit-form-", "");
var commentNum = $('#commentNumEdit-' + idNumForm).val();
var editedComment = $('#edited-comment-' + idNumForm).val().trim();
e.preventDefault();
... |
const $ = require('jquery')
const fs = require('fs')
const d3 = require('d3')
const d3data = require('../data.js')
const ydoci = require('../ydoci.js')
const YAML=require('yaml')
const {ipcRenderer} = require('electron')
const indent=12
const icon = {
control:'•',
ins_above:'↖︎',
ins_below:'↘︎',
sort_down:'▽'... |
/*
v1.2.0
_ __ _
__| |_ __ __ _ __ _ /\ \ \__| |_ __ ___ _ __
/ _` | '__/ _` |/ _` |/ \/ / _` | '__/ _ \| '_ \
| (_| | | | (_| | (_| / /\ / (_| | | | (_) | |_) |
\__,_|_| \__,_|\__, \_\ \/ \__,_|_| \___/| .__/
|___/ |_| ... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof3 = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/he... |
var clock;
$(document).ready(function () {
$("#showHideContent").click(function () {
if ($("#content").is(":hidden")) {
$(this).text("Cкрыть");
$("#content").show();
} else {
$(this).text("Развернуть переписку");
$("#content").hide();
}
... |
//import events from "events";
import "../scss/custom.scss";
import KFK from "./console";
import messages from "./lang";
import ACM from "./accountmanage";
import EXP from "./explorermanage";
import SHARE from "./sharemanage";
import Validator from "./validator";
import { NodeController } from "./nodeController";
impor... |
import _ from 'lodash'
import cx from 'classnames'
import React, { cloneElement, PropTypes } from 'react'
import { findDOMNode } from 'react-dom'
import META from '../../utils/Meta'
import { customPropTypes, getUnhandledProps, useKeyOnly, useKeyOrValueAndKey } from '../../utils/propUtils'
import keyboardKey from '../.... |
import React, { PureComponent, Fragment } from 'react';
import router from 'umi/router';
import { connect } from 'dva';
import moment from 'moment';
import {
Row,
Col,
Card,
Form,
Input,
Select,
Icon,
Button,
// Dropdown,
// Menu,
// DatePicker,
message,
Badge,
Divider,
Modal,
} from 'antd... |
var title = "Perfect Font";
var preId = "perfectfont-";
var mouseX, mouseY, lDivX, lDivY;
var move = false;
var domElements = ["window", "header", "list-container", "list", "detail", "toggle-transparency", "selection", "search-container", "available-container", "available", "preference", "value"];
var preferenceName... |
/*global */
/*jslint browser:true,sloppy:true,nomen:true,unparam:true,plusplus:true */
/*
| Copyright 2012 Esri
|
| 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.apach... |
/* eslint-disable quotes */
import test from 'ava'; // AVA insists on ES6 export/import
const rewire = require('rewire');
const backend = rewire('./backend');
const config = rewire('./config');
const fs = require('graceful-fs');
const deepmerge = require('deepmerge');
var listFiles = backend.__get__('listFiles');
... |
import { type, isEmptyObject } from '@/utils/utils';
import { delFaq, modifyFaq, batchStatusUpdate } from '@/services/faq';
import { connect } from 'dva';
import Link from 'umi/link';
import router from 'umi/router';
import QRCode from 'qrcode.react';
import apiConfig from '@/utils/apiConfig';
import {
Layout,
M... |
function obtenerVariable3D(dato, posicion) {
var resultado = new Expresion();
var listaCodigoAux = [];
var variable = obtenerVariableLocal(dato, posicion, true)
if (variable != null && boolEste == false) { //Se encontro localmente
var t1 = generarTemp();
listaCodigoAux.push(new Codigo(g... |
var util = require('util');
var fs = require('fs');
var path = require('path');
var crypto = require('crypto');
var exec = require('child_process').exec;
var moment = require('moment');
// default setting
exports.getDefaultSetting = function(serverPath) {
serverPath = path.resolve(serverPath);
var setting = {
... |
// https://github.com/alexbol99/flatten-js
import { Point, Line, Circle } from '@flatten-js/core'
import NP from 'number-precision'
// 联立直线解析式求交点
export function linesIntersect (k1, b1, k2, b2) {
if (k1 === k2) {
return []
}
if (Math.abs(k1) === Infinity) {
return [b1, k2 * b1 + b2]
}
if (Math.abs(k... |
import evaluate from "./utils_evaluate";
import cloneDeep from 'lodash/cloneDeep';
import {WIDGET_NAMES, WIDGET_STATUS} from "web/js/app.constants.js";
import {HolderUtil} from "web/js/utilities/holder.util.ts";
const $ = window.$ || window.jQuery || require('jquery');
if(typeof window.URL !== 'function'){
requir... |
// flic_test.js
// Copyright (c) 2011 <NAME> (car<EMAIL>)
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license
// https://github.com/cgorringe/BinFileJS
// 3/31/2011
// works in Firefox 3.6 and Chrome 10
// doesn't work in IE or Opera
// @requires binfile.js
// --- Helper functions ---
fu... |
var canvas = document.getElementById("renderCanvas");
var ctx = canvas.getContext('2d');
var layers;
var scale = 1;
var translate = [0, 0];
var maxSpeed = 0;
var filamentDiameter;
var currentRender;
var maxCoord;
var minCoord;
var lastRenderTime;
var maxRenderDelay = 50;
var delayWithoutRender;
functio... |
"use strict";
const Core = require('../lib/core');
const auth = require('solid-auth-client');
const {
default: data
} = require('@solid/query-ldflex');
const namespaces = require('../lib/namespaces');
const DataSync = require('../lib/datasync');
const Loader = require('../lib/loader');
let core = new Core(auth.fetc... |
var
http = require('http'),
fs = require('fs'),
qs = require('querystring'),
exec = require('child_process').exec,
url = require('url'),
multiparty = require('multiparty'),
spawn = require('child_process').spawn,
shell = require('shelljs');
var site = __dirname + '/public';
var urlobj;
var injectStatu... |
'use strict';
const common = require('x2node-common');
const ValueExpression = require('./value-expression.js');
const placeholders = require('./placeholders.js');
const queryTreeBuilder = require('./query-tree-builder.js');
const Translatable = require('./translatable.js');
/**
* Filter base class.
*
* @protect... |
import {
AmbientLight,
AnimationMixer,
AxesHelper,
Box3,
Cache,
CubeTextureLoader,
DirectionalLight,
GridHelper,
HemisphereLight,
LinearEncoding,
LoaderUtils,
LoadingManager,
PMREMGenerator,
PerspectiveCamera,
RGBFormat,
Scene,
Group,
Mesh,
Ske... |
// Author: @patriciogv 2015
// GLOBAL PARAMETERS
//==========================
var defaultTime = 3600; // seconds -> 1 hr
var samplesTotal = 300; // n of samples
var samplesStep = 20; // seconds
var timeOffset = 120; // seconds
var startTime;
// Const
var EARTH_RADIUS = 6378137.0;
// SOURCES holders
var library, sate... |
$(document).ready(function() {
$("select").formSelect();
$(".modal").modal();
$(".fixed-action-btn").floatingActionButton();
$(".tooltipped").tooltip({exitDelay: 300});
addOverlay();
checkSession();
});
/* global variables */
let serverdata = 0;
let serverResponse = {time: 0, request... |
$(document).ready(function() {
console.log("ajaxtiempoetaready!");
});
function modaletaenproceso(ideta,cados){
if (cados=="") {
alert("sin Datos"); return;
}
var tabla = $('#dt-proceso').DataTable();
tabla.clear().destroy();
$('#modaletaenproceso').modal('show');
//___________________________DTLOAD_____... |
/**
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || function (decora... |
/* * spectcl.js: Top-level include for the `spectcl` module.
*
* (C) 2015, <NAME>, <NAME>
* (C) 2011, <NAME>, <NAME>, <NAME>.
*
*/
'use strict'
var cpSpawn = require('child_process').spawn
, pty = require('child_pty')
, events = require('events')
, through = require('through')
, util = require('util')
... |
var events = require("events"),
util = require("util"),
colors = require("colors"),
Firmata = require("firmata").Board,
_ = require("lodash"),
__ = require("../lib/fn.js"),
Repl = require("../lib/repl.js"),
serialport = require("serialport"),
Pins = require("../lib/board.pins.js"),
O... |
import { Assert, GetValues, IsString, VURL, E, Clone, CE } from "js-vextensions";
import { SplitStringBySlash_Cached, SlicePath, StoreAccessor } from "mobx-firelink";
import { GetMedia } from "../media";
import { GetNiceNameForMediaType } from "../media/@Media";
import { GetNodeRevision } from "../nodeRevisions";
impor... |
var __GLOBAL_INNERHTML_TAGS = ['a', 'div', 'td', 'th', 'li'];
var __GLOBAL_CHECKED_TAGS = ['checkbox', 'radio'];
var __GLOBAL_TEXT_PROPERTIES = ['value', 'text'];
var __GLOBAL_ATTRIBUTES = ['style', 'onclick', 'ondblclick', 'onmouseout', 'onblur', 'onchange', 'onkeydown',
'onkeypress', 'onkeyup', 'onmousedown', 'on... |
var cScrollBar = {
visible: true,
defaultWidth: get_system_scrollbar_width(),
width: get_system_scrollbar_width(),
ButtonType: {
cursor: 0,
up: 1,
down: 2
},
defaultMinCursorHeight: 20,
minCursorHeight: 20,
timerID: false,
timerCounter: -1
};
function oScrollbar() {
this.buttons = new Array(3);
this.b... |
var i;
var map;
var menu;
var out1;
var out;
var user_index;
var emptyDex = [];
var forts = [];
var info_windows = [];
var outArray = [];
var numTrainers = [
177,
109
];
var teams = [
'TeamLess',
'Mystic',
'Valor',
'Instinct'
];
var trainerSex = [
'm',
'f'
];
var bagCandy = {};
var bagItems = {};
var... |
var sampleTitle = '<h3>Lorem ipsum dolor sit amet</h3>';
var sampleParagraph = '<p>Suspendisse enim velit, porta et urna at, vehicula interdum sapien. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent ipsum augue, condimentum rhoncus est quis, cursus dignissim sapien. Fusce id interdum nunc. Suspendiss... |
var Funcoes = {
net : false,
//Exibir alerta
alerta: function(msg,title){
/*navigator.notification.alert(
msg, // message
Funcoes.esconderAlerta, // callback
title, // title
'Ok' // buttonName
);*/
... |
/**
* @author <NAME>
*
* Versione 0.5 di INSUPERATO
*
*/
//THE GAME
var newGame;
var Game = function() {
var gameover = false; //se è true, il gioco non va più avanti
var livelloCorrente = -1;
//dimensioni default singolo bottone
var cellWidth = 38//34;
var cellHeight = 35//31;
//margini css
const X... |
import { promptClass, vecToName } from './utils.js';
import { svgNS } from './chart.js';
export const MIN_PAGE = 2;
const CHART_STYLE = `
.class-error {
fill: #a6001a;
}
.class-done {
fill: gray;
}
.class-group:hover > circle {
fill: red;
}
.highlight > circle, .selected > circle {
fill: red;
}
.differ... |
import React, {Component} from 'react';
import { connect } from 'react-redux';
import { showError } from '../actions';
import uuid from 'uuid/v4';
import { Player, BigPlayButton } from 'video-react';
import "../../node_modules/video-react/dist/video-react.css";
import ReactPlayer from 'react-player';
import '../css/Ed... |
// Inspired by https://bl.ocks.org/gordlea/27370d1eea8464b04538e6d8ced39e89
// and https://www.d3-graph-gallery.com/graph/line_change_data.html
// and https://bl.ocks.org/jadiehm/0d341b74bef30889c893a3b14cbeb974
// and https://bl.ocks.org/dimitardanailov/99950eee511375b97de749b597147d19
... |
// Copyright (c) 2020 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distri... |
var moment = require('moment-timezone');
require('moment-duration-format');
var yargs = require('yargs');
// var util = require('util');
exports.run = async (client, message, args, level) => {
const guildSettings = await client.guildSettings.findOne({where: {guildID: message.guild.id}, attributes: ['adminRole', 'e... |
const { response } = require('express')
const express = require('express')
const result = require('./result')
const app = express()
app.listen(8001)
app.use(function(req, res, next) {
res.setHeader('Access-Control-Allow-Origin','*');
res.setHeader('Access-Control-Allow-Methods', '*');
res.setHeader('Access-Contr... |
/**
* @file KDRoll.esm.js
* @version 1.3.1
* @author justKD
* @copyright justKD 2020
* @license MIT https://notnatural.co/license/mit/
* @fileoverview `KDRoll` is a class representing a random number manager.
* Includes Mersenne Twister uniform distribution, Box Mueller gaussian
* distribution, n-sided die roll... |
var bootcamp = new Kiwi.State('BootCamp');
//Like the last example we are going to request product information from the products.php script, but this time we will be sending information about our platform.
var productURL = 'products.php';
/**
* The preload method gets called after the init method, and is in charge o... |
/* Manages the child processes.
*
* Copyright 2017 Raising the Floor - International
*
* Licensed under the New BSD license. You may not use this file except in
* compliance with this License.
*
* The R&D leading to these results received funding from the
* Department of Education - Grant H421A150005 (GPII-APCP... |
/**
* Copyright 2022 F5 Networks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
const { groupBy, mapValues, range, cloneDeep, maxBy, sum, get, identity, map, compose, filter, sumBy, max, every, pullAt, findIndex } = require('lodash/fp');
const { memoize } = require('lodash')
const { getDailyMinerBenefits, getNodeById } = require('./common')
const memoizeGetNodeById = memoize(getNodeById)
const ge... |
const fragShader = `
#define SHADER_NAME POST_PROCESS
precision highp float;
uniform float uTime;
uniform sampler2D uMainSampler;
varying vec2 outTexCoord;
uniform vec2 uResolution;
uniform float amount;
uniform float barrelPower;
uniform float fadeAmount;
uniform float bloomPower;
// Remap values
float map(floa... |
$(document).ready(function() {
$("#checkall").change(function(){ //"select all" change
$(".checkbox").prop('checked', $(this).prop("checked")); //change all ".checkbox" checked status
});
//".checkbox" change
$('.checkbox').change(function(){
//uncheck "select all", if one of the listed checkbox item is... |
import Controller from '@ember/controller';
import { inject as service } from '@ember/service';
import { computed } from '@ember/object';
import { w } from '@ember/string';
import countryList from 'iso-3166-country-list';
import FileReader from 'ember-file-upload/system/file-reader';
// states and provinces use iso-31... |
/** Copyright 2020 Tianshu AI Platform. 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 ... |
function removeCommas(str) {
if(typeof str === "undefined") return;
return(str.replace(/,/g,''));
}
function add_account(account_id, member_id) {
$.ajax({
url: base_url + "/deposit_atm/add_account_atm",
method: "post",
data: {account_id: account_id, member_id: member_id},
da... |
const SERVER_STATES = require('../client/server_states');
const SERVER_VERSION = require('../../package.json').version;
const Shuffle = require('../client/shuffle');
const randombytes = require('randombytes');
const sha256 = require('js-sha256');
const Logger = require('./logger');
const path = require('path');
const C... |
import Vue from 'vue';
import Random from 'random-js'
import Prob from 'prob.js'
import uuid from 'uuid/v4'
import PromiseWorker from 'promise-worker'
import ParticleLifeWorker from 'worker-loader!~/assets/script/particle-life.worker.js'
import {chunk} from 'lodash'
const $particles = Vue.prototype.$particles = { }
ex... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.... |
// ==UserScript==
// @name Fimfiction Comment Tweaks
// @description Tweaks for Fimfiction comments
// @author Pluie
// @version 0.2.2
// @license MIT
// @homepageURL https://github.com/PluieElectrique/fimfic-comment-tweaks
// @supportURL https://github.com/PluieElectrique/fimf... |
// Dependencies
import axios from "axios";
import React, { Component } from "react";
import { connect } from "react-redux";
// Components
// Assets
import hashKey from "./assets/images/hash-key.svg";
// Styles
import styles from "./scss/AddNewService.scss";
class AddNewService extends Component {
constructor(prop... |
/* eslint-disable no-console */
const ENVIRONMENT = process.env.NODE_ENV;
require("../module/init/preinstall")();
const config = global.config = require("../config.json");
const app = require("../app");
require("debug")("express:server");
const log4js = require("../module/logger");
const logger = log4js.logger("normal... |
/* eslint-disable no-undef */
// Preamble {{{
// To load this local config file on chromium like browsers (on firefox we need
// to manually copy and paste):
// i) Check `Allow access to file URLS` for surfingkeys in the general extensions
// view
// ii) In the extensions settings check `Advanced mode` box and add pat... |
const truffleAssert = require('truffle-assertions');
const { BN, ether, constants, expectEvent, shouldFail, time } = require('openzeppelin-test-helpers');
const should = require('chai').should();
const { expect } = require('chai');
const { ZERO_ADDRESS } = constants;
const TeamVesting = artifacts.require('TeamVesting'... |
// define selector
function _(str) {
return document.querySelector(str);
}
// global variables
const token = localStorage.getItem('sessionToken');
const userUrl = 'http://backtick.herokuapp.com/public/api/user';
const delUrl = 'http://backtick.herokuapp.com/public/api/goal';
// to create new goal
function activ... |
/*
* @Descripttion: 描述
* @version: 版本
* @Author: lf
* @Date: 2020-06-08 14:09:14
* @LastEditors: lf
* @LastEditTime: 2020-06-08 15:38:21
*/
export const baseImageIp = 'http://ht.youcanedu.net'
// export const baseIp = 'http://192.168.1.103:8881'
export const baseIp = 'http://ht.youcanedu.net:8881'
/**
* 基础模... |
whole_graph = {};
graph_render = null;
neod3 = null;
nodes_id_name = {};
function Cy2NeoD3(config, graphId, tableId, sourceId, execId, urlSource, renderGraph, cbResult, query, highlight_query) {
/*
function createEditor() {
return CodeMirror.fromTextArea(document.getElementById("cypher"), {
parserfile: ["codemi... |
var stack = [];
var allFuncs = [];
var volatileRegs = ['rcx','rdx','r8','r9']; // this is for Win64-FastCall Calling Convention
var strLiteralSection = '';
var currentFunc = '';
// List of additional settings coming in the future:
// setting the mnemonic: AT&T or Intel
// var mnemonic = 'AT&T';
// setting the syntax: G... |
const constants = require('@config');
var sql = require('@sql');
const math = require('mathjs');
var rp = require('request-promise');
var turf = require('@turf/turf');
// const util = require('util')
module.exports = {
/* Algorithm:
1. Obtain all spots within certain radius of user destination
2. ... |
const utils = require('./utils');
if (typeof Promise === "undefined") {
Promise = require("bluebird");
}
let timeRegExp = /[-+]?\d+(?:.\d+)?(?:s|ms)/i;
let transitionPropertyCommaRegExp = /\s*,\s*/;
let transitionTimingFunctionRegExpExec = /(?:\s*,)?\s*([^(,]+(?:\([^)]+\))?)/g;
/**
* TransitionProperty(property... |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
//-----Crud Form Class -------------------------
function CrudForm( model ) {
this.model = model;
this.url = "";
this.sys_msg = {};
this.sys_msg['confirm_delete'] = 'Are you sure that you want to permanently delete the selected database object?';
this.before_save = function (data) {
retur... |
// todo:
// "cmyk-" in the textbox breaks it?
//make note when they enter cmyk to get another color it's because it's converting it with/without key, they're both the same color
let isSlick = false;
$(function() {
checkSlick();
$('#color-picker').colorPicker({opacity:false, renderCallback:
function(elm, toggle... |
let timeRange = [
'0800-0850', '0900-0950', '1000-1050', '1100-1150',
'1200-1250', '1300-1350', '1400-1450', '1500-1550',
'1600-1650', '1700-1750', '1800-1850', '1900-1950',
'2000-2050', '2100-2150'
]
let weekday = [
'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'
]
var canvas = document.getElementById("bg-canvas"... |
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
MARIONETTE_TIMEOUT = 40000;
SpecialPowers.addPermission("sms", true, document);
SpecialPowers.setBoolPref("dom.sms.enabled", true);
let sms = window.navigator.mozSms;
ok(sms instanceof MozSmsManager);
let pen... |
/*
* The rico validator class.
*
* @author <NAME> <<EMAIL>>, <NAME> <@frozeman>
*/
const _ = require('lodash');
function clone(_what) {
return _.cloneDeep(_what);
}
const { BN, constants } = require("openzeppelin-test-helpers");
const { MAX_UINT256 } = constants;
const web3util = require("web3-utils");
const... |
import React, { useState, useEffect } from "react";
import {
NavLink,
Card,
CardBody,
CardHeader,
Col,
Row,
Button,
ListGroupItem,
ListGroupItemHeading,
ListGroupItemText,
ListGroup,
Modal,
ModalHeader,
ModalBody,
ModalFooter,
Progress,
} from "reactstrap";
import { withApollo } from "r... |
var page = 1;
var page_count = 1;
var reload_pass = '<PASSWORD>¥';
var this_vip_app = true;
var txt_coin = '挖宝币';
var wallet_point = 0;
var gameid = 103
$(document).ready(function () {
reload_pass = $('#reload_pass').val();
getToken();
var clipboard = new ClipboardJS('.cutBtn', {
target: f... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const dist_1 = require("gotti-reqres/dist");
const Protocol_1 = require("./Protocol");
const Util_1 = require("./Util");
class Gate {
constructor(gateURI, redisURI) {
this.urls = [];
this.connectorsByServerIndex = {};
... |
"use strict";
var statusBtn1 = '<button class="btn btn-sm statusbtn" data-id="';
var statusBtn2 = '" data-name="';
var statusBtn3 = '" style="display: inline-block;float: right;"><i class="fa fa-caret-right" aria-hidden="true"></i></button>';
$(function() {
//List of parameters for the current test.
var par... |
import {MetricsPanelCtrl} from 'app/plugins/sdk';
import $ from 'jquery';
import angular from 'angular';
import kbn from 'app/core/utils/kbn';
import * as FileExport from 'app/core/utils/file_export';
import DataTable from './libs/datatables.net/js/jquery.dataTables.min.js';
// this is needed for basic datatables.net... |
//This classes needs: KolorWheel.js and Spectrum.js
// http://linkbroker.hu/stuff/kolorwheel.js/
// https://bgrins.github.io/spectrum/#methods-show
//
//Changed: 12/19/2020
// Removed alfa hexa values from default_palette
//Changed: 06/04/2020
// Fixed, load funciton was changing data parameter
//Chan... |
import './app.css';
import {
Box,
Button,
ButtonGroup,
Flex,
Heading,
IconButton,
Label,
Logomark,
Pagination,
Select,
Text,
TextInput,
VisuallyHidden,
} from '@sajari-ui/core';
import { Client, DefaultSession, InteractiveSession, TrackingType } from '@sajari/sdk-js';
import classnames from '... |
// Copyright 2021 RLDSCreator Authors.
//
// 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 log = console.log;
let exported=module.exports={};
// *********************************************************************************************************************
// EXPORTED FUNCTIONS
// *********************************************************************************************************************... |
'use strict';
exports.__esModule = true;
var _setPrototypeOf = require('babel-runtime/core-js/object/set-prototype-of');
var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);
var _create = require('babel-runtime/core-js/object/create');
var _create2 = _interopRequireDefault(_create);
var _assign = requi... |
/* eslint-disable no-useless-escape */
"use strict";
const logger = require("./logger.js");
const jsdom = require("jsdom");
const { JSDOM } = jsdom;
const COMPENDIUM_MAP = {
"skills": "skills",
"senses": "senses",
"conditions": "conditions",
"spells": "spells",
"magicitems": "items",
"weapons": "items",
... |
// returns a radiomenu of energy sources
//_title whether or not to headline the menu with the title "energysources"
//without: array of keys of the sources not to be mentioed in the printed menue
function createEnergySourceMenue(
_title = true,
without = [],
titleLevel = "h2",
_checked = "run_of_river_unit",
... |
"use strict";
// TODOS
// rewrite using typed arrays
// fix utf-16 support
// figure out how to do caching-safe translation and detranslation
// rewrite cut to be constant-order
/* Written primarily by me, <NAME>
* Based VERY heavily on Warren MacEvoy's C code for the same algorithm
* I implemented the tricky const... |
import React from "react";
import { useState } from "react";
import {useEffect} from "react";
import { makeStyles } from "@material-ui/core/styles";
import {DisplayTabularContainer} from "./displayTabularContainer";
import {DisplayTicTacToeContainer} from "./displayTicTacToeContainer";
import {DisplayTriviaContainer} f... |
var ivsaAdmin = angular.module('ivsaAdmin', ['ui.bootstrap']);
// ------------------------------------------------------------------
// Utility functions for parsing in getDateFromFormat()
// ------------------------------------------------------------------
function _isInteger(val) {
var digits="1234567890";
... |
/*
* test/parse-integer.js: tests parseInteger()
*/
var mod_assert = require('assert');
var mod_util = require('util');
var jsprim = require('../lib/jsprim');
// --- Globals
var parseInteger = jsprim.parseInteger;
/* parseIntJS is used in these tests to avoid confusion */
var parseIntJS = parseInt;
/* Options fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.