text stringlengths 3.07k 16k |
|---|
import { useEffect, useState } from "react";
import { useParams } from "react-router-dom";
import * as buffer from "buffer";
const CreatedJob = ({ contract }) => {
window.Buffer = buffer.Buffer;
const [job, setJob] = useState({});
const [loading, setLoading] = useState(true);
const { jobId } = useParams();
... |
import React, { Component } from 'react'
import { Table, Search, Dropdown, Input,Dimmer, Loader } from 'semantic-ui-react'
import _ from 'lodash'
const options = [
{ key: 'wu', text: 'N.A', value: 'wu' },
{ key: 'fb', text: 'Abdomen', value: 'fb' },
{ key: 'tb', text: 'Head', value: 'tb' },
{ k... |
window.onload = function() {
chrome.tabs.getSelected(null, function(tab) {
if(~location.search.indexOf("setlang")){
if(location.pathname=="/index.html"){
//NowEnglishBrowsing
localStorage.setItem("lang", "en");
}else{
//NowJapaneseBrowsing
localSto... |
// @TODO: YOUR CODE HERE!
let svgWidth = 960;
let svgHeight = 500;
let margin = {
top: 20,
right: 40,
bottom: 80,
left: 100
};
let width = svgWidth - margin.left - margin.right;
let height = svgHeight - margin.top - margin.bottom;
let svg = d3.select("#scatter")
.append("svg")
.attr("width... |
// ====================================
// PhoneGap App init and event handlers
// ====================================
var app = {
// Application Constructor
initialize: function() {
this.bindEvents();
},
// Bind any events that are required on startup. Common events are:
// 'load', 'deviceready', 'offli... |
'use strict'
// call `docker inspect` for one or more containers
// errback receives an array of "docker run objects"
module.exports = function rekcod (containers, cb) {
let cbCalled = false
let stdout = []
let stderr = []
let child = require('child_process').spawn('docker', ['inspect'].concat(containers))
c... |
'use strict';
var MAX_SAFE_INTEGER = 9007199254740991;
var toWords = typeof require !== 'undefined' ? require('../src/toWords') : window.numberToWords.toWords;
describe('toWords', function () {
var tests = [
{ input: -1, expect: 'minus one' },
{ input: 0, expect: 'zero' },
{ input: 1, expe... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withStyles } from '@material-ui/core/styles';
import {Paper, Grid, IconButton, SvgIcon, Avatar, Typography} from '@material-ui/core';
import { Media, Player, controls } from './player';
import { r... |
/* eslint-disable no-console */
const titleCSS = 'color:red; font-size:20px; font-weight: bold;';
const descCSS = color => `font-size: 16px; color:${color};`;
const descDefaultCSS = descCSS('#000');
const descDefaultItalicCSS = descCSS('#000') + 'font-style:italic;';
const descKeywordCSS = descCSS('#008') + 'font-weigh... |
'use strict'
const assert = require('debug')
const debug = require('debug')
const log = debug('libp2p:webrtcdirect')
log.error = debug('libp2p:webrtcdirect:error')
const errcode = require('err-code')
const wrtc = require('wrtc')
const SimplePeer = require('libp2p-webrtc-peer')
const isNode = require('detect-node')
co... |
/**
* @module template
* @description
* Defines a small templater functionality for creating functions body.
*/
/**
* @name template
* @type function
* @description
* Provides a templater function, which adds a line of code into generated function body.
*
* @param {object} state - used in visit and reference... |
const timazone = document.querySelector('#timezone');
const chases = document.querySelector('#chases');
const chasesProgress = document.querySelector('#chases-progress');
const active = document.querySelector('#active');
const activeProgress = document.querySelector('#active-progress');
const death = document.querySele... |
/*!
* Copyright (c) 2018 Digital Bazaar, Inc. All rights reserved.
*/
'use strict';
// FIXME: use did-io
const axios = require('axios');
const didio = {get: () => {}};
const httpSignatureHeader = require('http-signature-header');
const jsonld = require('jsonld');
const signatureAlgorithms = require('signature-algori... |
'use strict'
const h = require('h2ml')
const {DateTime} = require('luxon')
const ms = require('ms')
const {meta, stylesheet, script} = require('./lib')
const renderChoiceSummary = require('./choice-summary')
const renderPage = require('./page')
const site = require('../lib/site')
const pollUrl = require('../lib/poll-... |
/* LICENSE
_This file is Copyright 2018 by the Image Processing and Analysis Group (BioImage Suite Team). Dept. of Radiology & Biomedical Imaging, Yale School of Medicine._
BioImage Suite Web is licensed under the Apache License, Version 2.0 (the "License");
- you may not use this soft... |
import React, {
createContext,
useCallback,
useContext,
useEffect,
useState,
useRef
} from "react";
import { unstable_batchedUpdates } from "react-dom";
// https://github.com/facebook/react/issues/14110#issuecomment-446845886
export const Context = createContext({});
const { Provider } = Context;
// Help... |
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const React = require("react");
const CompLibrary = require("../../core/CompLibrary.js");
const MarkdownBlock = CompLibrary.MarkdownBl... |
/**
* @fileoverview 处理插件
*/
const path = require('path')
const through2 = require('through2')
const config = require('./config')
config.plugins.sort((a, b) => {
// editable 置于最后面
if (a === 'editable') return 1
if (b === 'editable') return -1
// markdown 置于最前面
if (a === 'markdown') return -1
... |
var owl;
function destroyZoom(){
$('.zoomContainer').remove();
$('#carousel-products .owl-item.active img').removeData('elevateZoom');
$('#carousel-products .owl-item.active img').removeData('zoomImage');
}
function initZoom(){
$('#carousel-products .owl-item.active img').elevateZoom();
}
function va... |
require("dotenv").config()
const key = process.env.API_KEY;
const axios = require("axios").default;
const CONFIG = require("../config");
const google = require("googleapis").google;
const jwt = require("jsonwebtoken");
const Oauth2 = google.auth.OAuth2;
const oauth2client = new Oauth2(
CONFIG.oauth2Credentials.clien... |
import {
arc
} from 'd3-shape'
import {
range
} from 'd3-array'
import {
event
} from 'd3-selection'
function renderLayoutLabels(conf, block) {
const radius = conf.innerRadius + conf.labels.radialOffset
// const labelArc = arc()
// .innerRadius(radius)
// .outerRadius(radius)
// .startAngle((d, ... |
import React from "react";
import PropTypes from "prop-types";
import shouldForwardProp from "@styled-system/should-forward-prop";
import styled from "styled-components";
import { Link } from "react-router-dom";
import { space, layout, variant } from "styled-system";
import { css } from "@styled-system/css";
import sys... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
// Sideout
// https://github.com/mango/slideout
var slideout = new Slideout({
'menu': document.getElementById('sidebar'),
'panel': document.getElementById('main'),
'side': 'left',
'padding': 300,
'tolerance': 70
});
// Toggle button
document.querySelector('.btn-hamburger').addEventListener('click'... |
const can = document.querySelector('canvas');
can.width = window.innerWidth * 0.9;
can.height = window.innerHeight * 0.9;
can.style.border = '1px solid black';
const c = can.getContext('2d');
let beep = new Audio('beep');
beep.volume = 1.000;
class Entity{
constructor(x, y, rad){
this.x = x;
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class EmailSyntaxError extends Error {
constructor(error) {
super(error);
}
}
exports.EmailSyntaxError = EmailSyntaxError;
/**
* Verifies that a string is a valid local part of an email address.
* @param local The local part ... |
/* global angular:false, rdf:false */
'use strict';
/**
* Get property as array
*
* Returns an empty array if the property doesn't exist or is null. If the property isn't an array return a new array
* with the object as a the only element. Returns the property if it's already an array.
*
* @param object
* @para... |
/**
* @file
* @copyright 2020 <NAME>
* @license MIT
*/
import { clamp } from 'common/math';
import { pureComponentHooks } from 'common/react';
import { Component, createRef } from 'inferno';
import { AnimatedNumber } from './AnimatedNumber';
/**
* Reduces screen offset to a single number based on the matrix prov... |
import store from './store';
import utilityFunctions from './utilityFunctions'
import items from './itemList'
var nlp = require('compromise')
export default class Dialogue {
parseNode(guids, node) {
const parseVariables = function(next) {
let variables = {};
let cb;
whil... |
const body = document.getElementsByTagName('body')[0]
const lightDarkToggle = document.getElementsByClassName('theme-toggle')[0]
const moonIcon = document.getElementsByClassName('inline-svg-moon')[0]
const sunIcon = document.getElementsByClassName('inline-svg-sun')[0]
//const icon = lightDarkToggle.getElementsByTagName... |
const express = require('express');
const User = require('../models/User');
const {encrypt,generateId,setClear,userDrop}= require('../components/part0');
const sendEmail = require('../components/mail');
let router = express.Router(); //设置express路由
// 启动Server后,延迟获取已存在用户_id Set
let _ids;
setTimeout(function(){_ids = r... |
var config = require("@auth");
class Common {
//clean string so its usable in RegExp
static escapeRegExp(string) {
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
}
//does string token contain the parts required to be an emoji
// BUG: this doesn't entirely work... |
import React from 'react';
import 'react-table/react-table.css';
import ReactTable from 'react-table';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faEdit } from '@fortawesome/free-solid-svg-icons'
import { faQuestionCircle } from '@fortawesome/free-solid-svg-icons'
import Loader from 'reac... |
/*!
* storage <https://github.com/jonschlinkert/storage>
*
* Copyright (c) 2016 <NAME>, contributors.
* Licensed under the MIT license.
*/
'use strict';
var debug = require('debug')('storage');
var plugin = require('./lib/plugins/');
var utils = require('./lib/utils/');
var Base = require('./lib/base');
var lib ... |
let url = "https://coolors.co/ffadad-ffd6a5-fdffb6-caffbf-9bf6ff-a0c4ff-bdb2ff-ffc6ff-fffffc";
let palette = createPalette(url);
let graphics, graphics2;
function setup() {
createCanvas(800, 800);
colorMode(HSB, 360, 100, 100, 100);
angleMode(DEGREES);
graphics = createGraphics(width, height);
graphics.colorMode... |
import React, { useGlobal, useEffect } from "reactn";
import User from "../../contracts/User.json";
import {
Button,
Modal,
Card,
Input,
Typography,
TextField,
CardMedia,
Container,
} from "@material-ui/core";
import { withStyles } from "@material-ui/core/styles";
import Swal from "sweetalert2";
import ... |
var peerSocket = function(config,host,port){
var logout = false;
if(config==undefined){
config = {
key: "<KEY>",
debug: 1,
logFunction: function() {
var copy = Array.prototype.slice.call(arguments).join(" ");
console.log("peerLog:" + ... |
const challengerBot = require('../challenger');
const randBot3030 = require('../examples/bots/randBot3030');
const randBot4040 = require('../examples/bots/randBot4040');
const randBot5050 = require('../examples/bots/randBot5050');
const randbot6060 = require('../examples/bots/randbot6060');
const randBot7070 = require(... |
import { removeSelectionCategory, SelectCategory } from './categorie.js';
import { removeSelectionLevel, SelectLevel } from './level.js';
import { removeView, showView } from './navigation.js';
import { setCategoryQuiz, GetCategoryQuiz, setQuizLevel, GetQuizLevel, setQuizCount, GetQuizCount, GetQuiz } from './app.js';
... |
const AWS = require('aws-sdk');
const dynamodb = new AWS.DynamoDB.DocumentClient();
const dbTablePrefix = process.env.DB_TABLE_PREFIX || '';
const tagPattern = /^add-tag_([a-zA-Z0-9_-]{1,248})$/;
/**
* Fetches a subscriber id associated with the given email.
* @param {String} email
* @return {Promise<Object>}
*/... |
'use strict';
import _ from 'lodash';
import * as formHelpers from '../helpers/forms/common';
import * as common from '../helpers/common';
export const BTN_SHIPPING_EDIT = '.shipping-summary .edit-button';
export const BTN_NEXT_PAYMENT = '.submit-shipping';
export const BTN_NEXT_PLACE_ORDER = '.submit-payment';
expor... |
let gameScene = new Phaser.Scene('Game');
// Radius of iceberg
let radius = 120;
// Keep track of players score
let score = 0;
// The penguin has a max acceleration dependant on the size of the penguin
let maxAcceleration = 150;
let maxScale = 10;
let accelerationInterval = 5;
let intervalScale = 5;
let penguinScale... |
import firebase from 'firebase/app'
import {} from 'firebase/database'
import config from '../config'
import md5 from 'js-md5'
const pica = require('pica/dist/pica')()
const app = firebase.initializeApp(config)
function getImage (url) {
return new Promise((resolve, reject) => {
let i = new window.Image()
i.... |
"use strict";
const { host } = require("host-environment");
const { expect } = require("chai");
const $RefParser = require("../../lib");
describe("HTTP options", () => {
let windowOnError, testDone;
beforeEach(() => {
// Some browsers throw global errors on XHR errors
windowOnError = host.global.onerror;... |
global.sigma = require('linkurious');
require('./sigma.helpers.graph.min.js');
Array.prototype.allEdgesSameType = function() {
for (var i = 1; i < this.length; i++) {
if (this[i].type !== this[0].type) return false;
}
return true;
};
var sigmaInstance = new sigma();
process.on('message', function... |
'use strict';
const Strings = require('core-functions/strings');
const isNotBlank = Strings.isNotBlank;
const trim = Strings.trim;
const trimOrEmpty = Strings.trimOrEmpty;
const arns = require('./arns');
const getArnRegion = arns.getArnRegion;
// A map of region key objects by region, which is only needed, because W... |
// Copyright 2019-2020 ETH Zurich and the DaCe authors. All rights reserved.
import {ObjectHelper} from "./datahelper.js"
// Contains resources used to provide a "native" multi-window interface
// Class to create the window on the parent side
class DiodeWindow {
constructor(parent) {
this.parent = parent;
... |
// import { StatusBar } from 'expo-status-bar';
import React, { useContext, useEffect, useState } from 'react';
import {
StyleSheet,
Text,
View,
TextInput,
StatusBar,
SafeAreaView,
Image
} from 'react-native';
import blank from './assets/blank.png';
import a from './assets/a.png';
import b from './a... |
/* eslint-disable no-unused-vars */
/* eslint-disable no-async-promise-executor */
'use strict';
const mongoose = require('mongoose');
const Promise = (mongoose.Promise = require('bluebird'));
const eachAsync = require('each-async');
const debugLib = require('debug')('lib-db-team');
const logERR = require('d... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
'use strict';
var path = require('path');
var mkdirp = require('mkdirp');
var EventEmitter = require('events').EventEmitter;
var template = require('./lib/template');
var prompt = require('./lib/prompt');
var spawn = require('./lib/spawn');
var store = require('./lib/store');
var nyg = function(prompts, globs, options)... |
var width = 1200,
height = 800;
var radius = 360;
var canvas = d3.select("#map-0").append("canvas")
.attr("width", width)
.attr("height", height);
var ctx = canvas.node().getContext("2d");
//
// var projection = d3.geoMercator()
// .translate([width / 2, height / 2])
// .scale(100)
//
// var path... |
/*
必須
Three.js
GLTFLoder.js
VRMLoder.js
*/
class WebVRM {
constructor(
avatarFileURL,
targetScene,
callBackReady = () => {
console.log("Avatar is Ready")
}
) {
this._vrm;
this._skeleton;
this._blendShape;
this.isReady = false;
... |
import ArrowBackIcon from '@material-ui/icons/ArrowBack'
import ArrowForwardIcon from '@material-ui/icons/ArrowForward'
import { push } from 'connected-react-router'
import React from 'react'
import { Button } from 'react-bootstrap'
import { connect } from 'react-redux'
import { firestoreConnect, isEmpty, isLoaded } fr... |
var strat = {};
var config = require ('../core/util.js').getConfig();
var SMA = require('./indicators/SMA.js');
var startTime
var signal
let bullFear = 0;
let bearFear = 0;
let lastBullFear = 0;
let lastBearFear = 0;
let adxOptIn = 14;
let trixOptIn = 18;
let cciOptIn = 20;
let firstrun = true; //we need ... |
document.addEventListener("DOMContentLoaded", (event) => {
fadeOut(document.getElementById("preloader"));
progressBars();
navShadowStyle();
if (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches && window.matchMedia("(prefers-color-scheme)").media !== "not all") {
swi... |
import request from 'superagent';
import moment from 'moment';
import {
mapValues,
isUndefined,
} from 'lodash';
import { firebasedb } from '../../scripts/util/setupFirebase';
export const resetTownHall = () => ({
type: 'RESET_TOWNHALL',
});
export const setDistrict = payload => ({
payload,
type: 'SET_DIS... |
import {changeGrammarDOM, getGraph, initGraph} from "./init.js";
import Grammar from "./grammar.js";
import {confirmDeleteGraph, setGraphSaved, showIDs} from "./graph.js";
import {hideErrors} from "./checkGraph.js";
import {GRAPH_VERSION} from "./constants.js";
/**
* creates an XML representation of the graph, with m... |
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2021 The authors
License:
MIT: https://opensource.org/licenses/MIT
See the LICENSE file in the project's top-level directory for details.
... |
import React from "react";
import "./AddMeetingNoteModal.scss";
import InputComponent from "../../../components/InputComponent";
import Dropdown from "../../../components/Dropdown";
import request from "superagent";
const API_KEY = "<KEY>";
const geocodingApi = `https://maps.googleapis.com/maps/api/geocode/json?key=${... |
import React from 'react'
import { View, StyleSheet, Text, FlatList, Button, TextInput, Pressable } from 'react-native'
import { useState, useEffect } from "react"
import { connect } from "react-redux"
import userActions from "../redux/actions/userActions"
import {Picker} from '@react-native-picker/picker';
const Regis... |
var mongoose = require('mongoose')
, env = process.env.NODE_ENV || 'development'
, config = require('../../config/config')[env]
, Toy = mongoose.model('Toy')
, errors = require('../../lib/errors')
, markdown = require( "markdown" ).markdown
, request = require("request")
, util = require("util")
, _ = r... |
/* --- SHOWING NEXT SECTION --- */
let sectionsShowing = [1, 0, 0, 0, 0];
let sectionsAll = ['.firtssection', '.secondsection', '.thirdsection', '.foutrhsection', '.fifthsection'];
function showNextSection() {
let sectionElements = [];
for (var i = 0; i < sectionsAll.length; i++) {
sectionElements.push(docum... |
import Portal from '../portal'
import { Escable, Transitionable } from '../../mixins'
import { safeInvoke, classNames, safeChildren, extend } from '../../util/helper'
import * as Classes from '../../util/classes'
let openStack = []
export const props = extend({
/**
* Whether can invoke onClose action by clicking... |
import styled from 'styled-components';
import { GrChat, GrCalendar } from 'react-icons/gr';
import React, {useState} from 'react';
import { useHistory } from 'react-router-dom';
import { useTranslation, withTranslation } from 'react-i18next';
export const profiles = [
{
id: "1",
name: "<NAME>",
... |
var chat_dict = {};
var ticker;
function handleClientLoad()
{
// Loads the client library and the auth2 library together for efficiency.
// Loading the auth2 library is optional here since `gapi.client.init` function will load
// it if not already loaded. Loading it upfront can save one network request.
... |
// Copyright 2015-2019 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
// SPDX-License-Identifier: BSD-3-Clause
import { action, computed, observable } from 'mobx';
import bip39 from 'bip39';
import hdkey from 'ethereumjs-wallet/hdkey';
import localForage from 'localforage';
import LS_PREFIX from '.... |
const {
openBrowser,
goto,
write,
click,
closeBrowser,
into,
below,
textBox,
button,
waitFor,
clear,
listItem,
doubleClick,
accept,
press,
} = require("taiko");
var testNum = 0;
var testUser = new Date().toISOString();
(async () => {
var startTime = new Date().getTime();
try {
aw... |
import React, { Component } from 'react';
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import { message } from 'antd';
import { Input, ButtonGroup, Table, Button } from 'reactstrap';
import { PanelHeader } from "components";
import 'antd/dist/antd.css';
import * as TournamentActi... |
/**
* Test for vCard edit
*/
'use strict';
/* jshint expr: true, mocha: true, browser: true */
const chai = require('chai'),
chaiHttp = require('chai-http'),
jsdom = require('jsdom'),
assert = chai.assert,
expect = chai.expect,
{ JSDOM } = jsdom
;
chai.use(chaiHttp);
describe('vcard merge', function (... |
class BinaryExpo extends Algorithm{
constructor(block, a=17, b=43, m=107){
super(block);
this.btlist=[];
this.utilbts=[];
this.place.innerHTML='';
for (var i=0;i<3;i++) this.btlist.push([]);
this.Create_reality(a, b);
}
BeginningExecutor(){
this.btlist=[];
this.utilbts=[];
var fas=this.input.val... |
// jQuery
$(document).ready(function() {
// Définition des textareas redimentionnables
$("textarea").addClass("ui-widget-content").resizable( { handles: "s", minHeight: 50 });
// Initialisation via LDAP
if((typeof(JSONLDAP) != "undefined") && (JSONLDAP[0] != undefined)) {
// N+1
if((JSONLDAP[0].ge... |
import React from 'react';
import { connect } from 'react-redux';
import {
Button,
Icon,
Table,
Tag,
Tooltip
} from 'antd';
import PropTypes from 'prop-types';
import {
getSingleTable,
getTableView,
getTableViewShouldComponentUpdate
} from '../reducers/selectors';
import store from '../s... |
/*
npm install node-opcua
*/
/*
* opc ua client
*/
var nconf = require('nconf');
var winston = require('winston');
var opcua = require("node-opcua");
var async = require("async");
nconf.file('config.json');
console.log( nconf.get("logging"))
var logger = winston.loggers.add('server', {
console: {
//... |
/*
* [NoInfoPath Home](http://gitlab.imginconline.com/noinfopath/noinfopath/wikis/home) | [NoInfoPath REST API](home)
*
* ___
*
* *@version 2.0.20*
*
* Copyright (c) 2017 The NoInfoPath Group, LLC.
*
* Licensed under the MIT License. (MIT)
*
* ___
*
* Google Cloud Storage (GCS) Properties
* ==============... |
// create Object EventUtil
var EventUtil = {
addHandler: function(element, type, handler){
if (element.addEventListener){
element.addEventListener(type, handler, false);
} else if (element.attachEvent){
element.attachEvent('on' + type, handler);
} else {
e... |
class DrawCircle {
constructor(options) {
this.canDraw = true;
this.map = options.map;
this.boxes = [];
this.minDeltaX = options.minDelta || options.minDeltaX || 0;
this.maxDeltaX = options.maxDelta || options.maxDeltaX || 0;
this.minDeltaY = options.minDelta || opti... |
function showSidebar() {
$("#nav-icon3").toggleClass("open");
$("#dashboard-aside, #profile-aside ,#view-request-sidebar").toggleClass(
"show"
);
}
$(window).on("load", function () {
$(".navbar-toggler").on("click", function () {
$(this).toggleClass("open");
});
if ($(window).width() >= 768) {
$... |
'use strict';
// libraries
// modules
const ipfsUtil = require('../../ipfs-util.js');
// constants
/**
* gets the owners of a NFT template's assets
* @name get_nft_template_owner
* @memberof RPC
* @param {String} ipfs_cid the ipfs cid of the template.
* @param {String} action:get_nft_template_owner the action: g... |
/**
* Created by ss on 2017/10/30.
*/
$(function () {
googleEarth = false;
infoBoard = false;
renderer = SolarEPUtils.getDefaultRenderer();
solarSystemSceneController = new SolarSystemSceneController(renderer);
solarSystemSceneController.initialFadeSceneIn();
activatedScene = solarSystemS... |
import qs from 'qs';
import urlJoin from 'url-join';
import { setupAbort, teardownAbort } from './abort';
import { fetchRetry } from './retry';
if (typeof fetch === 'undefined') {
throw new Error("You're missing a fetch implementation. Try var Flighty = require('flighty/fetch') or import Flighty from 'flighty/fetch'... |
const _ = require('lodash');
const Git = require('@octokit/rest');
const logger = require('pino')();
const moment = require('moment');
const color = require('color-convert');
const { WebClient } = require('@slack/web-api');
const conf = require('./conf');
const slack = new WebClient(conf.slackToken);
const alwaysAppe... |
/**
* A lot of credit to <NAME> <<EMAIL>> who made
* Allure-mocha reporter: "https://github.com/allure-framework/allure-js/tree/master/packages/allure-mocha"
*/
const { LabelName, Stage, Status } = require('allure-js-commons');
const { createHash } = require('crypto');
const AllureInterface = require('./AllureInter... |
import React, { useState, useEffect } from 'react';
import {
Card,
Table,
Stack,
Checkbox,
TableBody,
Container,
Typography,
TableContainer,
IconButton,
} from '@material-ui/core';
import MuiTableCell from '@material-ui/core/TableCell';
import MuiTableRow from '@material-ui/core/Tabl... |
var CameraManager = require('../../camera/local/CameraManager');
var Class = require('../../utils/Class');
var Clock = require('../../time/Clock');
var Data = require('../plugins/Data');
var DataStore = require('../plugins/DataStore');
var DisplayList = require('../plugins/DisplayList');
var EventDispatcher = require('... |
const searchWrapper = document.getElementById("main-search-wrapper");
const resultsContainer = document.getElementById("results-wrapper");
const noResultsDiv = document.getElementById("no-results");
const searchTitle = document.getElementById("search-title");
const beforeTitle = document.getElementById("before-title");... |
import React, { useState, useCallback } from "react";
import { useTable, useSortBy, usePagination, useGlobalFilter } from "react-table";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { CSVLink } from 'react-csv';
//import { resetWarningCache } from "prop-types";
const IndeterminateCheckbox ... |
var infoTab = {};
infoTab.controller = function(params) {
console.log(params);
this.params = params;
};
infoTab.view = function(ctrl) {
var vm = ctrl.params.vm;
var object = ctrl.params.object;
return m("div", { class: "panel panel-info" }, [
m("div", { class: "panel-heading" }, [m(... |
import { listenPjaxEvent } from 'utils/pjax'
import { scrollTo } from 'utils/scroll'
import { GITHUB_PAGE_CONTAINER_ID } from 'constants/github'
import { GITHUB_NAV_BAR_HEIGHT } from 'constants'
import { noop, throttle, chunk } from 'lodash'
import sha256 from 'crypto-js/sha256'
const DEFAULT_TIMEOUT = 1000 * 6
expor... |
var args = arguments[0] || {};
var mod;
if (OS_ANDROID && args.drawerLayout) {
mod = 'com.tripvi.drawerlayout';
} else {
mod = 'dk.napp.drawer';
}
$.module = require(mod);
// convert children to args based on role
if (args.children) {
_.each(args.children, function(child) {
// fix: https://jir... |
/* eslint-env node */
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
const webpack = require("webpack");
const RXP_ENV = process.env.RXP_ENV || "production";
const shouldMinify = !!process.env.RXP_MINIFY;
const shouldRep... |
/*
コマンドライン引数として、メールの受信者のアドレス,メール送信者のアドレス,メール送信者のパスワードがいる
example: node <EMAIL> <EMAIL> submitter'sPassword
NOTE:メールは両方ともgmailのみ可
*/
process.on('exit', function () {
console.log('exit.');
});
var fs = require('fs'),
color = require('../src/color'),
IRMagician = require('../irMagician'),
irMagician = {}... |
// © 2015-2016 Vasniktel (Mez0_Teck)
var VERS = {
index:3.2,
mpls:3.01,
lic:2.7,
css:2.9,
img:2.7,
js:3.15,
icon:2.7
};
var sleepId, countId, end, countDiv = document.getElementById("count");
window.onload = function () {
document.getElementById("streamName").innerHTML = "Нет станции";
docum... |
//IMPORT
import colorway_port from './colorway_port.json';
import colorway_night_sakura from './colorway_night_sakura.json';
import colorway_blacklight from './colorway_blacklight.json';
import colorway_amalfi from './colorway_amalfi.json';
import colorway_wob from "./colorway_wob.json";
import colorway_bow from "./col... |
import React, { useContext, useState, useEffect } from "react";
import {
StyleSheet,
View,
Text,
FlatList,
TouchableOpacity,
ActivityIndicator,
} from "react-native";
import { AuthContext } from "../context/AuthContext";
import ProfilePicture from "../components/UI/ProfilePicture";
import MediumText from "... |
/** pokes
* @author <NAME>
*/
/* add an user suggest */
var send_poke_active = 1;
/*Search Suggest friend poke*/
$('body').on('keyup', '.text_search_toque', function(){
var _this = $(this);
var raw_query = _this.val();
if(raw_query !== null && raw_query.length > 0) {
... |
import { LineSegments, Sprite, SpriteMaterial, LineBasicMaterial, CanvasTexture, BufferGeometry, Float32BufferAttribute } from 'three';
import { Mesh, Group, MeshBasicMaterial, CylinderBufferGeometry, SphereBufferGeometry } from 'three';
/**
* Class with various helper methods.
*
* @author {@link https://github.com/Mu... |
/**
* Various test-methods with colorful and informative console-output.
* For easy testing JavaScript in the console of an IDE, Browser-console or a terminal.
*/
// Helper constants and functions for the assertions:
// Note: Change of color happens as described here (this might not work everywhere):
// http:... |
import { VIEW_MODES } from "../lib/constants.js";
import ObjectNode from "./objectNode.js";
/**
* @desc <strong>Constructor for internal use only</strong>
*
* FrameNode instances represent mira.frame objects in a Max patcher. Using the FrameNode object, it is possible to see
* which Max objects intersect a given m... |
const path = require('path');
const os = require('os');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.