text stringlengths 3.22k 29.5k |
|---|
//On check si le navigateur est compatible
if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
var THREE = THREE;
//On décrit les variables
var container;
var editor, viewport;
var camera, scene, renderer, controls, infos, cube, dirLight, dirLightHeper, hemiLight, hemiLightHelper;
var shapes = [],
parcels = [],
e... |
'use babel';
export const navElsSelector =
'.note, .rest, .mRest, .beatRpt, .halfmRpt, .mRpt';
export const navElsArray = [
'note', 'rest', 'mRest', 'beatRpt', 'halfmRpt', 'mRpt'
];
// scans through SVG starting from element to find next element elementName
// (e.g. 'note'), within same staff and layer
export fun... |
const { contextBridge, ipcRenderer } = require('electron')
const needle = require('needle')
const { createCipheriv, publicEncrypt, constants, randomBytes, createHash } = require('crypto')
const USER_API_RENDERER_EVENT_NAME = require('../rendererEvent/name')
const sendMessage = (action, data, status, message) => {
ip... |
/**
* Data format:
*
--FormStreamBoundary1349886663601\r\n
Content-Disposition: form-data; name="foo"\r\n
\r\n
<FIELD-CONTENT>\r\n
--FormStreamBoundary1349886663601\r\n
Content-Disposition: form-data; name="file"; filename="formstream.test.js"\r\n
Content-Type: application/javascript\r\n
\r\n
<FILE-CONTENT>\r\n
--Fo... |
'use strict';
const ast = require('./ast');
const debug = {
depth: false
};
const globalDebugEnabled = false;
let results = null;
let functions = {};
functions.hello = function() {
return 'hello world';
}
function isValueLookupExpression(item) {
if ( Object.keys(item)[0] === '$value') {
return true;
}
... |
goog.module('plugin.file.kml.ui.PlacemarkEditUI');
goog.module.declareLegacyNamespace();
goog.require('os.annotation.annotationOptionsDirective');
const dispose = goog.require('goog.dispose');
const {getUid} = goog.require('ol');
const Feature = goog.require('ol.Feature');
const annotation = goog.require('os.annotati... |
import Cookies from 'js-cookie'
import request from '@/utils/request'
const app = {
state: {
sidebar: {
opened: !+Cookies.get('sidebarStatus'),
withoutAnimation: false
},
device: 'desktop',
schoolStatsShowControl: {
},
pageSelectArr: [], // 页... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseText = exports.isClose = exports.Node = void 0;
const lexer_1 = require("../lexer");
const Html_1 = require("./Html");
const tagClose_1 = require("./tagClose");
let temp = Symbol("temp");
let nextSibling = temp;
class Node {
c... |
const mongoose = require('mongoose');
const typeEquivalence = { // json-schema: mongoose
'array': Array,
'buffer': Buffer,
'boolean': Boolean,
'date': Date,
'mixed': mongoose.Schema.Types.Mixed,
'number': Number,
'objectid': mongoose.Schema.Types.ObjectId,
'string': String,
'object': Object,
'inte... |
class Type {
constructor(rawText) {
this.rawText = rawText;
this.typeName = Type.extractTypeName(rawText);
this.storedProperties = Type.extractStoredProperties(rawText);
}
static extractTypeName(rawText) {
const value = rawText
.split("\n")
.filter(line => line.includes('class') || li... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
import React, { useState, useEffect } from 'react';
import Web3 from 'web3';
import BigNumber from 'bignumber.js';
import { Tabs, Tab, Col, Toast, Button } from 'react-bootstrap';
import './components/app.css';
import './extra/css/style.css'
import Navigate from './components/Navigate'
import AddItems from './componen... |
'use strict';
const localVideo = document.querySelector('.localVideo');
const remoteVideo = document.querySelector('.remoteVideo');
const clientInfo = document.querySelector('.client.info');
const clientStatus = document.querySelector('.client.status');
const peerInfo = document.querySelector('.peer.info');
const peer... |
import React, { useEffect } from 'react'
import { connect } from 'react-redux'
import { makeStyles } from '@material-ui/core/styles'
import { Grid, Box, Container, Typography, Icon, Paper } from '@material-ui/core'
import ThumbUpAltOutlinedIcon from '@material-ui/icons/ThumbUpAltOutlined'
import ThumbDownAltOutlinedIco... |
/* global window */
import modelExtend from 'dva-model-extend';
import queryString from 'query-string';
import { config } from 'utils';
import { create, remove, update } from 'services/yewuyuan/application';
import * as applicationsService from 'services/yewuyuan/applications';
import { pageModel } from '../../common';... |
import React from 'react';
import './App.css';
import {
BrowserRouter as Router,
Switch,
Route,
Link
} from "react-router-dom";
import Species from './pages/Species';
import Nonprofits from './pages/Nonprofits';
import Habitats from './pages/Habitats';
import CaptivityPlaces from './pages/CaptivityPlaces';
impo... |
/*
* Copyright (c) 2014 <NAME>
*
* License/Terms of Use
*
* Permission is hereby granted, free of charge and for the term of intellectual property rights on the Software, to any
* person obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify
* and propagate fr... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.TransactionBase = undefined;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor... |
/*
* 核心功能:diff不同节点 http://note.youdao.com/noteshare?id=46a339a80be370f85ad999c1f3e539ee&sub=1DA66C35CE5B475B82E9C7C93E674FE1
*/
import Vnode from './vnode'
const hooks = ['create', 'update', 'remove', 'destory']
const emptyNode = Vnode('', {}, [], undefined, undefined)
const cbs = {};
function isDef(n) { return n !=... |
var Lighting = require('./lighting');
var NavMesh = require('./navMesh');
var DoorManager = require('./doorManager');
var Player = require('./entities/player');
var Nasty = require('./entities/nasty');
var NastySpawner = require('./entities/nastySpawner');
var Key = require('./entities/key');
var Exit = require('./ent... |
"use strict";
var $ = require("../core/renderer"),
Class = require("../core/class"),
commonUtils = require("../core/utils/common"),
isPlainObject = require("../core/utils/type").isPlainObject,
extend = require("../core/utils/extend").extend,
navigationDevices = require("./navigation_devices"),
... |
/*
* 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.
*/
//publish this content to the following url via HTTP GET + query string
var serviceUrl = 'http://localhost:8080/services/eventing?co... |
"use strict";
const chalk = require("chalk");
// Setup logger
const { getChildLogger } = require("@serverless-stack/core");
const logger = getChildLogger("cdk-watcher-state");
const { parseLintOutput, parseTypeCheckOutput } = require("./cdkHelpers");
const array = require("../../lib/array");
module.exports = class ... |
//declare arrays needed to populate tables and variable to keep track of total sales of all locations
var locationsArray = [];
var hoursArray = ['6:00 am', '7:00 am', '8:00 am', '9:00 am', '10:00 am', '11:00 am', '12:00 pm', '1:00 pm', '2:00 pm', '3:00 pm', '4:00 pm', '5:00 pm', '6:00 pm', '7:00 pm'];
var hourlyTotalsA... |
"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... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { httpActions } from '@codetanzania/ewea-api-client';
import { Connect, reduxActions } from '@codetanzania/ewea-api-states';
import { Col, Modal } from 'antd';
import { PlusOutlined } from '@ant-design/icons';
import isArray from 'loda... |
/**
* This module contains various utility functions for converting and
* validating BIP32 derivation paths.
*
* @module paths
*/
import {MAINNET} from "./networks";
import {P2SH} from "./p2sh";
import {P2SH_P2WSH} from "./p2sh_p2wsh";
import {P2WSH} from "./p2wsh";
const HARDENING_OFFSET = Math.pow(2, 31);
co... |
/* Buffalo by <NAME> - zlib license */
// based on http://bsonspec.org/#/specification
var Long = require('./extern/long').Long
var IEEE754 = require('./extern/buffer_ieee754')
var toSource = require('../../node-tosource/tosource')
var binary = require('./binary')
var ObjectId = require('./objectid')
var DBRef = requ... |
'use strict';
/**
* @module edl_composer
*
* @author <NAME>
* @description file ELD composer to create Edit Decision List. EDL, Edit Decision List, is a plain text format that describes a video sequence. It can be opened in a video editing software to reconnect media to assemble a video sequence.
* [Apple EDL spec]{@l... |
import cassandra from 'cassandra-driver';
import { Client, Consumer } from 'kafka-node';
import restify from 'restify';
const phase1_client = new cassandra.Client({
contactPoints: ['cassandra.default']
});
// TODO: multiple data centre deploy would require a different replication
// strategy below.
console.log(`
Re... |
var Promise = global.Promise || require('es6-promise');
var zlib = require('zlib'), stream = require('stream');
exports.ZipFile = ZipFile;
exports.ZipEntry = ZipEntry;
exports.create = function (map) {
var ret = new ZipFile();
if (map && typeof map === 'object') {
for (var keys = Object.keys(map), i ... |
import fetch from "node-fetch";
import cheerio from "cheerio";
import { renderToString } from "react-dom/server";
import XMLToReact from "@condenast/xml-to-react";
import YouTubeEmbed from "../components/YouTubeEmbed";
import VimeoEmbed from "../components/VimeoEmbed";
import LoomEmbed from "../components/LoomEmbed";
i... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import styles from './styles.scss'
export default class Alert extends Component {
constructor(props) {
super(props)
this.state = {
Close: false,
animation: false
}
}
static propTypes = {
message: PropTypes.st... |
/*
Synchronously grabs data from the UH sites and writes it to a json file.
IMPORTANT: don't run this script directly, meant to be called from
grab.sh. also, this won't run from node; it'll only
work with phantomjs.
*/
//remember that phantom's `fs` is NOT node's `fs`.
var async = require('async')
, fs ... |
var Moo = {
defined: function(obj){
return (obj != undefined);
},
type: function(obj){
if (obj == null) return false;
if (!Moo.defined(obj)) return false;
var type = typeof obj;
if (type == 'object' && obj.nodeName){
switch(obj.nodeType){
case 1: return 'element';
case 3: return (/\S/).test(... |
"use strict";
var classname = document.getElementsByClassName("js-prod-href__a");
for (var i = 0; i < classname.length; i++) {
classname[i].addEventListener('click', PrevNextFunction, false);
}
function PrevNextFunction(){
var url = this.getAttribute("href"),
nextParams = url.split('?')[1].split('&'),
params... |
// Initialize Phaser, and create a 320x505px game
var game = new Phaser.Game(320, 505, Phaser.AUTO, 'gameDiv');
// Create necessary sence
// Game's start state
var boot = {
preload: function(){
// Scale manager
if(!game.device.desktop){
this.scale.scaleMode = Phaser.ScaleManager.EXACT_FIT;
this.scale.forc... |
import React, { useEffect, useState } from "react";
// nodejs library that concatenates classes
import classNames from "classnames";
// nodejs library to set properties for components
import PropTypes from "prop-types";
import SwipeableViews from "react-swipeable-views";
// @material-ui/core components
import { makeSt... |
const fs = require("fs");
const path = require("path");
const Settings = require("../settings");
const Menu = require("../menu");
const { dialog, shell, app, BrowserWindow, Notification } = require("electron");
const getMode = require("../shared/getMode");
module.exports = {
getTemplates: (event) => {
let templa... |
var container, scene, camera, renderer;
var controls;
var collideMeshList = [];
var radiusList = [];
var circles = [];
var counter = 0;
var deg = Math.PI / 2;
var crash;
var timeStart;
var timeSurvived;
var hit = false;
var out_range = false;
var _prob = 15;
init();
//location.reload();
animate();
function init() {... |
var hombre;
var juego;
window.onload = function(){
var juego = function(){
var letra = ["Hola","Perdo","Juan","Camino","Asalto",
"Comida","Carga","pintura","agua","fuego",
"tierra","crema","azul","cielo","tecla",
"silla","perro","gato","salsa","automovil","carro",
"lora", "libro", "bus", "pantalla", "aere... |
/**
* Created by bryancross on 7/17/18.
*/
module.exports = RepoCreator;
/*jshint esversion: 6 */
const ghClient = require('@octokit/rest');
const http = require('http');
const HashMap = require('hashmap');
const appDebug = require('debug')('RepoCreator:appDebug');
const appError = require('debug')('RepoCreator:ap... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { updateData } from "../../../store/actions/rootActions";
import { ClickOutsideComponent } from "../../../components/utils";
import icons from "../../../configs/icons";
import TextItem from "./textItem";
import { ClickOutsideOptions... |
import {internal, forProxying, SFOptions, HotReload} from "./shared.js";
import {$} from "./sf-dom.js";
import {loader as Loader} from "./sf-loader.js";
import {component as Component} from "./sf-component.js";
import {getCallerFile, modelKeys, findBindListElement, isClass, proxyClass} from "./utils.js";
import {ModelI... |
import _trim from "lodash/trim";
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).enumerabl... |
const fs = require('fs');
const sources = require('editor-layer-index/imagery.json');
const prettyStringify = require('json-stringify-pretty-compact');
var imagery = [];
// ignore imagery more than 20 years old..
var cutoffDate = new Date();
cutoffDate.setFullYear(cutoffDate.getFullYear() - 20);
const blacklist = {
... |
import {Color} from './../color';
import {Range} from './../range';
export class Chromosome {
constructor(adapter, config, ideo) {
this._adapter = adapter;
this._model = this._adapter.getModel();
this._config = config;
this._ideo = ideo;
this._color = new Color(this._config);
this._bumpCoeff... |
import React, {useState} from 'react'
import {
CButton,
CCard,
CCardBody,
CCardFooter,
CCol,
CContainer,
CForm,
CInput,
CInputGroup,
CInputGroupPrepend,
CInputGroupText,
CRow
} from '@coreui/react'
import CIcon from '@coreui/icons-react'
import {auth, ge... |
"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... |
'use strict';
var codec = require('../lib/codec');
var defs = require('../lib/defs');
var assert = require('assert');
var ints = require('buffer-more-ints');
var C = require('claire');
var forAll = C.forAll;
// These just test known encodings; to generate the answers I used
// RabbitMQ's binary generator module.
var... |
/**
* 作者: 天天修改
* github: webkixi
* 小程序的模板真是又长又臭
*/
const app = null //getApp()
const Core = require('../aotoo/core/index')
const lib = Core.lib
function cls(param) {
return (param && (param.itemClass || param.class)) || ''
}
function sty(param) {
return (param && (param.itemStyle || param.style)) || ''
}
fun... |
/* eslint-disable max-lines */
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { geocodeByAddress, getLatLng } from 'react-places-autocomplete';
import Wrapper... |
function getOffset(el) {
const rect = el.getBoundingClientRect();
return {
left: rect.left + window.scrollX,
top: rect.top + window.scrollY
};
}
$(document).ready(function () {
var $theWindowSize = $(this).width();
var item1 = $("#slide1").html();
var item2 = $("#slide2").html();... |
import axios from "axios";
import Feature from "ol/Feature";
import {Point, Polygon} from "ol/geom";
import WFS from "ol/format/WFS";
import handleAxiosResponse from "../../../../utils/handleAxiosResponse";
import {buildFilter, buildStoredFilter} from "./buildFilter";
/**
* Makes sure that the filter is ready to be u... |
$(document).ready(function () {
Biblioteca.validacionGeneral('form-general');
i = 0;
$('#tabla-data-despachoord').DataTable({
'paging' : true,
'lengthChange': true,
'searching' : true,
'ordering' : true,
'info' : true,
'autoWidth' : false,
... |
var $video;
/********************************************
* Responsive actions to window and document
*******************************************/
$(document).ready(function () {
'use strict';
/*********************************************
* If speech recognition not available,
* display message and hi... |
import * as acorn from 'acorn';
import * as walk from 'acorn-walk';
import * as astring from 'astring';
import { on, removeAllEventListeners } from '../events';
import { beep, frequency, note, song } from '../audio';
import { sound } from '../audio/sound';
import { speak } from '../audio/speech';
import { circle } fro... |
"use strict";
var markerIcon = {
anchor: new google.maps.Point(22, 16),
url: '/assets/frontend/images/marker.png',
}
function mainMap(locations) {
//console.log(locations);
//console.log(locations.length);
var mapZoomAttr = $('#map-main').attr('data-map-zoom');
... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import {
either,
isEmpty,
isNil,
keys,
map,
pipe,
propSatisfies,
take,
} from 'ramda'
import {
Button,
Card,
CardContent,
Col,
DateInput,
Grid,
Row,
Spacing,
Tooltip,
} from 'former-... |
var info=[];
var bikes_qty=[];
var prices_h=[];
var prices_d=[];
var insurance_b=[];
var hr=0,date_in="",date_out="";
var helmet,lock,basket,babyseat,tax_st=1,ins_st=0;
var subtotal=0,total=0,subtotal_with_discount=0,discount=0,insurance=0,tax=0;
var host=$(location).attr('hostname');
$(document).ready(function(){
... |
embryo.vrmt = {};
/**
* @typedef {{
* id: (string),
* routeId: (string)
* locationsToAssess: (Array<RouteLocation>),
* started: (number|undefined),
* finished: (number|undefined),
* locationAssessments: (Array<Array<LocationAssessment>>|undefined)
* }} AssessmentOptions
*/
/**
* @classdesc
* Represents ris... |
import $ from 'jquery';
// import debounce from 'lodash-es/debounce';
// import * as monaco from 'monaco-editor';
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
import {editor_box, resize_webtool, do_layout,
analysis_up, analysis_right, analysis_down} from './layout';
// import {smt2} fro... |
/* eslint react/no-danger: 0 */
import { arrayOf, func, string, object, shape } from "prop-types";
import styled, { keyframes } from "styled-components";
import React, { Component } from "react";
import { withRouter } from "react-router";
import {
Action,
Avatar,
Bubble,
BubbleBlock,
Container,
Message,
... |
'use strict';
// 各々変数の定義
const showTimeZones = document.getElementById("showTimeZones"),
noTimeZone = document.getElementById("noTimeZone"),
selectTimeZonesForm = document.getElementById("selectTimeZonesForm"),
timeZonesElement = document.getElementById("timeZonesElement"),
selectedTimeZones = [],
timeZones ... |
const variants2standard = {
cn: ['STCharacters', 'STPhrases'],
hk: ['HKVariantsRev', 'HKVariantsRevPhrases'],
tw: ['TWVariantsRev', 'TWVariantsRevPhrases'],
twp: ['TWVariantsRev', 'TWVariantsRevPhrases', 'TWPhrasesRev'],
jp: ['JPVariantsRev', 'JPShinjitaiCharacters', 'JPShinjitaiPhrases'],
};
const standard2... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(require("react"));
var _overrides = require("../helpers/overrides.js");
var _styledComponents = require("./styled-components.js");
var _focusVisible = require("../utils/focus... |
/**
* preview image
*/
var PreviewImage=function(){
var Preview=function(params,keyword){
//关闭图片预览Modal
$(document).on('click','.image-preview-close',function(){
$('.image-preview-background').fadeOut(500).removeClass('image-preview-background-hover');
$('.shot-container .curPreview').removeClass(... |
/**
* @module config-model
*/
const config = require('../../config/default-config');
const pkg = require('../../package.json');
const mergeWith = require('lodash/mergeWith');
const path = require('path');
const fs = require('fs');
const url = require('url');
const themePath = path.join(__dirname, '../../public/css'... |
//import EditorJS from "@editorjs/editorjs";
const scrollUp = document.querySelector("#scroll-up");
const burger = document.querySelector("#burger-menu");
const ul = document.querySelector("nav ul");
const nav = document.querySelector("nav");
const header = document.querySelector(".bio");
const sectionOne = docume... |
jQuery.fn.brTelMask = function () {
return this.each(function () {
var el = this;
$(el).focus(function () {
$(el).mask("(99) 9999-9999?9");
});
$(el).focusout(function () {
var phone, element;
element = $(el);
element.unmask();
... |
$("div#introdiv").css("margin-top", window.outerHeight / 15);
// Galaxy script start
var w = $("div#stardustForm").width() / 1.7,
h = window.innerHeight * 0.6,
margin = { top: 0, right: 0, bottom: 0, left: 0 },
radius = 6,
refresh_size = 90,
size = '11px',
newData,
particleData;
//Mobile View Respons
if... |
'use strict';
import {EventEmitter} from 'events';
import {ipcRenderer as ipc} from 'electron';
import React, {PropTypes} from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import classNames from 'classnames';
import throttle from 'lodash.throttle';
import TitleBar from '../componen... |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
const express = require('express');
const router = express.Router();
const async = require('async');
const utils = require('../utils');
router.get('/', function ... |
import React from 'react';
import PropTypes from 'prop-types';
import styles from './RTE.css';
import cn from 'classnames';
import ContentEditable from 'react-contenteditable';
import Toolbar from './components/Toolbar';
import {
insertNewLine,
insertText,
getSelectionRange,
replaceSelection,
cloneNodeAndRang... |
/*!
* rete-connection-plugin v0.9.0
* (c) 2019 <NAME>
* Released under the MIT license.
*/
'use strict';
function ___$insertStyle(css) {
if (!css) {
return;
}
if (typeof window === 'undefined') {
return;
}
var style = document.createElement('style');
style.setAttribute('type', 'text/css');
... |
import React, { Component } from 'react';
import { Container, Footer, Text, Button, Icon, H1 } from 'native-base';
import { Col, Row, Grid } from 'react-native-easy-grid';
import { StyleSheet, View, PixelRatio, Platform, Dimensions } from 'react-native';
import { connect } from "react-redux";
import PartnerhsipUpgrad... |
/* Copyright (c) 2000-2011 by SuperMap Software Co., Ltd.*/
/**
* 此处定义变量,实现地图可配置化,定义实例中用到的地图URL,便于以后更新数据的。
**/
var htmlUrl = document.location.toString(),
stringIndex = htmlUrl.indexOf("//"),
subString = htmlUrl.substring(0, stringIndex-1), org;
if (subString == "file") {
org = "http://localhost:8090"... |
'use strict';
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.ap... |
import { langsByISO, langsByName, booksAndChapters } from "./langs.js";
// Some stuff about the DarkMode
if (window.matchMedia('(prefers-color-scheme)').media === 'not all') {
document.querySelector('link[href="/light.css"]').media = 'all';
}
// // Related to the autohide of the choiceBar
// var prevScrollpos = w... |
// export { parseQuiz as default}
//
// import searchAll from "../utils/searchall.js"
// import shuffle from "../utils/shuffle.js"
// import replaceAll from "../utils/replaceall.js"
// import randomPermutation from "../utils/randompermutation.js"
// This function parses the quiz questions according to the specified op... |
import AJV from "ajv";
import AJVKeywords from "ajv-keywords";
import { Clone, ToJSON, IsString, Assert, E, CE, IsArray, DEL } from "js-vextensions";
import { AssertV } from "../Accessors/Helpers.js";
import { UUID_regex } from "./KeyGenerator.js";
export const ajv = AJVKeywords(new AJV({ allErrors: true }));
export fu... |
/**
* Created by liuxh04 on 2016/6/30.
*/
"use strict";
var hashes = [], uploadedImage = 0,
uploader,
selectedMaterial = 0,
panoramaUrl = $('.jumpToPanorama').val()
;
var component = {
picName : $('.pic-name'), // 图片标题输入框
padResult: $('.pad-result'), ... |
export default {
updateGameList,
getGames,
getColorToPlay,
getCurrentGames,
getCurrentLatestGame,
addCurrentGame,
deleteCurrentGame,
clearGames,
clearCurrentGames,
deDupeGames,
}
let yowProxyUrl = 'https://yowproxy.herokuapp.com'
// module globals
let user = ''
// Check if any new games have be... |
// Displaying name of the user
let user=prompt("Nice to meet you! Please tell us your name (or even a nickname!).","<NAME>");
if(user==null) user="<NAME>";
document.getElementById('head').innerHTML=`Welcome ${user} !`;
document.getElementById('text').innerHTML="Remember, you're not alone because we are always w... |
// LITHUANIAN
var lang = {
"AD": "Andora",
"AE": "Jungtiniai Arabų Emyratai",
"AF": "Afganistanas",
"AG": "Antigva ir Barbuda",
"AI": "Angilija",
"AL": "Albanija",
"AM": "Armėnija",
"AO": "Angola",
"AQ": "Antarktis",
"AR": "Argentina",
"AS": "Amerikos Samoa",
"AT": "Austr... |
import React, { useEffect, useState } from 'react';
import { useHistory, useLocation } from 'react-router-dom';
import {
// CBadge,
CCard,
CCardBody,
CCardHeader,
CCol,
// CDataTable,
CRow,
// CPagination,
CLink,
CTabs,
CContainer,
CInput,
CTabContent,
CButton,
CInputGroup,
CLabel,
C... |
// 0x0701FDC8 - 0x0701FEB8
import {
gsDPSetTextureImage, gsDPLoadSync, gsDPLoadBlock, gsSPVertex, gsSP2Triangles, gsSP1Triangle,
gsSPEndDisplayList, gsDPPipeSync, gsDPSetCycleType, gsDPSetRenderMode, gsDPSetDepthSource,
gsDPSetFogColor, gsSPFogPosition, gsSPSetGeometryMode, gsDPSetCombineMode,
gsSPClea... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.BAR_WIDTH = exports.SCROLLBAR_WIDTH = void 0;
var _h = _interopRequireWildcard(require("../utils/h"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBab... |
'use strict';
exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _react = requi... |
////////////////////////////////////////////
//////// MOVE CHECKING ////////
////////////////////////////////////////////
const FORWARD = 'forward'
const BACK = 'back'
const LEFT = 'left'
const RIGHT = 'right'
const FORWARDLEFT = 'forwardleft'
const FORWARDRIGHT = 'forwardright'
const BACKLEFT = 'backleft... |
//update functions for new html radio/sum/etc...
function clearSettings(){
$('#apple').removeClass('d-none');
$('#carrot').addClass('d-none');
$('#banana').addClass('d-none');
//$('#addition').prop('checked',true);
//$('#subtraction').prop('checked',true);
$('#typeAddSub1').prop('checked',true);
$('[name... |
// MODULES //
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import logger from 'debug';
import moment from 'moment';
import stringify from 'csv-stringify';
import Card from 'react-bootstrap/Card';
import Button from 'react-bootstrap/Button';
import ButtonGroup from 'react-boot... |
'use strict'
const fs = require('fs')
const ejs = require('ejs')
const path = require('path')
const crypto = require('crypto')
const fetch = require('node-fetch')
const worker = require('./worker.js')
class Blacklist {
constructor () {
this.whitelist = require('./custom.whitelist')
this.custom_blacklist = ... |
// 载入必要的包
const nconf = require('nconf')
const {
CronJob
} = require('cron')
const path = require('path')
const winston = require('winston')
const fs = require('fs')
// const { promisify } = require('util')
const {
preStart
} = require('./src/preStart')
// 载入网易云 API
const API = require('./src/neteaseAPI/entrance')... |
"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------... |
import React, { PropTypes, Component } from 'react';
import { createStore, combineReducers } from 'redux';
import {render} from 'react-dom';
import { Provider, bindActionCreators, connect } from 'react-redux';
import objectAssign from 'object-assign';
import dateHelper from './businessLogic/dateHelper';
import BoarDate... |
import React, { useState, useEffect } from "react";
import live_peer_data from "../Livepeer/live_peer_data";
import "../css/window.scss";
import ShakaPlayer from "shaka-player-react";
import "shaka-player/dist/controls.css";
import axios from "axios";
import styled from "styled-components";
import CopyIcon from "../ass... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
'use strict';
var test = require('tape');
var u = require('unist-builder');
var visit = require('unist-util-visit');
var remark = require('../packages/remark');
var commonmark = {commonmark: true};
var pedantic = {pedantic: true};
var uncollapsable = {start: {line: 1, column: NaN}, end: {line: 1, column: NaN}};
test... |
const Utils = {
factorial(n) {
let fac = 1n;
for (let i = BigInt(n); i > 1n; i--) {
fac *= i;
}
return fac;
},
number_of_digits(n) {
let digits = 0n;
while (n > 0n) {
digits++;
n /= 10n;
}
return digits;
},
random_number(min, max) {
min = min ?? 2n;
max = max ?? 99999999999999999999... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.