text stringlengths 3.22k 29.5k |
|---|
/*jslint node: true */
/*jshint esversion: 6 */
"use strict";
const fs = require('fs');
const Clapp = require('./modules/clapp-discord');
const SummaryHandler = require('./modules/summaryhandler');
const db = require('./modules/dbhandler');
const cfg = require('../config.js'... |
"use strict";
const address = require("address");
const fs = require("fs");
const path = require("path");
const url = require("url");
const chalk = require("chalk");
const detect = require("detect-port-alt");
const isRoot = require("is-root");
const prompts = require("prompts");
const clearConsole = require("./clearCo... |
// keeps track of the various AsyncVocabLayout instances
var asyncVocabLayouts = $H();
/* vocab-driven layout. has two modes: edit and view
*/
var AbstractAsyncVocabLayout = Class.create ({
initialize: function (id, xpath, elementPath, initialFieldValue) {
this.id = id;
asyncVocabLayouts.set(this.id, this);
thi... |
const inputZipCode = document.querySelector('#zipCode');
const inputPublicPlace = document.querySelector('#publicPlace');
const selectState = document.querySelector('#state');
const selectCity = document.querySelector('#city');
const loading = selectCity.previousElementSibling;
const btnSearchByZipCode = document.query... |
/****************************************************************************
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associa... |
import WDIOReporter from '@wdio/reporter'
import chalk from 'chalk'
import prettyMs from 'pretty-ms'
class SpecReporter extends WDIOReporter {
constructor (options) {
/**
* make spec reporter to write to output stream by default
*/
options = Object.assign({ stdout: true }, options... |
import Vue from 'vue';
import { escape } from 'lodash';
import { __, sprintf } from '~/locale';
import { visitUrl } from '~/lib/utils/url_utility';
import flash from '~/flash';
import * as types from './mutation_types';
import { decorateFiles } from '../lib/files';
import { stageKeys } from '../constants';
import servi... |
function Move(id,x,y) { //Передвинуть объект(ы)
$(id).css({"left": x,"top": y});
}
function FocusOn(x,y) { //Переместить камеру в точку
window.scrollTo(x-$(window).width()/2,y-$(window).height()/2);
}
function AddExpl(x,y) {
var tid=Math.floor(Math.random()*sys_size);
$("#content").append("<div id... |
let express = require('express');
let path = require('path');
let randomString = require('randomstring');
let _ = require('lodash');
let async = require('../node').async;
let dirname = path.join(__dirname, '..', '..');
let config = require(path.join(dirname, '/config.json'));
let database = require(path.join(dirnam... |
import { KeyPair } from 'near-api-js';
import { generateSeedPhrase } from 'near-seed-phrase';
import React, { Component, Fragment } from 'react';
import { Translate } from 'react-localize-redux';
import { connect } from 'react-redux';
import { withRouter, Route } from 'react-router-dom';
import {
handleAddAccessKe... |
var TIMESTEP = 25;
var COLS = 24, ROWS = 24;
var PASS = "pass";
var FORWARD = "forward";
var BACKWARD = "backward";
var TURN_LEFT = "turn_left";
var TURN_RIGHT = "turn_right";
var STRAFE_LEFT = "strafe_left";
var STRAFE_RIGHT = "strafe_right";
var ATTACK_RANGED = "ranged_attack";
var HEAL = "heal";
var RUNNING = fals... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _inte... |
var SbInterval = 6;
var progwidth = 950;
var progheight = 14;
var progtop = 2;
var run_active;
var kfiles = 0;
var last_kfile = 1;
var history = [[]];
/* Disabling jQuery caching */
$.ajaxSetup({
cache: false
});
function catwidth (variable, queued) {
if (variable == 0)
return 0;
var width = variable * progwi... |
import React, {Component} from "react";
import "./keyboard.scss";
export const keys = [
{name: "esc", char: "", modifier: true, escape: true, short: true},
{name: "F1", short: true},
{name: "F2", short: true},
{name: "F3", short: true},
{name: "F4", short: true},
{name: "F5", short: true},
{name: "F6", s... |
/*
* @Author: czy0729
* @Date: 2019-05-25 23:00:45
* @Last Modified by: czy0729
* @Last Modified time: 2021-12-08 14:55:56
*/
import React from 'react'
import { View } from 'react-native'
import { Flex, Katakana, Text, Touchable, Iconfont } from '@components'
import { _ } from '@stores'
import { getTimestamp } fro... |
let ASPECT_RATIO =
window.BIG_ASPECT_RATIO === undefined ? 1.6 : window.BIG_ASPECT_RATIO;
function parseHash() {
return parseInt(window.location.hash.substring(1), 10);
}
function emptyNode(node) {
while (node.hasChildNodes()) node.removeChild(node.lastChild);
}
function ce(type, className = "") {
return Obj... |
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is dis... |
//Version 0.5
//
//change from 0.4:
//
// 1. Now minify compliant.
//
////////////////////////////////
function GetPluginSettings()
{
return {
"name": "MouseLock", // as appears in 'insert object' dialog, can be changed as long as "id" stays the same
"id": "MouseLock", // this is used to identify this pl... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import { Row, Col } from 'react-bootstrap';
import { responseSetProps } from '../../prop-types/response_set_props';
import Errors from '../Errors';
import ModalDialog from '../ModalDialog';
import CodedSe... |
import React, { useCallback, useMemo, useState } from 'react';
import { Box, Button, ButtonGroup, Field, Icon, Label, Modal, Table } from '@rocket.chat/fuselage';
import Page from '../../../../client/components/basic/Page';
import { useTranslation } from '../../../../client/contexts/TranslationContext';
import { useRo... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import get from 'lodash/get';
import MenuItem from '@material-ui/core/MenuItem';
import { withStyles, createStyles } from '@material-ui/core/styles';
import compose from 'recompose/compose';
import { addField, translate, FieldTitle } from 'ra... |
/**
*
* ChartContainerTrend
*
*/
import { Box, ResponsiveContext } from 'grommet';
import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import { withTheme ... |
"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 ("... |
'use strict';
const Attribute = require('./Attribute');
const errors = require('./errors');
const VirtualType = require('./VirtualType');
//const util = require('util');
const debug = require('debug')('dynamoose:schema');
function Schema(obj, options) {
debug('Creating Schema', obj);
this.tree = {};
this.met... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { history } from '../../store';
import { ListLoader } from '../basic/Loader';
import {
fetchComponentResources,
addCurrentComponent,
} from '../../actions/component';
import { bindActionCr... |
import Overlay from 'ol/Overlay';
import Point from 'ol/geom/Point';
import Awesomplete from 'awesomplete';
import { Component, Element as El, Button, dom } from '../ui';
import generateUUID from '../utils/generateuuid';
import getAttributes from '../getattributes';
import getCenter from '../geometry/getcenter';
import... |
const { resolve } = require("path");
const { readJson } = require("fs-extra");
const Ajv = require("ajv");
const { readYaml, merge, walk, clone, toTitleCase } = require("./utils");
const { generateOutput } = require("./arm");
const schemaPath = resolve(__dirname, "../config-schema.json");
async function generate(pa... |
const DEFAULT_TEXT_EN = `Wikipedia (abbreviated as WP) is a multilingual online encyclopedia. The website
was created and is maintained as an open collaboration project by a community of volunteer
editors, using a wiki-based editing system. It is the largest and most popular general reference
work on the World Wide We... |
import React, {useEffect, useState,useContext} from 'react';
import {
Text,
View,
StyleSheet,
Dimensions,
ScrollView,
Alert,
} from 'react-native';
import {useNavigation} from '@react-navigation/native';
import {Button, TextInput} from 'react-native-paper';
import colorConstant from '../../../constants/colo... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Calldata = void 0;
const ethUtil = require("ethereumjs-util");
const _ = require("lodash");
const constants_1 = require("../utils/constants");
const pointer_1 = require("./blocks/pointer");
const set_1 = require("./blocks/set");
const ... |
'use strict'
const axl = require('axl')
const EventEmitter = require('events')
const https = require('https')
const nacl = require('tweetnacl')
const WebSocket = require('ws')
const Session = require('./session')
const util = require('./util')
const INFO = Buffer.from('triple-double')
/**
* This class implements a ... |
var React = require('react');
var Router = require('react-router');
var { Seq } = require('../../../../');
var { InterfaceDef, CallSigDef } = require('./Defs');
var MemberDoc = require('./MemberDoc');
var isMobile = require('./isMobile');
var SideBar = require('./SideBar');
var MarkDown = require('./MarkDown');
var Doc... |
// Base authentication plugin.
// This cannot be used on its own. You need to inherit from it.
// See plugins/auth/flat_file.js for an example.
var crypto = require('crypto');
var AUTH_COMMAND = 'AUTH';
var AUTH_METHOD_CRAM_MD5 = 'CRAM-MD5';
var AUTH_METHOD_PLAIN = 'PLAIN';
var AUTH_METHOD_LOGIN = 'LOGIN';
var LOGIN_S... |
import React, { useEffect } from 'react';
import { gsap } from 'gsap';
// Set defaults for animations
gsap.defaults({
ease: 'elastic.out(0.9, 0.5)',
});
const LogoAnimationA = props => {
// Define all the pieces of the logo
const logo = React.createRef();
const yellow = React.createRef();
const teal = React... |
//分页列表
var url = "";
function pagingInit(className, totalAmount, perAmount, nowPage, linkFunc) {
if (className == "")
className = "sabrosus";
var maxShowPage = 7;
document.getElementById("div_paging").className = className;
var pages = Math.ceil(totalAmount / perAmount);
var urlObj = parse... |
const Argument = require("./Argument")
, Flag = require("./Flag")
, Table = require("cli-table3")
, str = require("./strings/en.js");
/* eslint-disable no-trailing-spaces */
/**
* A Command that can be bound to an App. A command represents a single function that achieves a
* single purpose. The comman... |
'use strict';
// ==================================================================================
// index.js
// ----------------------------------------------------------------------------------
// Description: System Information - library
// for Node.js
// Copyright: (c) 2014 - 2017
// Author: ... |
// Copyright (c) 2017, Intel Corporation.
console.log("Test case for PME APIs");
var assert = require("Assert.js");
var pme = require("pme");
var neuron;
var pmeInfos = function() {
console.log("PME mode:");
var mode = pme.getClassifierMode();
if (mode === pme.RBF_MODE) {
console.log(" classifi... |
const _ = require('lodash');
const fetch = require('node-fetch');
const mongodb = require('models/mongodb');
const {
createBundle
} = require('models/FHIR/func');
const {
handleError,
ErrorOperationOutcome
} = require('models/FHIR/httpMessage');
const FHIR = require('fhir').Fhir;
const { isRealObject } = re... |
import path from 'path'
import { BrowserWindow, dialog, ipcMain } from 'electron'
import log from 'electron-log'
import windowStateKeeper from 'electron-window-state'
import { isChildOfDirectory, isSamePathSync } from 'common/filesystem/paths'
import BaseWindow, { WindowLifecycle, WindowType } from './base'
import { en... |
// *** Functions to create General Game related objects ***
function new_boxes (boxes) {
// Resets all boxes, weather they have been created already or not
if (boxes) {
boxes.forEach(box => {
box.clicked = false
box.color = "transparent"
box.backcolor = "grey"
})
}
else {
boxes = ... |
/**
* Get object with array of argument property and description, then convert
* it to arguments template
* @param {Object} object - object with include array of argument description
* and properties string
* @param {Object} context - internal config
* @return {Object} - argument template
*/
const getArgumentObj... |
module.exports = grammar({
name: "ditto",
conflicts: $ => [
[$.module_name],
[$.expression_function_parameter_name, $.expression_variable_name],
[$.type_function, $._type_parens],
],
extras: $ => [
$.comment,
// Whitespace, taken from
// https://github.com/tree-sitter/tree-sitter-javas... |
/*
* SystemJS Core
*
* Provides
* - System.import
* - System.register support for
* live bindings, function hoisting through circular references,
* reexports, dynamic import, import.meta.url, top-level await
* - System.getRegister to get the registration
* - Symbol.toStringTag support in Module object... |
/*
Draw pie charts in d3.
To use, a div is required with the class .d3_pie_chart_usage or
.d3_pie_chart_distribution, and a data-used attribute in the div
that stores the data used to fill the chart.
Example (usage):
<div class="pie-chart-usage"
data-used="{% widthratio current_val max_val 100 %}"... |
yii.confirm = function(message, ok, cancel) {
var url = $(this).attr('href');
var if_pjax = $(this).attr('data-pjax') ? $(this).attr('data-pjax') : 0;
var method = $(this).attr('data-method') ? $(this).attr('data-method') : "post";
var data = $(this).attr('data-params') ? JSON.parse( $(this).attr('data-... |
'use strict';
/* eslint no-alert: "off" */
/* eslint no-console: "off" */
/* global QB_CREDS:true, QB_CONFIG:true, User:true, Places:true, Map:true, Handlebars:true */
function App() {
this.ui = {
'map': 'j-map',
'panel': 'j-panel',
'header': 'j-header',
'overlay': 'j-overlay'
}
// root el
th... |
//
// Copyright (c) Microsoft and contributors. 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... |
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) {
for(var i = 0, arr2 = new Array(arr.length); i < arr.length; i++){
arr2[i] = arr[i];
}
return arr2;
}
}
function _iterableToArray(iter) {
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(ite... |
import { html } from 'lit-html';
import { MvuElement } from '../../../MvuElement';
import olCss from 'ol/ol.css';
import css from './olMap.css';
import { Map as MapOl, View } from 'ol';
import { defaults as defaultControls } from 'ol/control';
import { defaults as defaultInteractions, PinchRotate } from 'ol/interaction... |
///////////////////////////////////////////////////////Scroll to
$(document).ready(function(){
// Add smooth scrolling to all links
$("a").on('click', function(event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click beha... |
'use strict';
var VERSION = '2.1.0';
var CONSTANTS = require('src/constants.json');
var utils = require('src/utils.js');
var bidfactory = require('src/bidfactory.js');
var bidmanager = require('src/bidmanager.js');
var adloader = require('src/adloader');
var ajax = require('src/ajax').ajax;
var adaptermanager = require... |
import utils from '../utils';
import {ADDRESS_PREFIX_REGEX} from '../utils/address';
const getFunctionSelector = abi => {
return abi.name + '(' + getParamTypes(abi.inputs || []).join(',') + ')';
};
const getParamTypes = params => {
return params.map(({type}) => type);
};
const decodeOutput = (abi, output) =>... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
var _passportJwt = require("passp... |
let timer,
timeoutVal = 2000; // time it takes to wait for user to stop typing in ms
var messageInput = document.getElementById("myMessage");
var messageSendButton = document.getElementById("sendbutton");
var getUser = document.getElementById("get_user_status");
var userStatusInfo = document.getElementById("user_stat... |
/**
* HostName: A Lambda function which converts Identifier
* Names into corresponding Codes, then combines them into
* HostNames which conform to Naming Conventions.
*
* The mapping tables in this file should be kept up-to-date
* as new Applications and Components are added.
**/
const companyNameToCode = {
'Demo' ... |
/*****************************************************************
* @author: <NAME> (Martino), <EMAIL>
* https://github.com/Martinomagnifico
*
* Internation.js for Reveal.js
* Version 1.0.4
*
* @license
* MIT licensed
*
* Thanks to:
* - <NAME>, Reveal.js
**********************************************... |
import React, {PureComponent} from 'react';
import {connect} from 'react-redux';
import {Link} from 'react-router-dom';
import SystemMessages from './SystemMessages';
import logo from '../../styles/img/logo.png';
import cookie from 'browser-cookies';
import {getMessages, signIn, signInSocial, signUp, socialLogin} from ... |
const fs = require('fs-extra')
const path = require('path')
const chalk = require('chalk')
const migrationConfig = require('./migrationConfig')
const Logger = require('../utils/Logger')
const {Node} = require('@secrez/fs')
const {Entry} = require('@secrez/core')
const {Prompt} = require('secrez')
class MigrateFromV1... |
var CoreView = require('backbone/core-view');
var $ = require('jquery');
var _ = require('underscore');
var Clipboard = require('clipboard');
var TableBodyRowView = require('./table-body-row-view');
var ContextMenuView = require('../../context-menu/context-menu-view');
var CustomListCollection = require('../../custom-l... |
/*
* Copyright (C) 2014-2019 <NAME> (www.helger.com)
* philip[at]helger[dot]com
*
* 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
... |
function setOpts (standard, user) {
if (typeof user === 'object') {
for (var key in user) {
standard[key] = user[key];
}
}
}
function randomNumber(min, max) {
return Math.floor(Math.random() * (max - min) + min);
}
function drawRotatedShape(shape,x,y,width,height,degrees,color,direction){
... |
import { BackButton, CardLabel, FormStep, Loader, MobileNumber, RadioButtons, TextInput, UploadFile, Dropdown, CheckBox } from "@egovernments/digit-ui-react-components";
import React, { useState, useEffect } from "react";
import { useLocation } from "react-router-dom";
import { stringReplaceAll } from "../utils";
impor... |
import { eqPosition, lessPosition } from "./position.js";
/*
let t = Date.now()
lively.lang.fun.timeToRunN(() => {
let attr1 = Math.random() < 0.5 ? {foo: 23} : null;
let attr2 = Math.random() < 0.5 ? {foo: 23} : null;
concatAttributePair("hello", attr1, "world", attr2)
}, 500000);
Date.now() - t;
*/
export ... |
/*
* Copyright (C) 2016 Quaternion Risk Management Ltd
* All rights reserved
*
*/
var CURRENT_URL = window.location.href.split('?')[0],
$BODY = $('body'),
$MENU_TOGGLE = $('#menu_toggle'),
$SIDEBAR_MENU = $('#sidebar-menu'),
$SIDEBAR_FOOTER = $('.sidebar-footer'),
$LEFT_COL = $('.left_col'),... |
"use strict";
// import { QueueArray } from '../QueueArray.js';
import { EPSG4326 } from "../proj/EPSG4326.js";
class PlainSegmentWorker {
constructor(numWorkers = 2) {
this._id = 0;
this._segments = {};
this._workerQueue = [];
var elevationProgramm = new Blob([_progr... |
const { app, BrowserWindow, dialog, shell } = require("electron");
app.showExitPrompt = true;
const path = require("path");
const glob = require("glob");
const os = require("os");
const contextMenu = require("electron-context-menu");
const log = require("electron-log");
require("v8-compile-cache");
const { ipcMain } = ... |
const vscode = require('vscode')
const path = require('path')
const fs = require('fs')
const xsl = require('./createHtml')
const getSearchPhrase = () => {
const editor = vscode.window.activeTextEditor
const selection = editor.selection
let text = editor.document.getText(selection)
if (!text) {
... |
/**
* project-javascript.js
* https://github.com/andyyoung/optimizely-utils
*
* @version 0.2, 1st Dec 2016
*
* @author <NAME> https://twitter.com/@andyy
* @licence MIT
*
* Place this code into Optimizely's Experiment Javascript field (for a single experiment)
* or Project Javascript field (to have it ... |
/* eslint-disable no-plusplus, react/no-did-mount-set-state, arrow-body-style */
import React from 'react';
import PropTypes from 'prop-types';
import update from 'immutability-helper';
import Form from 'react-jsonschema-form';
import SchemaBuilder from './SchemaBuilder';
import './styles/cb.css'
class CheckBoxes exte... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var parentCtx = {};
var childType = {
display: 'display',
occultation: 'occultation'
};
var eventType = {
displayClicked: childType.display + 'clicked',
occultationFocus: childType.occultation + 'focus',
childInserted: 'childinser... |
// Proxy
// -----
//
// Provides an HTTP Proxy (without routing) along with its monitoring.
// dependencies
var url = require('url');
var http = require('http');
var tank = require('./tank')();
var config = require('./config')();
var objbuild = require('./objbuild')();
module.exports = function(dep, inj) {
... |
require('dotenv').config();
const functions = require('firebase-functions');
const admin = require('firebase-admin');
const { Cluster } = require('puppeteer-cluster');
const axios = require('axios');
admin.initializeApp();
const formatCity = (string) => string.toLowerCase();
const scrapeCityEvents = async (city) => ... |
import React from 'react';
import { CaretUp32, CaretDown32 } from '@carbon/icons-react';
import {
Search,
ToastNotification,
NumberInput,
Button,
} from 'carbon-components-react';
import { Paper, hashID } from '../../components/Info';
import { Affinity } from '../Affinity';
import { Network } from '../Network'... |
let preview = document.querySelector('#preview');
let buttonAdd = document.getElementById('button-add');
let buttonDel = document.getElementById('button-del');
let fotos = document.getElementById('fotos');
let floatingCirclesG = document.getElementById('floatingCirclesG');
let allFiles = [];
let clickTime;
let mo... |
import Web3 from 'web3';
import logger from 'winston';
import uuidv4 from 'uuid/v4';
import GivethBridge from './GivethBridge';
import ForeignGivethBridge from './ForeignGivethBridge';
import getGasPrice from './gasPrice';
import { sendEmail } from './utils';
const BridgeData = {
homeContractAddress: '',
forei... |
const _ = require('lodash')
const mime = require('mime')
const path = require('path')
const Promise = require('bluebird')
const dataUriToBuffer = require('data-uri-to-buffer')
const Jimp = require('jimp')
const sizeOf = require('image-size')
const colorString = require('color-string')
const sanitize = require('sanitize... |
function toggleMenu() {
var x = document.getElementById("topnav");
if ( x.className === "topnav" ) {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
var tags = [];
var xmlhttp = new XMLHttpRequest();
var myUpdate, tagRequest = "";
var toggleV = 0;
function addTag() {... |
/*
* gaze
* https://github.com/shama/gaze
*
* Copyright (c) 2013 <NAME>
* Licensed under the MIT license.
*/
'use strict';
// libs
var util = require('util');
var EE = require('events').EventEmitter;
var fs = require('fs');
var path = require('path');
var globule = require('globule');
var helper = require('./he... |
import $ from '../../core/renderer';
import gridCoreUtils from './ui.grid_core.utils';
import { grep } from '../../core/utils/common';
import { each } from '../../core/utils/iterator';
import { isDefined } from '../../core/utils/type';
import { when, Deferred } from '../../core/utils/deferred';
const MASTER_DETAIL_CEL... |
// message format
// [command]|[scope]|[name]|[value]
// [commands]
// watch nowatch set get add list call
// examples
// watch sessionvalue user
// nowatch sessionvalue user
// set sessionvalue user frank
// watch channel chat
// nowatch channel chat
// add channel chat "hello wor... |
/* eslint-disable no-console */
// const fs = require('fs');
const path = require('path');
const Webpack = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackTemplate = require('html-webpack-template');
const MiniCss... |
/* globals postMessage: false, DataView: false, self: false, window: false, ArrayBuffer: false, Uint8Array: false */
function UntarWorker() {
}
UntarWorker.prototype = {
onmessage: function(msg) {
try {
if (msg.data.type === "extract") {
this.untarBuffer(msg.data.buffer);
} else {
throw new Error("U... |
//MAP API
let api = "<KEY>"
function initMap() {
let latLng ={
lat:4.684079,
lng:-74.041489
}
let map = new google.maps.Map(document.getElementById('mapa'), {
"center": latLng,
"zoom": 16,
"mapTypeId": google.maps.MapTypeId.ROADMAP
});
... |
import React from 'react'
import '../global'
import { web3, kit } from '../root'
import { Image, StyleSheet, Text, TextInput, Button, View, YellowBox } from 'react-native'
import {
requestTxSig,
waitForSignedTxs,
requestAccountAddress,
waitForAccountAuth,
FeeCurrency
} from '@celo/dappkit'
import { toTxRes... |
var self = require("sdk/self");
var data = self.data;
var addOnPrefs = require("sdk/simple-prefs").prefs;
var tabs = require("sdk/tabs");
var requestHelper = require("./request-helper");
var constants = require("./constants");
var storage = require("./storage");
var widgetHelper = require("./button");
var timer = requ... |
import React from 'react';
import {
compose,
lifecycle,
setDisplayName,
withState,
} from 'recompose';
import {
isEqual,
isNumber,
pick,
sum,
uniqueId,
} from 'lodash';
import { scaleOrdinal, schemeCategory10 } from 'd3';
import Color from 'color';
import { renderPlot } from '@oncojs/survivalplot';
i... |
const _ = require('underscore');
const GameObject = require('./GameObject');
const Player = require('./player.js');
const Settings = require('../settings.js');
const { EffectNames, EventNames } = require('./Constants');
class Conflict extends GameObject {
constructor(game, attackingPlayer, defendingPlayer, ring = ... |
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.defineProperty(target, des... |
var introPageText = "Guten Tag! I am <NAME>. My clever horse Hans would like to calculate for you!"
var inputPageText = "Bitte pick your numbers so that Hans can calulate for you!"
var calc1 = 1
var calc2 = 2
var calcOut
//variables to hold the text value of the calc numbers
var calc1Text;
var calc2Text;
//holds al... |
/*
//@line 38 "e:\builds\moz2_slave\rel-m-rel-xr-w32-bld\build\toolkit\mozapps\extensions\amWebInstallListener.js"
*/
/**
* This is a default implementation of amIWebInstallListener that should work
* for most applications but can be overriden. It notifies the observer service
* about blocked installs. For normal i... |
// settings
var timeStep = (1/60);
var confettiCount = 150000;
var container;
var camera, scene, renderer, stats;
var controls;
var shaderUniforms, shaderAttributes, confettiMaterial;
var time = 0;
init();
tick();
function init() {
createScene();
createControls();
createGrid();
createConfettiMateri... |
const { stringify } = require('querystring');
const fetch = require('isomorphic-unfetch');
const Condition = require('../../schema/Condition');
const {
timezoneOffset,
conditionPadding,
locationCenter,
darkSkyRequestOpts,
coldLapsPoints,
} = require('../../config');
const { captureSentry } = require('../v2/se... |
var scatterData = [{friends: 5, salary: 22000},
{friends: 3, salary: 18000}, {friends: 10, salary: 88000},
{friends: 0, salary: 180000}, {friends: 27, salary: 56000},
{friends: 8, salary: 74000}];
function createChart() {
var yExtent = d3.extent(scatterData, d => d.friends);
var xExtent = d3.ex... |
import React, { useState, useEffect } from 'react';
import { DataTable } from 'primereact/datatable';
import { Column } from 'primereact/column';
// import { Button } from 'primereact/button';
import { getUserAction } from '../../../redux/actions/dashboardActions/getUsersAction';
import PropTypes from 'prop-types';
imp... |
/**
* @license
* Copyright 2020 Google 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... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = __importDefault(require("path"));
const fs_1 = __importDefault(require("fs"));
const mime... |
import * as d3 from 'd3';
import { t } from '../../util/locale';
import { d3combobox } from '../../lib/d3.combobox.js';
import { services } from '../../services/index';
import {
utilGetSetValue,
utilNoAuto,
utilRebind
} from '../../util';
export { uiFieldRadio as uiFieldStructureRadio };
export functio... |
/**
* @file batchlayout.js
* @brief Optimized layout for batch details
* @author <NAME> (INRA UMR1095)
* @date 2017-02-15
* @copyright Copyright (c) 2017 INRA/CIRAD
* @license MIT (see LICENSE file)
* @details
*/
let LayoutView = require('../../../main/views/layout');
let AccessionModel = require('../../models... |
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) { try { step(g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.