text stringlengths 3.22k 29.5k |
|---|
/*=======================BackUp.js===========================*/
if (j$("#user").children().is("#signin_bt")) {
j$("#signin_bt").toggle(
function() {
$
j$("#signinbox").show();
j$(this).addClass("action");
},
function() {
... |
$(function () {
var selectTimeLength = 10;
//数据初始化
var now = new Date().getTime();
//初始化日期选择的数据为最近10天
for (var i = 0; i < selectTimeLength; i++) {
var tmp = now - 24 * 60 * 60 * 1000 * i;
var date = new Date(tmp);
var timeStr = date.format("yyyy-MM-dd");
$("#redis-mon... |
import React, { Component } from 'react'
import ItemEnlaceFree from './ItemEnlaceFree'
import Temporizador from '../../../../../Global/Temporizador'
import firebase from '../../../../../../firebase/Firebase';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { setIdTimpoCliente }... |
import "dotenv/config";
import { promisify } from "util";
import fetch from "node-fetch";
import TelegramBot from "node-telegram-bot-api";
import * as redis from "redis";
const {
SERVER_PORT,
TELEGRAM_TOKEN,
TELEGRAM_WEBHOOK,
TRACE_MOE_KEY,
REDIS_HOST,
ANILIST_API_URL,
} = process.env;
let redisClient = n... |
import React, { Component } from "react";
import {
Row,
Col,
Card,
CardHeader,
CardBody,
Form,
FormFeedback,
Input,
FormGroup,
Label,
Button
} from "reactstrap";
import { observer, inject } from "mobx-react";
import { autorun } from "mobx";
import { size } from "lodash-es";
i... |
'use strict';
var path = require('path');
var _ = require('lodash');
var gulp = require('gulp-help')(require('gulp'));
var $ = require('gulp-load-plugins')({lazy: true});
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var runSequence = requ... |
var table
var token
var name
jQuery.support.cors = true;
$(function(){
token = getCookie('token');
name = getCookie('name');
table = $('#example').DataTable({
"paging": true,
"lengthChange": false,
"searching": true,
"info": true,
"autoWidth": false,
// "oLanguage": language,
'initComp... |
//
// barnes-hut.js
//
// implementation of the barnes-hut quadtree algorithm for n-body repulsion
// http://www.cs.princeton.edu/courses/archive/fall03/cs126/assignments/barnes-hut.html
//
// Created by <NAME> on 2011-01-14.
// Copyright (c) 2011 Samizdat Drafting Co. All rights reserved.
//
//
var Cell = functi... |
"use strict";
/** ***** WebPerl - http://webperl.zero-g.net *****
*
* Copyright (c) 2018 <NAME> (<EMAIL>)
* at the Leibniz Institute of Freshwater Ecology and Inland Fisheries (IGB),
* Berlin, Germany, http://www.igb-berlin.de
*
* This program is free software; you can redistribute it and/or modify
* it under... |
import React from 'react';
import { Input, Modal, Select, notification, Button } from 'antd';
import { connect } from 'dva';
@connect(({ article, tag, category }) => ({
article,
tag,
category,
}))
class ArticleComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
h... |
import template from './sw-order-list.html.twig';
import './sw-order-list.scss';
import { DATE_OPTIONS } from '../../constant/sbu-order-advanced-filter.constant';
const { Component } = Shopware;
const { Criteria } = Shopware.Data;
Component.override('sw-order-list', {
template,
inject: [
'repositoryF... |
import { readable, writable } from 'svelte/store';
export const languages = readable([
{
language: 'English',
code: '',
text: {
search: 'search',
search_results: 'search results',
results_for: 'results for',
back_to_search_results: 'back to search results',
results: 'results... |
import React, {Component} from 'react';
import 'whatwg-fetch';
import {NotificationContainer, NotificationManager} from 'react-notifications';
import '../../styles/bulma.css';
// Load the SDK and UUID
var AWS = require('aws-sdk');
var uuid = require('node-uuid');
var firebase = require('firebase');
// Init variables... |
import React, { useEffect, useState } from 'react'
import axios from 'axios';
import { useForm } from 'react-hook-form';
import SweetAlert from 'sweetalert';
import router from 'next/router';
const Formulario = () => {
const { register, handleSubmit, watch, errors } = useForm();
let [Cnpj, setCnpj] ... |
var taskObject = new Array();
// default image
var cameraImage = "";
//cameraImage.src = "images/imagePlaceholder.png";
function onLoad(){
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady()
{
//alert(navigator.contacts);
//pictureSource=navigator.camera.Pictur... |
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(gene... |
class Tagger {
static MODULE_NAME = "tagger"
static FLAG_NAME = "tags"
/**
* Gets PlaceableObjects with matching tags provided to the method
*
* @param {String|Array} inTags An array of tags or a string of tags (separated by commas) that will be searched for
* @param {Ob... |
var options_linkedcat = {
dropdowns: [
/*{id: "vis_type", multiple: false, name: "Visualisierungstypen", type: "dropdown"
, fields: [
{id: "overview", text: "Knowledge Map", selected:true}
, {id: "timeline", text: "Streamgraph"}
]},*/
{... |
import { Banner, Card, CardText, ActionBar, SubmitBar, Loader, LinkButton } from "@egovernments/digit-ui-react-components";
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { stringReplaceAll, getBusinessServices } from "../../utils";
import { Link, useHistory }... |
// Write message if not webgl is found
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
var simElectron = false;
var pGalacticSystem, Stars3D;
var molecule, spawnerOptions;
var stats ,material, mesh, GAMA_Z, CMBsphere;
var tick = 0;
var camera, controls, scene, renderer, model, light, ambientLight;
var t... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.YoutubeCommand = void 0;
const discord_js_1 = require("discord.js");
const embed_1 = require("../utils/embed");
const googleapis_1 = require("googleapis");
const logger_1 = require("../logger");
const SubscriptionManager_1 = require(".... |
/**
* @license MIT
* @author <NAME> <<EMAIL>>
*
* This exporter uses Chrome's FileSystem API to store data on the disk, therefore allowing greater ammounts of data
* stored for a capture. However, if such an API is not available for known or unknown reasons, it fallsbacks to
* saving the frames in the memory.
... |
import React from 'react';
import TextField from '@material-ui/core/TextField';
import Divider from '@material-ui/core/Divider';
import Typography from '@material-ui/core/Typography';
import FormLabel from '@material-ui/core/FormLabel';
import FormControl from '@material-ui/core/FormControl';
import FormGroup from '@ma... |
const Plugin = require('../Plugin')
const Translator = require('../../core/Translator')
const dragDrop = require('drag-drop')
const Dashboard = require('./Dashboard')
const StatusBar = require('../StatusBar')
const Informer = require('../Informer')
const { findAllDOMElements } = require('../../core/Utils')
const pretty... |
const EventEmitter = require('events')
const { Worker } = require('worker_threads')
const toUtil = require('./util')
const config = require('./config')
const Db = require('./db')
const log = require('./log')
const Cache = require('./cache')
const App = require('./app')
const worker = require('./worker')
const ... |
/**
* @author <NAME> <<EMAIL>>
* Date: Friday January 19th
* @version: 10.0 A working program of the final Culminating
* @description: This program fetches data from several APIs and allows the user to check up on current stock quotes. The program will display this to the user in Canadian Dollars and USD.
* This p... |
/*----------Variables----------*/
var game = {};
var k = {
w: 87,
s: 83,
d: 68
}
var vel = 5;
var posY = parseInt(Math.random() * 334);
var canShoot = true;
var endGame = false;
var points = 0;
var saves = 0;
var lost = 0;
var currentEnergy = 3;
var soundShoot = document.getElementById("soundShoot");
var s... |
import * as Dice from "./dice.js";
export default class ApplyDamageDialog extends Application {
constructor(targets, damageData, useInjury, options = {}) {
super(options)
if (!Array.isArray(targets)) targets = [targets]
this.targets = targets;
this.damageData = damageData;
this.useInjury = useI... |
/** desktop -- desktop user presence, secrets
*
* for example, to allow access only while the user is present
*/
// @flow
'use strict';
const Q = require('q');
const dbus = require('dbus-native'); // native JS, not bindings to native code
/*::
// TODO: move to Capper
type Context = {
make(reviver: string, ...... |
import React, { useState } from "react";
import { motion } from "framer-motion";
import tw from "twin.macro";
import styled from "styled-components";
import { css } from "styled-components/macro"; //eslint-disable-line
import { Container, ContentWithPaddingXl } from "components/misc/Layouts.js";
import { SectionHeading... |
var datas = {
orgs : []
, groups : []
, dbType : getDbType()
, pageCount : 10
, pageGroupCount : 5
, currentPage : 1
, currentOrg : {}
};
function setBodyVisible (jqueryObject){
$("#add").hide();
$("#modify").hide();
$("#manage").hide();
jqueryObject.show();
}
function se... |
'use strict';
var _ = require('lodash');
var util = require('util');
var P = require('bluebird');
var eu = require('ent-utils');
var internals = {};
internals.prefix = function(prefix, string) {
return prefix + string.substring(0, 1).toUpperCase() + string.substring(1);
};
/**
* Composes a new hook function tha... |
// https://stackoverflow.com/questions/53127383/how-to-pull-data-from-wikipedia-page
function fetchUrlWikipediaApi ( url ) {
fetch( url )
.then( function ( response ) {
return response.json();
} )
.then( function ( response ) {
const html_code = response[ "parse" ][ "text" ][ "*" ];
const parser = ... |
import util from './util';
const colors = {
b: 'blue',
r: 'red',
g: 'green',
l: 'black',
f: 'fake'
};
const numbers = {
'1': 'one',
'2': 'two',
'3': 'three',
'4': 'four',
'5': 'five',
'6': 'six',
'7': 'seven',
'8': 'eight',
'9': 'nine',
'10': 'ten',
'11': 'eleven',
'12': 'twelve',
... |
import $ from '$qui/lib/jquery.module.js'
import {gettext} from '$qui/base/i18n.js'
import {CheckField} from '$qui/forms/common-fields/common-fields.js'
import {ColorComboField} from '$qui/forms/common-fields/common-fields.js'
import {NumericField} from '$qui/forms/common-fields/common-fields.js'
impo... |
// Chip 8 interpreter based on http://www.multigesture.net/articles/how-to-write-an-emulator-chip-8-interpreter/
var argv = sys.argv();
var running = true;
var autoCycle = true;
var program = [];
if (argv.length === 1 && argv[0].substring(argv[0].lastIndexOf(".")) !== ".ch8") {
console.log("loading: " + argv[0]);
... |
const viz = d3.select("#viz"),
dot_size = 4,
zoom_speed = 2000,
width = parseInt(viz.style("width")),
height = parseInt(viz.style("height"))
var projection = {
waterman: d3.geoPolyhedralWaterman()
.rotate( [20, 0] )
.scale(Math.min(((window.innerWidth / 6) - 16), 1... |
// APPSESSION env variable needs to be set to the .AspNet.ApplicationCookie cookie value of an authenticated visit to the current inventory site https://artinventory.sites.virginia.edu/
const fetch = require('node-fetch');
const Bottleneck = require("bottleneck");
const jsdom = require("jsdom");
const { JSDOM } = jsdom... |
import moment from 'moment';
import numbro from 'numbro';
import { chart_color_green_300 as chartColorGreenDark } from '@patternfly/react-tokens';
import { translate } from '../i18n/i18n';
import { RHSM_API_QUERY_GRANULARITY_TYPES as GRANULARITY_TYPES } from '../../types/rhsmApiTypes';
import { dateHelpers, helpers } f... |
import 'angular/core/services';
import 'angular/core/services/repositories.service';
import 'angular/core/services/jwt-auth.service';
import 'angular/utils/file-types';
const modules = [
'ngCookies',
'ui.bootstrap',
'toastr',
'graphdb.framework.core.services.repositories',
'graphdb.framework.core.s... |
import React from 'react';
import uid from 'node-uuid';
import _ from 'underscore';
import moment from 'moment';
import truncate from 'truncate';
import deepAssign from 'assign-deep';
import { Link } from 'react-router';
import {
Row,
Col,
Panel,
Button,
Nav,
NavItem,
Badge,
ButtonGroup,... |
// configuration
var $hostname = 'arturmamedov.github.io', // your-hostname-goes.here
$cookie_params = ['source', 'medium', 'campaign', 'term', 'content']; // Params you want to save in cookie
var $search_engines = [['bing', 'q'], ['google', 'q'], ['yahoo', 'q'], ['baidu', 'q'], ['yandex', 'q'], ['ask', 'q'], ... |
// 获取选中文本信息
export function getSelectionInfo(selectorId) {
const selector = document.getElementById(selectorId);
if (!selector) return;
const { selectionStart = 0, selectionEnd = 0 } = selector;
if (selectionStart === selectionEnd) return "";
const selection = window.getSelection().toString();
return {
... |
// Initialise audio context
const AudioContext = window.AudioContext || window.webkitAudioContext;
const audioCtx = new AudioContext();
// Audio sources for FM synthesis
let oscillator, oscillatorGain, modulator, modulatorGain;
// AM synthesis
let amplitudeModulator;
// Filter
let biquadFilter;
// Analyser
let analyser... |
var menuState = 1;
$(document).ready(function(){
// Metro Slider Starts
var metroSlider = 0;
$('.metro-slider .col').each(function(){
metroSlider = metroSlider + 670;
});
$('.metro-slider').css('width',metroSlider+'px');
// Metro Slider Ends
// Side Menu Opener Starts
$('#opene... |
import DICTIONARY from "../../dictionary.js";
import logger from "../../logger.js";
function resourceList(data) {
const resources = [data.character.actions.race, data.character.actions.class, data.character.actions.feat]
.flat()
.filter((action) =>
action.limitedUse &&
(action.limitedUse.maxUse... |
'user strict';
window.addEventListener('load',function(){
loadFromStorage();
if (allProducts.length === 0){
createProducts();
}
render();
renderChart();
});
//console.log('file is connected');
//global variables
var productNames = ['bag', 'banana', 'bathroom', 'boots', 'breakfast', 'bubblegum', 'cthulhu', 'd... |
import './App.css';
import Home from './Views/Home';
import Sidebar from './Views/Sidebar';
import {BrowserRouter as Router, Switch, Link, Route} from 'react-router-dom'
import ContactDetails from './Views/ContactDetails'
import PersonalInfoData from './Views/PersonalInfoData'
import PlacementTestResults from './Views... |
export const API_CALL_REQUEST = 'API_CALL_REQUEST';
export const API_CALL_SUCCESS = 'API_CALL_SUCCESS';
export const API_CALL_FAILURE = 'API_CALL_FAILURE';
export const OPEN_DRAWER_REQUEST = 'OPEN_DRAWER_REQUEST';
export const OPEN_DRAWER_SUCCESS = 'OPEN_DRAWER_SUCCESS';
export const CLOSE_DRAWER_REQUEST = 'CLOSE_DRAW... |
'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... |
// @ts-check
/**
* @module
*/
import uuidV4 from 'uuid/v4';
import BatchSender from './corsBatchSender';
import { assign, omit } from './util';
// The default for max number of errors we will send per session.
const DEFAULT_ERROR_LIMIT = 25;
// The default number of lines to keep in error stack traces
const DEFAULT... |
const domReady = require('domready');
import {select} from 'd3-selection';
import {scaleOrdinal} from 'd3-scale';
import {schemeSet3} from 'd3-scale-chromatic';
import {treemap, treemapBinary} from 'd3';
import {csv} from 'd3-fetch';
import {hierarchy} from 'd3-hierarchy';
import {mainTag, calculateSentiments, groupBy}... |
// Copyright 2019 Google LLC
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
function checkType(name, type, value) {
if (typeof value != type) throw TypeError(name + ' must be a ' + type);
return value;
}
func... |
/*
<NAME>
May 2018
This file contains all of the functionality for
starting, finishing and scoring a game.
TO DO:
1. Incorporate tokens to ensure different questions for each game.
2. Handle not having enough questions in a particular category.
*/
correct_answers = [];
answers = [];
function startGame... |
// Declare map, infoWindow and bounds as global variables
var map;
var infoWindow;
var bounds;
// Initialize google maps to display a map of Reno, NV
function initMap() {
var reno = {
lat: 39.544870,
lng: 119.815957
};
map = new google.maps.Map(document.getElementById('map'), {
zoom... |
/*
Template to be called when you want to add an effect to a target that is only active
during a specific actor's turn.
For example: Hex lets the caster deal an extra 1d6 damage on a single target.
Passing an effect to grant extra damage to an actor can accomplish this.
Generally, use with DAE Macro repeat.
On eac... |
import { isNode, isNumber, isObject, isArray, isFunction, isWindow, isDocument } from '../../utils/is.js';
import { encode as gradientEncode, decode as gradientDecode } from '../../utils/css/gradient.js';
import { sanitizeNumber, sanitizeColor } from '../../utils/sanitize.js';
import colorPicker from '../color-picker/i... |
import { getParentPath, getIndexAmongSiblings } from './path';
/*
Transforms tree structure into flat list of items for rendering purposes.
We recursively go through all the elements and its children first on each level
*/
/**
x = {
"rootId": "1",
"items":
{
"1": {"id": "1", "hasChildren": tru... |
// Component drawing functions for:
// title, staff, beat markers, lyrics, comments
function drawTitle() {
if (title != "") {
fill(0);
noStroke();
textSize(title_size);
textStyle(BOLD);
textAlign(CENTER);
text(title, width/2, staff_y);
if (artist != "") {
textSize(title_size - 2);
textStyle(NOR... |
import {MAP_META} from '../constants';
import axios from 'axios';
import {format} from 'date-fns';
import React, {useState, useRef, lazy, Suspense, useMemo} from 'react';
import {Helmet} from 'react-helmet';
import {useTranslation} from 'react-i18next';
import {useIsVisible} from 'react-is-visible';
import 'intersect... |
importJS('RBM-0.0.3');
// ============================breakdrongeonheros=============================== //
var config = {
appName: 'com.donny.dungeonbreakers',
oriScreenWidth: 1280, // source
oriScreenHeight: 720,
oriVirtualButtonHeight: 0,
oriResizeFactor: 1,
eventDelay: 500,
imageThreshold: 1,
imag... |
$(document).ready(function() {
$('#spk_no').select2();
$.post('../Label/select_spk',{},function(data){
dataa = JSON.parse(data);
console.log(dataa);
table = '<option>-SELECT SPK NO-</option>';
for(i in dataa){
table += '<option value="'+dataa[i].id_spk... |
/**
*
* ©2016-2017 EdgeVerve Systems Limited (a fully owned Infosys subsidiary),
* Bangalore, India. All Rights Reserved.
*
*/
/**
* @description Implementation of Service Node
* @author <NAME>(kangan06), <NAME>(mandeep6ill), <NAME>(premsai-ch), <NAME>(vivekmittal07)
*/
var request = require('request');
var l... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
const Game = require('./Game')
const Replay = require('./Replay')
const {EventEmitter} = require('events')
class ReplayAnalyzer extends EventEmitter {
constructor(file) {
super()
this.GAME_EVENT_DEATH = 'NNet.Replay.Tracker.SUnitDiedEvent'
this.GAME_EVENT_BIRTHS = 'NNet.Replay.Tracker.SUn... |
import React, {PropTypes, Component} from 'react';
import {connect} from 'react-redux';
import {Link} from 'react-router';
import AuthorizedHeader from '../../components/Header/AuthorizedHeader.jsx';
import Footer from '../../components/Footer/Footer.jsx';
import SideBar from '../../components/Header/SideBar';
import a... |
require('./index.scss');
var Alert = require('COMMON/Alert-mb.js');
var toast = require('COMMON/toast.js');
//读参数
function urlKey(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return encodeURI(r[2]); return null;
}
//设置co... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
reduxForm,
formValueSelector,
reset,
SubmissionError,
stopSubmit,
change,
} from 'redux-form';
import math from 'mathjs';
// import classnames from 'classnames';
// import { isMobile } from 'react-device-detect';
import { Bu... |
const util = require("./lib/util.js");
const Commands = {
info: {},
flags: {},
Parse: (string) => {
string = string.trim();
let command = null;
const feed = [
{},
null,
{},
null
], info = [];
for (const flag in Commands.... |
import React, { Component } from "react";
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from "./MovieMaker.css";
//import { subscribeClntRequest, sendEthRequest, sendEthGetAccount, sendEthCall } from '.../../ethlite/Api';
import Ethlite from '../../ethlite/Api';
import bcmc from '../../con... |
import utils from './utils';
const head = document.head || document.querySelector('head');
export default class Model {
constructor ($node) {
const id = $node.getAttribute('id') || utils.uid();
var model = {};
var lastChild = null;
this.id = id;
this.$node = $node;
this.style = {};
this... |
/*
Copyright (c) 2012 Red (E) Tools Ltd.
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, publish, distribu... |
var request = require('request');
var jwt = require('jsonwebtoken');
var logger = require('./logging');
var idcsCrypto = require( "./idcsCrypto.js");
// urn:opc:idm:__myscopes__ will get all of the IDCS scopes granted to the app
// I don't want that.
//
// the three scopes we do want are:
// urn:opc:idm:t.user.signin ... |
const IndexedDb = function(dbName, version = false){
this.dataBase = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;
this.dbName = dbName;
this.values = null;
this.action = null;
this.data = {
'status' : '',
'message' : '',
'values' : null,... |
/**
* Layui 模块化加载-AMD规范
*/
//layui.config({
// base: '/static/layui/lay/modules/' //你的模块目录
//}).use('layer'); //加载入口
/**
* Layui预加载 layer,laypage,laydate模块;
*/
//layui.use(['layer', 'laypage','laydate'], function(){ //如果只加载一个模块,可以不填数组。如:layui.use('form')
// var layer = layui.layer, //获取layer模块
// laypage = layui... |
const jsdom = require('@tbranyen/jsdom');
const {JSDOM} = jsdom;
const minify = require('../utils/minify.js');
const slugify = require('slugify');
const getSize = require('image-size');
module.exports = function(value, outputPath) {
if (outputPath && outputPath.endsWith('.html')) {
const DOM = new JSDOM(value, {... |
"use strict";
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "sym... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var ODSampleData;
(function (ODSampleData) {
var OD... |
var nwsUrl = 'https://forecast.weather.gov/MapClick.php?lat=38.9609&lon=-92.752&unit=0&lg=english&FcstType=dwml';
//var nwsUrl = '/testNws.dwml'
window.onload = loadNwsWidgets();
var xmlResponse = '';
function loadNwsWidgets() {
$.ajax({
type: "GET",
url: nwsUrl,
cache: true,
data... |
import {arrForEach, objForEach} from '../../util/util'
import Progress from './progress.js'
// 构造函数
function UploadVideo(editor) {
this.editor = editor
}
// 原型
UploadVideo.prototype = {
constructor: UploadVideo,
// 根据 debug 弹出不同的信息
_alert: function _alert(alertInfo, debugInfo) {
let editor = ... |
import React from 'react'
import PropTypes from 'prop-types'
import { Table, Button, Row, Col, Form, Icon } from 'antd'
import { request } from 'utils'
import layout from 'utils/layout'
import lodash from 'lodash'
import styles from './DataTable.less'
import { isPaginationEqual } from 'utils'
import { l } from 'utils/l... |
let headers = [];
let BuildingListObj = {'key': 'BuildingList'};
let BuildingListQuery = "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \n" +
"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n" +
"PREFIX yago: <http://yago-knowledge.org/resource/>\n" +
"SELECT ?building\n" +
"WHERE\n" ... |
"use strict"
// 确保 finally 函数有效(jquery使用finally时,记得先用Promise包装一层)
Promise.prototype.finally = Promise.prototype.finally || function (callback) {
let P = this.constructor;
return this.then(
value => P.resolve(callback()).then(() => value),
reason => P.resolve(callback()).then(() => {
... |
const utils = require('./utils');
const CUSTOM_TAG_OPEN_REGEX = /^<([a-z]+:[a-z]+)\S?/i;
const CUSTOM_TAG_CLOSE_REGEX = /^<\/([a-z]+:[a-z]+)\S?/i;
const MAX_STRING_LENGTH = Math.pow(2, 31);
const MAX_INNER_QUOTES = 100;
class Tokenizer {
constructor() {
this.init();
}
init() {
this.text =... |
var phantom = require('phantom');
var request = require('request');
//
// DEFAULT Config
//
const EMAIL = '<EMAIL>'; // login email > CAN BE CHANGED
const PASSWORD = '<PASSWORD>'; // login pwd > CAN BE CHANGED
const DEBUG = false; // set true to debug
//
// OBJECT
//
var ScrapeLinkedin =... |
import React, { useState, useEffect, useRef } from "react";
import { SafeAreaView, View, Text, Image, Modal, Animated } from "react-native";
import { TouchableOpacity } from "react-native-gesture-handler";
import { Video } from "expo-av";
import MaterialCommunityIcons from "react-native-vector-icons/MaterialCommunityIc... |
import mongoose from 'mongoose';
import {
getSession, authorizedForDomainOrSelf, requireSession,
requireDomainAdministratorOrUser,
} from './auth';
import { findOrCreateUser } from './users';
import { createUserAndSession } from './sessions';
import { unsetDomainIfNeeded } from './domains';
import { renderNotificat... |
let bombs = [];
let cannon;
let cannon_dir = 2;
let shots = [] ;
let counter_field;
let count_shots = 0;
let ships = [];
let dest_ships = 0;
let ship_xpos = [20,40,80,100,120,140,180,200,220,240,260,280,300,320,340,360,380,400,420,440,460,480,500,520,540,560,580,600,620,640,660,680,700,720];
let ship_ypos = ... |
import React from "react";
import {bindActionCreators} from "redux";
import {connect} from "react-redux";
import {createSelector} from "reselect";
import findModel from "app/components/higherOrder/findModel";
import actions from "app/actions/collection";
import ReactDOM from "react-dom";
import { format } from "d3-for... |
"use strict"
const width = 500, height = 500, depth = 255
let white = new TGAColor(255, 255, 255, 255)
let red = new TGAColor(255, 0, 0, 255)
let green = new TGAColor(0, 255, 0, 255)
let blue = new TGAColor(0, 0, 255, 255)
let model, image, scene, render, diffuse
let lightDir = new Vec3f(0,0,-1)
let zBuffer = new Arr... |
import React from 'react';
import get from 'lodash/get';
/* global feed */
import AddColumnButton from './AddColumnButton';
var PageLoading = require('./PageLoading.js');
var Info = require('./Info.js');
var Column = require('./Column.js');
var Cell = require('./Cell.js');
var Table = require('./Table.js');
var Featu... |
'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); ... |
import React, { useContext, useState, useEffect } from 'react';
import { ScrollView, View, Text, StyleSheet, Pressable, Vibration, ImageBackground, Modal, Alert } from 'react-native';
import * as IntentLauncher from 'expo-intent-launcher';
import * as DocumentPicker from 'expo-document-picker';
import ImageViewer from ... |
require("dotenv").config();
const { default: axios } = require("axios");
const express = require("express");
const cors = require("cors");
const cookieParser = require("cookie-parser");
const mongoose = require("mongoose");
const fs = require("fs");
const path = require("path");
const tangram = require("@tangramdotde... |
const REFRESH_INFOS_THRESHOLD = 5000;
const CHANGE_VOLUME_THRESHOLD = 200;
const VOLUME_MIN = -70;
const VOLUME_MAX = 0;
document.addEventListener("DOMContentLoaded", function ()
{
var yamahaAPIController,
mainPage = document.getElementById("main"),
inputPage = document.getElementById("input"),
volumeDiv = documen... |
/* ************************************************************************
*
* Zen [and the art of] CMS
*
* https://zenesis.com
*
* Copyright:
* 2019-2022 Zenesis Ltd, https://www.zenesis.com
*
* License:
* MIT (see LICENSE in project root)
*
* Authors:
* <NAME> (<EMAIL>, @johnspackman)
*
* *************... |
export function assignAttributes(elem, ...rest) {
rest.filter(x => !(x instanceof Element)
&& !(x instanceof String)
&& typeof x !== "string")
.forEach(attr => {
for (let key in attr) {
const value = attr[key];
if (key === "style") {
f... |
const axios = require('axios');
const moment = require('moment');
const md5 = require('md5');
const logger = require("electron-log");
let Match = require('../Models/Match.js');
let Player = require('../Models/Player.js');
class PaladinsAPI {
constructor() {
this.apiLink = 'http://api.paladins.com/paladins... |
/**
* Create by appleex on 2021/10/15 3:15 下午.
*/
"use strict";
/**
* @fileOverview This is base definition for all composed classes defined by the system
* @module format
* @requires is
* @requires helper
*/
var __is = require('./is');
var __exp = module.exports;
/**
* Trim excess whitespace off the beginni... |
var path = require("path");
var fs = require("fs");
var encoding = {
encoding: "utf8"
};
var fs = require("fs");
var doT = require("dot");
var encoding = {
encoding: "utf8"
};
var Beautify = require("node-js-beautify");
var beautify=new Beautify();
function replaceJSP(file,data){
file=replaceJSPCmd(file);
file=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.