text stringlengths 3.22k 29.5k |
|---|
////
//
// maccurve - This function will return a reusable Marginal Abatement Cost Curve with the
// supplied configuration.
//
// parent = A mandatory element indicating the parent node of this chart.
// data = The data to be graphed in this chart.
// width = The width in pixels of this chart... |
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
/**
* Copyright (c) Microsoft. 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 applicable law or ag... |
/*
* Nitron.js v0.0.9 - bundle (v1.0.0-alpha.1)
*
* (c) 2022 WADE Open Source Software and Nitron Team. and its affiliates.
* Released under the MIT License.
* https://github.com/WADE-OSS/nitron/blob/main/LICENSE
*/
class NitronDOM {
constructor() {};
// Returns an element written in JS as HTML... |
// -------------------------------------------
// Added Automatically During Library Upgrade.
// Convenience Declarations For Dependencies.
// 'Core' Is Configured In Libraries Section.
// -------------------------------------------
//var Debug = Core.Debug;
var Mesh3D = Core.Mesh3D;
var Path2D = Core.Path2D;
//var Plu... |
var frm = $('#vs_deployment');
var rslt = $('#vs_deployment_result');
frm.submit(function(e) {e.preventDefault();
var formData = new FormData(this);
document.getElementById("resultdiv").style.visibility = "hidden";
$.ajax({
type: 'post',
url: frm.attr('action'),
data: formData,
cache: false,
process... |
'use strict';
const fs = require('fs-extra');
const { models: { Execution, Granule } } = require('@cumulus/api');
const { deleteGranule, getGranule } = require('@cumulus/api-client/granules');
const {
addCollections,
addProviders,
api: apiTestUtils,
cleanupCollections,
cleanupProviders,
executionsApi: exec... |
var geoLocate = function(){
var geocoder = new google.maps.Geocoder(),
cityName = '';
stateName = '';
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(successFunction, errorFunction);
}
//Get the latitude and the longitude;
... |
import { LightningElement, track, api } from 'lwc';
import {
dispatch,
handleError,
findMissingRequiredBatchFields
} from 'c/utilTemplateBuilder';
import { findIndexByProperty, mutable, isEmpty } from 'c/utilCommon';
import GeLabelService from 'c/geLabelService';
import DI_BATCH_INFO from '@salesforce/schem... |
/**
* QSM Question Tab
*/
var QSMQuestion;
(function ($) {
QSMQuestion = {
addQuestionFromQuiz: function() {
jQuery( "#from_other_quiz_dialog" ).dialog({
autoOpen: false,
width: 550,
height: 400,
buttons: {
Cancel: function() {
jQuery( this ).dialog( ... |
/*
* Libraries
*
* https://www.npmjs.com/package/crypto-exchange
*/
const Exchanges = require('crypto-exchange');
/*
* init and globals
*/
const default_percent = 10; // default pricing gap in percent
const default_refresh = 11; // default refresh timeout in mins
// pairs that we will trade. Each entry is a pai... |
import Class from '../class';
import support from '../support';
import namedColors from './named-colors';
var browser = support.browser;
var matchNamedColor = function (color) {
var colorNames = Object.keys(namedColors);
colorNames.push("transparent");
var regexp = new RegExp("^(" + colorNames.join("|") ... |
import { AbstractHDWallet } from './abstract-hd-wallet';
import { NativeModules } from 'react-native';
import bitcoin from 'bitcoinjs-lib';
import bip39 from 'bip39';
import BigNumber from 'bignumber.js';
import b58 from 'bs58check';
import signer from '../models/signer';
const BlueElectrum = require('../BlueElectrum')... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _isArray2 = require('lodash/isArray');
var _isArray3 = _interopRequireDefault(_isArray2);
var _isFunction2 = require('lodash/isFunction');
var _isFunction3 = _interopRequireDefault(_isFunction2);
var _extends = Object.assign || fun... |
fc.addDays = addDays;
fc.cloneDate = cloneDate;
fc.parseDate = parseDate;
fc.parseISO8601 = parseISO8601;
fc.parseTime = parseTime;
fc.formatDate = formatDate;
fc.formatDates = formatDates;
/* Date Math
-----------------------------------------------------------------------------*/
var dayIDs = ['sun', 'mon', 'tu... |
import { createGlobalStyle, keyframes } from "styled-components";
import { setThemeVars } from "../../util/theme-helper";
import { isMobile } from "react-device-detect";
import config from "../../../dmin-config";
const globalVar = {
primaryColor: "#fff",
secondaryColor: "#333",
bgColorLight: config.bgColorLight,... |
import React, { Component } from 'react'
import styles from './Buy.module.scss'
import { List, Modal, Button, Toast, Icon } from 'antd-mobile'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { wechatPay, paymentType } from 'utils'
import withUser from 'components/withUser'
import PwdModal from '... |
import React, { useMemo, useEffect, useState } from "react"
import PropTypes from "prop-types"
import { graphql } from "gatsby"
import { useIntl } from "gatsby-plugin-intl"
import fromEntries from "object.fromentries"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import Fuse from "fuse.js"
import La... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
import Mod, { ModTest } from '../values/mods/mod';
import PerMod, { IsPerMod } from '../values/mods/permod';
import { splitKeys, logObj, splitKeyPath } from '../util/util';
import RValue, { SubPath } from '../values/rvals/rvalue';
import Stat from '../values/rvals/stat';
import { MakeDmgFunc } from '../values/combatVa... |
'use strict';
const topLogPrefix = require('winston').appLogPrefix + './models/issue.js: ',
validator = require('validator'),
uuidLib = require('uuid/v1'),
lUtils = require('larvitutils'),
async = require('async'),
log = require('winston'),
db = require('larvitdb');
/**
* Issue constructor
*
* @param {object... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LineDashSelector = exports.LineShapeSelector = void 0;
var _Dropdown = _interopRequireDefault(require("./Dropdown"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireWildcard(require("r... |
init();
const vertexShaderWGSL = document.getElementById("vs").textContent;
const fragmentShaderWGSL = document.getElementById("fs").textContent;
async function init() {
const gpu = navigator["gpu"];
const adapter = await gpu.requestAdapter();
const device = await adapter.requestDevice();
const c = do... |
'use strict';
angular.module('gmall.directives')
.directive('externalCatalog',externalCatalogComponent)
.directive('externalCatalogDownload',externalCatalogDownload);
function externalCatalogComponent(){
return{
scope: {},
restrict:"E",
bindToController: true,
controller: ext... |
// Load modules
var Domain = require('domain');
var Items = require('items');
var Reporters = require('./reporters');
var Coverage = require('./coverage');
var Linters = require('./lint');
var Leaks = require('./leaks');
var Utils = require('./utils');
// prevent libraries like Sinon from clobbering global time funct... |
import ReactDOM from "react-dom";
import { useState, useEffect } from "react";
import { useFormik, FormikProvider, FieldArray, Field, ErrorMessage } from "formik";
import * as Yup from 'yup';
import "./index.css";
const enums = {
firstName: 'firstName',
lastName: 'lastName',
email: 'email',
toggle: 'toggle... |
import React, { Component } from 'react';
import TubeMap from './TubeMap';
import config from '../config.json';
import { Container, Row, Alert } from 'reactstrap';
import * as tubeMap from '../util/tubemap';
import { dataOriginTypes } from '../enums';
// import DRB1 from '../odgi_data/DRB1-3123.og.bin10.json';
// impor... |
'use strict';
/* global LoadingView, _, FB */
var Fetcher = function Fetcher() { };
Fetcher.prototype.LABEL_VERB = LoadingView.prototype.LABEL_LOADING;
var TextFetcher = function TextFetcher() {
this.types = ['text', 'base64'];
};
TextFetcher.prototype = new Fetcher();
TextFetcher.prototype.stop = function tf_stop... |
const isDefined = require('../../core/utils/type').isDefined;
const config = require('../../core/config');
const odataUtils = require('./utils');
const proxyUrlFormatter = require('../proxy_url_formatter');
const errors = require('../errors').errors;
const query = require('../query');
const Store = require('../abstract... |
import React, { Component } from 'react';
import { connect } from 'dva';
import moment from 'moment';
import { Button, Row, Col, Card, Form, Modal, Select, Input, Radio } from 'antd';
import pathToRegexp from 'path-to-regexp';
import Filter from '../../../filter';
import mobileImg from '../../../assets/mobile.jpg';
imp... |
// Copyright (c) 2015 Uber Technologies, Inc.
//
// 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... |
components = {'login_1': {'params': ['pass']},
'login_2': {'params': ['other', 'foo']}
};
n_pages = 0;
if (typeof page_name === 'undefined') {
throw "Must set the 'page_name' variable before importing this library."
}
// Fill in the hidden page_n if it exists.
$('#page_n').val(next_page_n());
funct... |
import "@babel/polyfill";
import * as mobilenetModule from '@tensorflow-models/mobilenet';
import * as tf from '@tensorflow/tfjs';
import * as knnClassifier from '@tensorflow-models/knn-classifier';
var gestures = prompt("Please enter the number of gestures you want", "Please enter a Unsigned integer");
let stringer=''... |
// Dependencies
const proxy = require('http-proxy');
const https = require('https');
const http = require('http');
const crypto = require('crypto');
const assert = require('assert');
const zlib = require('zlib');
const { URL } = require('url');
// Manual constants
const ALLOWED_METHODS = http.METHODS;
const ALLOWED_PR... |
function gf_apply_rules(a, b, c) {
var d = 0;
jQuery(document).trigger("gform_pre_conditional_logic", [a, b, c]);
for (var e = 0; e < b.length; e++) gf_apply_field_rule(a, b[e], c, function () {
++d == b.length && (jQuery(document).trigger("gform_post_conditional_logic", [a, b, c]), window.gformCalc... |
import path from 'path';
import fs from 'fs';
import dotProp from 'dot-prop';
import _ from 'lodash';
import log from './logger';
export function keywordArrayReplace(input, mappings) {
Object.keys(mappings).forEach(function(key) {
// Matching against two sets of patterns because a developer may provide their arr... |
import React, { Component } from "react";
import {
StyleSheet,
WebView ,
View,
TouchableHighlight,
TouchableNativeFeedback,
TouchableOpacity,
Dimensions,
AsyncStorage,
Image,
ToastAndroid,
NetInfo
} from "react-native";
import {
Container,
Spinner,
Button,
... |
let Vue; // late bind
let version;
const map = Object.create(null);
if (typeof window !== 'undefined') {
window.__VUE_HOT_MAP__ = map;
}
let installed = false;
let initHookName = 'beforeCreate';
exports.install = (vue) => {
if (installed) return;
installed = true;
Vue = vue.__esModule ? vue.default : vue;
v... |
/*
* Copyright 2018, 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 moment = require('moment');
const { get } = require('lodash');
const {
PLAY, PAUSE, STOP, STATUS, SET_FRAME... |
/**
* PHPWind PAGE JS
* @Copyright Copyright 2011, phpwind.com
* @Descript: 前台-表情插入
* @Author : <EMAIL>
* @Depend : core.js、jquery.js(1.7 or later), global.js
* $Id$
*/
/**
* PHPWind util Library
* @Copyright 愚人码头
* @Descript: 光标位置插入代码
* @Author : 愚人码头 http://www.css88.com/archives/3627
* $Id: jquery.dat... |
/* global require, setInterval, clearInterval, exports */
/* eslint-disable no-param-reassign */
const rpc = require('./rpc/rpc');
// eslint-disable-next-line import/no-unresolved
const config = require('./../../licode_config');
const logger = require('./logger').logger;
const erizoControllerRegistry = require('./mdb... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
var url = $("#url").val();
var stored_json = $("#stored_json").val();
var answer = $("#answer").val();
var final_json = {};
var letters_array = ["A","B","C","D"];
var assigned = $("#assigned").val();
var score = 0;
var total_score = 0;
// $(".sortable").sortable({
// stop:function(event,ui){
// renumbering();
// }... |
// @param container: DOM element in which to create the plot.
// @param basicTimeStep: world basicTimeStep.
// @param autoRange: cf. AutoRangeType.
// @param yRange: initial range. format `{'min': -1.0, 'max': 1.0}`.
// @param labels: format `{'x': "x-axis", 'y': "y-axis"}`.
// @param device: attached device reference.... |
function DivListMaker(p_connection){
this.connector = p_connection;
this.isFeatureChecked = {};
}
DivListMaker.prototype.getLayerDivList = function(){
var upper_ul = document.createElement('ul');
upper_ul.style.height = "10%";
upper_ul.className = "input-group";
var layer_name_list = buffer.getLayerNameLis... |
var getSearch = (function (){
if(typeof window !== 'undefined' && typeof document !== 'undefined'){
if(window['URLSearchParams']){
return function getSearch1(url){
var full = {};
var search = new URLSearchParams(url.search);
var entries = search.en... |
const { When } = require('@cucumber/cucumber');
const FrameworkPath = process.env.FrameworkPath || process.env.HOME + '/Projects/AutoBDD';
const parseExpectedText = require(FrameworkPath + '/framework/step_functions/common/parseExpectedText');
const fs_session = require(FrameworkPath + '/framework/libs/fs_session');
c... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _isEqual2 = _interopRequireDefault(require("lodash/isEqual"));
var _Document = _interopRequireDefault(require("./Document"));
var _Mutation = _interopRequireDefault(require("./Mutation"));
var _SquashingBuf... |
// init socket connection
var socket = io.connect("http://"+window.location.host);
// utility functions
function render(template, data){
return swig.render($(template).html(), {locals: data});
}
function secondsToTime(secs){
secs = Math.round(secs);
var hours = Math.floor(secs / (60 * 60));
var divisor_for_mi... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
/*********************** VARIABLES ***************************************/
var numberOfCand = 15;
var numberOfSeats = 9;
var electOff = [];
var defeatOff = [];
var ballot = [];
var countArray = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
var maxBallot = [];
var minBallot = [0];
var distCand = [];
var defeatCount = 0;
var numbe... |
var _a;
import { DataRenderer, DataRendererView } from "./data_renderer";
import { LineView } from "../glyphs/line";
import { PatchView } from "../glyphs/patch";
import { HAreaView } from "../glyphs/harea";
import { VAreaView } from "../glyphs/varea";
import { Glyph } from "../glyphs/glyph";
import { ColumnarDataSource... |
/* HyperFlow engine.
** Author: <NAME> (2014).
**
** Implementation of the 'join' process. This process joins/merges multiple branches
** of execution associated with its input signals. Two properties of the 'join' process
** determine its behavior:
** - Nb (activeBranchesCount): how many branches are active?
*... |
let token = "";
let id;
let users;
let events;
let EVENT_ID = "";
let EVENT_NAME = "";
const API_URL = "https://apply.vandyhacks.org/api";
const EVENT_URL = `${API_URL}/events`;
const NFC_CODE_LENGTH = 4; // TODO: make this the actual nfc code length
// main initial load
$("#maindiv")[0].style.display = 'none';
wind... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
class Elemento
{
constructor (nome)
{
this.nome = nome;
this.tipo;
}
}
class Animal extends Elemento
{
constructor (cor)
{
super("Tasso")
super.tipo = 10;
this.cor = cor;
}
}
///////////////////////////// VARIAVEIS DOS ELEMENTOS HTML:
var corpo = docume... |
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 file_system_1 = require('../core/file_system');
var api_er... |
const totalPoints = 400;
const POINT_RADIUS = 5;
let MOVE_SPEED = 0.5;
let SCREEN_WIDTH = 0;
let SCREEN_HEIGHT = 0;
let POINT_LIST = [];
let displayMode;
if (window.location.hash === '#1') {
displayMode = 1;
MOVE_SPEED = 1.5;
}
const drawRect = (x, y, w, h) => rect(x, SCREEN_HEIGHT-y, w, h);
const drawLine = (x1,... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import { Flex, Box } from '@rebass/grid';
import gql from 'graphql-tag';
import { graphql } from 'react-apollo';
import memoizeOne from 'memoize-one';
import styled from 'styled-comp... |
////
//// This file must be update with the latests API v2.0
////
require('dotenv').config()
const inquirer = require('inquirer')
const SignalWire = require('../..')
const _inspect = () => {
const { _callingInstance } = client
if (_callingInstance) {
console.log('Calls:', _callingInstance._calls.length, _call... |
/**
* Turn first character into uppercase
* @param str
* @returns {string}
*/
export const ucfirst = str => {
str += "";
let f = str.charAt(0).toUpperCase();
return f + str.substr(1);
};
/**
* Checks is a variable is an array
* @param a
* @returns {boolean}
*/
export const isArray = a => {
retu... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Tooltip from 'rc-tooltip';
import 'rc-tooltip/assets/bootstrap_white.css';
import ForwardForm from '../ForwardForm';
import ReplyWithMessage from '../ReplyWithMessage';
import ActiveCallButton from... |
import React from 'react';
import $ from 'jquery';
window.jQuery = $;
window.$ = $;
global.jQuery = $;
const Inprocess = React.lazy(() => import('./Back-office/Pages/Inprocess'));
/**vehicle api */
const VehicleReport = React.lazy(()=>import('./Back-office/MatrixtelematicsApi/VehicleReport'));
/** Start Report */
c... |
'use strict';
var BrowserIntentHelper = require('./../helper/BrowserIntentHelper.js');
var KeepScreenOnIntentHelper = require(
'./../helper/KeepScreenOnIntentHelper.js');
var URLKeyModel = require('./URLKeyModel');
var CurrentURLModel = require('./CurrentURLModel.js');
var ConfigModel = require('./ConfigModel.js');
... |
'use strict';
/**
* security PIC emulation (U22)
* source of this code is freewpc project, wpc-pic.c and pinmame, wpc.c
*/
const debug = require('debug')('wpcemu:boards:elements:securityPic');
const PIC_SERIAL_SIZE = 16;
const WPC_PIC_RESET = 0x00;
const WPC_PIC_COUNTER = 0x0D;
const WPC_PIC_UNLOCK = 0x20;
cons... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _xeUtils = _interopRequireDefault(require("xe-utils/methods/xe-utils"));
var _conf = _interopRequireDefault(require("../../conf"));
var _tools = require("../../tools");
function _interopRequireDefault(obj) ... |
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'bem-cn-lite';
import {connect} from 'react-redux';
import _ from 'lodash';
import {Link} from 'react-router-dom';
import {Loader} from '@yandex-cloud/uikit';
import InfoViewer from '../../components/InfoViewer/InfoViewer';
import EntitySta... |
// PLY Loader, adapted from THREE.js (MIT license)
//
// Attributions per original THREE.js source file:
//
// @author <NAME> / http://about.me/menway
//
// Description: A loader for PLY ASCII files (known as the Polygon File Format
// or the Stanford Triangle Format).
//
// Limitations: ASCII decoding assumes file is ... |
function ValidacionEmpleado(){
var TipoIdEmp, NumIdEmp, FecExpEmp, CiudadExpEmp, NomEmpleado1, NomEmpleado2, ApeEmp1, ApeEmp2, FeNacEmp, CiudadNacEmp, SexEmp, EstCivEmp, NivelEducativo, DirEmp, CelEmp, EmailEmp, MsgFinal, Resalte, Normal, ValEmail, validafinal;
toastr.clear();//borra los mensajes que esten en pa... |
import {
compactFromU8a,
hexStripPrefix,
hexToU8a,
u8aConcat,
u8aToHex,
u8aToU8a,
} from "@polkadot/util";
import {
encodeAddress,
decodeAddress,
blake2AsU8a,
} from "@polkadot/util-crypto";
import { SUBSTRATE_NETWORK_LIST } from "../constants/networkSpect";
import gov from "../service/gov";
const MU... |
'use strict';
function ___$insertStyle(css) {
if (!css) {
return;
}
if (typeof window === 'undefined') {
return;
}
var style = document.createElement('style');
style.setAttribute('type', 'text/css');
style.innerHTML = css;
document.head.appendChild(style);
return css;
}
function _interop... |
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) {
ext... |
import { v4 as uuidv4 } from 'uuid';
import { CommonEventDispatcher } from 'client-js-lib';
import { CustomEventNames } from './CustomEventNames.js';
import SocketHandler from './SocketHandler.js';
import Logger from './Logger.js';
const TRY_CONNECTING_COUNT = 3;
const TRY_PRIMARY_COUNT = 10;
const TRY_INTERVAL_MILL... |
var templateNum = 0;
var templateTitle = "";
function findTemplate() {
templateNum =
(document.getElementById("userInfo1").value.length +
document.getElementById("userInfo2").value.length +
document.getElementById("userInfo3").value.length +
document.getElementById("userInfo4").value.length +
... |
function _extends() { _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; }; return _extends.apply(this, arguments); }
f... |
/* ---------------------------------------------------------------------------------------
Todos.ts
Microsoft grants you the right to use these script files under the Apache 2.0 license.
Microsoft reserves all other rights to the files not expressly granted by Microsoft,
whether by implication, estoppel or otherwise. T... |
// @ts-check
/* global globalThis */
import fs from 'fs';
import process from 'process';
import re2 from 're2';
import { performance } from 'perf_hooks';
import { spawn as ambientSpawn } from 'child_process';
import { type as osType } from 'os';
import { Worker } from 'worker_threads';
import anylogger from 'anylogger... |
var vw=new Vue({
el:"#app",
data:{
trainingId:"",
training:{
name:"",
userName:"",
statusName:"",
requiredScore:"",
optionalScore:"",
startTime:"",
endTime:"",
signStartTime:"",
signEndTime:"",
levelName:"",
typeName:"",
description:"",
orgName:"",
orgId:"",
createTime... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _taggedTemplateLiteral2 = require('next\\node_modules\\babel-runtime/helpers/taggedTemplateLiteral');
var _taggedTemplateLiteral3 = _interopRequireDefault(_taggedTemplateLiteral2);
var _getPrototypeOf = require('next\\node_modules\\b... |
$(function () {
getStudentPageDataAndParse(1);
$(".dropdown-menu li a,.dropdown-menu span.label").on('click', function () {
$(this).parents(".dropdown-menu").prev(".dropdown-toggle").find(".select-name").text($(this).text());
});
$("#btn-student-search").on('click', function () {
var in... |
import { isString, isObject, isFunction } from './utils'
// allSettled Polyfill
if (!Promise.allSettled) {
Promise.allSettled = promises =>
Promise.all(
promises.map((promise, i) =>
promise
.then(value => ({
status: 'fulfilled',
value,
}))
.catc... |
/**
* Detects the Android development environment and its dependencies.
*
* This code has been deprecated and is only used to support Titanium SDKs
* 3.1.X and older. Starting with Titanium SDK 3.2, the Android detection
* code has been moved to lib/detect.js in the Android platform repo.
*
* @module android
*
... |
/* global test describe expect */
import { assertMatchNoError, shell, execOpts } from '../testlib'
const COMPILE_EXEC = 'source dist/ui/prompt.func.pkg.sh'
const STRICT = 'set -o errexit; set -o nounset; set -o pipefail'
describe('get-answer', () => {
test(`'--multi-line' supports multi-line input`, () => {
con... |
var margin = {
top: 70,
right: 20,
bottom: 85,
left: 45
},
width = parseInt(d3.select('#chart').style('width'), 10),
width = width - margin.left - margin.right,
height = 300;
var parseDate = d3.time.format("%Y").parse;
// escalas
var x = d3.time.scale().range([0, width]... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isShort = isShort;
exports.isLong = isLong;
exports.isShortPut = isShortPut;
exports.isLongPut = isLongPut;
exports.isShortCall = isShortCall;
exports.isLongCall = isLongCall;
exports.legType = legType;
exports.calculateComboScore =... |
import React from "react";
import ReactDOM from "react-dom";
import { format } from "path";
var LineChart = require("react-chartjs").Line;
var data = {
labels: ["January", "February", "March", "April", "May", "June", "July"],
datasets: [
{
label: "My First dataset",
fillColor: "rgba(220,220,220,0.2)",
s... |
// Extend Touch.__proto__
window.Touch.prototype.getForce = function() {
return this.isPen() ? this.force:.5;
};
window.Touch.prototype.isPen = function() {
const hasForce = !(this.force==null);
const isIOS = navigator.userAgent.match(/iPhone|iPad/);
const isStylus = this.radiusX===.5 && this.radiusY===.5;
re... |
/*
* decaffeinate suggestions:
* DS101: Remove unnecessary use of Array.from
* DS102: Remove unnecessary code created because of implicit returns
* DS202: Simplify dynamic range loops
* DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/sug... |
// This algorithm: https://web.archive.org/web/20160418004150/http://freespace.virgin.net/hugo.elias/models/m_fire.htm
const N = 500;
// const scale = 10;
const step = 0.08;
let qTree;
let range;
let range2;
let range3;
let range4;
let range5;
let points = [];
let yStart = 0;
let xoff = 0;
let coolingMap = [];
fu... |
import React, {useContext, useEffect, useRef, useState} from 'react';
import 'antd/dist/antd.css';
import '../../css/cartPage.css'
import {Button, Card, Form, Input, Pagination, Popconfirm, Table, Tag, notification} from 'antd';
import {checkInventory, createOrder, deleteCartItems} from '../../services/cartService'
co... |
/**
* Copyright 2017 Tierion
* 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, ... |
var netNum = 6
var numNodesToChoose=13
var nodes = new vis.DataSet([
{id: 1},
{id: 2},
{id: 3},
{id: 4},
{id: 5},
{id: 6},
{id: 7},
{id: 8},
{id: 9},
{id: 10},
{id: 11},
{id: 12},
{id: 13},
{id: 14},
{id: 15},
{id: 16},
{id: 17},
{id: 18},
{id: 19},
{id: 20},
{id: 21},
{id: ... |
/* Visual design inspired by
https://kynd.github.io/p5sketches/index.html
*/
/* Notes:
- The p5 coordinate system is such that
"y increases downwards".
However, we are attempting to plot the cartesian
system where "y increases upwards".
Instead of writing clever code to resolve this,
... |
import React from 'react';
import { connect } from 'react-redux';
import { unique } from '@togglecorp/fujs';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { BreadcrumbsProvider } from 'react-breadcrumbs-dynamic';
import PrivateRoute from '#components/PrivateRoute';
import Anonymous... |
var Jimp = require("jimp");
const imagemin = require('imagemin');
var fs = Npm.require('fs');
var dlMap = ''
var path = Npm.require('path');
Meteor.rootPath = path.resolve('.');
Meteor.absolutePath = Meteor.rootPath.split(path.sep + '.meteor')[0];
var base = Meteor.absolutePath;
var path = base+"/.static~/";
... |
var table = "";
var tableLideres = "";
$(document).ready(function() {
modalExcluirMinisterio();
modalAlterarMinisterio();
modalEfetuarCompra();
modalremoverVinculo();
$(".respostaAjax").hide();
table = $('#tblMinisterios').DataTable({
"aaSorting": [[1, "asc"]],
"oLanguage": {
"sEmpty... |
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import {
AppBar,
Button,
CssBaseline,
Dialog,
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
Divider,
Drawer,
Grid,
IconButton,
List,
ListItem,
ListItemIcon,
ListItemText,
... |
import React, { useEffect } from 'react';
import { useFormik } from 'formik';
import { useDispatch, useSelector } from 'react-redux';
import PropTypes from 'prop-types';
import { Paper, Grid } from '@material-ui/core';
import * as Yup from 'yup';
import { find } from 'lodash';
import { BackButton, SaveButton } from '.... |
import React,{ReactDOM} from 'react';
import { StyleSheet,View,TouchableOpacity,ScrollView,Image,ImageBackground, Dimensions,Linking, Alert} from 'react-native';
import { createStackNavigator, createAppContainer, createDrawerNavigator,SafeAreaView,DrawerItems} from "react-navigation";
import { Card,Paragraph,Button}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.