text stringlengths 5.97k 41.2k |
|---|
//Work Log Javascript File
var isWorkingOnTask = false;
var shouldUpdateTicker = true;
var selectedTopicID = "";
var currTimeFormatted = null;
var eventsLogList = [];
var topicsDictionary = {};
var workStartedTimestamp = "";
var currSessionTimeElapsedSeconds = 0;
var previousSessionsTimeElapsedSeconds = 0;
var time... |
import { getMarketList } from '@/api/loanSupermarket'
import { getCompanyName } from '@/api/sysManage'
import { getCollectionPeriodRuleAll } from '@/api/aiCallManage'
import i18n from '@/lang'
import { Message } from 'element-ui'
const state = {
// 所有公司名
companyNameOptions: [],
// 所有公司名 -- 催收
companyNameCollec... |
const AWS = require('aws-sdk');
class CommonUtil {
// 状態をチェック
checkState(h, state) {
return (this.getState(h) == state);
}
//状態を取得
getState(h) {
return this.getSessionValue(h, 'STATE');
}
//状態を保存
setState(h, state) {
this.setSessionValue(h, 'ST... |
'use strict';
const { equal, deepEqual } = require('assert').strict;
const { resolve } = require('path');
const { Test } = require('../build/@nodutilus-test');
const { Complexity } = require('../');
const { nodeSymbol, messagesMapSymbol } = require('../source/lib/report');
class TestComplexity extends Test {
ge... |
/**
* University Radio York Candidate Interview Night
*/
import { h, render } from "https://unpkg.com/preact@latest?module";
import {
useState,
useEffect,
useRef,
} from "https://unpkg.com/preact@latest/hooks/dist/hooks.module.js?module";
import htm from "https://unpkg.com/htm?module";
// Initialize htm... |
// Reason for surpressing: would harm readability of a lot of long strings in this case
/* eslint-disable no-multi-str */
import {concat} from 'ramda';
export const DIALECTS = {
MYSQL: 'mysql',
MARIADB: 'mariadb',
POSTGRES: 'postgres',
REDSHIFT: 'redshift',
ELASTICSEARCH: 'elasticsearch',
MSSQL... |
$(function () {
var chosen_select = $(".chosen-select");
// chosen_select.chosen();
chosen_select.chosen({
max_selected_options: 3,
search_contains: true
});
$('.edit-event-formula,#add-team-player,#update-team-player,#add-ev-position').on('shown.bs.modal', function () {
$(t... |
import { loggingForModule } from "../utils/logging";
import * as events from "./events";
import * as settings from "../utils/settings";
import {APP_ELEMENT_ID_PREFIX} from "../utils/const";
const moduleName = "area_selection";
const logging = loggingForModule(moduleName);
var selectionMode = false;
var document_bak =... |
// This file implements functions to look up a character's basic information, the number of Auraxium medals they have, and their top weapon
// All three platforms are supported, but must be specified in the "platform" parameter
const Discord = require('discord.js');
var weapons = require('./weapons.json');
var ve... |
'use strict';
const beforeBlockString = require('../../utils/beforeBlockString');
const hasBlock = require('../../utils/hasBlock');
const optionsMatches = require('../../utils/optionsMatches');
const report = require('../../utils/report');
const ruleMessages = require('../../utils/ruleMessages');
const styleSearch = r... |
// Copyright 2018
// <NAME>
// <EMAIL>
// Test mode runs this on a different port.
// Useful for having two different groupme groups -
// one group with the test bot/port in it,
// good group with the normal bot/port.
// Allows for dev work without shutting down.
var TEST_MODE = false;
var TEST_PORT = 2501;
var ... |
function renderModal(type, value) {
return `<div class="modal">
<div class="modal__dialog">
<div class="modal-content">
<div class="modal-content__header">
<h4 class="confirm-title">Please Confirm</h4>
<button type="button" class="close-modal">
... |
const initial_camera_ratio = 6/7;
const bulding_height_ratio = 0.6;
function THREE_init(polygons, data, Rwindow){
var container = Rwindow.find(" .raiz-window-body ");
var scene = new THREE.Scene();
scene.background = new THREE.Color( 0xf2f2f2 );
var camera = new THREE.PerspectiveCamera( 90, 1, 1, 20... |
#!/usr/bin/env node
"use strict";
const fs = require('fs');
const path = require('path');
const _ = require('lodash');
const xmlbuilder = require('xmlbuilder');
const markdown = require('../lib/Markdown.js');
const EpubAchive = require('../lib/EpubAchive.js');
const { print, info, debug, warn } = require('../lib/Uti... |
const bodyParser = require('body-parser')
const express = require('express')
const logger = require('morgan')
const app = express()
const {
fallbackHandler,
notFoundHandler,
genericErrorHandler,
poweredByHandler
} = require('./handlers.js')
const DEFAULT_DIR = 0;
// For deployment to Heroku, the port needs to ... |
/*
Copyright 2017 <NAME> (dnarvaez27)
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... |
// Copyright (c) <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the fo... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const request_1 = require("../../../../request");
const commands_1 = require("../../commands");
const uuidv4 = require('uuid/v4');
const SpoCommand_1 = require("../../../base/SpoCommand");
const Utils_1 = require("../../../../Utils");
const St... |
import CharacterRig from '../lib/CharacterRig.js';
import Armature from '../../../src/armature/Armature';
import SkinMTX from '../../../src/armature/skins/SkinMTX';
import * as THREE from 'three';
import { AnimationObjectGroup } from 'three';
import { quat } from 'gl-matrix';
import HipSol... |
import React, { Component } from 'react';
import {
SafeAreaView,
TextInput,
ActivityIndicator,
Text,
View,
Platform,
StyleSheet,
Switch,
Alert,
ScrollView,
Modal,
TouchableOpacity
} from 'react-native';
import { Formik } from 'formik';
import axios from 'axios';
impor... |
/* @author "<NAME>" */
const GRIDS = {};
const GRID_HEADER_TEMPLATE = gridInfoTemplate(1);
/**
* function returns a Tiles.js template for job records
* template contains tiles_number of tiles
*/
function gridInfoTemplate(tiles_number) {
const arr = [];
for (let i = 0; i < tiles_number; i++) {
if (... |
;(function () {
//全局ajax处理
$.ajaxSetup({
complete: function (jqXHR) {},
data: {},
error: function (jqXHR, textStatus, errorThrown) {
//请求失败处理
}
});
if ($.browser.msie) {
//ie 都不缓存
$.ajaxSetup({
cache: false
})... |
//Stage
var stage;
//Screen data
var screen_width = 500;
var screen_height = 600;
//Speed Value
var default_circle_speed = 2;
var max_speed = 3;
var speed_x_circle = default_circle_speed;
var speed_y_circle = default_circle_speed;
var speed_x_rect = 0;
//Shape
var circle;
var rect;
var blocks;
//Shape data
var cir... |
/*
Copyright 2008 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,... |
const { Builder, logging, Capabilities } = require('selenium-webdriver');
const Koa = require('koa');
const KoaStatic = require('koa-static');
const path = require('path');
const expect = require("expect.js");
// https://www.selenium.dev/selenium/docs/api/javascript/module/selenium-webdriver/lib/logging.html
const pre... |
'use strict';
/**
* Map containing SVG paths needed by CmmnRenderer.
*/
function PathMap() {
var PATH_USER_TYPE_1 = 'm {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 ' +
'-4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.34... |
var express = require('express')
, http = require('http');
var static = require('node-static');
var app = express(),
server = http.createServer(app),
io = require('socket.io').listen(server);
var session = require("express-session");
var cookieParser = require('cookie-parser')
const MongoStore = require('connect-mon... |
import React, { Component } from 'react';
import Animated from 'react-native-reanimated';
import { PanGestureHandler, State } from 'react-native-gesture-handler';
const {
add,
cond,
diff,
divide,
eq,
event,
exp,
lessThan,
and,
call,
block,
multiply,
pow,
set,
abs,
clockRunning,
greate... |
const Discord = require('discord.js')
async function rps(message, options = []) {
try{
if(options.slash === true){
let opponent = message.options.getUser('user')
if (!opponent) return message.followUp({ content: 'Rakipten bahsedilmedi!', ephemeral: true})
if (oppo... |
const bodyParser = require('body-parser')
const express = require('express')
const app = express()
const temp = require('temp').track();
const urlencodedParser = bodyParser.urlencoded({ extended: false });
const sqlite = require('sqlite3');
const url = require('url');
const fs = require('fs');
const uuid = require('uu... |
var GLOBAL_PADDING=200;
function getDimensions() {
// For computers
let h = $(window).height() - 10;
h = screen.height - 10;
let w = Math.floor(screen.width * .98);
let obj = {
userAgent: navigator.userAgent,
width: w,
height: h,
availWidth: screen.availWidth,
... |
import * as date from './dateMgr.js';
import * as nbr from './nbrMgr.js';
import { renderTextOptions } from '../marks/label-text.jsx';
const hasWindow = () => typeof window !== 'undefined';
const hasDocument = () => typeof document !== 'undefined';
const isPeriod = function(v){
let out = false;
for(let t in {year... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PlayCommand = void 0;
const tslib_1 = require("tslib");
/* eslint-disable block-scoped-var, @typescript-eslint/restrict-template-expressions */
const BaseCommand_1 = require("../structures/BaseCommand");
const ServerQueue_1 = require("... |
/*
* COMP-397- :: Web Game Propgramming - Assignment #3
*
* Name: <NAME>
* Student #: 300575913
*
*
* ***JavaScript Space Fighter***
*
* Classic arcade game, survive progressively tougher waves of projectiles, enemies, while attacking the boss.
*
* Problems: NO... |
/**
* @fileOverview This is an adaptation of Backbone.localStorage, edited to work
* with the asynchronous FeedHenry local data storage API,
* with optional fh.act enpdoints for listing & reading from cloud
* @version 0.3
* @author <EMAIL> (<NAME>), <EMAIL>
*/
/* Monkey Patch for $fh.data to use File bac... |
import * as d3 from 'd3';
import u from 'umbrellajs';
const template_logbook = require("./templates/logbook.hbs");
function getTicks(email) {
axios.get(`/.netlify/functions/get-mp-ticks?email=${email}`)
.then(response => {
document.getElementById("log-owner").innerHTML = response.data.name + "'s Ticks";
l... |
import { Scene, Color, MeshToonMaterial } from 'three';
import {
Sidewalk,
OvalStatue,
Road,
Car,
Fine,
WoodyWoo,
Friend,
Cap,
Colonial,
Firestone,
Frist,
McCosh,
Nassau,
Fox,
Grass,
Lamppost,
Coin,
MalePedestrianShorts,
MalePedestrianJeans,
... |
import React, { useContext, useEffect, useState } from "react";
import AuthContext from "../AuthContext";
import { G_API, API } from "../config";
import Select from "react-select";
import CourseCard from "./CourseCard";
import AssignmentCard from "./AssignmentCard";
import Dialog from '@material-ui/core/Dialog';
import... |
if (window.File && window.FileReader && window.FileList && window.Blob) {
// Great success! All the File APIs are supported.
} else {
alert('The File APIs are not fully supported in this browser.');
}
var svgXMLNS = 'http://www.w3.org/2000/svg';
var XHTMLNS = 'http://www.w3.org/1999/xhtml';
var pdfViewPort = null... |
// Elisif-Simple Toolkit - A set of convenient utilities
const { fetch } = require("elisif");
const vm = require("vm");
class BoaFileReader extends Set {
#lines;
#i = 0;
constructor(lines) {
super(lines);
this.#lines = lines;
}
read(chars = this.#lines.join("\n").length) {
... |
import React, { useState, useEffect, useCallback } from 'react'
import { useTranslation } from 'react-i18next'
import ReactGA from 'react-ga'
import { createBrowserHistory } from 'history'
import { zennies } from 'zennies'
import styled from 'styled-components'
import { useWeb3React, useExchangeContract } from ... |
const Helpers = require("./helpers");
Helpers.setParseOptions({
transformMatch: null,
asInteger: false,
});
const LENGTH_OF_SUBPATHS_UNDER_PROCESS = 10;
const NUMBER_OF_FINAL_POSITIONS_TO_KEEP_UNDER_PROCESS = 50;
const UNKNOWN_RISKLEVEL = null;
const UNVISITED = false;
const VISITED = true;
const POSSIBLE_NEIGHB... |
// How About Peppering(Producing, Partaking) PYthonesque questions ?
var buttonSubmit = d3.select("#submit");
// Function to clear the svgArea
function clearSVG() {
var svgArea = d3.select("body").select("svg");
if (!svgArea.empty()) {
svgArea.remove();
}
}
// Wrapper function to automatically res... |
import React from 'react';
import blocnetsLogo from '../../../blocknetwhite-1.png';
import Grid from '@material-ui/core/Grid';
import Paper from '@material-ui/core/Paper';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableRow from '@material-ui/core/TableRow';... |
/*---------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
var vscode = require("vscode");
var child_process_1 = require... |
var viewer = {};
viewer.TAGS = {
TEMP : 'temp'
};
/**
* Initializes the viewer's logic
* @param {bool} editorMode
* @param {int} model - id of the model to show
*/
viewer.init = function (eM, m) {
yjsSync().done(function (y) {
var $elem = $('#elem'),
$inline = $('#inline'),
$scene = $('#... |
import React, { Component } from 'react'
import moment from 'moment'
import { DragDropContext, Droppable } from 'react-beautiful-dnd'
import Timeline,{ TimelineMarkers, TodayMarker } from 'react-calendar-timeline'
// import containerResizeDetector from 'react-calendar-timeline/lib/resize-detector/container'
impo... |
let day = 0;
//The line of nobles awaiting their turn at the guillotine.
const queueNobles = [];
//Nobles that have been discarded from the line
//and will not be available for collection
const discardedNobles = [];
//Represents the two players
const gamePlayers = [];
//Function that can shuffle any collection of c... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import _ from 'lodash';
import { withRouter } from 'react-router-dom';
import './ExperimentPage.css';
import {
getExperimentApi,
searchRunsApi,
loadMoreRunsApi,
searchRunsPayload,
setCompareEx... |
// Copyright (C) 2011 Google Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... |
// ==========================================================================
// Advertisement plugin using Google IMA HTML5 SDK
// Create an account with our ad partner, vi here:
// https://www.vi.ai/publisher-video-monetization/
// ==========================================================================
/* global ... |
const mdxToJsx = require('@mdx-js/mdx/mdx-hast-to-jsx');
const parser = require('@babel/parser');
const generate = require('@babel/generator').default;
const camelCase = require('lodash/camelCase');
const jsStringEscape = require('js-string-escape');
// Generate the MDX as is, but append named exports for every
// sto... |
// ====== Supported operations:
// "render" - renders page
// "render-multiple" - renders multiple pages (uses "render")
// "breadcrumb" - creates bredcrumb (uses "render")
// "clear" - clears database
// ====== Supported workflows:
// "url" - creates URL
const REGEXP_HTM... |
//BUSINESS LOGIC //
function Event(bands, date, time, venue, age, genre, price, image) {
this.bands = bands;
this.date = date;
this.time = time;
this.venue = venue;
this.age = age;
this.genre = genre;
this.price = price;
this.image = image;
this.showInfo = "Lorem ipsum dolor sit amet, consectetur GRE... |
// @ts-ignore
// const AgoraRTC = require('agora-rtc-sdk');
import AgoraRTM from 'agora-rtm-sdk';
import { BehaviorSubject, of , Subject } from 'rxjs';
import { environment } from '../../environment/environment';
import Emittable from '../emittable/emittable';
import HttpService from '../http/http.service';
import Loc... |
// Set up global variables
let lastURL = document.URL;
// Watch for Board changes
const boardObserver = new MutationSummary({ // jshint ignore:line
callback: boardChange, // function to run on observing change
queries: [{ element: '.list-card-title' }]
});
// Watch for new list-card changes
const listCardObserver =... |
const DELTA_SPAWN_BLOCK = 1;
const DELTA_SPAWN_COIN = 1;
const DELAY_BLOCK = 400;
const SPEED_PLAYER = 300;
var PiouPiou;
(function (PiouPiou_1) {
function randomInteger(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
class PiouPiou {
constructor() {
this.... |
const NodeCache = require('node-cache');
const { SlashCommandBuilder } = require('@discordjs/builders');
const i18n = require('i18n');
const {
MessageActionRow, MessageSelectMenu, MessageButton,
} = require('discord.js');
const embedBuilder = require('../utility/embedbuilder');
const commandbase = require('../utility... |
'use strict';
var ngOptionsMinErr = minErr('ngOptions');
/**
* @ngdoc directive
* @name ng.directive:select
* @restrict E
*
* @description
* HTML `SELECT` element with angular data-binding.
*
* # `ngOptions`
*
* The `ngOptions` attribute can be used to dynamically generate a list of `<option>`
* elements fo... |
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use th... |
import last from '../util/last'
import createCountingIdGenerator from '../util/createCountingIdGenerator'
import ArrayIterator from '../util/ArrayIterator'
const WS_LEFT = /^\s+/g
// TODO: this is probably incorrect, /^\s*/ would always be a match
// const WS_LEFT_ALL = /^\s*/g
const WS_RIGHT = /\s+$/g
const WS_ALL = ... |
var Home = location.href,
Pages = 4,
xhr,
xhrUrl = '';
var Diaspora = {
L: function(url, f, err) {
if (url == xhrUrl) {
return false;
}
xhrUrl = url;
if (xhr) {
xhr.abort();
}
xhr = $.ajax({
type: 'GET',
url... |
import React from "react";
import { connect } from "react-redux";
// import { signUp } from "actions/loginActions";
import { firestoreConnect } from 'react-redux-firebase'
import { updateProfile } from "actions/getProfiles";
import { compose } from 'redux'
import json from "./states"
import Select from 'react-select'
/... |
/*
* Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.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
*
* Unless requ... |
import { d as _inherits, e as _createSuper, a as _classCallCheck, _ as _createClass, g as _get, h as _getPrototypeOf, b as _objectWithoutProperties, i as _set } from '../_rollupPluginBabelHelpers-a0b34764.js';
import { DIRECTION, forceDirection } from '../core/utils.js';
import ChangeDetails from '../core/change-detail... |
/*Contains multiple services for various helper tasks */
function packageHelper(assetsService, treeService, eventsService, $templateCache) {
return {
/** Called when a package is installed, this resets a bunch of data and ensures the new package assets are loaded in */
packageInstalled: fu... |
import React, { Component } from 'react';
import { array, arrayOf, bool, func, number, string } from 'prop-types';
import { FormattedMessage, injectIntl, intlShape } from '../../util/reactIntl';
import classNames from 'classnames';
import {
TRANSITION_REQUEST_PAYMENT_AFTER_ENQUIRY,
txIsAccepted,
txIsCanceled,
t... |
import BoundingSphere from "./BoundingSphere.js";
import Cartesian2 from "./Cartesian2.js";
import Cartesian3 from "./Cartesian3.js";
import Check from "./Check.js";
import defaultValue from "./defaultValue.js";
import defined from "./defined.js";
import DeveloperError from "./DeveloperError.js";
import IndexDatatype f... |
'use strict'
var gBoard;
var gMine = '💣';
var gFlag = '🚩';
var gLives = 3;
var gMarkedCorrectly = 0;
var gIsManual = false;
var gManuallyPlaced = 0;
var gIdx = 0;
var gSevenBoom = false;
var gOld = {
boards: [],
elboards: [],
games: [],
markeds: [],
firstclicks: []
};
var gHints = 3;
var gH... |
import React, { Component } from 'react';
import { Card, CardBody, CardHeader, Col, Row, Label,Input,FormGroup,FormText,Modal, ModalBody, ModalFooter, ModalHeader, Button,Collapse } from 'reactstrap';
import { AppSwitch } from '@coreui/react'
import Select, {Creatable} from 'react-select';
import makeAnimated from 'rea... |
'use strict';
var AWS = require('aws-sdk');
AWS.config.update({
region: 'us-east-1'
}); // TODO: pull from environment or something
var zlib = require('zlib');
var _require = require('stream'),
Transform = _require.Transform;
var cloudWatch = new AWS.CloudWatch();
var s3 = new AWS.S3();
var sqs = new AWS.SQS... |
// import {MagicsRewriter, RefSet, walk, parse, ControlFlowGraph, DataflowAnalyzer, DataflowAnalyzerOptions, slice, SliceDirection, LocationSet, SyntaxNode, Location}
import { MagicsRewriter } from "./rewrite-magics";
import { ControlFlowGraph } from './control-flow';
import { DataflowAnalyzer, RefSet, ApiUsageAnalysis... |
/*
* Copyright (c) 2019-Now Asako Studio. All rights reseved.
* @fileoverview | 一些公共静态数据,减少server请求和业务模块里的重复定义,提高复用性
* @Author: mukuashi | <EMAIL>
* @version 0.1 | 2019-07-10 // Initial version.
* @version 0.2 | 2020-03-26 // 添加海报配置.
* @Date: 2019-07-10 10:20:27
* @Last Modified by: mukuashi
* @Last Modified ... |
///////////
// Distribution stuff
///////////
function distributionParameter(name, label, range, interactRange, interactLog, interactStart, type, conjugate, note){
this.name = name;
this.label = label;
this.range = range;
this.interactRange = interactRange;
this.interactLog = interactLog;
this.interactStart = i... |
var bind_inputs = {};
var $contact_form;
var $contact_data_form;
var managerTags = [];
var form_action_call_validate = {
rules: {
schedule_date: {dateFormat: true, required: true},
call_order_token: {required: false}
},
messages: {
schedule_date: {
dateFormat: "Дата введ... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
require("../../../../src/components/VCalendar/mixins/calendar-with-events.sass");
var _ripple = _interopRequireDefault(require("../../../directives/ripple"));
var _calendarBase = _interopRequireDefault(require("... |
import React from 'react';
import PropTypes from 'prop-types';
import {Loader} from 'semantic-ui-react';
import {
getHumanReadableNumber,
getBaseResourceCount,
logErrors,
capitalize,
} from '../utils/common';
import DataBarChart from './DataBarChart';
import './ResourceDetails.css';
class ResourceDetails exten... |
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, confi... |
// console.log('spiral loaded');
var app = app || {};
app.init = init;
app.animate = animate;
// app.play = true;
app.animateParticles = animateParticles;
var mouseX = 0, mouseY = 0,
windowHalfX = window.innerWidth / 2,
windowHalfY = window.innerHeight / 2;
var camera, scene, renderer;
function init() {
... |
import React__default, { useEffect, useCallback, useContext, useState, useReducer, useRef } from 'react';
import { k as __assign, _ as __spreadArray, f as format, L as LocalizationContext, w as withSendbirdContext } from './LocalizationContext-d1976d16.js';
import { i as isToday, a as isYesterday, f as formatRelative }... |
'use strict';
exports.__esModule = true;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _Map = require('ol/Map');
var _Map2 = _interopRequireDefault(_Map);
var _View = require('ol/View');
var _View2 = _interopRequireDefault(_View);
var _layer = require('ol/layer.js');
var _Geo... |
function secondsTimeSpanToHMS(s) {
var h = Math.floor(s/3600); //Get whole hours
s -= h*3600;
var m = Math.floor(s/60); //Get remaining minutes
s -= m*60;
return h+":"+(m < 10 ? '0'+m : m)+":"+(s < 10 ? '0'+s : s); //zero padding on minutes and seconds
}
function checkChoice(check) {
if(check ... |
var util = require('util');
var assert = require('assert');
var spdy = require('../spdy');
var constants = spdy.protocol.constants;
var Stream = spdy.Stream;
//
// ### function Connection (socket, state, server)
// #### @socket {net.Socket} server's connection
// #### @options {Object} Connection options
// #### @ser... |
import React from 'react';
import PropTypes from 'prop-types';
import { Panel, PanelBody } from '../libs/bootstrap/panel';
import { auditDecor } from './audit';
import { DbxrefList } from './dbxref';
import { Document, DocumentsPanel, DocumentPreview, DocumentFile, CharacterizationDocuments } from './doc';
import Genet... |
var markers = [];
var sidebarItem;
var latLngList = [];
var markerID = 0;
var serviceMapMatches = [];
var radarArray = [];
var detailsArray = [];
var searchedCategories = [];
var serviceCategories = [];
$( document ).ready(function() {
console.log('morooooooooooooooooo');
$( "#search-box" ).autocomplete({
... |
"use strict";
const {
builders: {
indent,
join,
line,
hardline,
softline,
literalline,
concat,
group,
dedentToRoot,
lineSuffixBoundary,
},
utils: { mapDoc, replaceNewlinesWithLiterallines },
} = require("../document");
const { isBlockComment, hasLeadingComment } = require(... |
const { URL } = require('url');
const _ = require('lodash');
const {
CLIENT_ATTRIBUTES: {
ARYS,
BOOL,
DEFAULT: DEFAULTS,
ENUM: ENUMS,
HTTPS_URI,
LOOPBACKS,
RECOGNIZED_METADATA: RECOGNIZED,
REQUIRED,
SECRET_LENGTH_REQUIRED,
STRING,
WEB_URI,
WHEN,
},
} = require('../c... |
"use strict";
angular.module('control')
.directive("reorderDocumentsModal", // x-reorder-documents-modal
['$modal', '$timeout', '_', 'AlertService', 'ConfirmService', 'moment', 'FolderModel', 'Document', reorderDocumentsModal])
.directive('reorderDocumentsContent', // x-reorder-documents-content
[reorderDocumentsCo... |
/*************************
* *
* @author <NAME> *
* *
*************************/
// GLOBALS
let gameWindow; // main game window
let gameMenu; // main game menu
let gameHighscores; // main game highscores
let gameOverScreen; ... |
const moment = require('moment-timezone')
const geoTz = require('geo-tz')
const EmojiLookup = require('../../emojiLookup')
const helpCommand = require('./help')
const weatherTileGenerator = require('../../weatherTileGenerator')
const Uicons = require('../../uicons')
exports.run = async (client, msg, args, options) => ... |
/*!
* Copyright 2014 Apereo Foundation (AF) Licensed under the
* Educational Community License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may
* obtain a copy of the License at
*
* http://opensource.org/licenses/ECL-2.0
*
* Unless required by applicab... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import {
addCustomSnippet,
addImageSnippet,
addLinkSnippet,
addQuickReply,
addResponseMessage,
addUserMessage,
addVideoSnippet,
closeChat,
connectServer,
deInitialize,
disconnectSer... |
// Copyright 2016 by <NAME>, All Rights Reserved
// contact: <EMAIL>
function drawRulers() {
var ds = document.getElementById("dshell");
var d = document.getElementById("diagram");
var x0 = ds.scrollLeft / dscale;
var y0 = ds.scrollTop / dscale;
var r = document.getElementById("hrule");
var in... |
/**
* Created by vlad_ on 13.10.2017.
*/
var LANGUAGE = $('html').attr('lang'),
DEFAULT_LANGUAGE = 'ru';
var INIT_CART_WS;
var NOVA_POSHTA_API_KEY = '<KEY>';
var INCORRECT_FIELD_CLASS = 'incorrect-field',
REQUIRED_FIELD_TEXT = (LANGUAGE == DEFAULT_LANGUAGE) ? 'Обязательное поле' : 'Обов`язкове поле',
I... |
'use strict';
/*! main.js - v0.1.1
* http://admindesigns.com/
* Copyright (c) 2013 <NAME>;*/
/* Core theme functions required for
* most of the themes vital functionality */
var Core = function(options) {
// Variables
var Body = $('body');
// jQuery Helper Functions
var runHelpers = function() {
... |
var DEBUG = 3;
var GAPI = false;
// Keep track of how many messages were sent
var messageLastSeen = {};
var myMessageCount = 0;
var missedMessages = 0;
// users that have app enabled ( players )
var players_ = null;
// is game started
var started_ = false;
function... |
'use strict';
var d3 = require('@plotly/d3');
var Plots = require('../../plots/plots');
var Color = require('../color');
var Drawing = require('../drawing');
var Lib = require('../../lib');
var svgTextUtils = require('../../lib/svg_text_utils');
var arrayEditor = require('../../plot_api/plot_template').arrayEditor;
... |
import { VERIFIED_TOKENS } from "../utils/constants";
import { getUnconfirmedTransactionsForAddressList } from "../utils/walletUtils";
import { boxByBoxId, currentHeight, getTokenBoxV1, unspentBoxesForV1 } from "./explorer";
import { decodeString, encodeContract, ergoTreeToAddress } from "./serializer";
import ls from ... |
import React, { createContext } from 'react';
import { TezosToolkit, MichelsonMap } from '@taquito/taquito';
import { BeaconWallet } from '@taquito/beacon-wallet';
import { Parser } from '@taquito/michel-codec';
import { validateAddress } from '@taquito/utils';
import { create } from 'ipfs-http-client';
import { Buffer... |
/* 加载验证码 */
$(function () {
$('#txtCheckCode,#txtCheck').focus(function () {
if ($(this).siblings('a').length <= 0) {
$(this).after('<a href="javascript:void(0);" onclick="ShowImgCode(\'imgVcode\')"><img title="点击更换验证码" id="imgVcode" class="imgvcode" src="/CheckImage.aspx" /></a>');
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.