text stringlengths 3.22k 29.5k |
|---|
var token = $('input[name="_token"]').val();
var requestUrl = $("#requestUrl").val();
var closeEvent = function() {
location.reload();
}
wnd = jQuery("#comments")
.kendoWindow({
title: "Comments",
modal: true,
visible: false,
resizable: false,
width: 207,
height: 135,
}).data("ken... |
let get_api_url = (path)=> {
return `http://localhost/shop/api/v1/${path}`
}
let get_assets_url = (path) => {
return `http://localhost/shop/assets/goods/${path}`
}
let get_profiles_url = (path) => {
return `http://localhost/shop/assets/profiles/${path}`
}
let base_url = (path) => {
return `http://lo... |
/* eslint-disable react/jsx-props-no-spreading */
import React, { useState } from 'react';
import styled, { css } from 'styled-components';
import { useForm } from 'react-hook-form';
import { useRouter } from 'next/router';
import Link from 'next/link';
import useTranslation from 'next-translate/useTranslation';
import... |
const gherkin = require('gherkin');
const Fixture = require('testcafe/lib/api/structure/fixture');
const Test = require('testcafe/lib/api/structure/test');
const { GeneralError } = require('testcafe/lib/errors/runtime');
const { RUNTIME_ERRORS } = require('testcafe/lib/errors/types');
const { supportCodeLibraryBuilder ... |
import React, { useCallback, useState, useRef, useEffect } from 'react';
import { useRouter } from 'next/router';
import Link from 'next/link';
import styled from 'styled-components';
import { useDialogState, Dialog, DialogDisclosure } from 'reakit/Dialog';
import { useDropzone } from 'react-dropzone';
import { SearchA... |
"use strict";
import Discord from "discord.js";
import csvjson from "csvjson";
import fs from "fs";
import path from "path";
require("dotenv").config();
const client = new Discord.Client();
client.commands = new Discord.Collection();
const commandFiles = fs
.readdirSync(__dirname + "/commands")
.filter(file ... |
/*******************************************************************************
* Copyright 2016 IPCO 2012 Limited
*
* 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... |
var randSym;
exports.randHash = (r) => hashtags[Math.floor(Math.random() * hashtags.length)];
exports.randTerm = (r) => termArray[Math.floor(Math.random() * termArray.length)];
exports.randSym = (r) => {
var symKeys = Object.keys(symptoms);
randSym = symKeys[Math.floor(Math.random() * symKeys.length)];
ret... |
import React from 'react';
import SankeyChart from '@/charts/SankeyChart';
import CodeView from 'react-code-view';
const data = {
nodes: [
// eslint-disable-next-line quotes
{ name: "Agricultural 'waste'" },
{ name: 'Bio-conversion' },
{ name: 'Liquid' },
{ name: 'Losses' },
{ name: 'Solid' }... |
// dsJwtAuth.js
/**
* @file
* This file handles the JWT authentication with DocuSign.
* It also looks up the user's account and base_url
* via the OAuth::userInfo method.
* See https://developers.docusign.com/esign-rest-api/guides/authentication/user-info-endpoints userInfo method.
* @author DocuSign
*/
'use ... |
import VeeValidate from './plugin';
import RuleContainer from './core/ruleContainer';
import { normalizeEvents, isEvent } from './utils/events';
import { createFlags, assign, isCallable, normalizeRules, warn } from './utils';
import { findModel, findModelNodes, findModelConfig, addListenerToVNode, addListenerToObject, ... |
import React, { Component } from 'react';
import { Address, Blockie, Scaler } from "dapparatus"
import axios from 'axios'
import Loader from '../loader.gif';
import Particles from './particles.js';
import { Dropdown } from 'semantic-ui-react'
let monthOptions = [
{key: 'months', value: 'months', text: 'Month(s)'},... |
'use strict';
const extend = require('xtend/mutable');
require('regl')({
//pixelRatio: 0.5,
attributes: {
antialias: false,
},
extensions: [
'oes_texture_float',
'oes_texture_float_linear',
'oes_element_index_uint',
'oes_standard_derivatives',
],
onDone: (err, regl) => {
if (err) r... |
"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 ("va... |
//Global definition
//Cesium js
var cjs_viewer;
var cjs_scene;
var cjs_globe;
var cjs_billboards;
var cjs_waypoints;
var cjs_uav;
var cjs_map_update = false;
var UAV_waypoints;
//Host information
var _hostname = window.location.hostname;
var _port = window.location.port;
//Flight Indicator
var fi_update = false;
... |
/*
* Copyright 2016 <NAME>, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
/**
* 全局路由函数文件,将被xglobal插件载入到每个component;
* before创建this.$xrouter;
* mounted创建分离的方法:
* $xcoms,$xconfs,$xgetConf,$xgetComId,$xset,$xgo,$xrestore,$xisRestored
* 停用自动恢复_xrestoreDisabled
* $xcoms列出所有组件comid(xid-sid)格式;没有xid的不管理,没有id的仅用xid
* $xconfs列出所有组件调动的状态,comid索引,{cmd:'xset',value:kv};
* 本地版本检测,版本升级将清空旧版本的ls数据x... |
import $ from 'jquery';
/**
* ------------------------------------------------------------------------
* Constants
* ------------------------------------------------------------------------
*/
const NAME = 'slide';
const DATA_KEY = 'fe.slide';
const EVENT_KEY = `.${DATA_KEY}`;
const JQUERY_NO_CONFLICT = $.fn[NAME... |
export const mapArray = [];
// refseq acc, pdb chain, offset to get prd resi, start, end of pdb resi
// no data for: YP_009725298, YP_009725300, YP_009725302, YP_009724394, YP_009725318, YP_009724396, YP_009725255, YP_009724393
mapArray.push('YP_009725297 2GDT_A -11 2 116');
mapArray.push('YP_009725299 6WUU_A -743 1 31... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.popupContextTypes = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCh... |
// Zoom-related functions.
import { view } from "./gui.js";
import { update, draw_aligned } from "./draw.js";
import { draw_minimap, update_minimap_visible_rect } from "./minimap.js";
export { zoom_around, zoom_into_box, zoom_towards_box, zoom_aligned };
const zooming = {qz: {x: 1, y: 1, a: 1}, timeout: undefined};... |
"use strict";
var path = require('path');
var ts = require('typescript');
var plugin_1 = require('./plugin');
var refactor_1 = require('./refactor');
var loaderUtils = require('loader-utils');
var NormalModule = require('webpack/lib/NormalModule');
function _getContentOfKeyLiteral(source, node) {
if (node.kind == t... |
import _ from "underscore";
import EventEmitter from 'eventemitter3';
const flatbuffers = require('exports-loader?flatbuffers!flatbuffers');
const visibio = require('exports-loader?visibio!./visibio_generated.js');
class Client extends EventEmitter {
constructor(params) {
super();
this._params = _.defaults(... |
/*global System,inspect*/
import { ObjectDBHTTPInterface } from "lively.storage";
import { Database } from "lively.storage";
import { loadMorphFromSnapshot, createMorphSnapshot } from "../serialization.js";
import { resource } from "lively.resources";
import { obj, Path, arr, string } from "lively.lang";
/*
$world.e... |
/*
* NAME: nodejs-demo.js
* AUTH: <NAME> (https://github.com/gitbrent/)
* DESC: Demonstrate SpRestLib on Node.js
* REQS: Node 4.x + `npm install sprestlib`
* EXEC: `node nodejs-demo.js (sp-username) (sp-password) {sp-hostUrl}`
* VER.: 1.8.0
* REL.: 20180828
* REFS: HOWTO: Authenticate to SharePoint Online (*.sh... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
var _... |
/// Globals
const state = {}
window.onerror = function (message, url, line) {
bulmaToast.toast({ message, type: 'is-danger' })
}
const cookieState = new CookieState()
/// example data
const examplePostConsentPayload = {
consentId: "46876aac-5db8-4353-bb3c-a6a905843ce7",
scopes: [{ "accountId": "dfspa.username.56... |
const listeners = {}
let str_fullscreen = null
let str_fullscreenEnabled = null
let str_fullscreenElement = null
let str_onfullscreenchange = null
let str_onfullscreenerror = null
let str_exitFullscreen = null
let str_requestFullscreen = null
let str_hidden = null
let str_visibilityChange = null
let str_requestPointer... |
const listsContainer = document.querySelector('[data-lists]');
const deleteListButton = document.querySelector('[data-delete-list-button]');
const listDisplayContainer = document.querySelector('[data-list-display-container]');
const listTitleElement = document.querySelector('[data-list-title]');
const listTasks = docum... |
import React from 'react'
import Button from '../components/Button'
import Card from '../components/Card'
import CustomerCard from '../components/CustomerCard'
import LabelText from '../components/LabelText'
import Layout from '../components/layout/Layout'
import SplitSection from '../components/SplitSection'
import St... |
import {t} from '@lingui/macro'
import {Trans} from '@lingui/react'
import {ActionLink} from 'components/ui/DbLink'
import ACTIONS from 'data/ACTIONS'
import STATUSES from 'data/STATUSES'
import Module from 'parser/core/Module'
import {Rule, Requirement} from 'parser/core/modules/Checklist'
import {TieredSuggestion, SE... |
var Addon_Id = "breadcrumbsaddressbar";
var Default = "ToolBar2Center";
var items = te.Data.Addons.getElementsByTagName(Addon_Id);
if (items.length) {
var item = items[0];
if (!item.getAttribute("Set")) {
item.setAttribute("Menu", "Edit");
item.setAttribute("MenuPos", -1);
item.setAttribute("KeyExec", 1);
i... |
"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... |
/* eslint-disable no-shadow, @typescript-eslint/no-use-before-define, no-param-reassign */
import timeline from './timeline';
import piechart from './piechart';
import { normalizeData, getTotalNumOfStars, getLanguages } from './data';
import { getAge, formatPlural, formatHour } from './utils';
const $ = sel => documen... |
import React, { Component } from 'react';
import Highcharts from 'highcharts';
import Select from 'react-select';
import 'react-select/dist/react-select.css';
class FinanceChart extends Component {
constructor(props) {
super(props);
this.state = {
chartType: 'equity',
options: null,
code: t... |
#!/usr/bin/env -S node --stack-size=10000
var kind = require("./kind.js");
var fs = require("fs");
var fsp = require("fs").promises;
var path = require("path");
var exec = require("child_process").execSync;
var {fmc_to_js, fmc_to_hs} = require("formcore-js");
//var {fmc_to_js, fmc_to_hs} = require("./../../../../FormC... |
/*
-------------------------------------------------------------
JEST Spikes - (For Testing)
These spikes, test the inner workings of Jest and as well test how well Jest and React Testing Library work together.
[Overview]
[Spike 1]
- General Usage of Jest for testing functions
[Spike 2]
- Tests the getByTest... |
/*
* Original Copyright GitHub, Inc. Licensed under the MIT License.
* See license text at https://github.com/github/markdown-toolbar-element/blob/master/LICENSE.
*/
export function isMultipleLines(string) {
return string.trim().split('\n').length > 1;
}
export function repeat(string, n) {
return Array(n + 1).... |
/* global window */
import {
html, component, BaseElement, element, mouseMoveUp, bind,
} from '../core';
import '../component';
import './type-panel';
import './property-panel';
import './value-panel';
import Table from '../canvas/table';
import Data from '../data';
import form from '../data/form';
const formTypes =... |
import { app, ipcMain } from 'electron';
import * as path from 'path';
import deepmerge from 'deepmerge';
import Sharp from 'sharp';
import { onAppReset } from '../helpers/manager-helper';
import { getConfig, getTempPath, setTempFile } from './config-manager';
import { checkArrayables } from './definitions-manager';
im... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import {
Button,
Row,
Col,
MultiColumnList,
UncontrolledDropdown,
MenuItem,
DropdownMenu,
Popover,
} from '@folio/stripes/components';
import {
FormattedMessage,
intlShape,
FormattedTime,
FormattedDate,
} fro... |
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
import React from "react"
import { Link, graphql } from "gatsby"
import styled from "styled-components"
import Bio from "../components/bio"
import Layout from "../components/layout/layout"
import SEO from "../components/seo"
import logo from "../../content/assets/vectors/logo-dark.svg"
import lines from "../../content/... |
window.beheCheckIsRefresh = window.beheCheckIsRefresh || 0;
function beheGuidClass() {
var _this = this;
this.t = 0;
this.data = {};
this.expires;
this.cm = -1;
this.sid = [];
this.isScrolling = 0;
this.change = 0;
... |
/** @typedef {import('./index.js').Point} Point */
/** @typedef {import('./index.js').Rect} Rect */
/** @typedef {import('./index.js').Event} Event */
/** @typedef {import('./index.js').ROEntity} ROEntity */
/** @typedef {import('./index.js').EntityRef} EntityRef */
/**
* @template {{[name: string]: unknown}} Datum
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _preact = require("preact");
var _classnames = _interopRequireDefault(require("classnames"));
var _RefinementList = _interopRequireDefault(require("../../components/RefinementList/RefinementList"));
var _co... |
import React, { useEffect } from "react";
import AppBar from '@material-ui/core/AppBar';
import CssBaseline from '@material-ui/core/CssBaseline';
import AppointmentCard from '../components/AppointmentCard';
import Drawer from '@material-ui/core/Drawer';
import Typography from '@material-ui/core/Typography';
import { ma... |
import React, {Component} from "react";
import ReactDOM from "react-dom";
import {Button, Row, Col} from "helpers/reactstrap";
import gql from "graphql-tag.macro";
import {graphql, withApollo} from "react-apollo";
import SubscriptionHelper from "helpers/subscriptionHelper";
export const JR_TRACTORBEAM_SUB = gql`
subs... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
import { html } from 'lit-html';
import { unsafeHTML } from 'lit-html/directives/unsafe-html';
import fetchMock from "fetch-mock";
import { localStyles } from "./styles/local.js";
import { conversationsI18n } from "../i18n/conversations-i18n.js";
import { playpenData } from "./data/playpen-data.js";
import { playpenSta... |
console.log('Books');
'use strict'
var gBooks = [{
//id : 'don_quixote',
id: 1,
name: '<NAME>',
author: '<NAME>',
price: 50,
currency: '$',
isDeleted: 0,
image: '1.jpg',
//simage : 'don_quixote.jpg',
desc: '<NAME>, a retired country gentleman in his fifties, \
... |
const os = require('os');
const electron = require('electron');
const robot = require('robotjs');
const { BrowserWindow, ipcMain } = electron;
const { SIZE } = require('./constants');
const log = require('jitsi-meet-logger');
/**
* The aspect ratio to preserve during AOT window resize
* @type {number}
*/
const ASPE... |
//This file should include miscellaneous repeatable functions used in multiple places in the code.
"use strict";
Number.prototype.MagFormat = function () {
return this.toFixed(1);
};
function qs(key) {
key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, "\\$&"); // escape RegEx meta chars
var match = location.sear... |
// Copyright 2008 The Closure Library 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 requ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.noCache = exports.CacheControl = exports.hashSource = exports.nonceSource = exports.getResponseType = exports.ResponseType = exports.HashAlgorithm = exports.SriAsset = exports.SpecialSource = exports.CspSandboxAllow = exports.CspDirect... |
/*! @license MIT ©2014-2016 <NAME>, Ghent University - imec */
var N3Util = require('../n3').Util,
createErrorType = require('./CustomError');
var XSD = 'http://www.w3.org/2001/XMLSchema#',
XSD_INTEGER = XSD + 'integer',
XSD_DOUBLE = XSD + 'double',
XSD_BOOLEAN = XSD + 'boolean',
XSD_TRUE = '"tr... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
// Description: Scans for localizability violations in the DevTools front-end.
// Checks all .grdp files and reports messages without descri... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _vue = require("vue");
var _utils = require("../utils");
var _utils2 = require("./utils");
var _useExpose = require("../composables/use-expose");
var _useLinkField = require("../composables/use-link-field");
var _icon = require("../icon");
v... |
var Duplex = require('stream').Duplex || require('readable-stream').Duplex;
var EventEmitter = require('events').EventEmitter;
var bitfield = require('bitfield');
var MESSAGE_PROTOCOL = new Buffer('\x13BitTorrent protocol');
var MESSAGE_KEEP_ALIVE = new Buffer('\x00\x00\x00\x00');
var MESSAGE_CHOKE = new ... |
'use strict'
// eslint-disable-next-line node/no-deprecated-api
const domain = require('domain')
const request = require('request')
const { makeBadgeData: getBadgeData } = require('./badge-data')
const log = require('./log')
const LruCache = require('./lru-cache')
const analytics = require('./analytics')
const { makeS... |
// ----- setup ----- //
var illoElem = document.querySelector('.illo');
var sceneSize = 96;
var TAU = Zdog.TAU;
var ROOT3 = Math.sqrt(3);
var ROOT5 = Math.sqrt(5);
var PHI = ( 1 + ROOT5 ) / 2;
var isSpinning = true;
var viewRotation = new Zdog.Vector();
var displaySize;
// colors
var eggplant = '#636';
var garnet = '... |
function displayOpt(searchOpt,searchKey){
switch(searchOpt) {
case 'exclude':
return ' <span style="color:red;">~</span>'+searchKey;
case 'in sequence':
return ' <span style="color:#42a7f4;">✱</span>'+searchKey+'<span style="color:#42a7f4;">✱</span>'
cas... |
const test = require('tap').test
const Promise = require('bluebird')
const is = require('../src/is')
const tError = require('./test-error')
const enums = require('../src/enums')
const jobLog = require('../src/job-log')
const tData = require('./test-options').tData
const Queue = require('../src/queue')
const tOp... |
// modified from https://github.com/adcentury/react-mobile-picker
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Modal from '../Modal';
import { i18nTxt } from '../../utils/i18n';
import media from '../../globalStyles/media';
import unitPars... |
import { cleanup, component } from "@vuoro/rahti";
const blank = {};
export const command = component(function command(
{ gl, setBuffer, setProgram, setVao, setDepth, setCull, setBlend, debug },
{
// Static
attributes = blank,
uniformBlocks = blank,
textures = blank,
instances,
elements,
... |
all_folder_slugs = ['ssl', "addons/local", "homeassistant", "share"];
settingsChanged = false;
name_keys = {}
function idToSlug(id) {
if (id == "folder_addons") {
return "addons/local";
} else if (id == "folder_homeassistant") {
return "homeassistant";
} else if (id == 'folder_share') {
return "share... |
/**
* @file Funciones para fetch de los datos, render de las gráficas y tablas y listeners para los eventos en estas.
* @author <NAME>-<NAME>
* @version 1.0.0
*/
/**
* @const {string} apiKey API KEY NASA para las llamadas.
* @see https://api.nasa.gov/
*/
const apiKey = '';// <= API KEY
/**
* Primer fetc... |
'use strict';
var Async = require('async');
var Chalk = require('chalk');
var FormData = require('form-data'); // Hacked version of this lib that doesn't 'basename' the filepath
var Lodash = require('lodash');
var Path = require('path');
var Request = require('request');
var BuildHelpers = require('./../build-helpers... |
// app/facebookcast/adset/adset.service.js
'use strict';
const logger = require('../../utils').logger();
const constants = require('../../constants');
const fbRequest = require('../fbapi');
const PixelService = require('../pixel/pixel.service');
const Model = require('./adset.model');
const ProjectModel = require('..... |
const request = require('request');
const $ = require('jquery');
const axios = require('axios');
const queryString = require('query-string')
const url = require('url')
const electron = require('electron');
const path = require('path')
const BrowserWindow = electron.remote.BrowserWindow
const ipc = electron.ipcR... |
/**
* @description This method composes an email template
*
* @param {string} linkUrl The password reset link
* @param {string} email The email to which the message is to be sent
*
* @returns {HTML} composed email
*/
const emailTemplate = (linkUrl, email) => `<html>
<head>
<meta charset="UTF-8">
<meta name="vi... |
var helper = require('../../Helper.js')();
var EARTH_SIZE = 600;
var POS_X = 0;
var POS_Y = 0;
var POS_Z = 0;
var POS_X_L = 3000;
var POS_Y_L = 0;
var POS_Z_L = 3000;
module.exports = EarthModuleObjEarth;
function EarthModuleObjEarth(parent, opts) {
if (!(this instanceof EarthModuleObjEarth)) return new EarthM... |
"use strict"
/*!
* config
*
* @desc BaoAI Front
* @author henry <<EMAIL>>
* @see {@link http://www.baoai.co}
* @copyright © 2016-2020 广州源宝网络有限公司 Guangzhou Yuanbao Network Co., Ltd. {@link http://www.ybao.org}
* @license Apache-2.0
*/
// product env config // 生产部署环境配置,采用html5Mode模式,配合nginx反向代理,用户无需了解后端服务器地址
//... |
import React, { useState, useEffect, useReducer } from 'react';
import { useHistory } from 'react-router-dom';
import {
makeStyles,
Container,
Typography,
Box,
Card,
CardContent,
CardActions,
Button,
Grid,
TextField,
FormControl,
InputLabel,
Select,
MenuItem,
CircularProgress
} from '@material-ui/core';
... |
'use strict';
var usernamePage = document.querySelector('#username-page');
var chatPage = document.querySelector('#chat-page');
var usernameForm = document.querySelector('#usernameForm');
var messageForm = document.querySelector('#messageForm');
var messageInput = document.querySelector('#message');
var messageArea = ... |
import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Helmet from 'react-helmet';
import ReactGA from 'react-ga';
import ReactPixel from 'react-facebook-pixel';
import { scroller } from 'react-scroll';
import StaticHelmet from 'common/StaticHel... |
/* eslint-disable prefer-template */
/* eslint-disable no-undef */
/* eslint-disable prefer-destructuring */
/* eslint-disable no-shadow */
/* eslint-disable no-unused-vars */
/* eslint-disable no-buffer-constructor */
/* eslint-disable import/no-dynamic-require */
/* eslint-disable global-require */
/* eslint-disable ... |
"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... |
"use strict";
const assert = require("node-opcua-assert").assert;
const Long = require("long");
const offset_factor_1601 = (function () {
const utc1600 = new Date(Date.UTC(1601, 0, 1, 0, 0, 0));
const t1600 = utc1600.getTime();
const utc1600_plus_one_day = new Date(Date.UTC(1601, 0, 2, 0, 0, 0));
con... |
import { ImagerySplitDirection, WebMercatorTilingScheme, GeographicTilingScheme, Cartographic } from '@vcmap/cesium';
import { getBottomLeft, getBottomRight, getTopLeft, getTopRight } from 'ol/extent.js';
import { parseInteger, parseNumberRange, parseEnumValue } from '@vcsuite/parsers';
import { wgs84Projection } from... |
"use strict";
var fs, path, util, ejs,
version, program;
fs = require("fs");
path = require("path");
util = require("./util");
ejs = require("ejs");
program = require("./program");
version = "0.0.3";
function Zombie() {
if (!(this instanceof Zombie)) {
return new Zombie();
}
... |
const { subtle } = require('crypto').webcrypto;
const xml2js = require('xml2js');
const http = require("https");
const WebSocket = require("ws");
const { session, domain, keys, conversation, trigger } = require("./config.json");
var socket;
var users,conversations;
var started = [];
const channelPrice = 50;
var ch... |
bindClass("java.util.regex.Matcher");
bindClass("java.util.regex.Pattern");
var MY_TAG_NAME = "llscript.crozzash";
var crozzash = {};
var self = crozzash;
self.doOnOk = function() {
var episodes = {};
var i;
var pre = "https://it.dplay.com";
var findEpisodes_line = function(s) {
va... |
"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... |
var kue = require('kue'),
fs = require('node-fs'),
mv = require('mv'),
async = require('async'),
koop = require('./'),
pgcache = require('koop-pgcache'),
cluster = require('cluster'),
path = require('path'),
rimraf = require('rimraf'),
exec = require('child_process').exec;
// get the config from a st... |
//variables to hold user current search request
var artist = '';
var title = '';
//variables to hold user past searches for later quick search
var searchSongHistory = [];
var searchArtistHistory = [];
//An enevent listener in jquery for to click a search button called rock on
$('#formContainer').on("click", '#rockOnBt... |
/*
global
action: false
L: false
page: false
theme: false
visualization: false
*/
import { showRunServicePanel } from "./automation.js";
import {
call,
configureNamespace,
history,
historyPosition,
moveHistory,
notify,
openPanel,
serializeForm,
showInstancePanel,
} from "./base.js";
import {
showCo... |
var storeLib = require('/lib/store');
var cacheLib = require('/lib/cache');
var GAME_RANGE = 100;
var PLAYER_RAMPING_DURATION = 50;
var TEAM_RAMPING_DURATION = 20;
var STARTING_RAMPING_COEF = 0.80;
var cache = cacheLib.newCache({
size: 32,
expire: 86400
});
exports.post = function (req) {
var leagueId = ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.version = exports.ZaloApiException = exports.ZaloOA = exports.ZOA = undefined;
var _getOwnPropertyDescriptor = require('babel-runtime/core-js/object/get-own-property-descriptor');
var _getOwnPropertyDescriptor2 = _interopRequireDef... |
// Title: Tigra Menu Builder v1.0 (07/21/2005)
// Copyright (c)2005 Softcomplex, Inc. (www.softcomplex.com)
// --------------------------------------------------------------------------------
// generates the items structure
// this function should be called first as it sets global variable N_MAXDEPTH
// which is late... |
let mongoose = require('../mongoose.js');
let Schema = mongoose.Schema;
const Pubgapi = require('pubg-api');
const pubg = new Pubgapi(
process.env.PUBG_API_TOKEN,
{ defaultShard: process.env.DEFAULT_SHARD }
);
const DamageCauserName = require('../assets/pubg/damageCauserName');
const Discord = require('discord.... |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import { connect } from 'react-redux';
import { actions } from '../redux';
import {
Alert,
Flex,
FlexItem,
FlexModifiers,
Form,
FormGroup,
FormSelect,
FormSelectO... |
import Overlay from 'ol/overlay';
import Point from 'ol/geom/point';
import Awesomplete from 'awesomplete';
import $ from 'jquery';
import featureInfo from '../featureinfo';
import generateUUID from '../utils/generateuuid';
import getAttributes from '../getattributes';
import getCenter from '../geometry/getcenter';
imp... |
//var new_menu={};
function revoke_sortable_code(){
$( ".btm_sortable_ul" ).sortable({
placeholder: "ui-state-highlight",
connectWith: "ul",
revert: true
});
$( ".btm_sortable_ul" ).disableSelection();
}
function re_assign_level_values(li_items,level_value){
... |
'use strict';
import timezones from './timezones';
const {GLib, St, Clutter, GnomeDesktop, Gio } = imports.gi;
const { main, panelMenu, popupMenu } = imports.ui;
// imports explained
/*
Gio - used here for extension setting saving to file
GnomeDesktop - used to grab the current time as a string
Clutter ... |
var refreshRate = 2000; //milli seconds
var USER_LIST_URL = buildUrlWithContextPath("userslist");
var GAMES_LIST_URL = buildUrlWithContextPath("gameslist");
var NEW_GAME_URL = buildUrlWithContextPath("newgame");
var JOIN_AS_PLAYER_URL = buildUrlWithContextPath("joingameasplayer");
var GAME_ROOM_URL = "../gameroom/gamer... |
const jquery = require("jquery");
const graph_url = "http://127.0.0.1:29003/graph";
const attack_graph_url = "http://127.0.0.1:29000/attack_graph";
let svg = d3.select("#graph-container")
.append("svg")
.attr("width", "1278px")
.attr("height", "800px")
.call(d3.zoom().on("zoom", functio... |
// This example requires the Places library. Include the libraries=places
// parameter when you first load the API. For example:
// <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places">
var map = null;
var geocoder = null;
var markers = [];
var recentMarker = null;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.