text stringlengths 5.97k 41.2k |
|---|
const crypto = require('crypto');
const async = require('async');
const { parseString } = require('xml2js');
const { errors, versioning, s3middleware } = require('arsenal');
const escapeForXml = s3middleware.escapeForXml;
const { pushMetric } = require('../utapi/utilities');
const getReplicationInfo = require('./apiUt... |
let canva = null;
let ctx = null;
let color_functions = {};
let glob = {};
let param_list = null;
let cur_mode = 'RGBA';
const MODES = ['RGBA', 'RGB', 'MONO', 'GRAYSCALE', 'HSV', 'HSL', 'CMYK'];
$(() => {
canva = document.getElementById('main-img');
ctx = canva.getContext('2d');
/* render image on clic... |
require('dotenv/config');
const fs = require("fs");
const pathModule = require("path");
const RSA = require('hybrid-crypto-js').RSA;
const Crypt = require('hybrid-crypto-js').Crypt;
const handle = require('@utils/handle');
const { PathWrite, PathRead } = require('@utils/handle-path');
const { parseToJ... |
var util = require(__dirname + '/../util.js');
var lib_func = require(__dirname + '/../library_functions.js');
var async = require('async');
var archiver = require('archiver');
var os = require('os');
var opener = require('opener');
var md5 = require('md5');
var request = require('request').defaults({ encoding: null })... |
/*
* CLIP
* Copyright (C) SatisKia. All rights reserved.
*/
// 計算エラー情報
function __ProcError(){
this._err = 0;
this._num = 0;
this._func = new String();
this._token = new String();
this._before = null; // 前の計算エラー情報
this._next = null; // 次の計算エラー情報
}
// 計算エラー情報管理クラス
function _ProcErro... |
$(document).ready(function() {
console.log('hallo');
var sentence = decodeURIComponent(getUrlParameter('sentence')).replace(/\+/g, ' ');
console.log('sentence:' + sentence);
if (sentence != 'undefined')
$("#sentence").val(sentence);
sentence = $("#sentence").val();
var translation = dec... |
// Handle buttons
function keypress(e){
// Left: 37; Right: 39; Space: 32; p: 80
// console.log(e);
var k = (typeof e.which == "number") ? e.which : e.keyCode;
if (k==80){
if (!globals.pause){
globals.pause = true;
}
if(globals.idle){
globals.pause = false... |
const fs = require('fs');
const express = require('express');
const { v4: uuidv4 } = require('uuid');
const nodemailer = require('nodemailer');
const cors = require('cors');
const path = require('path');
const { json } = require('express');
const DISABLE_TWILIO = process.env.DISABLE_TWILIO || false;
if (DISABLE_TWILIO... |
// Blues Code Highlighter - Codelighter
// Set Styles
var jss = {
'rule': {
'pre.bz-code': {
'attr': {
padding: '16px 0',
background: 'transparent',
border: '1px solid var(--color-primary)',
clear: 'both',
display: '... |
// nav bar
const limit = "5-11"
const MDCTopAppBar = mdc.topAppBar.MDCTopAppBar;
MDCTopAppBar.attachTo(document.getElementById('app-bar'));
const numberFmt = new Intl.NumberFormat('en-US')
// "5-11" -> 511
function dateToNumber(date) {
date = date.split("-");
month = Number(date[0]);
date = Number(date[1])... |
//help me
//Uses booru to search boorus
//The future is now
module.exports.config = {
name: 'search',
invokers: ['search', 's', ''],
help: 'Searches boorus',
expandedHelp:
'Allows you to search various boorus\n`search [booru] [tag1] [tag2...]`\n\nYou can use aliases for boorus (like `sb` for `safebooru`)\nU... |
import React, { useState, useEffect } from 'react';
import {
Button,
DialogContent,
InputLabel,
Select,
Typography,
FormControl,
TextField,
MenuItem,
Grid,
Box,
} from '@mui/material';
import {
CategoryFetchService,
SensorAddService,
SensorCategoryFetchService,
SensorEditService,
} from '..... |
$(document).on('click', '.input_sr', function(event) {
var e = $(this);
var row = e[0].id.split('_')[1];
$('#entryRow').val(row);
$('#newModel').modal('toggle');
});
var _ploaded_models;
var _lastitem = 1;
//
$.get(jsBaseUrl+"/ajaxrequest/loadmodels", function(data){
_ploaded_models = data;
$("#autocompleteitem_1... |
"use strict";
var fs = require("fs");
var gulp = require("gulp");
var gutil = require("gulp-util");
var sourcemaps = require('gulp-sourcemaps');
var concat = require('gulp-concat');
var changed = require('gulp-changed');
var ts = require("gulp-typescript");
var newer = require('gulp-newer');
var uglify = require('gulp-... |
let temp
let RunningApps = []
let History = []
let UserSettings = []
let AppCatelogue = []
let CurrentUserName = "template"
let Active = "Desktop"
let CurrentWorkspace = 1
function init() {
// const request = new Request('/users/template/data/User.json');
// const response = await fetch(request);
// const userDa... |
global.Discord = require('discord.js');
let selectedGuild;
let selectedChan;
let selectedChatDiv;
let oldimg;
let barry = false;
const remote = require('electron').remote;
const fs = require('fs');
require('electron-titlebar');
function create() {
document.getElementById("msgbox")
.addEventListener("keyup", fun... |
var columns = [
//Type
{"data": "type", "title": "Type", className: "contentType",
//if the article type ends in s remove the s to create the display text
render: function (data,type,row){return data.replace(/s\b/, "");}},
//Title
{"data": "title", "title": "Title", className: "title",... |
/* See also:
http://www.html5rocks.com/en/tutorials/webrtc/basics/
https://code.google.com/p/webrtc-samples/source/browse/trunk/apprtc/index.html
https://webrtc-demos.appspot.com/html/pc1.html
*/
var cfg = {"iceServers":[{"url":"stun:172.16.17.32"}]},
con = { 'optional': [{'DtlsSrtpKeyAgreement': true... |
const formatNum = (num) => {
return num*1 < 10 ? ('0' + num*1) : (num + '')
}
const generateNumArr = (start, end, step=1) => {
const arr = []
if (start*1 > end*1) {
for (let i = start*1; i >= end*1; i = i - step*1) {
arr.push(formatNum(i))
}
} else {
for (let i = start*1; i <= end*1; i+=step*1) {
arr.p... |
import React from 'react'
import AccountBalances from './views/myPages/bankAndCash/accountBalances'
import AllAccounts from './views/myPages/bankAndCash/allAccounts'
import AllOrders from './views/myPages/orders/allOrders'
import NewOrder from './views/myPages/orders/newOrder'
// examples
const Colors = React.lazy(()... |
// Package imports
import React, { Component, Fragment } from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { connect } from 'react-redux'
import { withStyles } from '@material-ui/core/styles'
import CssBaseline from '@material-ui/core/CssBaseline'
import Drawer from '@material... |
var dataTable
var token = $('#token').val();
/* LE PONGO AL SELECT DE PERIODO EL PERIODO ACTUAL!!!*/
// Return today's date and time
var currentTime = new Date()
// returns the month (from 0 to 11)
var month = currentTime.getMonth() + 1
// returns the day of the month (from 1 to 31)
... |
// Process translation
$(function () {
var lang = getCookie("_culture");
if (lang == null) {
lang = navigator.language.substring(0, 2);
if (!lang.length > 0) {
lang = "tr";
}
}
//$body.attr("lang").val() = arrLang[lang][$(this).attr('dil')]
$('.lang').each(function (index, item) {
$(t... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _express = require("express");
var _express2 = _interopRequireDefault(_express);
var _cookieParser = require("cookie-parser");
var _cookieParser2 = _interopRequireDefault(_cookieParser);
var _bodyParser = require("body-parser");
va... |
"use strict";
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMinimizer = exports.getHttpsConfig = export... |
import React, { Component } from "react";
import {
Select,
Table,
Input,
Button,
Form,
message,
Radio,
Modal,
Checkbox
} from "antd";
import {
EditOutlined,
CheckOutlined,
ExclamationCircleOutlined
} from "@ant-design/icons";
import webService from "../webService";
import extService from "../ext... |
/**
* Created by Administrator on 2017/8/8.
*/
///<reference path="./declarations.d.ts" />
import { __assign, __extends, __rest } from "tslib";
import { AutoComplete, Button, Checkbox, Collapse, DatePicker, Form, Input, InputNumber, Radio, Select, Tooltip, Upload } from 'antd';
import * as moment from "moment";
impor... |
const url = require('url')
const path = require('path')
const log = require('electron-log');
// const remote = require('electron').remote;
const remote = require('@electron/remote');
const app = remote.app
// App wird nicht lokal ausgeführt
// daher abas-window-watcher nach temp kopieren
if (!app.getAppPath().starts... |
(function(){
var now = { row:1, col:1 }, last = { row:0, col:0};
const towards = { up:1, right:2, down:3, left:4};
var isAnimating = false;
s=window.innerHeight/500;
ss=250*(1-s);
$('.wrap').css('-webkit-transform','scale('+s+','+s+') translate(0px,-'+ss+'px)');
document.addEventListener('touchmove',function(event)... |
import { mat4, quat } from 'gl-matrix';
import { Frame } from './Frame.js';
import { getClosestEulerRepresentation, toSmallestEulerValueDistance } from './utils/euler.js';
import { getEuler, getMatrixDifference } from './utils/glmatrix.js';
import { RAD2DEG, DEG2RAD } from './utils/constants.js';
// degrees of freedom... |
"use strict";
ftab["w"] = 10;
ftab["u0"] = 0;
ftab["u1"] = 2*Math.PI;
ftab["v0"] = 0;
ftab["v1"] = Math.PI;
ftab["d"] = set_distance;
ftab["alpha"] = 0.94;
var new_proj = new_proj_parallel;
var proj_distance = 100;
var plot_refresh = false;
function refresh(gx){
plot_refresh = true;
update(gx);
}
var thet... |
const commentRegEx = /(\/\*(?:[^\*]|\*[^\/])*\*\/)/gmy;
// eslint-disable-next-line no-control-regex
const nameRegEx = /-?(?:(?:[a-zA-Z_]|[^\x00-\x7F]|\\(?:\$|\n|[0-9a-fA-F]{1,6}\s?))(?:[a-zA-Z_0-9\-]*|\\(?:\$|\n|[0-9a-fA-F]{1,6}\s?))*)/gmy;
const numberRegEx = /[\+\-]?(?:\d+\.\d+|\d+|\.\d+)(?:[eE][\+\-]?\d+)?/gmy;
con... |
import _ from "lodash";
import Promise from "bluebird";
import Client from "./clearbit/client";
import { isInSegments, getDomain, now } from "./clearbit/utils";
import {
canProspect,
shouldProspect,
shouldprospectUserFromDomain
} from "./clearbit/prospect";
import {
canEnrich,
shouldEnrich,
enrichUser,
... |
import DashView from './components/Dash.vue'
import LoginView from './components/Login.vue'
import NotFoundView from './components/404.vue'
// Import Views principais
import DashboardView from './components/dash/Dashboard.vue'
import TablesView from './components/dash/Tables.vue'
import TasksView from './components/da... |
function DoNothing()
{
// Stub
}
//******************************
// BUILD TASKPAD BUTTON FUNCTION
//******************************
function BuildTaskpadButtons( iPageStyle )
{
var szNextButton;
for( var i = 0; i <= giTotalButtons; i++ ) {
szNextButton = GetNextButton( iPageStyle, i );
divSymbo... |
// cookie names for data we store(저장하는 데이터의 쿠키 이름)
// YOUR API KEY DOES NOT GO IN THIS CODE; don't paste it in.(귀하의 API 키는이 코드를 따르지 않습니다. 그것을 붙이지 마십시오.)
API_KEY_COOKIE = "<KEY>";
CLIENT_ID_COOKIE = "938c20c182734b108a3220a76b57e728";
// Bing Search API endpoint(Bing Search API 엔드 포인트)
BING_ENDPOINT = "https://... |
/*
* Copyright 2011, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
const cart_sidebar = document.querySelector(".addtocart_sidebar");
const SLIDES = document.querySelectorAll(".SLIDE");
const PREV = document.querySelector(".PREV");
const NEXT = document.querySelector(".NEXT");
let Index = 0;
if (PREV != null) {
PREV.addEventListener("click", function () {
prevSlide();
});
}
... |
var total_items = 0;
var checkingout = false;
var allowbypassminumum = false;
var needsminimum = false;
$(document).ready(function () {
log("Receipt system version 2 initialized. Order ID: " + order_id);
});
window.onbeforeunload = function (e) {
if (total_items && !checkingout) {
var message = "You h... |
/*global Proxy:true */
(function(
// Reliable reference to the global object (i.e. window in browsers).
global,
// Dummy constructor that we use as the .constructor property for
// functions that return Generator objects.
GeneratorFunction
) {
var hasOwn = Object.prototype.hasOwnProperty;
if (global.wra... |
"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];
... |
const db = require('../../models');
// const ChunkProcessor = require('./ChunkProcessor');
const ShellCommander = require('../../ShellCommander');
module.exports = () => {
class AggExecutor {
static name = 'AggExecutor';
static BatchProcessor = (targetData, scriptOnly, logDetails) => {
// const name = 'BatchP... |
const assert = require('assert')
const ganache = require('ganache-cli')
const { it } = require('mocha')
const Web3 = require('web3')
const options = { gasLimit: 20000000 };
const web3 = new Web3(ganache.provider(options))
const { Bee, TokenTimelock } = require('../compile')
const { abi, evm } = Bee
const ONE_SECOND = ... |
/**
* My 3D Library v.0.0.2
*
*/
var Class = {
create : function() {
var properties = arguments[0];
function self() {
this.initialize.apply(this, arguments);
}
for(var i in properties) {
self.prototype[i] = properties[i];
}
if(!self.prototype.initialize) {
self.prototype.... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.EuiNavDrawer = void 0;
var _extends2 = _interopRequireD... |
function updateScrJrefs() {
scrJrefDetail = retrieveSi(srcdoc, "StatShrWzskOgrRec", "scrJrefDetail");
scrJref1NObject = retrieveSi(srcdoc, "StatShrWzskOgrRec", "scrJref1NObject");
scrJrefSup1NObjgroup = retrieveSi(srcdoc, "StatShrWzskOgrRec", "scrJrefSup1NObjgroup");
};
function resetInitdones() {
setSi(srcdoc, "S... |
/*global variable, function*/
var initialAppName = "RRS";
var appKeyOriginal = "apprrs";
var appKey = "apprrs";
var pageList = ["viewReserve", "viewMyReserve", "viewSettingList", "viewNewSetting"];
var appSecretKey = "2e936812e205445490efb447da16ca13";
var prevPageID;
var arrReserve = [];
var arrTimeBlockBySi... |
'use strict';
var timer;
var style = {
font: "56px comeback",
fill: "#FF0044",
align: "center"
};
var score_style = {
font: "56px comeback",
fill: "#FFF",
align: "center"
};
var cd_style = {
font: "100px comeback",
fill: "#FF0044",
align: "center"
};
var menu_btn_style = {
font: ... |
let listDetail = [];
let indexDetail = 0;
var table_order_list = $("#table-order-list").DataTable({
// "responsive": true,
"lengthMenu": [ 10, 25, 75, 100 ],
"pageLength": 10,
"order": [],
"processing": true,
"serverSide": true,
"ajax": {
"url": BASE_URL+"orders/get-list/",
"... |
/**
* Created by groundlee on 2016/12/18.
*/
import invoiceApi from './invoice_api.js'
var tax_citys={
'1100':{'code':'1100','sfmc':'北京','Ip':'https://zjfpcyweb.bjsat.gov.cn:443','address':'https://zjfpcyweb.bjsat.gov.cn:443'},
'1200':{'code':'1200','sfmc':'天津','Ip':'https://fpcy.tjsat.gov.cn:443','address... |
//const menubarItems = ["File","Edit","View"];
const menubarItems = [`^S${String.fromCharCode(221)}save`,`^Q${String.fromCharCode(221)}quit`];
const menubarFile = ["New","Open","Save","Save as","Exit"];
const menubarEdit = ["Undo","Redo","Cut","Copy","Paste","Select All","Deselect"];
const menubarView = ["Go To Line"];... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
/*
* Table for displaying annotations. This is mostly a copy of the forecast... |
// Copyright (c) 2017 Uber Technologies, 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 a... |
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import _extends from 'babel-runtime/helpers/extends';
import _typeof from 'babel-runtime/helpers/typeof';
import _setImmediate from 'babel-runtime/core-js/set-immediate';
import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-protot... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ArticlePicture = exports.EditorPicture = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.... |
/* <NAME> - MIT License - https://github.com/snookca/prepareTransition */
(function(a){"use strict"; a.fn.prepareTransition=function(){return this.each(function(){var b=a(this);b.one("TransitionEnd webkitTransitionEnd transitionend oTransitionEnd",function(){b.removeClass("is-transitioning")});var c=["transition-durat... |
/* Main content script for the client that is injected in every tab visited once the extension is enabled */
/* * * * activation * * * */
//initialization at each page load or when the script is run from extension at enabled/installed events
//the EventProxy allows the extension to manage its own events
//without t... |
function slidebar() {
var t = $(".ms-slidebar"),
o = $(".ms-site-container"),
n = $(".ms-toggle-left"),
e = !1,
i = !1;
n.click(function () {
i ? (t.removeClass("open"), i = !1) : (t.addClass("open"), i = !0), e = !0;
}), o.click(function () {
!e && i && (t.re... |
import $ from 'jquery';
import {createCommentEasyMDE, getAttachedEasyMDE} from './comp/EasyMDE.js';
import {initCompMarkupContentPreviewTab} from './comp/MarkupContentPreview.js';
import {initCompImagePaste, initEasyMDEImagePaste} from './comp/ImagePaste.js';
import {
initRepoIssueBranchSelect, initRepoIssueCodeComme... |
/**
* Copyright 2016, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
const assign = require('object-assign');
const {head, isArray, isString, castArray, isObject, sortBy, uniq, include... |
/**
* Reads stack overflow files from a directory and indexes into elastic search.
* @module elasticReader
*/
const fs = require('fs-extra');
const path = require('path');
const elasticClient = require('./elasticClient');
const {readFile} = require('./dataSources');
const prettyjson = require('prettyjson'); // esli... |
var _ = require('underscore');
const INNER_JOIN = "INNER JOIN";
const LEFT_JOIN = "LEFT JOIN";
const PARENT = /parent/gi;
const listOf = "LIST_OF";
const defaultIdentifier = "ID";
const createOrderBy = true;
//dbObject.find(List).where('ID', '= 2').innerJoin(User).on('RIGHTS', '>= 0').where('ID', '= 1').toString();
... |
const utils = require('../utils');
const bili = require('../net/bili');
const { send } = require("../net/http");
const { check_if_duplicated, article_scan_page, article_create_time, not_check_article, get_dynamic_detail_wait, uid_scan_page, search_wait, tag_scan_page } = require("../data/config");
const d_storage = req... |
function removeActive(x) {
for (var i = 0; i < x.length; i++) {
x[i].classList.remove("autocomplete-active");
}
}
function addActive(x) {
if (!x) return false;
removeActive(x);
if (currentFocus >= x.length) currentFocus = 0;
if (currentFocus < 0) currentFocus = (x.length - 1);
x... |
/* global Matrix createProgram Vector */
/* eslint no-unused-vars: ["warn", { "varsIgnorePattern": "Dodecahedron" }] */
/**
* vertex shader
*/
const decVertex = `
attribute vec4 location;
uniform mat4 view;
uniform mat4 model;
uniform mat4 projection;
varying vec3 normal;
void main() {
... |
var link = location.origin + location.pathname;
var name = link.split('/').pop().replace('.html', '');
var base = link.replace(/\/[^\/]+$/, '/');
// replace relative links for printed versions
if (location.origin == 'file://') {
window.onbeforeprint = function(){
$('a[href^="file://"]').each(function(){
... |
'use strict';
function e(e) {
return e && 'object' == typeof e && 'default' in e ? e.default : e;
}
var t,
n = require('react'),
r = e(n),
i = require('react-native'),
a = e(require('react-native-reanimated')),
o = require('react-native-gesture-handler');
function u() {
return (u =
Object.assign ||
... |
const t = {}
t.loading = 'Loading...'
t.brand = {}
t.brand.lg = 'Renren Security'
t.brand.mini = 'RS'
t.add = 'Add'
t.delete = 'Delete'
t.deleteBatch = 'Delete'
t.update = 'Edit'
t.query = 'Query'
t.export = 'Export'
t.handle = 'Action'
t.confirm = 'Confirm'
t.cancel = 'Cancel'
t.logout = 'Sign Out'
t.prompt = {}
t... |
const { SlashCommandBuilder } = require('@discordjs/builders');
const fetch = require('node-fetch');
const cooldown = new Set();
const { MessageActionRow, MessageButton, MessageEmbed } = require('discord.js');
module.exports = {
data: new SlashCommandBuilder()
.setName('gen-character')
.setDescription('Genshin ch... |
/* global describe,before,it */
'use strict';
/* eslint no-param-reassign: 0, max-len: 0 */
process.env.NODE_ENV = 'test';
const chai = require('chai');
const _ = require('lodash');
const models = require('../models');
const Generator = require('./util/generator');
const MultiQuestionSurveyGenerator = require('./... |
const state = require('./../static_state.js');
const assert = require('assert');
const axios = require('axios').create({ timeout: 10000 });
const arrayOnDisk = require('disk-array');
const globals = require('./../globals.js');
const path = require('path');
const fs = require('fs');
const { throwPublicErrorInfo } = requ... |
/*
* Module : injected/prelude.js
* Copyright : (c) 2011-2012, Galois, Inc.
*
* Maintainer :
* Stability : Provisional
* Portability: Portable
*
* 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... |
/*
* JSUnzip
*
* Copyright (c) 2011 by <NAME>
* All Rights Reserved
*
* This software is provided 'as-is', without any express
* or implied warranty. In no event will the authors be
* held liable for any damages arising from the use of
* this software.
*
* Permission is granted to anyone to use this softwar... |
/**
* LMS-Material
*
* Copyright (c) 2018 <NAME> <<EMAIL>>
* MIT license.
*/
var PQ_PLAY_NOW_ACTION = { cmd: 'playnow', icon: 'play_circle_outline' };
var PQ_PLAY_NEXT_ACTION = { cmd: 'playnext', icon: 'play_circle_filled' };
var PQ_REMOVE_ACTION = { cmd: 'remove', icon: 'remove_circle_outline' };
var... |
/*
Copyright 2015, 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
$(document).foundation()
$.fn.animateRotate = function(angle, duration, easing, complete) {
var args = $.speed(duration, easing, complete)
var step = args.step
return this.each(function(i, e) {
args.step = function(now) {
$.style(e, 'transform', 'rotate(' + now + 'deg)')
if ... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var 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] = b[p]; };
return function (d, b)... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Slider = void 0;
var tslib_1 = require("tslib");
var util_1 = require("@antv/util");
var group_component_1 = require("../abstract/group-component");
var trend_1 = require("../trend/trend");
var handler_1 = require("./handler");
var con... |
const {
URL,
// DOMAIN,
SITE_TITLE,
SITE_CANONICAL_URL,
OG_HOMEPAGE_TITLE,
OG_TITLE_SUFFIX,
OG_IMAGE_URL,
SITE_DESCRIPTION,
SITE_NAME,
FAVICON,
LBRY_WEB_API,
THUMBNAIL_CARDS_CDN_URL,
} = require('../../config.js');
const { lbryProxy: Lbry } = require('../lbry');
const { generateEmbedUrl, genera... |
/* Copyright (c) 2012 <NAME> <<EMAIL>> See LICENSE.txt for license details. */
var TAB_REMOVE_SAVE_TREE_DELAY_MS = 3E3,
SMART_FOCUS_DISABLE_FOR_TABS_CREATED_IN_LAST_MS = 8E3,
expectingSmartFocusTabId = null,
expectingTabMoves = [],
tab_urls=[];
function registerTabEvents() {
chrome.tabs.onCrea... |
// canvas-plus - Image Transformation Engine
// Text Filter Mixin
// Copyright (c) 2017 <NAME>
// Released under the MIT License
var Class = require("pixl-class");
var width_cache = {};
var measureWidthCache = function(ctx, text, kerning) {
// only call measureText() for unique strings, bake in kerning too
if (!ker... |
/**
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var d3 = require('d3');
var map1dArray = require('../carpet/map_1d_array');
var makepath = require('../carpet/ma... |
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative, then... |
var _ = {
forEach: require('lodash/forEach'),
get: require('lodash/get'),
memoize: require('lodash/memoize'),
};
var async = require('async-chainable');
var dateFns = {format: require('date-fns/format')};
var entities = require('entities');
var events = require('events');
var fs = require('fs');
var sax = require('s... |
import React from 'react';
import PropTypes from 'prop-types';
import {
Text, View, ScrollView, Image, StyleSheet, Animated, Easing
} from 'react-native';
import { connect } from 'react-redux';
import { Base64 } from 'js-base64';
import { SafeAreaView } from 'react-navigation';
import { BorderlessButton } from 'react-... |
'use strict';
/*global require,L,URI,Document,$*/
var CesiumMath = require('../../third_party/cesium/Source/Core/Math');
var clone = require('../../third_party/cesium/Source/Core/clone');
var Color = require('../../third_party/cesium/Source/Core/Color');
var ColorMaterialProperty = require('../../third_party/cesium/S... |
var map;
var mapZoom;
var isLocationMode = true;
var locationIcon;
var locationMarker;
var locationAddress;
var zoomPosition;
var zoomPositionCurr;
var mouseLatLng;
var isDragging = false;
var markers = [];
var positions = [];
var polyLine = new google.maps.Polyline();
var routeName = '';
var geocoder;
var home = new g... |
/**
* Make sure the currently stored data is compatible with the potentially updated code.
* To do so, we check the stored data version and the current version of the extension.
* If need be, fields are updated/added/deleted
*
* @param {object} papers reference papers to update
* @param {number} manifestDataVersi... |
VueRangedatePicker.default.install(Vue)
Vue.use(VueRouter)
var model = {
text: '',
editor: null,
network: null,
tablerows: [],
tableheaders: [],
}
var _unselectedcolor = {
border: '#0D47A1',
background: '#BBDEFB',
}
var _selectedcolor = {
border: '#B71C1C',
background: '#E57373',
}
var das... |
var LighthouseJob = require('../lib/shared_job_code.js');
var LighthouseUnit = require('../lib/shared_unit_code.js');
var LighthouseJson = require('../lib/shared_json_code.js');
var LighthouseTeam = require('../lib/shared_team_code.js');
var LighthouseChrome = require('../lib/shared_chrome_code.js');
require('bootstra... |
/**
* A bunch of utility functions common to multiple scripts
*/
const fs = require('fs').promises;
const path = require('path');
const puppeteer = require('puppeteer');
const crypto = require('crypto');
const { AbortController } = require('abortcontroller-polyfill/dist/cjs-ponyfill');
const fetch = require('./fetch... |
var graph;
$(document).ready(function(){
$("#loadSpinner").hide();
});
//Build the picker and start with last 30 days selected
$(function() {
$('input[name="daterange"]').daterangepicker(
{
locale: {
format: 'DD-MM-YYYY'
},
... |
import withStyles from '@mui/styles/withStyles';
import {scaleLinear} from 'd3-scale';
import React, {useEffect, useRef, useState} from 'react';
import {Color, Vector3, Vector4} from 'three';
import {getEmbeddingKey} from './actions';
import ChartToolbar from './ChartToolbar';
import {numberFormat2f} from './formatters... |
// Planmyday Customizer script
jQuery(document).ready(function(){
"use strict";
// Add scheme name to each demo block
jQuery('.to_demo_wrap').each(function(idx) {
"use strict";
var tab = jQuery(this).parents('.planmyday_options_tab_content');
var tab_id = tab.attr('id');
var scheme = tab_id.substring(4, ta... |
/*
Copyright 2019 Adobe. All rights reserved.
This file is licensed to you 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... |
//
// AzureMonitorAddonForSplunk
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// 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 res... |
let levelling = require('../lib/levelling')
let handler = async (m, { conn, usedPrefix }) => {
let { lastberburu, lastadventure, lastfishing, lastwar, lastduel, lastmining, lastdungeon, lastclaim, lastweekly, lastmonthly } = global.db.data.users[m.sender]
let healt = global.db.data.users[m.sender].healt
... |
const ParametricURL = Backbone.Model.extend({
defaults: {
layerParams: [],
isInitOpen: [],
zoomToGeometry: "",
zoomToFeatureIds: [],
brwId: undefined,
brwLayerName: undefined
},
initialize: function () {
var channel = Radio.channel("ParametricURL");
... |
import React from 'react';
import styles from './index.less';
import {Form, Input, Button, Checkbox, Radio, Row, Col, Select, DatePicker, TreeSelect, message, Icon, InputNumber, Table, Popconfirm, Tooltip, Spin } from 'antd';
import moment from 'moment';
import utils, { getCurrTk } from '../../../utils/utils';
import ... |
'use strict';
var _keys = require('babel-runtime/core-js/object/keys');
var _keys2 = _interopRequireDefault(_keys);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.