text stringlengths 3.22k 29.5k |
|---|
'use strict'
/* eslint-disable global-require */
const Module = require('module')
const os = require('os')
const { existsSync, statSync } = require('fs')
const {
resolve: pathResolve,
dirname: pathDirname,
basename: pathBasename,
join: pathJoin,
sep: pathSep
} = require('path')
const { from: arrayFrom } =... |
import Player from './entities/Player';
import Mob from './entities/Mob';
import Point from './entities/Point';
import Weapon from './entities/Weapon';
import * as Tools from './tools';
import { cookies } from 'tools';
//const movementSpeed = 10;
const mobColor = 'rgba(0, 0, 0, 0.54)';
const playerColor = 'rgb(0, 155,... |
var util = require('util'),
AbstractGeocoder = require('./abstractgeocoder'),
parseXml = require('xml2js').parseString;
// var request = require("request");
/**
* Constructor
*/
var FrenchMappingAgencyGeocoder = function FrenchMappingAgencyGeocoder(httpAdapter, options) {
this.options ... |
var scene,
camera,
controls,
fieldOfView,
aspectRatio,
nearPlane,
farPlane,
shadowLight,
backLight,
light,
renderer,
container;
// scene
var floor, lion, fan, isBlowing = false;
// scene variables
var HEIGHT,
WIDTH,
windowHalfX,
windowHalfY,
mousePos = {... |
import { env, eth, utils } from 'decentraland-commons'
import { BidGroup, AddressState, ParcelState } from '../models'
const HOURS_IN_MILLIS = 60 * 60 * 1000
const ERROR_CODES = {
incompleteData: 'INCOMPLETE_DATA',
existingId: 'EXISTING_ID',
invalidNonce: 'INVALID_NONCE',
invalidTimestamp: 'INVALID_TIMESTAMP',... |
import Mixpanel from '@utils/Mixpanel';
import { select, call, takeLatest } from 'redux-saga/effects';
import { types as dataTypes } from '../reducers/data';
import { types as analyticsTypes } from '../reducers/analytics';
import { types as comparisonTypes } from '../reducers/comparisonData';
import { COUNCILS } from ... |
var totalMoneyAchOwned;
var totalMoneyAch = [
new Achievement("Millionaire", "Earn $1.000 million of total money", 1e6),
new Achievement("Billionaire", "Earn $1.000 billion of total money", 1e9),
new Achievement("Trillionaire", "Earn $1.000 trillion of total money", 1e12),
new Achievement("Quadrilli... |
// wForms - a javascript extension to web forms.
// see http://www.formassembly.com/wForms
// This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
function wHELPERS() {};
// addEvent adapated from http://ejohn.org/projects/flexible-javascript-events/
// and <NAME>'s (http:/... |
"use strict";
$(function(){
$(document).foundation();
var touchStartX = 0;
var touchStartY = 0;
var touchMoveDiffY = 0;
var touchMoveDiffX = 0;
var animationEndVendors = "webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";
var viewport = getViewport();
var currViewport;
var nbOfP... |
var container, controls;
var camera, renderer, light;
var editorScene, mainScene, gui, rendering;
var clock = new THREE.Clock();
var mixers = [];
init();
function init() {
container = document.createElement('div');
document.body.appendChild(container);
// get user settings
var settings = JSON.par... |
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
// Requiring Express, Handlebars and the DB
// checking
const express = require("express");
const app = express();
const helmet = require("helmet");
app.use(helmet());
const hb = require("express-handlebars");
app.engine("handlebars", hb());
app.set("view engine", "handlebars");
const bodyParser = require("body-par... |
let startDate = new Date;
let stop = true;
function Test(e){
// console.log(window.scrollY);
startDate = new Date;
stop = false;
}
function Stop(){
if(stop == false && new Date - startDate > 200){
//console.log("stop!");
stop = true;
}
requestAnimationFrame(Stop);
}
... |
import React from 'react';
import {merge, pick} from 'lodash';
import Actions from './Actions';
import PlayerRoll from './PlayerRoll';
import Scoreboard from './Scoreboard';
import Messages from './Messages';
import NextPlayer from './NextPlayer';
import TurnIndicator from './TurnIndicator';
import TurnScoreboard from... |
var gulp = require('gulp'),
run = require('gulp-run'),
browserSync = require('browser-sync').create(),
cleanCSS = require('gulp-clean-css'),
uglify = require('gulp-uglify'),
concat = require('gulp-concat'),
usemin = require('gulp-usemin'),
isparta = require('isparta');
var jshint = require(... |
import { BattlePokedex } from './showdown/pokedex';
import { BattleMovedex } from './showdown/moves';
import typeInfo from './type-info.json';
const { order, matchUps } = typeInfo;
export const statNames = ['hp', 'atk', 'def', 'spa', 'spd', 'spe'];
// GameFreak rounds DOWN on .5
const pokeRound = num => (num % 1 > 0.... |
// formats the date in a given format
// date should be a date-able argument for it to work, otherwise it will return INVALID DATE
// format is mm/dd/yyyy by default, which is month in numbers / days / 4 digit year. Eg 05/23/2021
// dd - day, left padded with 0
// DD - full day in words
// ddd - short day in words (3... |
export const toolTips = new Map([
["useDefaultPlayerMode", `Set the default player mode. Could be <span>Normal</span>, <span>Widescreen</span>, <span>Web fullscreen</span> or <span>Fullscreen</span>.`],
["defaultPlayerMode", `Select the default player mode.`],
["applyPlayerModeOnPlay", `Apply mode on video ... |
//NEED:
//Population
//Name
//Predation rate
//Chance of catching each animal
//Food value (how much meat)
//Food value needed to reproduce
//Reproduction rate (each animal has a litter of X). This should also take into account for how many animals die right after birth, etc
var species = [
{
"name": "Gras... |
/*
* Create a list that holds all of cards
*/
const cards = [
'<image class="icon hide bird" src="img/cards/bird.png" alt="bird">', '<image class="icon hide chicken" src="img/cards/chicken.png" alt="chicken">',
'<image class="icon hide dog" src="img/cards/dog.png" alt="dog">', '<image class="icon hide flamingo" ... |
/////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by <NAME> 2016 - ADN/Developer Technical Services
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is... |
var ipcRenderer = require('electron').ipcRenderer;
function setAvailableTanks() {
if (makeEntityType == "shape") {
//document.getElementById("tip").innerHTML = 'Note: Bullets and traps have their size in pixels, rather than level.'
document.getElementById("text1").innerHTML = "Size (pixels):"
document.getElemen... |
const octokit = require('@octokit/rest')();
const config = require('config');
const shortid = require('shortid');
// My Modules
const logger = require('../../logger');
const { selectRandomGithubUsers, findByGithubName, filterUsers } = require('../users');
const { send } = require('../slack/message');
// Number of rev... |
/*!
=========================================================
* Argon Dashboard React - v1.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-dashboard-react
* Copyright 2019 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https:/... |
'use strict'
const View = require('../Views/View.web')
function New_ActionButtonsContainerView (margin_fromWindowLeft, margin_fromWindowRight, context) {
const view = new View({}, context)
const layer = view.layer
layer.style.position = 'fixed'
layer.style.top = 'calc(100% - 32px - 8px - 32px)'
layer.style.... |
import React, { Fragment } from 'react';
import { makeStyles } from '@material-ui/styles';
import { CardActions,
Divider,
Grid,
Button,
TextField, Typography as MuiTypography } from '@material-ui/core';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import Tab... |
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*/
var output;
var canvas;
var canvasH264;
var jpegImg;
var wsUri = "ws://localhost:9003/";
var reader = new FileReader();
var ctx;
var imgdata;
var stop = false;
var mouseDownFlag = false;
// En... |
import * as React from 'react';
import {
changeRegNumber,
changeCarConnection,
setBluetooth,
} from '../actions/counts.js';
import {connect} from 'react-redux';
import {
Button,
View,
Text,
SafeAreaView,
Image,
Dimensions,
TouchableOpacity,
TextInput,
KeyboardAvoidingView,
StyleSheet,
Scroll... |
const configureGAM = require('@endeavor-business-media/package-shared/config/gam');
const config = configureGAM({ basePath: 'PlasticsMachinery' });
config
.setTemplate('LB1', {
size: [[970, 250], [970, 90], [970, 66], [728, 90], [320, 50], [300, 50], [300, 100]],
sizeMapping: [
{ viewport: [980, 0], s... |
import React, { Component } from "react";
import { Modal, Button, ButtonGroup } from "react-bootstrap";
import ReactTable from "react-table";
import $ from "jquery";
export default class Links extends Component {
constructor(props) {
super(props);
this.state = {
data: [],
a... |
var color = require('./color.js'),
sensors = require('./sensors.js'),
tc = require('./tiny-color.js');
// var p2 = require('p2')
class Car {
constructor(world, opt) {
this.maxSteer = Math.PI / 7
this.maxEngineForce = 10
this.maxBrakeForce = 20
this.maxBackwardForce = 2
... |
#!/usr/bin/env node
/* eslint-disable */
// @ts-check
/**
WIP: a tool to manage dependency upgrades across all packages in the repo
run from repo root:
- `node ./src/scripts/managePackageJson.js` to check if there are packages with different versions across the repo
- `node ./src/scripts/managePackageJson.js <d... |
const Chart = window.Chart
Chart.defaults.font.family = window.getComputedStyle(document.body).fontFamily
Chart.overrides.line.borderWidth = 1
Chart.overrides.line.spanGaps = true
const reportURL = '/report.json'
const darkModeToggle = document.getElementById('darkMode')
const chartControls = document.getElementById(... |
exports.Map = function() {
this.init = function() {
this.noeuds = [];
this.murs = [];
var data = require("./MapData.js").data;
for (var i=0 ; i<data.noeuds.length ; i++) {
this.noeuds.push(new Noeud(data.noeuds[i].x/25-20, data.noeuds[i].z/25-10, new Zone(data.noeuds[i].zones), data.noeuds[i].voisins));
... |
function setCookie(name,value,days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
}
function getCook... |
'use strict';
const path = require('path');
const promiseRetry = require('promise-retry');
const detectRepoLinters = require('detect-repo-linters');
const detectRepoTestFiles = require('detect-repo-test-files');
const detectReadmeBadges = require('detect-readme-badges');
const detectRepoChangelog = require('detect-rep... |
/**********************************************************************************************************************************************
** ___ __ __ .___________. ______ .___ ___. ___ ______ ______ __ .__ __. **
** / \ | ... |
import React, {Component} from 'react';
import {Card, Icon, Tooltip, Row, Col, Input, Select, Button} from 'antd';
import { formatMessage } from 'umi/locale';
import {connect} from 'dva';
import formatedMessage from '@/constants/templateNames';
import styles from '../index.less';
const { Option } = Select;
const Form... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: 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]; } }... |
/**
* Here is the Delay component of the 'tour'
* User can record into a buffer or pick from an available sound, which will then go into a delay line
* The delay time will be connected to an LFO as well
* The delay line is running from program load, so the button will just toggle its volume bus up and down
* This ... |
/**
* Copyright (c) 2021, Diabeloop
* Quick & dirty Karma JUnit reporter (the official one is outdated)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source ... |
const bodyParser = require('body-parser')
const cookieParser = require('cookie-parser')
const debug = require('debug')('express-git-manage')
const express = require('express')
const fs = require('fs')
const path = require('path')
const { prepareMustacheOverlays, setupErrorHandlers } = require('express-mustache-overlays... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... |
/*
JavaScript utility code for configuration scripts.
*/
/*
Import Java System class, so the System.setProperty function can be
called to set a Java system property.
*/
importClass(java.lang.System);
/*
* Import those Mireka classes into the global JavaScript namespace, which are
* useful in a configuration.
*... |
'use strict';
/**
* Converts PublicKeyCredential into serialised JSON
* @param {Object} pubKeyCred
* @return {Object} - JSON encoded publicKeyCredential
*/
let publicKeyCredentialToJSON = (pubKeyCred) => {
if (pubKeyCred instanceof Array) {
let arr = [];
for (let i of pubKeyCred) { ... |
//图一 竞品关系图配置项
var relationEchart = {
dom : document.getElementById("brandSelation"),
myChart : null,
jsonData : null,
init : function(){
this.myChart = echarts.init(this.dom);
this.getJson()
},
//更改创建图表的json数据
getJson: function(){
var that = this;
$.getJSON('dist/js/test.json',function(json... |
import React, {useState, memo, useEffect, useMemo} from "react";
import { connect } from 'react-redux';
import { compose } from 'redux';
import { createStructuredSelector } from 'reselect';
import { getRolesByUserId, getAvailableRolesByUserId, getOrgById, getRoleById, searchBy, sortBy } from 'utils/dataUtils'
import { ... |
'use strict'
var _ = require('lodash')
var numeral = require('numeral')
var d3 = require('d3')
var safeTraverse = require('./safeTraverse')
var mustache = require('mustache')
var MapUtils = {
/**
* Check n if is an integer
*/
isInt(n) {
return n % 1 === 0
},
/**
* Given a value, to calculate th... |
/* eslint-disable global-require */
import React, { useCallback, useLayoutEffect, useMemo } from 'react';
import { StyleSheet, SafeAreaView, Platform, View, Text } from 'react-native';
import { useNavigation, useRoute } from '@react-navigation/native';
import { useSelector } from 'react-redux';
import { Card, Title, Bu... |
let zr;//画板对象
let colorList=["#dcea26","#d25c97"];//颜色数组
let colorIndex=0;
let slognText;//宣言图形对象
let nickNameText;//昵称图形对象
let bgImage;//添加进来的照片
let rotating=false;//正在旋转,用于防抖
let lastRadian;//上一次图片旋转的弧度
$(function(){
$('.file').change(function () {
zr= zrender.init(document.querySelector('#picBox'),{
... |
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
var assert = require('assert');
var debug = require('debug')('reader:vanadium');
var eos = require('end-of-stream');
var EventEmitter = require('events').... |
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _react = _interopRequireWildcard(require("react"));
var _reactRedux = require("react-redux");
var _bottomMenu = _interopRequireDefault(require("./bottom-menu.component"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ?... |
const crypto = require("crypto");
const { mkdirSync, copyFileSync } = require("fs");
const path = require("path");
const chalk = require('chalk');
const {
Compiler,
parser,
treeShakeModule,
} = require("@alex.garcia/unofficial-observablehq-compiler");
const { readFileSync, writeFileSync } = require("rw").dash;
... |
/*
* Copyright 2018 DoubleDutch, 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 agre... |
import React, { useContext, useState, useEffect } from "react";
import { IssueContex } from "../App";
import styles from "./Task.module.css";
import { Draggable } from "react-beautiful-dnd";
import "@szhsin/react-menu/dist/index.css";
import { Menu, MenuItem, MenuButton } from "@szhsin/react-menu";
import { Drawer, Div... |
/*
@jacy
*/
var currentTarget = null;
var currentTargetParam = {
widget_name:"",
paramUrl:"",
htmlUrl : "",
saveUrl : "",
templateId : ""
};
var allFormData = new Array();
function addFunction(_this){
currentTarget = $(_this).parents('.layout_item');
if(currentTarget.hasClass('function_edi... |
////////////////////////////////
//*Platform.js
//*you might not need to make changes in this file. If you follow the following conventions, no changes are nessecarry
//* 1. Your managing the manifest transformations inside of manifest.js. Follow required steps
//* 2. Your Validating via the validation rules like... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
// TODO:
var cardArray = [];
const userAction = async () => {
await fillCards();
generateHtml();
}
async function fillCards() {
const response = await fetch('https://www.dnd5eapi.co/api/classes/druid/spells');
const myJson = await response.json(); //extract JSON from the http response
... |
// Core manager class.
// Serve as the entry point for managing all kinds of game logic
let Globals = require("GlobalVariables");
let utilities = require("utilities");
let Resource = require("Resource");
let WorldRankManager = require("WorldRankManager");
let BuildingManager = require("BuildingManager");
let StudentMa... |
/**
* This file contains values at test-depth "4".
* This is the bottom level, and the values here may not reference other project files.
* We define "unsafe" as a_001 value which does not in its entirety come from within the program itself, or its direct environment. ???
*/
// Const, let, var and re-assignment ca... |
/* eslint-disable react-hooks/exhaustive-deps */
// @flow
import React, { useCallback, useState } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
Clipboard,
} from 'react-native';
import { useFocusEffect } from '@react-navigation/native';
import { SafeAreaView } from 'react-native-safe-area-... |
/**
* Created by jin on 17/3/26.
*/
jsonbody = {
basicInfomation:{},
propose:{},
workHistory:[],
educationHistory:[],
languageSkill:[],
projectHistory:[],
additional:{}
}
var psId = null; //简历id
$(function () {
init();
//==============================基本信息和用户模块=====================... |
function TableText() {
let rows = new Array();
let fields = new Array();
let tableName = "";
let sqlConStr = "";
let sqlFKAry = new Array();
/**
* @param {string} str
*/
this.create = (str, name) => {
try {
rows = str.split('\n');
} catch (error) {
... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
ListView
} from 'react-native';
var SQLite = require('react-native-sqlite-storage');
SQLite.DEBUG(true);
SQL... |
var THREE = require("three");
var glslify = require("glslify");
var OBJLoader = require('three-obj-loader')(THREE);
var MTLLoader = require('three-mtl-loader');
var OrbitControls = require('three-orbit-controls')(THREE);
/* THREE js code goes here */
let container;
let camera, scene, renderer;
let pointLight, lightH... |
const expect = require('chai').expect;
var WOQL = require('../lib/woql');
var {Var} = require('../lib/query/woqlDoc');
const idGenJson = require('./woqlJson/woqlIdgenJson');
const woqlStarJson = require('./woqlJson/woqlStarJson');
const woqlInsertJson = require('./woqlJson/woqlInsertJson');
const woqlDoctypeJson = re... |
import {ChartWithColorGroups, ChartWithColorGroupsConfig} from "./chart-with-color-groups";
import {Utils} from './utils'
import * as d3 from './d3'
export class HistogramConfig extends ChartWithColorGroupsConfig{
svgClass= this.cssClassPrefix+'histogram';
showLegend=true;
showTooltip =true;
x={// X a... |
import Chart from 'chart.js';
var helpers = Chart.helpers;
var defaultOptions = {
groupSize: 1,
caculateForCanvasSize: false,
recalculationMode: 'none',
tooltipOptimization: true
};
class DataGrouping {
constructor(area, pixelSize) {
this.area = area;
this.pixelSize = pixelSize;
... |
'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];
},
});
}
: fu... |
const Discord = require('discord.js')
const emoji = require('../functions/utils.js').emoji
exports.run = async (client, message, args) => {
let embed = new Discord.RichEmbed()
embed.setColor(message.guild.me.displayHexColor)
embed.setDescription("**See more with `"+CONFIG_PREFIX+"recipes [basic, advanced, items, ... |
'use strict';
import gulp from 'gulp';
import gulpLoadPlugins from 'gulp-load-plugins';
import runSequence from 'run-sequence';
import browserSync from 'browser-sync';
import swPrecache from 'sw-precache';
const $ = gulpLoadPlugins();
const child = require('child_process');
const checkGem = require('gulp-check-gems')... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const schematics_1 = require("@angular-devkit/schematics");
const project_1 = require("@schematics/angular/utility/project");
const util_1 = require("../../utility/util");
const validation_1 = require("../../utility/validation");
const depende... |
import React, { Component } from 'react';
import {
ActivityIndicator,
View,
Alert,
StyleSheet,
TouchableOpacity,
Text,
Image,
Dimensions,
FlatList,
Modal
} from 'react-native';
import axios from 'axios';
import Icon from 'react-native-vector-icons/FontAwesome';
import { URL... |
$('#skills')
.select2()
.on('change', async function (e) {
const skills = $(this).val();
var loader2 = $('.skills-loader-2')
resetSkils();
const response = await $.get(skillsChange, {
skills
});
if (response.hasOwnProperty('skills')) {
if ... |
const { Parser: ParserV2New } = require('../dist/commonjs/aurelia-binding');
const { Parser: ParserV2 } = require('./v2/aurelia-binding');
const { Parser: ParserV1 } = require('./v1/aurelia-binding');
const v2new = new ParserV2New();
const v2 = new ParserV2();
const v1 = new ParserV1();
const colors = {
Reset: '\x1... |
const { HomebridgePluginUiServer, RequestError } = require('@homebridge/plugin-ui-utils');
const Bravia = require('@seydx/bravia');
const { setTimeoutAsync } = require('../src/utils/utils');
const {
fetchApps,
fetchChannels,
fetchCommands,
fetchInputs,
changeTVFromCache,
getTvFromCache,
removeTVFromCach... |
var _logger = SenchaLogManager.getLogger("app-upgrade");
function possiblyAddProps (propsToAdd, propObj) {
for (var prop in propsToAdd) {
if (propsToAdd[prop] != null) {
propObj[prop] = propsToAdd[prop];
}
}
}
function removeOverrideRequireTag(appJsFile) {
_logger.debug("Removi... |
import {toInterceptor, getEffect, getCoeffect, assocEffect, assocCoeffect, nextInterceptor} from 'reframe/interceptor';
import immutablediff from 'immutablediff';
import * as Immutable from 'immutable';
export const debug = toInterceptor({
id: 'debug',
before: function debugBefore(ctx) {
console.log('H... |
/**
* @file 全体で使用する定数に関する記述をする
* @author <NAME> <<EMAIL>>
*/
// 全体で使用する定数を宣言する。
// ツールで組み合わせチェックで用いる閾値の定義
//https://www.toyoink1050plus.com/color/chromatics/basic/005.php
//https://www.xrite.co.jp/colorknowledge-blog/90-blog-color/436-blog-20170831.html
//特別に調整された測色器械でも誤差の範囲にあり、人では識別不能
const THRESHOL... |
import {
faBriefcase,
faMusic,
} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { yupResolver } from '@hookform/resolvers/yup';
import PropTypes from 'prop-types';
import React, { memo, useEffect, useState } from 'react';
import { Form } from 'reac... |
import React, { PureComponent } from "react";
import TextAnchor from "./TextAnchor";
const edgeLength = 15;
const textOffset = 16;
const quarterCircle = Math.PI / 2;
export default class LineMeasurement extends PureComponent {
state = { midHover: false };
componentDidMount() {
this.startGrabber.addEventListe... |
import React, { Component } from 'react';
import { View, ScrollView, Text } from 'react-native';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Strings from '../../../utils/Strings';
import AppTheme from '../../../utils/AppTheme';
import ScanStatusCard from './ScanStatusCard';... |
'use strict';
const {
DataType,
DataTypeCodes,
DataTypeNames,
} = require('../../core/datatypes');
const {
InvertKeyValues,
} = require('../../../../utils');
const {
getBits,
} = require('../../../../utils');
const Logix5000_DataTypeCodes = Object.freeze({
Program: 0x68,
Map: 0x69,
Routine: 0x6D,
... |
/**
Model modules
@namespace App.Providers
*/
var App;
(function (App) {
var Providers;
(function (Providers) {
var CategoryItem = (function () {
/**
CategoryItem
@class App.Providers.CategoryItem
@classdesc This class contains text, ca... |
const fetch = require('node-fetch');
const WS = require('ws');
module.exports = function(io) {
const socket = io;
function GetStreams() {
fetch('https://api.live.odysee.com/v1/odysee/live/', {
method: 'get',
headers: {
'Content-Type': 'application/json'
... |
import Msgpack from '../helpers/msgpack.js';
import TimeUtils from '../utils/time.js';
import {BigNumber} from 'bignumber.js';
function Snapshot(api, db, bugsnag) {
this.api = api
this.database = db;
this.bugsnag = bugsnag;
this.firstTradeTime = '2018-08-11T23:59:59.779447612Z'
this.msgpack = new Msgpack();... |
import React from 'react'
import mapboxgl from 'mapbox-gl';
import "./style.css"
import API from "../../utils/API";
import MarketArr from "../../components/MarketArr"
import { toast } from "bulma-toast";
import MapCard from "./MapCard";
import displayMap from "./displayMap"
import SearchForm from "../../components/Sea... |
import fetch from 'isomorphic-fetch';
import jsyaml from 'js-yaml';
import slug from 'slug';
export function addFile(file) {
return (dispatch, getState) => {
dispatch({ type: 'ADD_FILE', file });
};
}
export function toggle(path) {
return (dispatch, getState) => {
console.log("toggle", path);
let ne... |
const NoMoreFortnite = require('discord.js');
const client = new NoMoreFortnite.Client({ intents: ['DIRECT_MESSAGES', 'DIRECT_MESSAGE_REACTIONS', 'DIRECT_MESSAGE_TYPING', 'GUILDS', 'GUILD_BANS', 'GUILD_EMOJIS_AND_STICKERS', 'GUILD_INTEGRATIONS', 'GUILD_INVITES', 'GUILD_MEMBERS', 'GUILD_MESSAGES', 'GUILD_MESSAGE_REACTI... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
exports.default = toggleList;
exports.unwrapNodesFromList = unwrapNodesFromList;
var _consolidateListNodes = require('./consoli... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
'use strict';
/**
* Module dependencies.
*/
var CP_get = require('../lib/CP_get');
var CP_tv = require('../modules/CP_tv');
var CP_translit = require('../lib/CP_translit');
/**
* Configuration dependencies.
*/
var config = require('../config/production/config');
Object.keys(config).length === 0 &&
(config = r... |
var arrayOfURL = [
'images/bag.jpg',
'images/banana.jpg',
'images/bathroom.jpg',
'images/boots.jpg',
'images/breakfast.jpg',
'images/bubblegum.jpg',
'images/chair.jpg',
'images/cthulhu.jpg',
'images/dog-duck.jpg',
'images/dragon.jpg',
'images/pen.jpg',
'images/pet-sweep.jpg',
'images/scissors.... |
// ______________________Initial values_________________________________________
// HTML sections-------------------------------------------------
// For jquery DOM manipulation
var colDivSearchButtons = $("#colDivSearchButtons"); // Column that will hold the search buttons
var gifViewingArea = $("#gifViewingArea");... |
import React from 'react';
import PropTypes from 'prop-types';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import Typography from '@material-ui/core/Typography';
import Paper from '@material-ui/core/Paper';
import... |
import React, { useState, useEffect } from "react"
import traitFilters from "../zHapeStorage/migrationTraitFilters"
import blockchainHapePrimes from "../zHapeStorage/blockchainHapePrimes"
import traitsListed2 from "../zHapeStorage/migrationTraitFilters2"
import migrationUsers2 from "../zHapeStorage/migrationUsers2"
im... |
const CustomError = require('../../class/CustomError');
const Pool = require('../../class/Connection');
const Request = require('../../class/Request');
const Utils = require('../../class/Utils');
/**
* @api {SCHEMA} Sub Sub
* @apiGroup Schemas
* @apiName Sub
* @apiDescription The optional properties are included b... |
var vlFieldDef = require('../fielddef');
var util_1 = require('../util');
var bin_1 = require('../bin');
var channel_1 = require('../channel');
var data_1 = require('../data');
var fielddef_1 = require('../fielddef');
var type_1 = require('../type');
var scale_1 = require('./scale');
var time_1 = require('./time');
var... |
function displayCaptchaOptions() {
var captchaRow = jQuery('.captcha-row');
var captchaChecked = jQuery('.captcha-true').attr('checked');
if(typeof captchaChecked != 'undefined' && captchaChecked == 'checked'){
captchaRow.show();
}else{
captchaRow.hide();
}
}
function displayReminderOptions() {
var emailRem... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.