text stringlengths 3.22k 29.5k |
|---|
import $ from "jquery";
import axios from "axios";
import algosdk from "algosdk";
import { useState } from "react";
import "./styles/electionlist.css";
import { useQuery } from "react-query";
import BarLoader from "react-spinners/BarLoader";
import WalletConnect from "@walletconnect/client";
import MyAlgoConnect from "... |
import {useMemo, useEffect} from 'react';
import { useSelector, useDispatch } from 'react-redux';
import {
Link,
} from "react-router-dom";
import { useTranslation } from 'react-i18next';
import duration from 'dayjs/plugin/duration';
import dayjs from 'dayjs';
import DataTable from '../data-table';
import formatPr... |
/*
* Copyright 2015-2019 The OpenZipkin Authors
*
* 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 a... |
'use strict';
const mm = require('mm');
const path = require('path');
const assert = require('assert');
const sleep = require('mz-modules/sleep');
const awaitEvent = require('await-event');
const { launcher } = require('../');
const IntegerValue = require('../lib/primitive_value/integer_value');
describe('test/index.... |
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { compose } from 'recompose';
import { Form, Input, Modal, Icon, Collapse } from 'antd';
import Button from '@material-ui/core/Button';
import { bindActionCreators } from 'redux';... |
/**
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
var CURRENT_URL = window.location.href.split('#')[0].split('?')[0],
$BODY = $('body'),
$MENU_TOGGLE = $('#menu_toggle'),
$... |
"use strict";
/*
* ==========================================
Install QnA Maker package with commands
* ==========================================
npm install @azure/cognitiveservices-qnamaker
* ==========================================
Tasks Included
* ==========================================
* - C... |
import React from "react";
import { bindActionCreators } from "redux";
import { connect } from "react-redux";
import * as actions from "../actions";
import * as selectors from "../selectors";
import Toolbar from "./Toolbar";
import InfoPopup from "./InfoPopup";
import Notification from "./Notification";
import Templa... |
/*
* Kuzzle, a backend software, self-hostable and ready to use
* to power modern apps
*
* Copyright 2015-2018 Kuzzle
* mailto: support AT kuzzle.io
* website: http://kuzzle.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... |
import React, { Component } from 'react';
import './index.scss';
import { Router, Route, Switch, Redirect } from "react-router-dom";
import { Layout, message, Breadcrumb } from "antd";
import {
Table, Input, InputNumber, Popconfirm, Form,
} from 'antd';
import {
Select, Button,
} from 'antd';
import './index.scss'
... |
import Component from '@wide/modulus/lib/component'
import { seek } from '@wide/modulus'
import hotkeys from 'hotkeys-js'
import Swiper, { A11y, Autoplay, Navigation, Pagination } from 'swiper'
/**
* Default Swiper config
* @type {Object<string, String>}
*/
export const DEFAULT_CONFIG = {
loop: true,
spaceBetwe... |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
var THREE = require('../third-party/three.js/build/three.min.js');
require('../third-party/three.js/examples/js/controls/FirstPersonControls.js');
require('../third-party/three-instanced-mesh/index.js')(THREE);
const SCALE = new THREE.Vector3(1,0.5,-1);
const WHITE = new THREE.Color('#fff');
const BLACK = new THREE.Co... |
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
class DetailsDateGuest extends Component {
constructor(props) {
super(props);
this.getData = this.getData.bind(this);
this.formatTime = this.formatTime.bind(this);
this.formatAMPM = this.formatAMPM.bind(this);... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use stric... |
/**
@exports CommuteModel
@file Manages commute time and zip code data from constious data sources
@typedef {Object} CommuteDetails
@property {string} zipCode the zip code of interest
@property {string} commuteTime commute time (in minutes) for the zip code
*/
/**
* include commuteData_CensusGo... |
import {
Vector3,
Vector4
} from "../../../build/three.module.js";
/**
* NURBS utils
*
* See NURBSCurve and NURBSSurface.
**/
/**************************************************************
* NURBS Utils
**************************************************************/
var NURBSUtils = {
/*
Finds knot vect... |
import selection from '../selection'
import { tokenizer, generator } from '../parser/parse'
const FORMAT_TYPES = ['strong', 'em', 'del', 'inline_code', 'link', 'image']
const getOffset = (offset, { range: { start, end }, type, anchor, title }) => {
const dis = offset - start
const len = end - start
switch (type... |
'use strict';
const npm = {
TableName: require('../tableName'),
ColumnSet: require('../columnSet'),
formatting: require('../../formatting'),
utils: require('../../utils')
};
/**
* @method helpers.update
* @description
* Generates a simplified `UPDATE` query for either one object or an array of obje... |
/**
* @file The `script.js` takes care of setting eventHandlers
* and connecting the functionality of `util.js` with
* the html document. Furthermore it contains the code
* to integrate the monaco editor
*/
import * as util from "./util.js"
import * as config from "./config.js"
const manualAssertions = []
let ma... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ImageToolInput = void 0;
var _react = _interopRequireWildcard(require("react"));
var _components = require("@sanity/base/components");
var _imagetool = _interopRequireDefault(require("@sanity/imagetool"));
var _HotspotImage = _i... |
"use strict";
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange')
const { ExchangeError } = require ('./base/errors')
// ---------------------------------------------------------------------------
module.exports = class zb extends Exchange {
... |
// Modules to control application life and create native browser window
const path = require('path');
const { app, BrowserWindow, Menu, dialog, ipcMain } = require('electron');
const electron = require('electron');
//base setting, init db
const { initDB } = require('./base');
const { killGodDaemon, killExtra, killKfc ... |
var _ = require('underscore'),
keystone = require('../');
/**
* UpdateHandler Class
*
* @param {Object} item to update
* @api public
*/
function UpdateHandler(list, item, req, res, options) {
if (!(this instanceof UpdateHandler))
return new UpdateHandler(list, item);
this.list = list;
this.item = item;
... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const camelcase_1 = __importDefault(require("camelcase"));
const errors_1 = require("@lwc/errors");
cons... |
"use strict";
// Copyright (c) 2017, <NAME>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
var mydb = require('./db_module_obs');
var logger = require('../logger');
var Rx = require('rxjs/Rx');
/**
* recipe_mongo_module.js
*
* Handles all... |
/*
* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import './styles/FieldMultiSelect.css'
class FieldMultiSelect {
constructor (settings) {
if (typeof settings !== 'undefined' || settings != {} ) {
this.select = document.getElementById(settings["id"])
this.placeholder = settings["placeholder"]
this.init()
}
... |
import { useState, useEffect } from 'react'
import { useRouter } from 'next/router'
import Head from 'next/head'
import Link from 'next/link'
import Navbar from '../../components/navbar'
import Footer from '../../components/footer'
const moment = require('moment-timezone')
const axios = require('axios')
const QRCode = ... |
import React from "react"
import { Link } from "gatsby"
import { OutboundLink } from "gatsby-plugin-google-gtag"
import getSVG from "../utils/getSVG"
const PostCard = ({ size, post, featured, image = null }) => {
const { title, excerpt, author, featured_media, slug, date, id } = post
// console.log(post)
switch... |
import _defineProperty from "@babel/runtime/helpers/defineProperty";
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
import _extends from "@babel/runtime/helpers/extends";
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
import * as React from 'react';
import RcUpload from '... |
var container, stats;
var camera, clock, scene, renderer;
var curve,
curves,
endPoint,
handlesGeometry,
lines = [],
lineMaterial,
params,
wireframeMaterial;
var Params = function () {
this.curve = 'bezier';
this.amount = 1;
this.resolution = 50;
this.angleBisection = false;
this.closed = false... |
/*
*
* EntitiesMap
*
*/
import React, { useEffect, useRef, useState } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import L from 'leaflet';
import 'proj4leaflet';
import { ResponsiveContext } from 'grommet';
import { merge } from 'lodash/object';
import { MAP_OPTIONS } ... |
const inquirer = require('inquirer');
const mysql = require('mysql2')
const connection = mysql.createConnection({
host: 'localhost',
port: 3306,
user: 'root',
password: 'PASSWORD',
database: 'employee_tracker',
});
const init = () => {
console.log(`
_______ __ __ _______ ___ ... |
import React, { useState, useEffect, useRef } from 'react';
import Typography from '@material-ui/core/Typography';
import { Grid } from '@material-ui/core';
import { Helmet } from 'react-helmet';
import Feedback from './Feedback';
import { useHistory } from 'react-router-dom';
import Eticheta from './Eticheta';
import ... |
/*global $, jQuery, alert*/
/**
*
* @param linkname name of the link
*/
function setLinkActive(linkname) {
'use strict';
$('#navbar-right').find('>li').each(function () {
$(this).removeClass('active');
});
$(linkname).addClass('active');
}
/**
* Adds a small border to the active navbar el... |
const node = function(value) {
return value !== undefined && value instanceof HTMLElement && value.nodeType === 1;
};
const nodeList = function(value) {
var type = Object.prototype.toString.call(value);
return (
value !== undefined &&
(type === '[object NodeList]' || type === '[object HTMLCollection]') &&
'l... |
/*
* WellCommerce Open-Source E-Commerce Platform
*
* This file is part of the WellCommerce package.
*
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
var oDefaults = {
sName: '',
sLabel: '',
o... |
//Developed By: <NAME>
//For Use With: HSE Schedule App
var timer = undefined;
var schedule = undefined;
var monthlySchedule = undefined;
var period = undefined;
var lunch = undefined;
var lunchPart = undefined;
var time = undefined;
var lunches = ["NONE", "A", "B", "C", "ALL"];
function setup(){
showSection();
d... |
const Discord = require('discord.js');
const { getFooter, getColor } = require('../../constants/Bot/embeds.js');
module.exports = {
name: 'sbwiki',
description: 'a',
usage: 'sbwiki (Setting Namee)',
perms: 'None',
folder: 'SkyblockSim',
aliases: [],
cooldown: 10,
async execute(interaction, mclient) {
const c... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CloudWatchCounters = void 0;
/** @module count */
/** @hidden */
let async = require('async');
const pip_services3_components_node_1 = require("pip-services3-components-node");
const pip_services3_components_node_2 = require("pip-servi... |
/*!
* Nami core class.
*
* Copyright 2011 <NAME> <<EMAIL>>
*
* 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... |
/**
* @author Mugen87 / https://github.com/Mugen87
* @author Examples with Babylon.js were made at https://github.com/eldinor/yuka-babylonjs-examples / <EMAIL>
*/
import * as YUKA from '../../../../../lib/yuka.module.js'
import 'https://preview.babylonjs.com/babylon.js'
import 'https://preview.babylonjs.com/materi... |
import React from "react";
import "./Main.css";
import SocialIcons from "../components/SocialIcons";
import DegenReport from "./DegenReport";
import DegenFactors2 from "./DegenFactors2";
import DegenFactors from "./DegenFactors";
import CompleteAnalytics from "./CompleteAnalytics";
import DoughnutChart from "../compone... |
/*
Current workflow:
Play -> Transition (to next song) -> Pick next song -> Transition
TODO:
Known Issues:
*/
var app = new Vue({
el: "#app",
data: {
msg: "Hello Vue!",
currPlayer: {
ID: null,
deck: null
},
deck1: {
name: "Stromae - Alors on dance",
... |
import React from 'react/addons';
import {Spring} from 'react-motion';
let classNames = require('classnames');
export default class TileView extends React.Component {
static propTypes = {
tile: React.PropTypes.any.isRequired,
resetTile: React.PropTypes.any,
dimension: React.PropTypes.any.isRequired,
... |
'use strict'
const promisify = require('util').promisify
const sql = require("sqlite3")
const utilities = require("./utilities")
const mmr = require('./mmr')
sql.createDatabaseAsync = promisify(sql.Database)
// file name todo.
// use placeholder name for now.
const dbName = "match_database.sqllite3"
exports.createD... |
/**
* Apollo
* @description: Chats component
* @author: Out-N-In Team
* @license: MIT
*/
import React, { PropTypes, Component } from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import { client } from '../../modules/api-client';
import { hasClass, addClass, removeClass } from '../..... |
import { resolve, join, dirname, basename, extname } from 'path'
import { promises as fsAsync } from 'fs'
import { escapeHTML } from '@dr-js/core/module/common/string'
import { compareString } from '@dr-js/core/module/common/compare'
import { COMMON_LAYOUT, COMMON_STYLE } from '@dr-js/core/module/node/server/commonHTM... |
import inherits from 'inherits';
import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer';
import {
translate
} from 'diagram-js/lib/util/SvgTransformUtil';
import {
componentsToPath
} from 'diagram-js/lib/util/RenderUtil';
import {
assign
} from 'min-dash';
import {
heightOfBottomBands,
heightOfTopBa... |
const {randomBytes} = require('crypto');
const asyncAuto = require('async/auto');
const asyncReflect = require('async/reflect');
const asyncUntil = require('async/until');
const {acceptsChannelOpen} = require('ln-sync');
const {broadcastChainTransaction} = require('ln-service');
const {broadcastTransaction} = require(... |
"use strict";
import "nouislider";
import Swiper from "swiper";
import Choices from "choices.js";
import $ from "jquery";
import drilldown from "jquery-drilldown";
import datepicker from "air-datepicker";
import Inputmask from "inputmask";
UIkit.util.on("[data-uk-modal]", "shown", function() {
window.dispatchEve... |
'use strict';
//--------------------------------------------------------------
// Global variables
//--------------------------------------------------------------
const jcdUrl = "https://api.jcdecaux.com/vls/v1/stations";
const jcdParams = "?contract=Dublin&apiKey=8b0bfe2e205616b7ebec9f675e2168f7b9726683";
const... |
/* Milesian Clock and converter functions - on load part, end of HTML
Character set is UTF-8.
These functions are associated with the Milesian clock and converter html page:
They use the basic Milesian calendar functions, and the conversion functions of other calendar,
in order to display the Milesian on-line clock an... |
import React, { PropTypes, Component } from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { Modal } from 'react-bootstrap';
import { map, cloneDeep } from 'lodash';
import CenteredModal from '../../components/CenteredModal/index';
import EditUserForm from '... |
// The Glyph object
'use strict';
var check = require('./check');
var draw = require('./draw');
var path = require('./path');
// A Glyph is an individual mark that often corresponds to a character.
// Some glyphs, such as ligatures, are a combination of many characters.
// Glyphs are the basic building blocks of a f... |
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault = (t... |
const vscode = require('vscode')
const {TreeProvider} = require('./TreeProvider')
const fs_path = require('path')
const {PACKAGE_NAME} = require('./util')
let config = {}
let saveAbsolutePath = true
let saveToGlobal = true
let closeEditorsAfterSave = true
let hideSideBarAfte... |
/*
term.js
Copyright (c) 2012-2013, <NAME> (MIT License)
Copyright (c) 2016, <NAME>
*/
;
var term;
var editor;
var ws;
var connected = false;
var binary_state = 0;
var put_file_name = null;
var put_file_data = null;
var get_file_name = null;
var get_file_data = null;
var get_to_editor = false;
function throttle(m... |
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]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
/**
Author : paper
Date : 2014-12
Copyright : https://tinypng.com/
Intro : 纯粹模拟浏览器的行为,上传图片并下载图片
如果使用 官网提供的 key-api 方式,免费用户,每个月限制是500张,也不稳定
https://tinypng.com/developers
2014-12-19
研究发现,在没有vpn的情况下,不太稳定
所以改为:一张一张图上传,然后一张一张下载
2015-02-04
注释上传图片时传的cookie
下载图片时,模拟浏览... |
/*app.js - the file managing the game 3 objects (Enemy, Player, Gem)
The current version is programmed and adapted by <NAME>
(https://github.com/guillaumesimler).
The original version is part from the Udacity Front End Dev. Nanodegree.
It was forked from https://github.com/udacity/frontend-nanodegree-arcade-game
*/
... |
let fs = require("fs-extra");
let cp = require("child_process");
let util = require("util");
let WebSocket = require("ws");
let fetch = require('node-fetch');
let request = require('request-promise');
const { EventEmitter } = require('events');
const path = require('path');
//process.env.NODE_TLS_REJECT_UNAUTHORIZED = ... |
const fs = require('fs-extra')
var pwa = `<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Progressive Web Fox dist Test</title>
<script>
if (
window.location.protocol === "http:" &&
window.location.origin != "... |
var socket = io.connect( 'https://www.gbfraiders.com:8080/' );
var raids = [];
var raidConfigs = [];
var trackedRaids = [];
var loudRaids = [];
var showSettings = {
message: false,
time: false,
close: false,
id: false
};
var notifications = [];
var raidLimit = 30;
var wasDown = false;
var muted = false;
var stopped... |
// import React,{useState} from 'react'
// import { useHistory } from 'react-router-dom/cjs/react-router-dom.min';
// import {NavLink } from 'react-router-dom'
// import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
// import { faEye,faTimes,faCheck,faEyeSlash } from '@fortawesome/free-solid-svg-icons'
... |
import { useEffect, useState } from "react";
import NextLink from "next/link";
import { useRouter } from "next/router";
import PropTypes from "prop-types";
import { Box, Button, Divider, Drawer, Typography, useMediaQuery, ListItem } from "@mui/material";
import OpenInNewIcon from "@mui/icons-material/OpenInNew";
import... |
const { fetchAmmPrices } = require('../../utils/fetchAmmPrices');
const { sleep } = require('../../utils/time');
const getNonAmmPrices = require('./getNonAmmPrices');
const bakeryPools = require('../../data/bakeryLpPools.json');
const blizzardLpPools = require('../../data/degens/blizzardLpPools.json');
const alpacaLpP... |
// @remove-file-on-eject
/**
* Portions of this source code file are from create-react-app, used under the
* following MIT license:
*
* Copyright (c) 2013-present, Facebook, Inc.
* https://github.com/facebook/create-react-app
*
* This source code is licensed under the MIT license found in the
* LICENSE file in ... |
/*
* Snowy
*
* @version: 1.0
*/
(function()
{
this.Snowy = (function()
{
//Camera
var camera = null;
//Scene
var scene = null;
//Renderer
var renderer = null;
//Material
var material = null;
//Container
var container = null;
//Width
var width = 0;
//Height
var height = 0;
//Mouse X... |
"use strict";
var db = module.parent.require('./database'),
meta = module.parent.require('./meta'),
user = module.parent.require('./user'),
posts = module.parent.require('./posts'),
topics = module.parent.require('./topics'),
translator = module.parent.require('../public/src/modules/translator'),
SocketPlugins =... |
'use strict';
var appName = "myxQuizMain";
var app = angular.module(appName);
/*******************************************************************************
* rule - ラウンド特有のクイズのルール・画面操作の設定
******************************************************************************/
app.factory('rule', [ 'qCommon', function(qCo... |
'use strict';
require('dotenv').load();
const Scraper = require('./scraper');
const Chance = require('chance');
if (!process.env.SLACK_API_TOKEN) {
console.log('Error: Specify slack token in environment');
process.exit(1);
}
var scraper = new Scraper(); // stačí nám jeden
const chance = new Chance();
var Botk... |
import AMap from 'AMap'
import AMapUI from 'AMapUI'
import { Notification } from 'element-ui'
import GPS from '@/utils/GPS'
import { intToDate } from '@/utils/times'
let nowdatetime = null // 当前时间
let makemap = null // 地图对象
let markerList = null // 标点列表对象
let markerWarnInfo = null // 警告弹窗对象
let markerWarnFlag = 0 // 警告... |
function onBlazorReady()
{
onBlazorRender();
alertify.init();
$('#loading-overlay').hide();
}
function onMenuReady()
{
$('header nav #menu').click(function (e) {
e.stopPropagation();
$('header nav ul').toggle();
});
$('header, main, aside').click(function () {
$('header nav > ul').hide();
});
}
funct... |
"use strict";
/**
* @module Upsert
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejecte... |
var numberOfRows = 0;
$("#betweenDate").daterangepicker({
locale: {
format: "DD-MM-YYYY"
}
});
$(document).on('change','#betweenDate',function(){
$('#submitButton').removeClass('btn-success').addClass('btn-danger').prop('type', 'button').attr("onclick", "checkData()").html(`Check <i class="fa fa-question-cir... |
import {
SLIDE_UP,
SLIDE_DOWN,
SLIDE_RIGHT,
SLIDE_LEFT,
SLIDE_DIAG_UP_LEFT,
SLIDE_DIAG_UP_RIGHT,
SLIDE_DIAG_DOWN_LEFT,
SLIDE_DIAG_DOWN_RIGHT,
JUMPSLIDE_UP,
JUMPSLIDE_DOWN,
JUMPSLIDE_LEFT,
JUMPSLIDE_RIGHT,
JUMPSLIDE_DIAG_UP_LEFT,
JUMPSLIDE_DIAG_UP_RIGHT,
JUMPSLIDE_DIAG_DOWN_LEFT,
JUMP... |
const { expect } = require("chai");
const { ethers } = hre = require("hardhat");
const config = require("../lib/config.js");
const time = require("../lib/time.js");
const { logger } = require('../lib/logger.js');
const transport = logger.transports.find(
t => t.name == 'console'
);
transport.level = 'warn';
const... |
import commentParser from 'comment-parser';
import {parse} from 'acorn';
import {getVarsFromDeclaration} from './ast.js';
import {TypeDef} from './typedef.js';
// https://www.npmjs.com/package/jsdoctypeparser
// https://github.com/dsheiko/bycontract
// https://github.com/joelday/vscode-docthis/blob/master/src/docum... |
/**
* External dependencies
*/
import {
Suspense,
lazy,
useCallback,
useLayoutEffect,
useRef,
useState,
} from '@wordpress/element';
import { compose } from '@wordpress/compose';
import { withDispatch, withSelect } from '@wordpress/data';
import classnames from 'classnames';
import PropTypes from 'prop-types';
... |
import Vue from 'vue'
import Router from 'vue-router'
import store from '../sotre'
import * as types from '../sotre/types'
import isEmpty from 'is-empty'
import slice from 'lodash.slice'
import qs from 'querystring'
import * as auth from '../http/auth'
import * as weixin from '../weixin'
import {getSessionTokenByCode, ... |
//PRE: none
//POST: initialized page
function init(){
//hand image holders
for(var i = 1; i < 14; i++){
$(".hand").append("<img draggable=\"false\" id=\"slot" + i.toString() + "\" class=\"my_card\">");
}
}
//PRE: none
//POST: resets round attributes
function reset_round(){
//reset played cards
$(".played... |
/**
* JS File that provides functions enabling engine tracking with breadcrumbs.
*/
let crumbImages = [];
let engineMarkers = new Map();
let showEngines = 0; // 0 -> show both mv engines, 1 -> engine 1 only, 2 -> engine 2 only, 3 -> engine 3 only
let resetIfNoMarker = true; // if there is no v... |
import Helpers from '../Helpers.js';
import { html } from 'htm/preact';
import Identicon from './Identicon.js';
import FeedMessageForm from './FeedMessageForm.js';
import State from '../State.js';
import { route } from 'preact-router';
import Message from './Message.js';
import SafeImg from './SafeImg.js';
import Sessi... |
"use strict";
/**
* Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.MeshBuilder = void 0;
var linear_algebra_1 = require("../../../mol-math/linear-algebra");
... |
// defaults
const redirects_default = {
'facebook': 'https://www.facebook.com/',
'fb': 'https://www.facebook.com/',
'facebook log in': 'https://www.facebook.com/',
'facebook login': 'https://www.facebook.com/',
'facebook.com': 'https://www.facebook.com/',
'facebook.de': 'https://www.facebook.de/',
'stacko... |
// ######################################################################
// ## flipMenu 5.0.0 (c) <NAME>
// ## Last modifications: 23 March 2007
// ######################################################################
// ## Degree of indentation from the left.
flipIndentation = "5px";
// ## Padding inb... |
// The Controller handles the interaction between the game itself and the invocations to and from the blockly code
// For example, when elevatorCalled is invoked as a result of a Person calling the elevator, the blockly event is called
// so the 'coder' can determine what to do in this case (e.g. queueing the call). Th... |
const _ = require('lodash');
const precision = 2;
Object.assign(Number.prototype, {
lessThanAbsZero(tempScale) {
const temp = parseFloat(this);
const abs0 = parseFloat(temperatures[tempScale].abs0);
return (temp<abs0) ? abs0 : temp;
},
greaterThanAbsZero(tempScale) {
// only for delisle
const temp = pars... |
// 分页页码
var startNum= 1;
var timers = null;
//判断数据是否到底部了
var not_use_bottom;
var Statused = 2;
var liLen = 0;
// 判断是否点击时间弹出框
var bouncedTime = 0;
var useSting = '<li class="bottom_title">我是有底线的喔!</li>';
localStorage.clear(); // 清楚缓存
$( function() {
initAjax();
function initAjax(){
$('.background_remi... |
function toggleRecording( e ) {
if (e.classList.contains("recording")) {
// stop recording
audioRecorder.stop();
e.classList.remove("recording");
//audioRecorder.getBuffers( gotBuffers );
audioRecorder.exportWAV( doneEncoding);
} else {
// start recording
... |
var Spire = require('spire-tracker');
var MAX_DAYS = 7;
var MS_IN_DAY = 24 * 60 * 60 * 1000;
var adapter = {};
adapter.sensorName = 'spire';
var streakIndex = 'spire-streaks';
var eventIndex = 'spire-events';
adapter.types = [
{
name: streakIndex,
fields: {
"@timestamp": "date",
"ecs": {
... |
const {
app,
Menu,
shell,
dialog,
BrowserView,
BrowserWindow,
globalShortcut,
} = require('electron');
const path = require('path');
const devtron = require('devtron');
const windowStateKeeper = require('electron-window-state');
const { version } = require('./package.json');
const GitHubApi = require('./... |
const { EPS, angleEPS } = require('../../constants')
const Vertex = require('../../core/math/Vertex3')
const Vector2D = require('../../core/math/Vector2')
const Polygon = require('../../core/math/Polygon3')
const { fnNumberSort } = require('../../core/utils')
const { fromPoints, fromPointsNoCheck } = require('../../co... |
// Jobs are potentially long-running background processing operations
// that are tracked in the database via the JobRequest table.
// See src/extensions/job-runners/README.md for more details
import { r, cacheableData } from "../server/models";
import { sleep, getNextJob } from "./lib";
import { log } from "../lib";
... |
"use strict";
/*!
* Copyright 2018 CoNET Technology 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
*
* ... |
#!/usr/bin/env node
// eskimo
// Copyright (c) 2014- <NAME> <<EMAIL>> (http://niftylettuce.com)
// MIT Licensed
// Eskimo helps you to rapidly build Node powered API's,
// online stores, and apps in general (known as "igloos").
// * Author: [@niftylettuce](https://twitter.com/#!/niftylettuce)
// * Source... |
const { format } = require('date-fns');
const depEnv = Cypress.env('depEnv');
// TODO: Parameterize formId, submissionId and versionId for full e2e test (no cypress.intercepts variant)
const formId = '897e2ca1-d81c-4079-a135-63b930f98590';
const submissionId = '3d2d6833-6e78-43e3-b332-6e66b6b8879c';
const versionId = ... |
import React from 'react';
import Row from 'react-bootstrap/Row'
import Col from 'react-bootstrap/Col'
import Container from '@material-ui/core/Container';
import Paper from '@material-ui/core/Paper';
import TableData from './../../../../components/UiElements/Table/Table';
import Form from 'react-bootstrap/form'
import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.