text stringlengths 5.97k 41.2k |
|---|
/*
* orchid-lead: generate HTML
* Copyright © 2015 <NAME> <<EMAIL>>
* MIT Licensed
*/
"use strict";
// import modules
const fs = require("graceful-fs");
const path = require("path");
const crypto = require("crypto");
const fm = require("front-matter");
const findup = require("findup-sync");
const _ = require("l... |
const gifs = require('../assets/arrays/permGifs.json');
const ArgParser = require('../utils/ArgParser.js');
const sleep = require('../utils/misc').sleep;
const AUTORESPONSE_MATRIX = {
dad: {
regex: /^(im|i['’]m|i am)\s+(.+)/i,
parse: (match) => `Hi ${match[2]}, I'm dad`
},
sec: {
regex: /^(one sec$|o... |
// THIS SCRIPT MAKES USE OF JQPLOT : http://www.jqplot.com/ A JQUERY PLOTTING AND CHARTING PLUGIN
var totalFootprint = 0;
var totalkWhPerYear = 0;
var subTotalFootprint = 0;
var subTotalkWhPerYear = 0;
var conversion_factor = 0;
var conversion_factor_unit = "N/A";
var nbOfRow = 0;
// ACTIONS ON LOAD
$(document).re... |
const {BitString} = require("./BitString");
const {
bytesToBase64,
compareBytes,
concatBytes,
crc32c,
hexToBytes,
readNBytesUIntFromArray,
sha256,
bytesToHex
} = require("../utils");
const reachBocMagicPrefix = hexToBytes('B5EE9C72');
const leanBocMagicPrefix = hexToBytes('68ff65f3');
c... |
import path__default from 'path';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import vite from 'vite';
import { d as deep_merge } from './object.js';
import { g as get_runtime_path, r as resolve_entry, $, l as load_template, c as coalesce_to_error, a as get_mime_lookup, b as get_aliases, p as print_config_co... |
var GameStates = require("./rule_defines.js").GameStates;
var Field = require('./rule_field.js');
var GameField = require('./rule_gamefield.js');
var util = require('util');
// we want to have all sort of communication in this class
// we want to have workflow / controller logic here
// we don't want to have any real ... |
import React, { PureComponent, Fragment } from 'react';
import { connect } from 'dva';
import NormalTable from '@/components/NormalTable';
import { formatMessage, FormattedMessage } from 'umi/locale';
import {
Table,
Row,
Col,
Form,
Input,
DatePicker,
Divider ,
Button,
Card,
Checkbox,
Select,
Tr... |
'use strict';
/**
* @author github.com/tintinweb
* @license MIT
*
*
* */
const vscode = require('vscode');
const fs = require('fs');
const child_process = require('child_process');
const path = require('path');
const settings = require('../settings');
const mod_templates = require('./templates');
const mod_u... |
"use strict";
// Basic vars
var HTTPPORT = 81,
USERBAUD = 115200,
USERHTREFERENCE = {
wref: null,
xref: null,
yref: null,
zref: null,
status: false,
},
operatingSystem = process.platform, // 'darwin'=mac, 'freebsd', 'linux', 'sunos' 'win32'=windows
LOGGING = false,
USERPORT = process.ar... |
/*-*- Mode: JS; tab-width: 4 -*-*/
// Cached values
let canvas;
let canvasScale;
let lastMessage = null;
function init()
{
params = {
image: {
width: undefined,
height: undefined,
},
fractal: {
name: "mandelbrot",
param_cx: 0.0,
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.PatternLock = void 0;
var _EventBus = _interopRequireDefault(require("./utils/EventBus"));
var _Matcher = _interopRequireDefault(require("./utils/Matcher"));
var _libs = require("./utils/libs");
var _dom = requ... |
// javascript util to visualize attention weights between source and target
!function(){
var bP={};
var b=30, bb=150, height=600, buffMargin=1, minHeight=14;
bP.partData = function(data,source,target){
var sData={};
sData.keys=[source[0],target[0]];
sData.data = [
sData.keys[0].map( function(d){ return... |
import React, { Component } from "react";
import {
List,
ListItem,
ListItemText,
ListItemIcon,
IconButton,
ListItemSecondaryAction
} from "@material-ui/core";
import RootRef from "@material-ui/core/RootRef";
import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd";
import InboxIcon from "... |
'use strict';
var Behaviors = require('./../behaviors/behaviors');
var ControlFlowUtils = require('./control-flow-utils');
var VirtualDOM = require('./../virtual-dom/virtual-dom');
var BOOLEAN_KEY = 'boolean';
var SELF_KEY = '$self';
var STRING_KEY = 'string';
var UID_KEY = 'uid';
var REPEAT_INFO_KEY = ControlFlowUt... |
// Copyright 2016, Google, 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 in ... |
const rainVerbose = false;
const PLUVIOMETER_TAG_NAME = 'pluvio-meter';
const pluviometerDefaultColorConfig = {
withShadow: true,
shadowColor: 'LightGrey',
scaleColor: 'black',
bgColor: 'white',
majorTickColor: 'LightGrey',
minorTickColor: 'DarkGrey',
valueOutlineColor: 'black',
valueColor: 'DarkGrey',
tubeOu... |
// import interact from "interactjs"
const matrix_row = 14;
const matrix_col = 14;
//button's origion color
const origin_color = "rgb(42, 42, 42)";
//default speed, excursion and force
const defaults = [5, 0, 5];
const colors = ["rgb(234, 169, 169)", "rgb(95, 170, 129)", "rgb(91, 178, 219)", "rgb(125, 145, 208)", "#F... |
/*==[ WindowFavorites.js ]====================================================================================
WINDOW: FAVORITES
============================================================================================================*/
// Delete previously marked entri... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var CircularList_1 = require("./common/CircularList");
var BufferLine_1 = require("./core/buffer/BufferLine");
var BufferReflow_1 = require("./core/buffer/BufferReflow");
var Marker_1 = require("./core/buffer/Marker");
exports.MAX_BUFFER_SIZE ... |
import React from 'react';
class Mtts1 extends React.Component{
componentDidMount(){
//set styles
var allLines = document.getElementById('svg-container').getElementsByTagName('line');
for(var t of allLines){
t.setAttribute('stroke',"#2975d9");
t.setAttribute('st... |
"use strict";
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProp... |
/* Geonet Earthquake API Disaster Zone MDDN352 P3 13.1 - [2016] MOFFATARAP (300317288) */
/*=/ VARABLES \=*/
var geonetEarthQuake = "https://json.ey.nz/www.geonet.org.nz/quakes/services/felt.json"; //saves goenet url as var
var geonetEarthQuakeLocal = "./json/geoNetEarthquakeVal.json" //loads local JSON for testing onl... |
const db = require('quick.db')
const lodash = require('lodash')
const ms = require('pretty-ms');
const discord = require('discord.js')
const squads = require('../squads.json')
const parts = require('../partsdb.json')
module.exports = {
commands: ['squadrace'],
description: 'Race a bot!',
expectedAr... |
let delay = 10000;
let orderSize = 2;
let countToAdd = 5;
module.exports = {
before: function (browser) {
console.log('Begining test DEV-1921...');
},
after: function (browser) {
console.log('Finishing test DEV-1921...');
browser.end();
},
'Test DEV-1921 edit order comment': function (browser) {
browser... |
'use strict';
/*
* Created with @iobroker/create-adapter v1.23.0
*/
// The adapter-core module gives you access to the core ioBroker functions
// you need to create an adapter
const utils = require('@iobroker/adapter-core');
// Load your modules here, e.g.:
const ping = require('ping');
const request = require('re... |
import 'phaser';
let cat;
let dog;
let platforms;
let gate1;
let gate2;
let cloud2;
let cloud3;
let controlsCat;
let controlsDog;
let scoreDog = 0;
let scoreCat = 0;
let gameOver = false;
let scoreText;
let ball;
let backMenu;
let audio2;
function hitBall (player, ball) {
hitBallForBothPlayers(controlsCat, player... |
var jspyProcessingWindow = null;
function runPyProcessing(pyprocessingcode)
{
jspyProcessingWindow = window.open('', "_blank", '');
html1 = '<head><title>jspy.Processing</title><meta charset="UTF-8"><meta http-equiv="Access-Control-Allow-Origin" content="*" /><meta http-equiv="Access-Control-Allow-Methods" content="*... |
// remap jQuery to $
(function($){})(window.jQuery);
var CR = [["C3",1],["D3",2],["E3",3],["F3",1],["G3",2],["A4",3],["B4",4],["C4",5]];
var CL = [["C2",5],["D2",4],["E2",3],["F2",2],["G2",1],["A3",3],["B3",2],["C3",1]];
var DR = [["D3",1],["E3",2],["F#3",3],["G3",1],["A4",2],["B4",3],["C#4",4],["D4",5]];... |
const html = document.querySelector("html");
const body = document.querySelector("body");
// The videoBoxGrid contains all videoBoxes.
const videoBoxGrid = document.getElementById("video-box-grid");
// A videoBox contains a YouTube iframe and an overlay used to display
// controls to move videoBoxes inside the videoGr... |
var bodyTab;
$(function () {
//config的设置是全局的
layui.config({
base: '/static/plugins/layui-extend/' //这是你存放拓展模块的根目录
}).use(['bodyTab', 'form', 'colorpicker'], function () {
var colorpicker = layui.colorpicker;
var element = layui.element;
var form = layui.form;
var l... |
// ==UserScript==
// @name SSU LMS Enhanced Player
// @namespace Violentmonkey Scripts
// @match https://commons.ssu.ac.kr/em/*
// @grant GM_download
// @grant GM_addStyle
// @grant GM_getValue
// @grant GM_setValue
// @version 1.2.0
// @author EATSTEAK
// @license MI... |
// --- functions.js v0.024 --- //
// --- CORE FUNCTIONS --- //
for (var key in config) {
window[key] = config[key];
}
// --- NAVIGATION FLOW --- //
function getCurrentPage()
{
var parser = document.createElement('a');
parser.href = window.location.href.replace("/index.html", "");
return new String(pa... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _classCallCheck2 = _int... |
var express = require('express');
var app = express();
var path = require('path');
var dbUtils = require('./dbUtils');
var sensor = require('ds18x20');
var Gpio = require('onoff').Gpio;
//var dl = require('delivery');
var io = null;
var paused = false;
var pauseMinutes = 15;
var pauseTimeout = null;
var manualRun = fal... |
/* eslint-disable i18next/no-literal-string, no-console */
// MODULES //
const { appendFileSync, copyFileSync, mkdirSync, readFileSync, unlinkSync, writeFileSync } = require( 'fs' );
const { copy, removeSync } = require( 'fs-extra' );
const { basename, dirname, extname, resolve, join } = require( 'path' );
const webp... |
import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import { setOptions, bootstrap } from 'vue-gtag'
Vue.use(Vuex)
const localStorage = window.localStorage
let name = process.env.VUE_APP_INSTANCE_NAME
if (!name) {
name = 'germinate-' + window.location.pathname
}
... |
import image1 from '../../images/layerslider/image-1.jpg';
import image1Blur from '../../images/layerslider/image-1-blur2.jpg';
import image2 from '../../images/layerslider/image-2.jpg';
import image3 from '../../images/layerslider/image-3.jpg';
import React from 'react';
// require('../../styles/lay')
const styles = {... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
Copyright 2014-2017 Amazon.com, Inc. or its affiliates. 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. A copy
of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file accompanying ... |
let snap;
let bounds;
let pA,pB,pC,pD,pE,pF,line1,line2;
let enabledPappusLine = new Array(6).fill(true);
let permIndex = 0;
let lines = [];
let pappusLines = [];
let intersections = [];
let intersectionTable = {};
// limit x in the range [x0,x1]
function clamp(x,x0,x1) { return x<x0?x0:x>x1?x1:x; }
// clip line {x1... |
// This code draws a single pixel textured by the camera background at every frame,
// in order to keep the camera texture in GPU memory, so that we can read it back.
// TODO: Leftover code from camera access sample from Chromium site. Needs to be better adapted to our requirements.
// See more details here: https://... |
const auth = require('./auth');
const knex = require('../config/database');
const express = require('express');
const router = express.Router();
router.get('/', auth, (req, res, next) => {
knex.from('Ponudba as p')
.select([
"p.id",
"cas_nalozitve",
"status",
... |
// JavaScript Document
(function($){
$.fn.extend({
//层居中
center: function (settings) {
settings = $.extend({'fixed':true},settings);
return this.each(function() {
var top = ($(window).height() - $(this).outerHeight()) / 2;
var left = ($(window).width() - $(this).outerWidth()) / 2;
if(settings.fix... |
// ==UserScript==
// @name Kiss Statistics
// @description Adds a stats button to kissanime.com, kissmanga.com, kisscartoon.me and kissasian.com bookmark sites
// @include https://kissanime.ru/BookmarkList
// @include https://kissanime.ru/MyList/*
// @include h... |
// Dependencias
const { dialog } = require('electron').remote;
const ipc = require('electron').ipcRenderer;
const fs = require('fs');
const slash = require('slash');
const path = require('path');
// Sentry
const Sentry = require('@sentry/electron');
/*
* Reproductor
*/
class Player {
/**
* Constructor
* @param... |
//EBML JSON FORMAT
/*
Schema Definition:
{
'abcdefg': { //element ID
desc: //description
name: //name
mu: //multiple (boolean)
level: //level
def: //default
type: //master element, binary, float, int, etc.
}
}
Parsed JSON
{
EBML: {
EBMLVersion: 8,
EBMLReadVersion: 8
}
Se... |
/*
* Process
*/
const {
arch,
argv,
cpuUsage,
env: {
LANG,
TERM_PROGRAM,
},
memoryUsage,
moduleLoadList,
version,
versions: {
v8
},
uptime
} = process;
/*
* HttpApi
*/
const NodeExpressApi = require('node-express-api');
class HttpApi extends NodeExpressApi {
static _200(res, ... |
// Copyright 2018-2021, University of Colorado Boulder
/**
* An immutable quadratic, described by these equations:
*
* standard form: y = ax^2 + bx + c
* vertex form: y = a(x - h)^2 + k
* alternate vertex form: y = (1/(4p))(x - h)^2 + k
*
* Note that this implementation supports only parabolas that open up or d... |
import React, { useEffect, useState } from "react";
import styled from "styled-components";
import {
faCircle,
faAngleDown,
faFilter,
faUser,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Paper, Box, Typography } from "@mui/material";
i... |
const cds = require('../../cds')
const BaseStatement = require('./BaseStatement')
const { ensureNoDraftsSuffix } = require('../../common/utils/draft')
const { unexpectedFunctionCallError, invalidFunctionArgumentError } = require('../util/errors')
const MODEL = Symbol.for('sap.cds.model')
const fnChain = Symbol.for('sa... |
/*
* Copyright (c) 2020 <NAME>. 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.
*/
const _ = require('lodash')
const Parser = require('html-react-parser').default
try {
const toBlob = require('canvas-to-blob')
toB... |
// disable/enable button based on updatefname,updatemiddlename,updatelname entry
function disableupdateinputs()
{
var btndisable = ((!document.getElementById("updatefirstname").value.length
&& !document.getElementById("updatemiddlename").value.length
&& !document.getEleme... |
//OnLoad
$(function () {
initKind();
pageFunc(1);
//IMAGE SAVE
$("#form_img").submit(function(e){
e.preventDefault();//강제 호출 되는 submit이벤트의 동작을 막아준다
if($('#image').val()!=''){
swal({
title: "Save image",
text: "Would you like to save image?",
icon: "info",
confirmButtonColor: '#3085d6',
... |
import React, { Component } from 'react';
import {
View, Text, StyleSheet, TouchableOpacity, Image, FlatList, Dimensions,
} from 'react-native';
import { debounce } from 'lodash';
import { Actions } from 'react-native-router-flux';
import PropTypes from 'prop-types';
import wArrowLeft from '../../static/image/... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { FormGroup, Input, Label } from 'reactstrap';
import Error from '../../../../components/Error/Error';
import Feedback from '../../../../components/Feedback/Feedback';
import FormInput from '../../../../components/UI/Input/Input';
... |
var httpsys = require(process.env.HTTPSYS_NATIVE || ('./' + process.arch + '/httpsys.node'))
, events = require('events')
, util = require('util');
// Currently active HTTP[S] servers (Server instances), keyed by HTTP.SYS's request queue ID
var servers = {};
// Running counter of servers that acts as a unique... |
'use strict';
var defaultValue = require('..');
var chai = require('chai');
var expect = chai.expect;
/* eslint max-statements: "off", brace-style: "off" */
describe('Arguments', function() {
describe('When arguments is value and defaultValue', function() {
it('Should always return defaultValue when value is... |
$.ajaxSetup({
headers: {
"X-CSRF-TOKEN": $("meta[name=CSRF-TOKEN]").attr("content"),
},
});
$(document).ready(function () {
// khoá nút back and next browser
// window.history.pushState(null, "", window.location.href);
// window.onpopstate = function() {
// window.history.pushState(... |
class Courier{
constructor(){
var self = this;
self.cache = {};
self.loading = {};
if(console.log === undefined)
self.log = ()=>{};
else
self.log = function(){
var args = Array.prototype.slice.call(arguments);
args.unshi... |
var utils = require('utils');
var paths = utils.path;
var cookieUtil = utils.cookieUtil;
var accountPath = utils.accountPath;
require('../../_component/datetimePicker/bootstrap-datetimepicker.css');
require('../../_component/datetimePicker/bootstrap-datetimepicker.js');
require('../../_component/datetimePicker/bootstra... |
var UI = require('ui');
var ajax = require('ajax');
var Settings = require('settings');
var Vector2 = require('vector2');
var Feature = require('platform/feature');
var appUrl = 'https://markeev.com/pebble/onenote_v2.html';
var scope = 'offline_access https://graph.microsoft.com/.default';
var clientId='<KEY>';
var cl... |
// auto creation
// const { default: axios } = require("axios");
let studentsToNotify = [];
const checkSmsApiConfigStatus = () => {
return document.getElementById('sms-api-config-status').value;
}
const setSmsApiConfigStatus = () => {
const smsApiConfigStatus = document.getElementById('sms-api-config-statu... |
var util = require('util'),
cfg = require('../../lib/config'),
discovery = require('../../app/controllers/discovery'),
query = require('querystring'),
session = require('../../app/controllers/session');
var apiConfig = {
oauth: false,
protocol: "http",
publicPath: "/"
};
module.exports = {
//
... |
/**
* Utility library for uibuilder
*
* Copyright (c) 2019 <NAME> (Totally Information)
* https://it.knightnet.org.uk
*
* 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... |
/**
* Dependency imports.
*/
import React, { Component } from 'react';
import reduxConnect from 'react-redux/es/connect/connect';
import ReduxProvider from 'react-redux/es/components/Provider';
import {
createStore as createReduxStore,
bindActionCreators,
applyMiddleware,
compose,
combineReducers,
} from 'r... |
/*---------------------------------------------------------------
:: sails-mysql
-> adapter
---------------------------------------------------------------*/
// Dependencies
var async = require('async'),
_ = require('lodash'),
util = require('util'),
mysql = require('mysql'),
Query = require('./que... |
var Timer;
$(function () {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
var console = window.console || { log: function () {} };
var $image = $('#image');
var $download = $('#download');
var $dataX = $('#dataX');
... |
/*
Copyright (c) 2017, Polar 3D, LLC
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 conditions and the fo... |
import React, { Component } from 'react';
import { Card, Row, Menu, Icon, Col, Layout, Button, Dropdown, Spin, Progress, Badge } from 'antd';
import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import { formatMessage, FormattedMessage } from 'umi/locale';
import { Animated } from 'react-animated-css';
impor... |
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
import _getPro... |
import React from 'react';
import CopyToClipboard from 'react-copy-to-clipboard';
import swal from 'sweetalert2';
import { Toast } from 'antd-mobile';
import { BigNumber } from 'bignumber.js';
import { PopupAPI } from '@ezpay/lib/api';
import Utils from '@ezpay/lib/utils';
import Header from '@ezpay/popup/src/controlle... |
//constructor
function PilotConstrain() {
this.astroLockout = null;
this.basePath = location.href.slice(0,location.href.lastIndexOf('/'));
this.imageDir = this.basePath+'/images/';
this.container = 'sliderDiv';
this.mappedSliders = ["starttime","solarlongitude","meangroundresolution","minimumphaseangle","m... |
import * as THREE from 'three';
import Delaunator from 'delaunator';
import {
createCurve3,
createEulerFromQuaternion,
positionAtOffset
} from '../../extras/CurveUtils';
import { AbstractWay } from './AbstractWay.js';
import { LaneObject } from './LaneObject.js'
import { ReferenceLineObject } from './Refe... |
// comicReader.js
// scale the images to fill the viewport and keep aspect
// this is for demo and has extra tagging/labeling features
// comment out the console.info messages once you figure it out
var showDetails = 0;
var showVPDetails = 0;
var clicked = 2;
var currentImgID = 0;
var viewportWidth = $(win... |
/**
* Copyright 2012-2018, 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 Registry = require('../registry');
var Plots = require('../plots/plots');
var Lib =... |
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2022 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... |
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]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
/*
Next steps
- see DODO (not in git)
+ Replace the Start Over button with a selection box offering
different initial states
+ Should 'Clear' reset the step count to 0?
+ Remove the parenthesized height and width
+ Scale the number of rows to the height of the window
+ Turn off the border on the step count bo... |
var gCanvas;
var gVideo;
// --- prefix -----
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia || navigator.msGetUserMedia;
let gIsDgagFlg = false;
/* onloadイベント */
onload = function() {
/* canvasエレメント初期化 */
gCanvas = document.ge... |
var Buffer = require('buffer').Buffer
, s = 0
, S =
{ PARSER_UNINITIALIZED: s++
, START: s++
, START_BOUNDARY: s++
, HEADER_FIELD_START: s++
, HEADER_FIELD: s++
, HEADER_VALUE_START: s++
, HEADER_VALUE: s++
, HEADER_VALUE_ALMOST_DONE: s++
, HEADERS_ALMOST_DONE: s++
, PART_DAT... |
"use strict";
const stringWidth = require("string-width");
const getLast = require("../utils/get-last");
// eslint-disable-next-line no-control-regex
const notAsciiRegex = /[^\x20-\x7F]/;
function isExportDeclaration(node) {
if (node) {
switch (node.type) {
case "ExportDefaultDeclaration":
case "Ex... |
import prefixAll from 'inline-style-prefixer/static';
// strict
class SequentialIDGenerator {
constructor(prefix = "") {
// ensure start with "ae" so "ad" is never produced
this.prefix = prefix;
this.count = 0;
this.offset = 374;
this.msb = 1295;
this.power = 2;
}
next() {
const id ... |
const chai = require('chai');
const assert = chai.assert;
const assertNode = require('assert').strict;
const { Universal, MemoryAccount, Node } = require('@aeternity/aepp-sdk');
const NETWORKS = require('../config/network.json');
const NETWORK_NAME = "local";
const {defaultWallets: WALLETS} = require('../config/wall... |
// ---------------------- Requires, Includes and Globals ------------------------
var project = 'action_units';
//var project = 'libras';
var qtd_target = 0;
var min_convergence = 0;
var activeTask = 1;
//var activeTask = 6;
var kind = 'job';
var group = 'false';
var Task;
var Functions = require('./utils/functions.... |
// lib/crypto-browser.js
var path = require('path');
var fs = require('fs');
var fse = require('fs-extra');
var moment = require('moment');
var bytes = require('bytes');
var open = require('open');
var JobQueue = require('jul11co-jobqueue');
var utils = require('./utils');
module.exports = function(crypto_source, ... |
/*
* Advanced Multi-Mission Operations System (AMMOS) Instrument Toolkit (AIT)
* Bespoke Link to Instruments and Small Satellites (BLISS)
*
* Copyright 2017, by the California Institute of Technology. ALL RIGHTS
* RESERVED. United States Government Sponsorship acknowledged. Any
* commercial use must be negotiated... |
/**
* DevExtreme (ui/grid_core/ui.grid_core.utils.js)
* Version: 20.1.3
* Build date: Fri Apr 24 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
var _renderer = require("../../core... |
/**
* @license
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
const {ipcRenderer} = require('electron')
let greetingInProcess = false
let currentPerson;
let deletionTimeout;
let parent = getEl(".inner")[0];
let hello = document.createElement("h1");
let extraText = document.createElement("h2");
parent.appendChild(hello);
parent.appendChild(extraText);
const FADE_STEPS = 20;
... |
/**
* Copyright 2015-2017 aixigo AG
* Released under the MIT license.
* http://laxarjs.org/license
*/
import * as $ from 'jquery';
import * as ng from 'angular';
import { assert, object } from 'laxar';
import { calculateDomData } from './lib/layer_utils';
import { create as createLayerAnchorPositioning } from './li... |
import $ from "jquery";
import _ from "lodash";
import render_compose from "../templates/compose.hbs";
import * as blueslip from "./blueslip";
import * as channel from "./channel";
import * as compose_actions from "./compose_actions";
import * as compose_error from "./compose_error";
import * as compose_fade from "./... |
//Function To Get Range Date
$(function () {
let start = moment().subtract(29, 'days');
let end = moment();
$('#reportrange').daterangepicker({
startDate: start,
endDate: end,
locale: {
cancelLabel: 'Clear'
}
}, cb);
cb(start, end);
});
//Function For... |
import React, { Fragment, useEffect, useState } from "react";
import { useSelector } from "react-redux";
import router, { useRouter } from "next/router";
import Image from "react-bootstrap/Image";
import Container from "react-bootstrap/Container";
import Button from "react-bootstrap/Button";
import Dropdown from "react... |
/* globals mapboxgl, document */
// import * as mapboxgl from 'mapbox-gl/dist/mapbox-gl.js';
import * as d3interpolate from 'd3-interpolate';
import * as d3scale from 'd3-scale';
import * as fetch from './lib/fetch.js';
import { adjustTanh, normalizePercent, getRatio, getPercent } from './lib/math.js';
import { getLi... |
'use strict';
var util = require('util'),
libxmljs = require("libxmljs");
var Readable = require('stream').Readable;
var Writable = require('stream').Writable;
var Record = function() {};
var Iso2709Reader = function(stream) {
Readable.call(this, { objectMode: true});
var self = this,
prevDat... |
/*
Copyright 2020 <NAME> <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... |
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
import { Vue } from '../../vue'
import { NAME_CAROUSEL } from '../../constants/components'
import { IS_BROWSER, HAS_POINTER_EVENT_SUPPORT, HAS_TOUCH_SUPPORT } from '../../constants/env'
import {
EVENT_NAME_PAUSED,
EVENT_NAME_SLIDING_END,
EVENT_NAME_SLIDING_START,
EVENT_NAME_UNPAUSED,
EVENT_OPTIONS_NO_CAPTURE
... |
/* eslint no-console: ["error", { allow: ["warn", "error", "log", "info", "table", "time", "timeEnd"] }] */
import * as global from "./global.js";
import { log, loadCssFile, sitecoreItemJson, getScItemData } from "./helpers.js";
import { initLiveUrl } from "./url.js";
import { checkHelpLink } from "./help.js";
import ... |
'use strict';
const Path = require('path');
const minimatch = require("minimatch")
const ApiCreator = plugins.require('api/ApiCreator');
const Watcher = plugins.require('http/Watcher');
const Crypter = plugins.require('http/Crypter');
const SessionsManager = plugins.require('api/SessionsMan... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.