text stringlengths 3.22k 29.5k |
|---|
'use strict';
const { CompositeDisposable, Point, Range } = require('atom');
const path = require('path');
const fs = require('fs');
const sendCode = require('./sendCode');
const apps = {
stataMP: 'StataMP',
stata: 'Stata',
stataIC: 'StataIC',
stataSE: 'StataSE',
xquartz: 'XQuartz'
};
module.exports = {
... |
/* eslint-disable */
const { Plugin } = require("powercord/entities");
const { inject, uninject } = require("powercord/injector");
const {getModule} = require('powercord/webpack');
module.exports = class BetterSettings extends Plugin {
async startPlugin() {
const pluginsettings = require('./settings');
this.l... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const errors_1 = require("@oclif/errors");
const path = require("path");
const util_1 = require("util");
const command_1 = require("./command");
const debug_1 = require("./debug");
const ts_node_1 = require("./ts-node");
const util_2 = require... |
import { type, foreach, isEmpty, noop } from "./util";
import slice from "../var/slice";
import event from "../event/core";
import check from "../check";
import correctParam from "../correctParam";
/**
query ( selector: String, context?: Object, all?: Boolean )
Return Type:
符合表达式与获取范围的元素( Object | Array )
Descri... |
// Assigned To: StructureLine
// Type: Calculation
// Name: StructureLine - Create Ducts In Duct Bank
// Description: Generates ducts inside duct banks based on the ductshigh and ductswide fields
// Subtypes: Wire Duct Bank
// Field: assetid
// Trigger: Insert
// Exclude From Client: True
// Disable: False
// Related ... |
function verifyMaxipagoCC(ccNumber) {
var eloRE = /^(636368|438935|504175|451416|(6362|5067|4576|4011)\d{2})\d{10}/;
var visaRE = /^4\d{12,15}/;
var masterRE = /^5[1-5]{1}\d{14}/;
var amexRE = /^(34|37)\d{13}/;
var discoveryRE = /^(6011|622\d{1}|(64|65)\d{2})\d{12}/;
var hiperRE = /^(60\d{2}|38... |
'use strict';
try
{
google.charts.load('current', {packages: ['corechart']});
google.charts.setOnLoadCallback(drawChart);
}
catch(e)
{
}
let g_LB_Data = {};
let g_DOGE_BTC_Price = 100000;
let g_CurrentPair = utils.DEFAULT_PAIR;
let g_currentChartPeriod = 24;
$(() => {
const currentPair = storage.getItemS('Cur... |
var _ = require('lodash');
var d3 = require('d3');
/*
* SVG Helpers
*/
var translate = function(x, y) {
return "translate(" + x + ", " + y + ") ";
};
var scale = function(x) {
return "scale(" + x + ") ";
};
var scaleAroundPoint = function(s, x, y) {
return "translate(" + ((1 - s) * x) + ", " + ((1 - s) * y) ... |
const Discord = require('discord.js')
const EventEmitter = require('events')
const log = require('../library/util').log
const MODULE_NAME = 'Practice Adapter'
class PracticeAdapter extends EventEmitter {
constructor (moduleManager) {
super()
this._client = moduleManager.getClient()
this._guild = module... |
_TEXT=function(wrap) {return wrap.toString().match(/\/\*\s([\s\S]*)\s\*\//)[1];} // 提取 /* 之间的内容 */
_CODE=function(wrap) {return wrap.toString().match(/function\s*\(\s*\)\s*{\s*([\s\S]*)\s*}/ )[1];}//auto trim { code_start_end_space }
function sleep(ms) {return new Promise(resolve => setTimeout(resolve, ms) ) }
asyn... |
'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProp... |
let starWipe = {
title: "Star Wipe Fade",
description: "A classic star wipe transistion. Typically used as a transistion.",
vertexShader:
"\
attribute vec2 a_position;\
attribute vec2 a_texCoord;\
varying vec2 v_texCoord;\
void main() {\
... |
var mysql = require('mysql');
const fs = require('fs');
const path = require('path');
//const {spawn} = require('child_process');
var db = require('../service/database');
var exec = require('child_process').exec;
var csv =require('csv-array');
var plantData;
csv.parseCSV('data/species_param.csv',function(data){
pl... |
const taskInput = document.getElementById("new-task");
const addButton = document.getElementById("add-task");
const incompleteTaskHolder = document.getElementById("incomplete-tasks");
const completedTasksHolder = document.getElementById("completed-tasks");
const items = {};
const tasks = {};
let itemsCount = 0;
//New... |
/*
* (C) 2016
* <NAME>, All rights reserved
* Powered by InnoVision, created by the GIAT
*
* Endpoint.js was developed at the
* National Geospatial-Intelligence Agency (NGA) in collaboration with
* <NAME> [http://www.boozallen.com]. The government has
* "unlimited rights" and is releasing this software t... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var g_math_1 = require("@antv/g-math");
var util_1 = require("@antv/util");
var base_1 = require("./base");
var path_util_1 = require("@antv/path-util");
var draw_1 = require("../util/draw");
var point_in_path_1... |
/* eslint-disable react/destructuring-assignment */
import React, { Component, Element } from 'react';
import PropTypes from 'prop-types';
import {
Undertittel,
Element as ElementTekst,
Normaltekst,
} from 'nav-frontend-typografi';
import { Radio } from 'nav-frontend-skjema';
import { Knapp, Fareknapp } fro... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = (function() {
function defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.conf... |
/* Plugin component
* This components manages Plugins and handles the plugin launch on selected targets
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { Dialog, Pane, Tab, Tablist, Spinner, Heading, C... |
import React, { useEffect, useState } from "react";
import CustomInput from "components/CustomInput/CustomInput.js";
// react plugin for creating charts
import ChartistGraph from "react-chartist";
import * as MyLegend from "chartist-plugin-legend";
// @material-ui/core
import { makeStyles } from "@material-ui/core/styl... |
const EventEmitter = require('events');
const {randomBytes} = require('crypto');
const {acceptsChannelOpen} = require('ln-sync');
const {getInvoice} = require('ln-service');
const {subscribeToInvoice} = require('ln-service');
const acceptTrade = require('./accept_trade');
const finalizeTrade = require('./finalize_tra... |
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _slicedToArray2 = _interopRequireDefaul... |
//import htm from './htm.min.js';
//import {Component} from './preact.min.js';
//const html = htm.bind(h);
//import { html, render } from 'https://unpkg.com/htm/preact/standalone.module.js'
/*
class App extends Component {
state = {connected: false, ssid: '', pass: '', spin: false, frames: [], status:{}};
componen... |
import React from 'react';
import moment from 'moment';
import { storage } from '../firebase/firebase';
import { SingleDatePicker } from 'react-dates';
const now = moment();
export default class EventForm extends React.Component{
constructor(props){
super(props);
this.state={
event_name: props._event ... |
import cloneDeep from 'lodash/cloneDeep';
import get from 'lodash/get';
import has from 'lodash/has';
import includes from 'lodash/includes';
import isEmpty from 'lodash/isEmpty';
import round from 'lodash/round';
import punycode from 'punycode';
const emailsConfigurationGuides = {
DE: 'https://www.ovh.de/g1474.allg... |
var abilocation="https://cdn.rawgit.com/energychain/StromDAO-BusinessObject/master/smart_contracts/";
var plz="69256";
var last_reading = {};
function resolve(address) {
name=address;
if(window.localStorage.getItem("address_"+address.toLowerCase())!=null) {
name=window.localStorage.getItem("address_"+address.toLow... |
/************************************************************************
* Copyright (c) Crater Dog Technologies(TM). All Rights Reserved. *
************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. *
* ... |
import keymirror from 'keymirror';
const appStates = {
crashed: 'CRASHED',
down: 'DOWN',
flapping: 'FLAPPING',
unknown: 'UNKNOWN',
restarting: 'RESTARTING',
running: 'RUNNING',
started: 'STARTED',
starting: 'STARTING',
stopped: 'STOPPED',
default: 'STOPPED'
};
// Descriptive states to represent e... |
// limit mapbox tracking
try {
if (window.localStorage) window.localStorage.clear();
} catch (e) {}
import mapboxgl from 'mapbox-gl';
if (!window.requestIdleCallback) {
window.requestIdleCallback = function (x) {
window.setTimeout(x, 0);
}
}
const settings = document.getElementById("settings").dataset;
mapb... |
var charts = {
byCountry: {
sankey: null
},
byCommodity: {
pie:null,
hist:null,
bar:null,
hold_pie:null,
hold_hist:null
}
}
function initCharts() {
//charts for International Trading
charts.byCountry.sankey = new google.visualization.Sankey(docume... |
"use strict";
const { hasNewlineInRange } = require("../../common/util.js");
const {
isJsxNode,
getComments,
isCallExpression,
isMemberExpression,
} = require("../utils/index.js");
const { locStart, locEnd } = require("../loc.js");
const isBlockComment = require("../utils/is-block-comment.js");
const {
build... |
/**
* Gutenberg editor view for Object Image block. Creates <ObjectImage> component.
*/
/**
* WordPress dependencies
*/
import {
InspectorControls,
RichText,
} from '@wordpress/blockEditor'
import {
Component
} from '@wordpress/element';
import {
PanelBody,
CheckboxControl,
} from '@wordpress/components';
... |
function bowlingScore(bowlingSequenceValues) {
let bsv = bowlingSequenceValues;
//serparate them by spaces
let pS = processString(bsv);
//pair them
let pairs = pairThem(pS);
//score the pairs
return scorePairs(pairs);
//return the number score
}
function scorePairs(pairs) {
//define the variables
... |
var booMainWindow = false;
var objCurrentUnit = null;
var objOpener;
var objOpenerTop;
var booContentLoaded = false;
var booNavLoaded = false;
var booDoFilter = false;
var strBaseURL = null;
var strCurrentCaseStudy = null;
var strImagePath = "../../images/"; // The path of the image directory relative to the page
var ... |
"use strict";
const _ = require("lodash");
const ModuleProcessor = require("./module-processor");
const AnsiConvert = require("ansi-to-html");
function escapeHtml(html) {
const htmlMap = {
"<": "<",
">": ">"
};
return html.replace(/([<>])/g, (m, a) => htmlMap[a]);
}
function getInfo(stats) {
co... |
import * as React from "react"
import DocumentComponent from "../layout/DocumentComponent"
import { NetworkFrame } from "../../components"
import { Mark } from "semiotic-mark"
import { edgeData } from "../example_settings/networkframe"
import Button from "material-ui/Button"
import Select from "material-ui/Select"
imp... |
let ano = document.getElementById('_ano')
let mes = document.getElementById('_mes')
let dia = document.getElementById('_dia')
var tzolkin = []
let anocod = 0
let mescod = 0
let diacod = 0
let kin = 0
let kintxt = document.getElementById('Kin')
fun... |
import React from 'react';
import PropTypes from 'prop-types';
import { useSelector } from 'react-redux';
import { makeStyles } from '@material-ui/core/styles';
import Link from 'docs/src/modules/components/Link';
import Card from '@material-ui/core/Card';
import CardActionArea from '@material-ui/core/CardActionArea';
... |
/*
Copyright 2019 Gravitational, 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 writing, soft... |
"use strict";
var av = Autodesk.Viewing,
ave = Autodesk.Viewing.Extensions,
avp = Autodesk.Viewing.Private,
avu = Autodesk.Viewing.UI,
MeasureCommon = Autodesk.Viewing.MeasureCommon;
// This strange code is there because we
// don't want DockingPanel, which is used a... |
"use strict";
const { utils: Cu, classes: Cc, interfaces: Ci } = Components;
Cu.import("chrome://kancollemodifier/content/FileManager.jsm");
Cu.import("chrome://kancollemodifier/content/KanColleDataModifier.jsm");
Cu.import("chrome://kancollemodifier/content/KanColleShipInfo.jsm");
let strBundle;
function updateMod... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("... |
// Copyright JS Foundation and other contributors, http://js.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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless r... |
/**
* 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 2018 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
#!/usr/bin/env node
/* *****************************************************************************
* kasar.js creates static websites.
*
* The MIT License (MIT)
*
* Copyright (c) 2021 Mobilabs <<EMAIL>> (http://www.mobilabs.fr)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
*... |
$(document).ready(function () {
$('#dtBasicUsers').DataTable();
$('.dataTables_length').addClass('bs-select');
$("#masked-phone-text1").mask("8(999) 999-99-99");
$('#open-form-button').show();
$('#AddForm').hide();
$('#save-button-form').hide();
$('#price-room-form').hide();
$('#price-one-day').attr('ty... |
import React, { useState, useEffect, useCallback } from "react";
import { InputAdornment, TextareaAutosize, Grid, Typography, Button, Tabs, Tab, TextField, Checkbox, FormControlLabel, Radio, RadioGroup } from "@material-ui/core";
import axios from "../../Util/axios"
import { withRouter } from "react-router-dom";
impo... |
const { ipcRenderer, remote } = require('electron')
const electronSettings = remote.require('electron-settings')
const fs = require('fs')
const ace = require('brace')
const i18next = require('i18next')
const i18nInit = require('./i18n')
const Session = require('./session')
require('brace/ext/themelist')
let menu$ = r... |
/**
* @license
* Copyright 2019 <NAME>.
* Handtrack.js - A library for prototyping realtime hand tracking using neural networks.
* Licensed under the MIT License (the "License");
* Code snippets from the tensorflow coco-ssd example are reused here - https://github.com/tensorflow/tfjs-models/tree/master/coco-ssd
... |
// Define uma variável de armazenamento local
const setLocalVar = function (varName, varObj) {
localStorage.setItem(varName, JSON.stringify(varObj));
};
// Carrega uma variável armazenada localmente
const loadLocalVar = function (varName) {
return JSON.parse(localStorage.getItem(varName));
};
// Remove ... |
import { SIMULATE_TRADE } from './types';
const fillNaN = (input) => {
return isNaN(input) ? 0 : input;
}
const cleanParameter = (parameter) => {
return parseFloat(Math.abs(fillNaN(parameter)));
}
const cleanTradeParameters = (tradeParameters) => {
for (let key in tradeParameters) {
tradeParameters[key] = ... |
import Resolver from "../artifact/Resolver.js";
import CoinState from "../state/CoinState.js";
import CoinsUI from "./CoinsUI.js";
import DamageTargetDialog from "./DamageTargetDialog.js";
import Endpoint from "./Endpoint.js";
import MoveOptionDialog from "./MoveOptionDialog.js";
import TableauUI from "./TableauUI.js... |
import { cloneDeep } from "lodash";
import { useEffect, useState } from "react";
import { findLayerIndexes } from "./utilities";
const MAX_LOG_ENTRIES = 200;
const IMPORT_REGEX = /(import (.+ from )?["'])(\.\/)(.+)(["'])/g;
const compileScript = (scriptingContextId, scriptName, scripts, assets, scriptUrls) => {
... |
/*!
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
* Licensed under the MIT License.
*/
/**
* @fileoverview
* Declaration of the PropertyTemplateWrapper module
* PropertyTemplateWrapper is used to wrap a property template and perform internal optimizations
*/
const { MSG } = requir... |
/*!
* Copyright 2014 Apereo Foundation (AF) Licensed under the
* Educational Community 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://opensource.org/licenses/ECL-2.0
*
* Unless required by applicab... |
// miniprogram/pages/group/createGroup/createGroup.js
const myApi = require('../../../utils/myApi')
const imgUrl = require('../../../utils/imgUrl')
const db = wx.cloud.database()
const groupsList = db.collection('groupsList');
Page({
/**
* 页面的初始数据
*/
data: {
bar_bgImg1: imgUrl.bar_bg17,
bar_bgImg2: i... |
const Module = require("module");
const sysPath = require("path");
const fs = require("fs");
const {fork, spawn} = require("child_process");
const anymatch = require("anymatch");
const stripJsonComments = require("strip-json-comments");
const defaults = require("lodash/defaults");
const semLib = require("sem-lib");
c... |
"use strict"
const jsob = require('../jsob')
const expect = require('chai').expect
function codeThrowsException(funcRunCode) {
let exceptionWasCaught = null
try {
funcRunCode()
exceptionWasCaught = false
} catch (ex) {
exceptionWasCaught = true
}
return exceptionWasCaught
}
const subObject = {
... |
import React, { useEffect, useMemo, useCallback, useRef } from 'react';
import SunEditor from 'suneditor-react';
import 'suneditor/dist/css/suneditor.min.css'; // Import Sun Editor's CSS File
import katex from 'katex'
import { Col, Row } from '../ui/grid';
import { Card, CardBody, CardHead, CardOptions, CardTitle, Card... |
import React, { useRef } from 'react'
import { Unit } from 'step-wise/inputTypes/Unit'
import { maximumHumidity } from 'step-wise/data/moistureProperties'
import { useInitializer } from 'util/react'
import { M, BM } from 'ui/components/equations'
import { Par } from 'ui/components/containers'
import FloatUnitInput fr... |
// Copyright (c) 2013 <NAME>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Global variables containing the query we'd like to pass to!
*
* @type {string}
*/
var HOST = "https://friendly-chart.herokuapp.com";
//var HOST = "http://... |
function into_handwriting(id) {
var input_id=document.getElementById(id);
input_id.style= "font-family: duos-brush, sans-serif; font-weight:300; font-size: 4rem; letter-spacing: -.1rem; padding-top: 1rem; border-bottom: rgba(255, 255, 255, 0)";
input_id.style.transition= "ease-out 0.5s all";
document.ge... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OurContextualizedStats = exports.OurReport = exports.SizeEstimator = void 0;
const durationHistogram_1 = require("./durationHistogram");
const apollo_reporting_protobuf_1 = require("apollo-reporting-protobuf");
const iterateOverTrace_1... |
/**
* The file interfaces between our application and the studentDebtCalculator package
*/
import studentDebtCalculator from 'student-debt-calc';
import { calcInterestAtGrad, calcMonthlyPayment } from './debt-utils.js';
import { getConstantsValue, getFinancialValue, getStateValue } from '../dispatchers/get-model-val... |
// Copyright © 2017, 2018, 2020 Moar Technologies Corp. See LICENSE for details.
import * as THREE from '../Three/three.module.js'
function Bolt( scene, hand, joint ){
// You can only shoot so many bolts per second.
// If you’re trying to fire too much we just return
// undefined and nothing happens!
... |
console.log('这是content script!');
let spocUrl = 'https://cquv3.xuetangx.com/';
let courseID = 30000;
let classID = '52464';
let courseData = {};
let currentCourseIndex = 0;
let currentVideoIndex = 0;
let timer;
// 注意,必须设置了run_at=document_start 此段代码才会生效
document.addEventListener('DOMContentLoaded', function () {
// 注... |
var Tree = Ext.tree;
var userListGrid;
var userListDataStore;
var selectedRows;
Ext.onReady(function(){
var findByTreeGridDropNode =1;
var tree = new Tree.TreePanel({
el:'tree-div',
autoScroll:true,
animate:true,
// enableDrag:false,
// enableDrop:true,
enableDD:tru... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
cur_frm.add_fetch('student', 'codigo_tipo_documento', 'codigo_tipo_documento');
cur_frm.add_fetch('student', 'tipo_documento_identidad', 'tipo_documento_identidad');
cur_frm.add_fetch('student', 'tax_id', 'tax_id');
cur_frm.add_fetch('razon_social', 'tax_id', 'tax_id');
cur_frm.add_fetch('razon_social', 'customer_prima... |
//--------------------------
// synth.js starts here
// Create keyboard
var keyboard = new QwertyHancock({
id: 'keyboard',
width: 600,
height: 150,
// startNote: 'C4'
octaves: 2
});
// Create audio nodes
var context = new AudioContext(),
masterVolume = context.createGain(),
tuna = ne... |
/**
* 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... |
/**
* Medula Main Scripts File
* Author: andamira
*
* 1 jQuery(document).ready()
*
* 1.1 Smart Header ( )
* 1.2 Detect Conditional CSS ( )
* 1.3 Scroll Offset (#)
*
* 2 Big Functions
*
* ... |
'use strict';
var swig = require('swig');
var container = require('dependable').container();
var fs = require('fs');
var path = require('path');
var util = require('./util');
var EventEmitter = require('events').EventEmitter;
var events = new EventEmitter();
var modules = [];
var menus;
var allMenus = [];
var middlew... |
/**
* Created by fengkai on 2017/1/16.
*/
$(function(){
//初始化商品分类
$.getJSON(gcategory_data_url,function(response){
if(response.code == 0){
gcategory_data = response.data;
if($('#gcategory_full_id').val() == ',,'){
var first_gc1 = gcategory_data[0];
... |
import '../css/Filter.css!';
import _ from 'underscore';
export default FiltersBar
/* ----------------------- Global variables ----------------------- */
var filters = {};
var filterRegex;
var finalResults;
var database = //placeholder data obj
[
{
Title: "Harry Potter and the Half Blood Prince",
... |
import React, { useState, useEffect } from "react";
import DatePicker from "react-date-picker";
import { useDispatch, useSelector } from "react-redux";
import Slider from "rc-slider";
import { Loading } from "../common/Loader";
import { DISTRICT_CHOICES } from "../../Common/constants";
import {
getAppliedFilters,
... |
var app = angular.module('pokeapp', ['ngRoute', 'angular-loading-bar']);
var errorTexts = {404:'Sorry, This Pokemon doesn\'t exist.'}
/**
* HTTP Request interceptor
*/
app.factory('pokeTestHttpInterceptor', function($q, $rootScope) {
return {
request: function(config) {
$rootScope.doingAjax = true;
return co... |
const Observable = require('./utils/observable');
const { T, t } = require('./utils/translation');
const utils = require('./utils');
// const { getMoneyMaker } = require('pesa');
// const {
// DEFAULT_INTERNAL_PRECISION,
// DEFAULT_DISPLAY_PRECISION,
// } = require('./utils/consts');
module.exports = {
initializeA... |
/**
*/
var wgl_lib_verbose=true;
/**
* Biztosit egy mainloop visszavivast, ami tobb bongeszovel is mukodik,
* legalabbis elvileg.
*/
window.requestAnimFrame = (function() {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
... |
/*
* Copyright 2019 EPAM Systems
*
* 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 ... |
import React, { useEffect, useLayoutEffect, useState, useCallback } from 'react';
import area from '@turf/area';
import bbox from '@turf/bbox';
import intersect from '@turf/intersect';
import transformScale from '@turf/transform-scale';
import bboxPolygon from '@turf/bbox-polygon';
import { polygon, multiPolygon, featu... |
const fs = require('fs');
const fsPromises = require('fs').promises;
const path = require('path');
const mongo = require('./utils/mongo');
const BigNumber = require('bignumber.js');
require('dotenv').config({
path: path.join(__dirname, '/../.env')
});
module.exports = () => {
return new Promise(async (resolve,... |
load_customer();
function load_customer(){
$.ajax({
url: domain + "Customer",
type: "POST",
data: {
op: "load_customer",
_token: _token,
}
}).done(function (e) {
if (e) {
e = JSON.parse(e);
c.clear().draw()... |
var path = require("path");
var fs = require("fs");
const { dialog } = require('electron').remote;
var child_process = require('child_process');
var os = require('os');
const { SSL_OP_SSLEAY_080_CLIENT_DH_BUG } = require("constants");
Vue.directive('highlight', function (el) {
let blocks = el.querySelectorAll('pre... |
import {Dispatchable} from "base/Dispatcher";
import {WebsocketStreamHandler} from "./WebsocketStreamHandler";
class WebsocketSubscriber extends Dispatchable {
static ConnectionStatus = {
NONE: 0,
CONNECTING: 1,
CONNECTED: 2,
DISCONNECTED: 3
};
static STREAM_SUBSCRIBE_TIME... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopReq... |
import browser from "webextension-polyfill";
import db from "./database.js";
/*
Store geolocation constantly for fast Suncalc lookups.
*/
navigator.geolocation.getCurrentPosition(position => {
browser.storage.local.set({
latitude: position.coords.latitude,
longitude: position.coords.longitude
})
});
navigator.g... |
// parser results
const ok = (value, nextIndex) => ({ ok: true, value, nextIndex })
const err = (...errors) => ({ ok: false, errors })
// parsers
const _first = ([x]) => x
const _withIndex = (match, _, __, index) => ({ match, index })
export class Parser {
constructor (parseFn) {
this._parseFn = parseFn
... |
// DEFINE TASK (required)
var taskinfo = {
type: 'task', // 'task', 'survey', or 'study'
uniquestudyid: 'delaydiscount', // unique task id: must be IDENTICAL to directory name
description: 'delay discounting task staircase with 5 delays', // brief description of task
condition: null, // experiment/task ... |
const fs = require('fs');
const express = require('express');
const app = express();
const http = require('http');
const https = require('https');
const useHttps = false;
const doHttps = () => {
app.enable('trust proxy');
// Add a handler to inspect the req.secure flag (see
// http://expressjs.com/api#req.s... |
import "./index.css";
let str = require("./a");
document.querySelector(".p").innerHTML = str;
document.body.style.fontSize = "34px";
const fetchData = () => {
return new Promise((resolve, reject) => {
fetch('https://api.github.com/users/chriscoyier/repos').then(res => {
if (res.ok) {
resolve(res.j... |
import * as THREE from 'three';
import { FontLoader } from '../FontLoader';
class Environment {
constructor(font, particle) {
this.font = font;
this.particle = particle;
this.container = document.body;
this.scene = new THREE.Scene();
const renderTargetParameters = { minFilter: THREE.LinearFilt... |
'use strict';
/*
* Created with @iobroker/create-adapter v1.11.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');
const maxoutputs = 10;
//----Connect: echo -e -n '\xf0''\x45''\x01''\x00''\x00''\x00''\x... |
/* Import theme specific language pack */
tinyMCE.importPluginLanguagePack('searchreplace', 'en,tr,sv,zh_cn,fa,fr_ca,fr,de,pl,pt_br,cs,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,zh_tw,zh_tw_utf8,sk');
function TinyMCE_searchreplace_getInfo() {
return {
longname : 'Search/Replace',
author : 'Moxieco... |
/*global chrome*/
import React from 'react'
import { withRouter } from 'react-router-dom'
import Header from './header'
import {CopyToClipboard} from 'react-copy-to-clipboard';
import OverlayTrigger from 'react-bootstrap/OverlayTrigger'
import CopyIcon from './Icons/Copy.js'
import {FormattedMessage} from 'react-intl'... |
const puppeteer = require('puppeteer-extra');
const StealthPlugin = require('puppeteer-extra-plugin-stealth');
const fs = require('fs');
const random_useragent = require('random-useragent');
const Excel = require('exceljs');
const axios = require('axios');
const removeDiacritics = require('diacritics').remove;
process... |
'use strict';
$(document).ready(function() {
initializePage();
})
// Variables declared here
var original;
var added;
var pause;
var muted;
var maxFriends;
function initializePage() {
if(sessionStorage.recountFriends === "true"){
sessionStorage.maxFriends = "0";
maxFriends = sessionStorage... |
import Vue from "vue";
import Vuex, { Store } from "vuex";
import Dispatcher from "./utils/dispatcher";
import ANIMATIONS_CONFIG from "./config/animations.json";
Vue.use(Vuex);
const userGroup = JSON.parse(localStorage.getItem("user-group")) || {};
/** @typedef {"light" | "dark" | "schedule" | "system"} ThemeEnum... |
import React, { useEffect } from 'react';
import PropTypes from 'prop-types';
import { useLazyQuery, useMutation } from '@apollo/client';
import { useFormik } from 'formik';
import { debounce } from 'lodash';
import { FormattedMessage } from 'react-intl';
import { API_V2_CONTEXT, gqlV2 } from '../../lib/graphql/helper... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.