text stringlengths 5.97k 41.2k |
|---|
/*Copyright 2019 Dynatrace LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distribut... |
"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 { fbt } from 'fbt-runtime'
import withWallet from 'hoc/withWallet'
import withIsMobile from 'hoc/withIsMobile'
import withGrowthCampaign from 'hoc/withGrowthCampaign'
import withTokenBalance from 'hoc/withTokenBalance'
import withGrowthRewards from 'hoc/withGrowthRewards... |
var config = require('../../../config');
var core = require('../../../models');
var get = require('simple-get');
var md5 = require('md5');
var uuid = require('uuid');
var moment = require('moment');
var logCountDao = require('../dao/reportLogCountDao'); // 主表
var db = require("../../../models").platformDemo;
var httpUi... |
// Copyright 2019 <NAME>
//
// 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 writin... |
'use strict';
// --- SETUP ---
// Points sample
const samplePoints = [
new Vec2(-13, 0.5),
new Vec2(-10.5, -11.5),
new Vec2(-10, 9),
new Vec2(-4.5, -2),
new Vec2(-1, 8.5),
new Vec2(0.5, 6),
new Vec2(0.5, -12),
new Vec2(2, 12.5),
new Vec2(3.5, 11),
new Vec2(5.5, 3),
new Vec2(5.5, -7),
new Vec2(5, 11.5),
ne... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
Platform,
ScrollView,
Dimensions,
TouchableOpacity
} from 'react-native';
/* ------------ StyleSheets --------- */
import styles from 'friedensflotte/app/styles/style';
/* ------------ Selfbuilt Components --------- */
imp... |
$(document).ready(function() {
new TwCitySelector({
el: "div#address",
elCounty: "select#county",
elDistrict: "select#district",
elZipcode: "input#zipcode"
});
create_data_binding();
$("button#export_pdf").click(export_pdf);
change_topic($("select#topic").val());
... |
// Copyright (c) 2014 VMware, Inc.
// Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
//
// 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/license... |
//语法解析器
let lib = { }
let color = require ( './color.js' )
color .setcolor ( 'e' , [
[ 'red-', 'bright' ],
[ 'white-' , 'bright' ]
] )
exports .parse = function ( name , str ) {
if ( ! lib [ name ] ) {
color .c ( 'e' , '名称 ' + name + ' 不存在' )
return
}
//去掉空格
let r = exports .int ( lib [ name ], str )
}
export... |
/*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
*/
import React, { useState } from 'react';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import * as ethers from 'ethers';
import axios from 'axios';
import { useInterval } from 'utils/polling';... |
import React from 'react';
import PropTypes from 'prop-types';
import { StyleSheet, Alert } from 'react-native';
import { connect } from 'react-redux';
import { Button as NBButton, Content, Text, Item, Form, Picker as NBPicker, Label as NBLabel } from 'native-base';
import RNRestart from 'react-native-restart';
import ... |
/* Copyright (c) 2014-2016 by <NAME> tmtg.net <EMAIL>*/
// Released under BSD license. See LICENSE for details.
// This file is part of jgame.js - a 2D game engine
/* ---------------------------------------------------------------------
* Polyfills and helper functions (maybe move to different file later) */
// IE p... |
import * as THREE from '/build/three.module.js';
import { OrbitControls } from '/jsm/controls/OrbitControls.js';
import { Triangle } from '/threeTopDiv/infoTriangle.js';
import { Tide } from '/threeTopDiv/Tide.js';
import { Background } from '/threeTopDiv/Background.js';
import { GroupMoons } from '/threeTopDiv/GroupMo... |
/** Credits - Do not edit/remove this comment (Read http://bustabit.cryptogame.tk/LICENSE)
* @desc bustabit.cryptogame.tk core source file
* @author TeamFlair (http://teamflair.ml)
* @contributors TheHenker (http://github.om/TheHenker)
*/
var app = {
id: 1399
}
var user = {
connected: false,
token:... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Targets = exports.createTarget = undefined;
var _fsExtra = require('fs-extra');
var _path = require('path');
var _webpack = require('webpack');
var _webpackSources = require('webpack-sources');
var _globby = require('globby');
... |
import dynamic from "next/dynamic";
import React from "react";
import {promises as fs} from "fs";
import path from "path";
export default function Home(props) {
const MapComponent = dynamic(import("../components/mapComponent"), {
ssr: false,
});
return (
<div className="main">
<MapComponent
... |
/**
@author Mothpro
**/
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import React, { Component, PropTypes } from 'react'
import OrderTable from '../../../components/Ordertable'
import Tab from 'qnui/lib/tab';
import Button from 'qnui/lib/button';
import * as SweepCodeCheckSendTableA... |
import * as d3 from 'd3';
var THREE = require('three');
var TrackballControls = require('three-trackballcontrols');
// var Projector = require('three.js-projector');
import { dataPathJSON, dataPathLayerJSON } from './index.js'
import { selectedNodeIDs } from './card.js'
export var layersUp3D = {};
window.layersUp3D = ... |
require('dotenv').config()
const moment = require('moment-timezone');
const Discord = require('discord.js');
const mongoose = require('mongoose');
const client = new Discord.Client();
//Imports
const moderationActions = require('./moderationActions');
const streamerActions = require('./streamerActions');
const collect... |
"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 = R... |
var path = require('path');
var fs = require('fs');
var _ = require('underscore');
var AWS_COMMAND_DESCRIPTION = 'Create, view, and terminate EC2 instances.\n' +
'Assign key-pairs and host IPs,\n' +
'Describe, terminate, and reboot commands do not need an environment (env) option.\n\n' +
'Example Workflow: \n' +... |
import React from 'react'
import PropTypes from 'prop-types'
// import { Link } from 'gatsby'
import Img from 'gatsby-image'
import { graphql } from "gatsby"
import Layout from "../components/layout"
// import { withPrefix } from 'gatsby-link'
import AFDLogo from '../img/AFD.png'
import FDPLogo from '../img/FDP.png'
... |
const {decode} = require('ic-xentity')
const backslash = '\\`*_{}[]<>()#+-.!|'
// removed thd '\x5F' ('_')
const mention_nochar = '\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2A\x2B\x2C\x2D\x2E\... |
'use strict';
var Packer = module.exports;
var serviceEvents = {
default: 'tunnelData',
connection: 'tunnelConnection',
control: 'tunnelControl',
error: 'tunnelError',
end: 'tunnelEnd',
pause: 'tunnelPause',
resume: 'tunnelResume'
};
var serviceFuncs = {
default: 'onmessage',
connection: 'onconnection',
con... |
import React, { useEffect, useRef } from 'react'
import * as THREE from 'three'
import { Sky } from 'three/examples/jsm/objects/Sky.js'
import styled from 'styled-components'
import { ImprovedNoise } from 'three/examples/jsm/math/ImprovedNoise.js'
import { OrbitControls } from 'three/examples/jsm/controls/OrbitContro... |
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { Accordion, Button, Card, ListGroup, Modal, Row, Col, Form, Dropdown} from 'react-bootstrap'
import Select from 'react-select'
import { SortableContainer, SortableElement } from 'react-sortable-hoc'
import { FaTrash, FaEye, FaEyeSlas... |
'use strict';
const faker = require('faker');
const {
db,
models: { User, Product, Order, OrderItem },
} = require('../server/db');
const Review = require('../server/db/models/Review');
/**
* seed - this function clears the database, updates tables to
* match the models, and populates the database.
*/
a... |
var blessed;
var contrib;
try {
blessed = require("blessed");
contrib = require("blessed-contrib");
} catch (e) {
console.log(e);
console.log("Try running npm ci --also=dev");
return;
}
const Tail = require("../../app/helper/tail");
var screen = blessed.screen();
//create layout and widgets
var grid = new c... |
const oct = require("./octree.js");
var tree = null;
function build_voxel_octree(voxels) {
tree = oct.empty(256*256*64, tree);
var voxels_data = voxels.data;
var voxels_size = voxels.size;
for (var i = 0; i < voxels_size / 2; ++i) {
var pos = voxels_data[i*2+0];
var col = voxels_data[i*2+1];
var v... |
// Copyright (c) 2017-2018 Uber Technologies, 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 applicabl... |
import assert from '/src/base/assert.js';
import * as html from '/src/base/html.js';
import {rewrite_url} from '/src/base/rewrite-url.js';
import {sanitize_document} from '/src/base/sandoc/sandoc.js';
import {set_base_uri} from '/src/base/set-base-uri.js';
import * as sniff from '/src/base/sniff.js';
import * as config... |
/**
* Copyright 2017-2019 <NAME> (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
import Phaser from 'phaser'
import {
SCENE_PLAY_GAME,
SOUND_BGM_OFFICE,
SOUND_EFFTCT_CLICK,
SOUND_EFFTCT_ERROR,
SOUND_EFFTCT_POINT,
SCENE_GAME_OVER_FAIL,
SCENE_GAME_OVER_CLEAR,
TIME_EVENT
} from './constant'
import { RandomEvent } from './RandomEvent'
import { PointEvent } from './PointE... |
var beerData = [];
var countryCounts;
var styleCounts;
var breweryCounts;
var showCountryRatings = false;
var showStyleRatings = false;
var showBreweryRatings = false;
var showFullStyle = false;
var showFullBreweries = false;
var scatterPlotConfig = {};
scatterPlotConfig.xAxisName = getAxisName("abv");
scatterPlotCo... |
/*
Theme: Purpose - Website UI Kit
Product Page: https://themes.getbootstrap.com/product/purpose-website-ui-kit/
Author: Webpixels
Author URI: https://www.webpixels.io
---
Copyright 2018 Webpixels
*/
"use strict";
var BgImgHolder = function() {
var a = $(".bg-img-holder");
a.length && a.each(functio... |
let HU = require('../../Models/HU');
let miniPokerUsers = require('../../Models/miniPoker/miniPoker_users');
let miniPokerRed = require('../../Models/miniPoker/miniPokerRed');
let miniPokerXu = require('../../Models/miniPoker/miniPokerXu');
let MegaJP_user = require('../../Models/MegaJP/MegaJP_user');
... |
'use strict';
/*
/
/ Game sounds
/ Howler.JS dependency
*/
// Mario's Way by
// <NAME> / <EMAIL>
// https://freesound.org/people/xsgianni/sounds/388079/
var bgSound = new Howl({
src: ['sounds/xsgianni-mario-s-way.mp3'],
loop: true,
volume: 0.05
});
// Movement sound
// source: https://freesound.org/people... |
const fs = require("fs");
const path = require("path");
const brain = require("brain.js");
const csvToJson = require("csvtojson");
const { promisify } = require("util");
const readFileAsync = promisify(fs.readFile);
const writeFileAsync = promisify(fs.writeFile);
const DIR_NAME = __dirname;
const INPUT_DIR = path.resol... |
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
}
var chatroomId = location.search && location.search.split('?')[1];
var ... |
// base imports
import React, { useContext, useEffect, useState } from 'react';
import { Helmet } from 'react-helmet-async';
import { useParams, useHistory } from 'react-router-dom';
import { format } from 'date-fns';
// contexts
import UserProvider from '../contexts/user-context';
// hooks
import {
useGetExpertise... |
// Урок восьмой
// - Добавить еще одно свойство для студента - email адрес
// - Вывести mail адрес на ряду в списке студентов
// - Так же организовать возможность изменения по аналогии с именем
// - Написать регулярное выражение проверки введенных данных email
// - Написать валидацию проверку ввода данных - курс это лю... |
/* HOMEWORK */
/**
* 0) Pre-preparacion.
* - Vytvořte HTML stránku s nadpisem h1 "JavaScript is awesome!"
* - Na stránce vytvořte místo pro umístění jednotlivých spouštěčů úkolů - tlačítek (tj. div, který má id s hodnotou "task-buttons").
* - Na stránce vytvořte místo pro výpis výsledků úkolů (div, který má ... |
import bgO1 from '../assets/bg_carbon_b_1.jpg';
import bgO2 from '../assets/bg_carbon_b_2.jpg';
import bgO3 from '../assets/bg_carbon_b_3.jpg';
import bgO4 from '../assets/bg_carbon_b_4.jpg';
const BusinessCarbonData = {
0: {
id: 0,
title: 'Transportation Fuel',
title2: 'How much do your employees travel for wo... |
"use strict";
/**
* @file video
* @author fex
*/
/* eslint fecs-indent: [0, "space", 2, 2] */
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
var video_react_1 = require("video-react");
var helper_1 = require("../... |
// This is a comment in JavaScript
/**
* You can also create multi-line comments using slash and asterisks
*/
/*
This is also a comment
*/
var variable; // Variable naming is dynamic, therefore no need for a type declaration. Instead we use `var`.
new_variable = 5; // You can also just directly declare variables on... |
// init object array for questions, multiple choice options, and corresponding answers
var questions = [
{question: "Commonly used data types DO NOT include:",
options: ["strings", "booleans", "alerts", "numbers"],
answer: "alerts"},
{question: "The condition in an 'if/else' statement is enclose... |
/*******************************************************************\
|* *|
|* APPLICATION FROM ALEX F *|
|* BY SYMBROS... |
const logger = require('@alias/logger')('growi:service:SlackBotService');
const mongoose = require('mongoose');
const axios = require('axios');
const { markdownSectionBlock, divider } = require('@growi/slack');
const { reshapeContentsBody } = require('@growi/slack');
const { formatDistanceStrict, parse, format } = re... |
import React, { useState } from 'react';
import { array, bool, func, shape, string } from 'prop-types';
import { compose } from 'redux';
import { Form as FinalForm } from 'react-final-form';
import classNames from 'classnames';
import { intlShape, injectIntl, FormattedMessage } from '../../util/reactIntl';
import { pr... |
import React, { Component, Fragment } from "react";
import { connect } from "react-redux";
import PropTypes from "prop-types";
import axios from "axios";
import { getInvoices, addInvoice } from "../../../actions/invoiceActions";
import { addInvoiceDet } from "../../../actions/invoicedetActions";
import { getSearchMembe... |
speed(100);
/**
* list of cards
* @example can import using CSV:
* https://quizlet.com/305600676/ap-chemistry-polyatomic-ions-flash-cards/
*/
var cards = [
{
term: "Term 1",
def: "Definition 1"
}, {
term: "Term 2",
def: "Definition 2"
}, {
term: "Term 3",
... |
let pagina = lstUrlParams.get('pagina');
let iPaginaSeleccionada = pagina === null ? 0 : parseInt(pagina);
let categoriasSeleccionadas = lstUrlParams.get('categorias');
let lstCategoriasSeleccionadas = categoriasSeleccionadas === null ? [] : categoriasSeleccionadas.split(',');
let orden = lstUrlParams.get('orden');
l... |
'use strict';
var fs = require('fs');
var moment = require('moment-timezone');
var accounting = require('accounting');
function base64Encode(filePath) {
var bitmap = fs.readFileSync(filePath);
return new Buffer(bitmap).toString('base64');
}
function floor(val) {
return Math.floor(val);
}
function ... |
var KEY_CODES = {
UP_ARROW: 38,
DOWN_ARROW: 40
};
var slice_object = function (object, keys) {
var sliced = {};
for (var i in keys) {
var field = keys[i];
if (object.hasOwnProperty(field)) {
sliced[field] = object[field];
}
}
return sliced;
};
var chat_app =... |
var _payData = function () {
var tmp = null;
$.ajax({
'async': false,
'type': "GET",
'global': false,
'dataType': 'json',
'url': base_url+"/get/load-feeinfo/",
'success': function (result) {
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutPropert... |
/**
* Copyright 2013-2020 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
'use strict';
var questions = require('./questions');
var msds = require('./msds');
/*
Route the incoming request based on type (LaunchRequest, IntentRequest,
etc.) The JSON body of the request is provided in the event parameter.
*/
exports.handler = function(event, context) {
try {
console.log... |
var Pac = require('node-pac');
var net = require('net');
var LRU = require('lru-cache');
var path = require('path');
var parseUrl = require('url').parse;
var extend = require('extend');
var parseQuery = require('querystring').parse;
var lookup = require('./dns');
var Rules = require('./rules');
var values = require('./... |
#!/usr/bin/env node
var clivas = require('clivas')
var cp = require('child_process')
var createTorrent = require('create-torrent')
var executable = require('executable')
var fs = require('fs')
var inquirer = require('inquirer')
var minimist = require('minimist')
var moment = require('moment')
var networkAddress = requ... |
'use strict';
var bitcore = require('socialsendcore-lib');
var protobufjs = require('protobufjs/dist/protobuf');
var RootCerts = require('./rootcerts');
var rfc5280 = require('asn1.js-rfc5280');
var PublicKey = bitcore.PublicKey;
var PrivateKey = bitcore.PrivateKey;
var Signature = bitcore.crypto.Signature;
var ECDSA... |
function zephyr_stream_name_match(message, operand) {
// Zephyr users expect narrowing to "social" to also show messages to /^(un)*social(.d)*$/
// (unsocial, ununsocial, social.d, etc)
// TODO: hoist the regex compiling out of the closure
const m = /^(?:un)*(.+?)(?:\.d)*$/i.exec(operand);
let base_... |
import { ChainTypes } from 'assetfunjs/es';
var numeral = require('numeral');
let id_regex = /\b\d+\.\d+\.(\d+)\b/;
var { object_type, operations } = ChainTypes;
var Utils = {
is_account_name: function is_account_name(value) {
var allow_too_short =
arguments.length > 1 && arguments[1] !== undefined ? arg... |
import $ from "jquery";
import {all_messages_data} from "./all_messages_data";
import * as channel from "./channel";
import {Filter} from "./filter";
import * as huddle_data from "./huddle_data";
import * as message_helper from "./message_helper";
import * as message_list from "./message_list";
import * as message_lis... |
const carpeta = window.location.pathname;
if (carpeta.includes("desarrollo")) {
var url_prev = location.origin + "/desarrollo/public/";
} else {
var url_prev = location.origin + "/public/";
}
$(document).ready(function () {
$('.js-example-basic-single').select2();
// se obtienen los productos
$.ajax({
type: "P... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.10.0-rc2-master-c4e0196
*/
goog.provide('ng.material.components.menu');
goog.require('ng.material.components.backdrop');
goog.require('ng.material.core');
/**
* @ngdoc module
* @name material.components.menu
*/
angular.modu... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.driver = driver;
Object.defineProperty(exports, "int", {... |
var tz = require('moment-timezone');
var basalprofile = require('../profile/basal.js');
var _ = require('lodash');
var moment = require('moment');
function splitTimespanWithOneSplitter(event,splitter) {
var resultArray = [event];
if (splitter.type === 'recurring') {
var startMinutes = event.started... |
/**
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
/* eslint-env node */
const path = require( 'path' );
const fs = require( 'fs' );
const minimatch = require( 'minimatch' );
const webpack ... |
//ECMA 262 5 - do not support let and const
var backendIP;
var backendPort;
var backendUrl;
var aspectConversion = 1;
var playerNo = 0; //it is in fact constant
var stb = null;
var stbDisplay = null;
var lastStreamsAsString = "_NOT_INITI_";
var deviceInfo = null;
var intervalObject = null;
var playerPosition = -1.0... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const cli_framework_1 = require("@ionic/cli-framework");
const string_1 = require("@ionic/cli-framework/utils/string");
const utils_fs_1 = require("@ionic/utils-fs");
const utils_network_1 = require("@ionic/utils-network");
const utils_process... |
/*
* @Author: ChouEric
* @Date: 2018-07-05 16:45:01
* @Last Modified by: ChouEric
* @Last Modified time: 2018-12-24 14:25:50
* @描述: 这个页面的上传应该是 上传完数据,然后后台处理,返回给前台,前台再核对,确认
* 12/19 废了很大心思解决bug 1009576
*/
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { routerRedux } from ... |
import {
area,
curveBasis,
curveBasisClosed,
curveBasisOpen,
curveBundle,
curveCardinal,
curveCardinalClosed,
curveCardinalOpen,
curveLinear,
curveLinearClosed,
curveMonotoneX,
curveStep,
curveStepAfter,
curveStepBefore,
line
} from 'd3-shape';
import {select}... |
var enhanceViewModel = function(viewModel) {
// extension point for other modules to alter the view model
};
var baseViewModel = function() {
};
$(function () {
(function (settings) {
function attachFolderTitleDropEvent (elements) {
elements.droppable({
acce... |
/**
* Created by jpt on 2018/6/20 0020.
*/
/**
* Created by jpt on 2018/5/15 0015.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {Form,Row, Col,Card, Table, Checkbox, Button, Select, Radio, Upload, Icon, Input, DatePicker, Modal,
Popconfirm, InputNumber, message,} from 'a... |
/******************************************************************************
Cell Diagramming Language
Copyright (c) 2018 <NAME>
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... |
var player;
var tmp = {};
var needCanvasUpdate = true;
var NaNalert = false;
var gameEnded = false;
let VERSION = {
num: "0.4.0",
name: "Conquer the World",
}
// Determines if it should show points/sec
function showPointGen() {
return (tmp.pointGen.neq(new Decimal(0)))
}
// Calculate points/sec!
function getPoint... |
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; ret... |
import * as d3 from 'd3'
import { adjustViewport } from '../../util/chart'
import d3tip from 'd3-tip'
import './createResourceAccessChart.css'
import '@fortawesome/fontawesome-free'
import { siteTheme } from '../../globals'
/*
References:
- https://bl.ocks.org/mbostock/34f08d5e11952a80609169b7917d4172
- http... |
"use strict";
require("core-js/modules/es.array.slice.js");
require("core-js/modules/es.symbol.js");
require("core-js/modules/es.symbol.description.js");
require("core-js/modules/es.symbol.iterator.js");
exports.__esModule = true;
exports.FunctionRegistry = void 0;
require("regenerator-runtime/runtime.js");
requ... |
var textCtx = document.createElement("canvas").getContext("2d");
function calTriangleArea (A, B, C) {
var a = distance(A, B);
var b = distance(B, C);
var c = distance(C, A);
var p = (a + b + c) / 2;
return Math.sqrt(p * (p - a) + (p - b) + (p - c));
}
function distance (p1, p2) {
return Math.sqrt( (p1[0]... |
import { ethers } from 'ethers'
import log from 'loglevel'
import BigNumber from 'bignumber.js'
import ObservableStore from 'obs-store'
import { mapValues } from 'lodash'
import abi from 'human-standard-token-abi'
import { calcTokenAmount } from '../../../ui/app/helpers/utils/token-util'
import { calcGasTotal } from '.... |
// DEFINE TASK (required)
var taskinfo = {
type: 'task', // 'task', 'survey', or 'study'
uniquestudyid: 'symbolcount', // unique task id: must be IDENTICAL to directory name
description: 'symbol counting task', // brief description of task
condition: null, // experiment/task condition
redirect_url: ... |
import Phaser from "phaser";
import logoImg from "./assets/logo.png";
import mario from "./assets/mario.png";
var config = {
type: Phaser.AUTO,
autoCenter: true,
width: 1000,
height: 1280,
backgroundColor: '#1b1464',
parent: 'phaser-example',
physics: {
default: 'matter',
ma... |
/*
Copyright 2019 <NAME> & <NAME>
floppybird - main.js
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 applic... |
import Color from 'color';
import EventEmitter from 'events';
const DEFAULT_NODE_HEIGHT = 24;
const ALPHA = 0.7;
const DEFAULT_FONT = `12px`;
const defaultColor = Color.hsl(180, 30, 70);
const walk = (treeList, cb, level = 0) => {
treeList.forEach((child) => {
cb(child, level);
if (child.childr... |
/**
* @fileoverview datetime utility module
* @author NHN Ent. FE Development Team <<EMAIL>>
*/
'use strict';
var TZDate = require('./timezone').Date,
dw = require('../common/dw');
var util = require('tui-code-snippet');
/* eslint-disable no-useless-escape */
var dateFormatRx = /^(\d{4}[-|\/]*\d{2}[-|\/]*\d{2})... |
////// LABYRINTH //////
var Platformer = Platformer || {};
Platformer.MazeLevel5 = function () {};
Platformer.MazeLevel5.prototype = {
// création map
create: function() {
//TUTO
// SOUND
this.music_ambiance = this.add.audio('ambiance3');
this.music_ambiance.play();
... |
//
// The code here is loaded after default_chat_prologue.js and
// before default_chat_epilogue.js
//
console.log('Loading default_chat.js...');
var isTooShortDialogShown = false;
var isTooLongDialogShown = false;
var chatroomTimestamp = null;
var confirmBeforeStopChat = true;
var needsLeavingChatroom ... |
/* node_helper.js
*
* Magic Mirror
* Module: MMM-DCMetroTimes
*
* Magic Mirror By <NAME> http://michaelteeuw.nl
* MIT Licensed.
*
* Module MMM-DCMetroTimes By <NAME>
*
* Forked From:
*
* Module MMM-DCMetroTrainTimes By Adam Moses http://adammoses.com
*/
// call in the required classes
var ... |
var now = moment().format().toString();
//const currentTimestamp = dateformat(now, "isoDateTime");
//HTML templates
var sidenavTop = $("#sidenav-top");
var sidenavMiddle = $("#sidenav-middle");
var main = $("#main");
var nav_anb = '<div class="container sidenav-link-container" id="anb"><img src="./images/layers_1.... |
import { LitElement, html } from '/vendor/beaker-app-stdlib/vendor/lit-element/lit-element.js'
import { repeat } from '/vendor/beaker-app-stdlib/vendor/lit-element/lit-html/directives/repeat.js'
import { ViewThreadPopup } from '/vendor/beaker-app-stdlib/js/com/popups/view-thread.js'
import * as toast from '/vendor/beak... |
import caseit from '@trenskow/caseit';
import CustomPromise from '@trenskow/custom-promise';
import Puqeue from 'puqeue';
const tableInformationQueue = new Puqeue();
const tableInformation = {};
export default class QueryBuilder extends CustomPromise {
constructor(table, options = {}, connection) {
super();
t... |
import Class from '../../core/class';
import { extend } from '../../core/utils/extend';
import { isDefined, isPlainObject, type, isObject } from '../../core/utils/type';
import { each, map } from '../../core/utils/iterator';
import ajax from '../../core/utils/ajax';
import Guid from '../../core/guid';
import { grep } f... |
import 'ol/ol.css';
import * as ol from './ol-bundle';
import * as d3 from './d3-bundle';
import jsPDF from 'jspdf';
import {toJpeg} from 'html-to-image';
// Layers desc
const layers = [
{label: 'raster', index: 0, visible: false},
{label: 'oceans', index: 1, visible: true},
{label: 'lakes', index: 2, visible: t... |
const { expectRevert, time } = require('@openzeppelin/test-helpers');
const YFACool = artifacts.require('YFACool');
const YFACEngine = artifacts.require('YFACEngine');
const MockERC20 = artifacts.require('MockERC20');
contract('YFACEngine', ([alice, bob, carol, dev, minter]) => {
beforeEach(async () => {
... |
require('v8-compile-cache');
const path = require('path');
const { app, BrowserWindow, ipcMain, protocol, shell, dialog, session, clipboard } = require('electron');
const store = require('electron-store');
const log = require('electron-log');
const prompt = require('electron-prompt');
const { autoUpdater } = require('e... |
import _ from 'lodash/fp'
import { Fragment, useCallback, useEffect, useImperativeHandle, useState } from 'react'
import { dd, div, dl, dt, h, h3, i, span } from 'react-hyperscript-helpers'
import * as breadcrumbs from 'src/components/breadcrumbs'
import { requesterPaysWrapper } from 'src/components/bucket-utils'
impor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.