text stringlengths 3.22k 29.5k |
|---|
// Copyright 2017, Google, Inc.
// Licensed under the Apache License, Version 2.0 (the 'License');
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... |
'use strict';
const linz = require('../');
const async = require('async');
const deep = require('deep-diff');
const moment = require('moment');
const { deprecate } = require('util');
const { getTransposeFn } = require('../lib/util');
const hasValue = (val) => {
if (typeof val === 'undefined' || val === '' || va... |
/**
* Functional library
* @namespace Functional
*/
var Functional = { };
/**
* Returns a clone of the object
* @param {Object} event Object
* @return {Object} clone
*/
Functional.clone = function (object) {
return Functional.extend({}, object);
};
/**
* Returns a clone of the object, with the properties of... |
// this is the main class for generating a person
const Nomina = require('nomina');
const Personae = require('personae');
const Roll = require('roll');
const path = require('path');
const rootDir = path.join(__dirname, '..');
const libDir = path.join(rootDir, 'lib');
const defaults = require(path.join(libDir, 'defaults... |
import React from "react";
// import { Dialog } from "@material-ui/core";
import { useState } from "react";
import { Modal, Button } from "react-bootstrap";
import { deletebuyphaseById, getbuyphaseById, updatebuyphaseById } from "src/api/apiBuyPhase";
const BuyPhaseTable = ({item}) => {
const [show, setShow] = us... |
$.ajaxSetup({headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}});
layui.use(['form', 'layedit', 'laydate'], function(){
var form = layui.form
,layer = layui.layer
,layedit = layui.layedit
,laydate = layui.laydate;
//创建一个编辑器
var editIndex = layedit.build('LAY_demo_editor');
});
//添... |
let currentTetracubeIndex = -1;
let cubeSideLength = 0.15;
let isGamePaused = false;
let isGameOver = false;
let collisionMap = new Map();
let gameRefreshTime = 1000; // In Milliseconds
let now;
let last = performance.now();
let deltaTime = 0;
let tetracubeTypes = [
() => new ShapeI(),
() => new ShapeL(... |
const fs = require('fs')
const path = require('path')
const argv = require('yargs').argv
const DocBuilder = require('tiny-attribution-generator/lib/docbuilder').default
const TextRenderer = require('tiny-attribution-generator/lib/outputs/text')
.default
const TemplateRenderer = require('tiny-attribution-generator/lib... |
const localStorage = window.localStorage;
const sessionStorage = window.sessionStorage;
// 设置localStorage存储数据
export const setLocal = (name, content) => {
if (!name) return;
if (typeof content !== "string") {
content = JSON.stringify(content);
}
localStorage.setItem(name, content);
};
// 获取localStorage存储数据
expo... |
//global variables that correlate to IDs from index
var strButton = document.querySelector("#start");
var homeScreen = document.querySelector("#home");
var questionContainerEl = document.querySelector("#question-container");
var questionEl = document.querySelector("#question");
var answerBtnEl = document.querySelector(... |
import { Box, Text, TextField, Image, Button } from '@skynexui/components';
import React, { useEffect, useState } from 'react';
import { useRouter } from 'next/router'
import appConfig from '../../config.json';
import { ButtonSendSticker } from '../components/ButtonSendSticker'
import { createClient } from '@supabase/... |
import React, { useState } from 'react'
import { useDispatch } from 'react-redux'
import {
format,
isAfter
} from 'date-fns'
import {
addNewEvent,
editExistingEvent
} from '../reducers/eventReducer'
import {
setNotification,
expiredTokenNotification,
notificationTypes
} from '../reducers/notificationReduc... |
/**
* panel.js
*
* @auteur <NAME>
* @Copyleft 2013-2015
* @date 13/12/2013
* @version 0.2.0
* @revision $8$
*
* Fonction generique de création de fenetre et menu
*
* @date revision <NAME> 03/02/2015 Gestion de la fenêtre active grace au bouton radio avant le titre de la fenêtre
* @date ... |
// This file contains all functions for modifying the localStorage and
// display the data as a table-like list after any modification.
function addColumn(key, colPos, colCells=null, displayTable=true) {
var csv = null
var cell = null
var cells = null
var rows = getRows(key)
// No rows there, yet:
if(... |
"use strict";
var OMDB_API_KEY = "<KEY>";
var app = Vue.createApp({
data: function data() {
return {
search_query: "Batman",
search_year: '',
search_type: '',
movies_list: [{
"Title": "<NAME>",
"Year": "2005",
"imdbID": "tt0372784",
"Type": "movie",
... |
"use strict";
/* jshint esnext: true, globalstrict: true, undef: true */
/* global _ : true, console, require, process */
const _ = require('lodash');
const cheerio = require('cheerio');
const Handlebars = require('handlebars');
const fs = require('fs');
const util ... |
import _ from 'lodash';
import { quotesIfString, complexValueCheck, normalizeNull } from './utils.js';
export const getDiffArray = (file1Obj, file2Obj, propChain = []) => {
const entriesFile1 = Object.entries(file1Obj);
const entriesFile2 = Object.entries(file2Obj);
const diffArray = entriesFile1
.map(([pr... |
import React, { Component } from 'react'
import classNames from 'classnames'
import PropTypes from 'prop-types'
// import Checkbox from '../checkbox/index'
import TreeNode from './TreeNode'
import isEqual from 'lodash/isEqual'
import {
calcDropPosition,
deepClone,
getChildren,
getDisabled,
getAll
} from './ut... |
import React, { useState, useEffect } from 'react';
import ScrumboardList from '../../components/ScrumboardView/ScrumboardList/ScrumboardList'
import EditUserstoryForm from '../EditUserstoryForm/EditUserstoryForm';
import AddUserstoryForm from '../AddUserstoryForm/AddUserstoryForm';
import DeleteUserstory from '../Dele... |
import React, { createElement, useState, useCallback, memo, useRef, useEffect } from 'react';
import PropTypes from 'prop-types';
import { jsxs, jsx } from 'react/jsx-runtime';
const noop = () => {};
const isFn = value => typeof value === 'function';
const isUndefined = value => typeof value === 'undefined';
const get... |
import {
Box,
Disclosure,
Flex,
Text,
Divider,
Icon,
Tooltip,
Card,
Stack,
Button,
Alert,
DropdownMenu,
Radio,
Set
} from "bumbag";
import { Fragment } from "react";
import { AdminLayout, Header } from "components";
import { TextField, RutField } from ... |
import React, {Component} from 'react';
import {connect} from "react-redux";
const circleImg = 'data:image/svg+xml;base64,PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VO<KEY>cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9... |
import React, { Component } from 'react'
import MediaQuery from 'react-responsive';
import { Link } from 'react-router-dom';
import baklava from '../baklava.png';
import joe from '../joe.png';
import pangolin from '../pangolin.png';
import kyberSwap from '../kyber.png'
import baklava_mainBottom from '../baklava_... |
'use strict';
const apiUtils = require('./common/apiUtils');
const dbcfg = require('./common/dbConfig');
const dbconn = require('./common/dbConnection');
const dblib = require('./common/dbLib');
const dbrel = require('./common/dbRelations');
const reqHnd = require('./common/RequestHandler.js');
const tagsLib = requir... |
const _ = require('lodash')
const config = require('../config/config')
const Helper = require('../helper')
const { SocketService } = require('./socket.service')
const SoundService = require('./sound.service')
const { gpio, GpioService } = require('./gpio.service')
const WASON_LEARING_BUTTON_1_PIN = 13
const WASON_LEAR... |
import HEXLIB from '../vendor/hexlib'
import arrayShuffle from '../vendor/array-shuffle'
////////////////////////////////////////////////////////////////////////////////
// GAME BOT
const GameBot = (game, config) => {
////////////////////////////////////////
// PUBLIC
const bot = {
// PLAY BOT
// The ... |
/*
to do:
-Question icon button [sends to youtube link (if can shows right in google meet)]
-Create video instuction for this app
*/
const readyObserver = new MutationObserver(function (mutations, me) {
if (document.getElementsByClassName('c8mVDd')[0]) {
let s = document.createElement('script')
... |
import React, {useContext, useEffect, useState} from 'react';
import {
Dimensions,
Text,
View,
StyleSheet,
ScrollView,
Alert,
} from 'react-native';
import {
NativeBaseProvider,
Select,
Spinner,
HStack,
Switch,
VStack,
Input,
} from 'native-base';
import colorConstant from '../../../constants/... |
'use strict';
var yeoman = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
var path = require('path');
var _ = require('lodash');
var camelize = require('underscore.string/camelize');
var slugify = require('underscore.string/slugify');
var humanize = require('underscore.string/h... |
const async = require('async');
const _ = require('lodash');
const schemaVersion = 8;
const defineTablesAndIndexes = (KEYSPACE) => {
const tables = [];
const indexes = [];
let tableIndexes = [];
if (!KEYSPACE) {
console.log('You must specify a keyspace, abandoning keyspace creation.');
return;
}
... |
reloadList(1);
var haflag = false;
function reloadList(page) {
var limit = $('#limit').val();
var search = $('#search').val();
getPoolList(page, limit, search);
if (page == 1) {
options = {
currentPage : 1
};
$('#pageDivider').bootstrapPaginator(options);
}
}
function removeAllCheck() {
var boxes = docu... |
// JavaScript Document
imgdir = 'img/';
var score = 0;
var kliky = 0;
var selectedr = null;
var selectedc = null;
var game_is_over = false;
var show_messages = false;
var maxdisks;
var plocha = new Array(2);
var theAnim;
function nastavVezu(disks) {
var len = plocha[0].length;
for (i = 0; i < len; i++) {
... |
/**
*
* Javascript color conversion
* http://www.webtoolkit.info/
*
**/
function HSV(h, s, v) {
if (h <= 0) { h = 0; }
if (s <= 0) { s = 0; }
if (v <= 0) { v = 0; }
if (h > 360) { h = 360; }
if (s > 100) { s = 100; }
if (v > 100) { v = 100; }
this.h = h;
this.s = s;
this.v = v;
}
function RGB(r, g, ... |
import React, { Component } from 'react';
import './App.css';
import adapter from './adapter' //TODO problem starts here
import Navbar from './nav/Navbar'
import Login from './nav/Login'
import Signup from './nav/Signup'
import CalendarContainer from './CalendarContainer'
import { Route, Switch, Redirect, withRouter ... |
$(document).ready(function () {
var patient_id = localStorage.getItem("patient_id");
get_VitalSigns(patient_id);
var intervalId = window.setInterval(function(){
get_VitalSigns(patient_id);
}, 10000);
get_excelSigns(patient_id);
getbundelsData(patient_id);
get_sofaScore(patient_id);
get_patientReportImage(p... |
//マップの移動、ズーム操作を無効
map1.touchZoom.disable();
map1.doubleClickZoom.disable();
map1.scrollWheelZoom.disable();
map1.boxZoom.disable();
map1.keyboard.disable();
map1.dragging.disable();
//result関数を上書き(「Wライダ」→「Wライダ」に置換)
function result(){
var radio = document.getElementsByName('trigger');
var NM = [];
for(let i = 0; i < 2... |
'use strict'
const margin = {
top: 48,
right: 72,
bottom: 120,
left: 72
}
const dotSize = 7
const dotSpacing = 5
const dotBreak = 25
const dotBreakDistance = 20
const dotStrokeRadius = 4
const width =
window.innerWidth < 1000
? window.innerWidth - margin.left - margin.right
: 1000,
height =... |
'use strict';
const IssuesModalController = function IssuesModalController(
$scope,
$mdDialog,
$mdMedia,
$interval,
TestService,
test,
isNewIssue,
toolsService,
messageService,
) {
'ngInject';
const vm = {
isNewIssue: isNewIssue,
issueJiraIdInputIsChanged: f... |
// Copyright 2015-2021, University of Colorado Boulder
/**
* Displays a Property of type {number} in a background rectangle.
*
* @author <NAME> (PixelZoom, Inc.)
*/
import Utils from '../../dot/js/Utils.js';
import merge from '../../phet-core/js/merge.js';
import StringUtils from '../../phetcommon/js/util/StringU... |
'use strict';
var DPRComponentRegistry = (function () {
const componentTypeTranslation = 'translation'
const componentTypeTipitaka = 'tipitaka'
const componentTypeLanguage = 'language'
const registry = [
{
id: 'my',
name: 'Myanmar',
shortDescription: 'mūla, aṭṭhakathā, tīkā',
... |
function find (source, itemStart, itemEnd) {
var indexStart = source.indexOf(itemStart);
if (itemStart != -1) {
var cut = source.substring(indexStart + itemStart.length);
var indexEnd = cut.indexOf(itemEnd);
if (indexEnd != -1) {
return cut.substring(0, indexEnd);
}
}
return null;
}
function atob(da... |
//var xmlParse = require('xml-parser');
var xmlParseString = require('xml2js').parseString;
var events = require('events');
var inspect = require('util').inspect;
var childProcess = require('child_process');
/*
Scheduler abstraction layer
Engine=SLURM
exposes
dumper(jobObject) Returns a string
wat... |
/*
Use o método de redução para analisar dados
Array.prototype.reduce(), ou simplesmente reduce(), é a mais geral de todas as operações de array em JavaScript. Você pode resolver quase todos os problemas de processamento de array usando o reducemétodo.
O reducemétodo permite formas mais gerais de processamento de arra... |
const dgram = require('dgram');
const PartialValue = require('../../../components/kv-store/components/PartialValue');
const Value = require('../../../components/kv-store/components/Value');
const MessageProtocol = require('./MessageProtocol');
const RoutingTable = require('./RoutingTable');
const Node = require('./Node... |
import React, { useState, useContext, useEffect } from "react";
import {
StyleSheet,
Dimensions,
ScrollView,
Image,
TouchableWithoutFeedback,
KeyboardAvoidingView,
Keyboard,
Platform,
SafeAreaView,
TouchableOpacity,
Picker,
} from "react-native";
import { Block, Text, Input, Button } from "galio-f... |
// Generated by BUCKLESCRIPT VERSION 5.0.4, PLEASE EDIT WITH CARE
'use strict';
var Block = require("bs-platform/lib/js/block.js");
var Curry = require("bs-platform/lib/js/curry.js");
var Rebase = require("@glennsl/rebase/lib/js/src/Rebase.bs.js");
var Caml_option = require("bs-platform/lib/js/caml_option.js");
funct... |
/* eslint-disable */
'use strict';
import plugins from 'gulp-load-plugins';
import yargs from 'yargs';
import browser from 'browser-sync';
import gulp from 'gulp';
import rimraf from 'rimraf';
import yaml from 'js-yaml';
import fs from 'fs';
import dateFormat from 'dateformat';
import webpackStream from 'webpack-strea... |
//author @mu 2016/4/25
var GRABABLE_MASK_BIT = 1 << 31
var NOT_GRABABLE_MASK = ~GRABABLE_MASK_BIT
var FLUID_DENSITY = 0.00014
var FLUID_DRAG = 1.5
var modifyX = 50
var seeExp2 = myLayer.extend({
sprite: null,
space: null,
changeDelete: true, //是否退出删除
layerName: "seeExp2",
preLayer: "seeLayer",
d... |
// copied and adapted from https://github.com/geoadmin/mf-geoadmin3/blob/master/src/components/StylesFromLiteralsService.js
import { Circle, Icon, Fill, RegularShape, Stroke, Style, Text } from 'ol/style'
import { Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon } from 'ol/geom'
import { isNumber }... |
"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, useRef } from "react";
// @material-ui/core components
import { makeStyles } from "@material-ui/core/styles";
// core components
import GridItem from "../../components/Grid/GridItem.js";
import GridContainer from "../../components/Grid/GridContainer.js";
// import Card1 from "../..... |
// Requirements
const fs = require('fs');
const path = require('path');
const tesults = require('tesults');
const uuidv5 = require("uuid/v5");
const util = require("util");
// Args
module.exports.dirs = [];
module.exports.console = {log: true};
module.exports.tesults = {target: undefined}
// Constants
const defaultTi... |
/* Automatic transcription using SAS
MIT License (MIT)
Copyright (c) 2016 <NAME>
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 r... |
// ## pm04-类
// npx tsc --pretty
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 ... |
// Reference: https://leanpub.com/D3-Tips-and-Tricks/read#leanpub-auto-starting-with-a-basic-graph
const D3Component = require('idyll-d3-component');
const d3 = require('d3');
import { headlines } from './headline-data.js';
// const science = require('science');
// const loess = science.stats.loess().bandwidth(.2);
... |
/**
* @license
* Copyright 2019 Google LLC. 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
*
* Unless required by a... |
var is_mobile = false;
function find_limits(mapsample, data) {
var minx = Infinity;
var miny = Infinity;
var maxx = -Infinity;
var maxy = -Infinity;
var min = Infinity;
var max = -Infinity;
var first_sample = data[0];
var last_sample = data[data.length - 1];
var tolerance = 0.1;
var samples = Math.... |
/* eslint-env browser */
/* eslint-disable no-multi-str */
function cancelDefault (e) {
e.preventDefault()
e.stopPropagation()
}
const warningMsg = () => 'Leaving will interrupt transfer?\n'
const rmMsg = () => !confirm('Remove file?\n')
const barName = document.getElementById('dlBarName')
const barPc = document... |
var JessieFunction = require('../libs/jessie/Function.js');
var JessieRendition = require('../libs/jessie/Rendition.js');
var JessieConstructorFn = require('../libs/jessie/ConstructorFn.js');
var JessiePrototypeMethod = require('../libs/jessie/PrototypeMethod.js');
var JessieConstructorFnSet = require('../libs/jessie/C... |
const ICON = {
user: "❌",
computer: "⚪"
};
let PLAY = {
user: 0,
computer: 0
};
const ELEMENTS = {
canvas: document.getElementById("playground"),
winner_notice: document.getElementById("winner-notice"),
button_newgame: document.getElementById("button-newgame"),
play_user: document.getElementById("play-user"... |
import parseColor from 'parse-color';
import shp from 'shpjs';
import moment from 'moment';
import { parseDuration } from 'eoxc/src/contrib/OpenLayers/utils';
import { setSearchParam } from 'eoxc/src/core/util';
export function readFileAsArraybuffer(file) {
return new Promise((resolve, reject) => {
const fileRea... |
console.log(navigator.onLine);
let Network = navigator.onLine;
const CheckNetwork = () => {
if (Network === true) {
console.log("you're online.");
} else {
console.log("you're offline, Re-connect.");
alert("you're offline, Re-connect.");
}
};
CheckNetwork();
var Form = document.getElementById("form... |
/*
* sAnim v1.0.0
* https://github.com/GramThanos/
* Copyright (c) 2019 <NAME>
*/
var sAnim = (function(){
// Constructor
function SAnim(optns, step, end) {
optns = optns || {};
// Save info
this.d = {};
// Start anim from value
this.d.fm = (typeof optns.from === 'number') ? optns.from : 0;
// St... |
/*
Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to us... |
"use strict";
const mix = require('mixwith').mix;
const WatermoonEnemy = require('@app/content/enemies/watermoon').WatermoonEnemy;
const WatermoonReputation = require('@mixins/enemy/reputation/watermoon').WatermoonReputation;
const FuriousAction = require('@mixins/enemy/actions/furious').Fur... |
// Helper methods
const setValue = (key, value) => localStorage.setItem(key, value);
const getValue = key => localStorage.getItem(key);
const byId = id => document.getElementById(id);
const UNSPLASH_BASE_URL = "https://api.unsplash.com/photos/random?orientation=landscape";
const unsplashCollectionUrlRegex = /(?!\/colle... |
const request = require('request');
const spawn = require('child_process');
var gui = require('nw.gui');
var win = gui.Window.get();
var reserves, recorded, channels, timer, default_timer, epgstation_url;
var flag = false;
var int_res, int_timer;
const notice = new Object;
$(document).ready(function(){
$('.modal'... |
/*
* Copyright 2018 balena.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
export const tempColors = {
"130": "#FF0a00",
"128": "#FF1400",
"126": "#FF1e00",
"124": "#FF2800",
"122": "#FF3200",
"120": "#FF3c00",
"118": "#FF4600",
"116": "#FF5000",
"114": "#FF5a00",
"112": "#FF6400",
"110": "#FF6e00",
"108": "#FF7800",
"106": "#FF8200",
"104": "#FF8c00",
"102": "#FF9600",
"100": "#FFa000",
"98"... |
#!/usr/bin/env node
var path = require("path"),
rw = require("rw").dash,
d3 = require("d3"),
optimist = require("optimist"),
shapefile = require("shapefile"),
queue = require("d3-queue").queue,
topojson = require("../");
require("d3-geo-projection")(d3);
var filterModes = ["none", "small", "s... |
// function real_game_time(game_time){
// var set_time = 180;//one trail time
// var time_n = set_time - game_time;
// if(time_n < 0){
// time_n =0;
// settimeout_win();
// }
//
// var m=parseInt(time_n/60);
// var s=parseInt(time_n%60);
//
// m = checkTime(m);
// s = checkTime(s);
// document... |
var displayParagraphs = require('./display-paragraphs')
var escape = require('./escape')
var html = require('./html')
var latest = require('../latest')
var footer = require('./partials/footer')
var head = require('./partials/head')
var header = require('./partials/header')
var nav = require('./partials/nav')
var lega... |
import './tree.sass';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Translate } from 'react-redux-i18n';
import SortableTree, { getTreeFromFlatData, toggleExpandedForAll } from 'react-sortable-tree';
import FlightTitle from 'compo... |
import QS from "querystring"
import K from "kefir"
import * as D from "kefir.db"
import React from "react"
import Route from "route-parser"
import U from "urlz"
// HELPERS =========================================================================================
let handleError = e => console.warn(e)
let lastKey = R.p... |
import * as maptalks from 'maptalks';
import Painter from './Painter';
import Point from '@mapbox/point-geometry';
import { getTargetZoom } from './Painter';
const options = {
'project' : true
};
/**
* A Line Painter to produce vertex coordinates for WebGL shaders. <br>
*
* Line is triangled as in https://matt... |
const jwt = require('jsonwebtoken');
const express = require('express');
const cors = require('cors');
const csp = require(`helmet-csp`);
const winston = require(`winston`);
const router = express.Router();
const bodyParser = require('body-parser');
const expressJwt = require('express-jwt');
const fs = require('fs');
c... |
var btnAgregate = document.querySelector( '#AgregateInCollection' ),
btnFind = document.querySelector( '#findInCollection' ),
btnEmpty = document.querySelector( '#emptyCollection' ),
collectionSelected = document.querySelector( '#collection' ),
filterSearch = document.querySelector( '#filterSearch' ),
notification... |
/**
* @copyright Copyright (c) 2020 <NAME> <<EMAIL>>
*/
'use strict';
const DEFAULT_COMMANDS = [
'edit'
];
const VIEW_TYPES = {
boolean: 'Boolean',
date: 'Date',
datetime: 'Date and time',
localDate: 'Local date',
localDatetime: 'Local date and time',
relationSelect: 'Select box',
cla... |
"use strict";
/**
* Copyright 2017-present Ampersand Technologies, Inc.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var FlexLayout_1 = require("./FlexLayout");
var LayoutDrawable_1 = require("./LayoutDrawable");
var LayoutInput_1 = require("./LayoutInput");
var LayoutNode_1 = require("./LayoutNode... |
/**
* Copyright 2017-2021 BigML
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import React, { useState, useEffect, useReducer, useCallback } from 'react'
import { useQuery, useMutation } from '@apollo/react-hooks'
import Grid from '@material-ui/core/Grid'
import Box from '@material-ui/core/Box'
import Typography from '@material-ui/core/Typography'
import ArrowBackIcon from '@material-ui/icons/Ar... |
/**
* Created by Jérémy on 06/05/2017.
*/
const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp');
const rimraf = require('rimraf');
const moveFile = require('move-file');
const mongoose = require('mongoose');
const {Schema} = mongoose;
const {createLogger} = require('../logger');
co... |
import React from "react";
import strap from "../../AccDC/DC";
/* Directions for Accessible Carousels
1. Import AccDC/DC.
2. Import or create named React components to render carousel slide content.
3. Designate an empty container element somewhere on the page where the Carousel React component slides will be inser... |
/**
* @license
* Copyright 2019 Google LLC. 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
*
* Unless required by a... |
// questa è la variabile globale dove andiamo a salvare il risultato dell'interpolazione del volume/percentuale
// var globalResult = 0;
var mouseX, mouseY;
var toc = document.getElementsByClassName("toc")[0];
// contiene tutti i titoli delle sezioni
var lis = [];
var line = document.getElementById("current-line");
v... |
var header = {};
var left = {};
var bottom = {};
var right = {};
var maps = {};
var styles = {};
var control = {};
var chart = {};
styles.control = {};
styles.control.panel ={
position: 'top-center',
maxWidth: '450px',
padding: '8px'
}
styles.chart = {};
styles.chart.panel ={
position: 'top... |
// Key used for storing high scores in local storage
let STORAGE_HIGH_SCORE_KEY = "highScores";
// Declaring
const startButton = document.getElementById("start-btn");
const gameInfoElement = document.getElementById("info");
const questionContainerElement = document.getElementById("container");
const submitInitialsElem... |
import React from 'react'
import PropTypes from 'prop-types'
import _ from 'lodash'
import {
Stack,
StackItem,
Button,
navigation,
NerdGraphQuery,
NrqlQuery,
Modal,
Spinner,
HeadingText,
Select,
SelectItem,
} from 'nr1'
import MultiSelect from './multi-select/multi-select'
import {
NerdstoreDefa... |
const fs = require('fs');
const { get } = require('lodash');
const { Pdr, Execution } = require('@cumulus/api/models');
const {
buildAndExecuteWorkflow,
waitForCompletedExecution,
LambdaStep,
api: apiTestUtils
} = require('@cumulus/integration-tests');
const {
stringUtils: { globalReplace }
} = require('@cumu... |
import * as THREE from 'three';
import * as topojson from "topojson-client";
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
import { BufferGeometryUtils } from 'three/examples/jsm/utils/BufferGeometryUtils.js';
export function getMonthArray(range) {
const reference = [
{ month: 1, ... |
'use strict';
var selectTheme = $('#selectTheme');
var selectJavaScript = $('#selectJavaScript');
var selectSafeMode = $('#selectSafeMode');
var inputAllowTxtExtension = $('#inputAllowTxtExtension');
var inputCustomAttributes = $('#inputCustomAttributes');
var inputCustomTheme = $('#inputCustomTheme');
var inputCustom... |
// Copyright 2020 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
import { DiscordSocket } from 'features/nuwani_discord/discord_socket.js';
// The maximum number of invalid sessions we'll endure before givin... |
//
// Copyright 2017-2018 <NAME> @ cgHome
//
/* jshint esversion: 6, strict: true, node: true */
"use strict";
const EventEmitter = require('events').EventEmitter;
const i18n = require("i18n");
const PluginName = "homebridge-digitalSTROM";
const PlatformName = "digitalSTROM";
const DigitalStromServer = require('./li... |
import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import FontAwesome from 'react-fontawesome'
import Header from '../../components/Header'
import ArtistSentence from '../../components/ArtistSentence'
import ArtistGrid from '../../components/Artis... |
import throng from 'throng'
const WORKERS = process.env.WEB_CONCURRENCY || 1
const PORT = process.env.PORT || 3000
function start (id) {
console.log(`Started worker ${id}.`)
const _ = require('lodash')
const express = require('express')
const compression = require('compression')
const { default: TravisClie... |
// eia-all-countries.js
//
// Fetches data from api.eia.gov
// Fetches all countries from all global regions
// Reult from EIA is JSON, but we convert to chart.js-friendly format
//
// <NAME>, 2020
var fetch = require('node-fetch');
var redis = require('redis');
var redClient = redis.createClient();
var moment = requi... |
/* This page will contain the standard React elements */
'use strict';
const e = React.createElement;
//React elements
//ReadOnlyField, this component will render each simple variables (value, boolean, etc...)
class ReadOnlyField extends React.Component{
render(){
var otherClasses = (this.props.classNa... |
'use strict'
const debug = require('debug')('gtfs-utils:build-trajectory')
const {default: distance} = require('@turf/distance')
const {default: bearing} = require('@turf/bearing')
const {default: destination} = require('@turf/destination')
const {default: linesIntersection} = require('@turf/line-intersect')
const {no... |
$(document).ready(function() {
$('select').formSelect();
});
$(document).ready(function(){
$('.modal').modal();
});
var filterArray=[];
var catsOrDogs;
var typeParameter;
var genderParameter;
fetch('https://dog-api.matthewswar.com/api/facts')
.then(response => response.json())
.then(data => {
var petfacts1... |
// Challenge 1 : Days calculate
const el = document.getElementById('input');
el.addEventListener('keypress', resu);
function resu(evt) {
if (evt.keyCode == 13) {
res(el.value);
}
}
function res() {
document.getElementById('result').style.display = 'block';
var year = document.getElementById('input... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.