text stringlengths 3.22k 29.5k |
|---|
"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 ... |
/**
* Hi contributors!
*
* Before you edit or update codes in this file,
* make sure you have read this bellow:
* Commonmark Spec: https://spec.commonmark.org/0.29/
* GitHub Flavored Markdown Spec: https://github.github.com/gfm/
* Pandoc Markdown: https://pandoc.org/MANUAL.html#pandocs-markdown
* The output mar... |
import { isArray } from 'util'
import { exportDefault, titleCase } from '@/utils/index'
import { trigger } from './config'
const units = {
KB: '1024',
MB: '1024 / 1024',
GB: '1024 / 1024 / 1024'
}
let confGlobal
const inheritAttrs = {
file: '',
dialog: 'inheritAttrs: false,'
}
export function makeUpJs(conf... |
//Get Covid Statistcis Latest Reported Deaths & Cases and Total Cases todate.
//https://services1.arcgis.com/eNO7HHeQ3rUcBllm/ArcGIS/rest/services/CovidStatisticsProfileHPSCIrelandOpenData/FeatureServer/0/
//16/5/21 - cyber attack on hse systems has stopped the date being updated.
function GetCovidStats() {
... |
import React from 'react';
import PropTypes from 'prop-types';
import {
forEach as _forEach,
isEmpty as _isEmpty,
mapValues as _mapValues,
pickBy as _pickBy,
} from 'lodash';
import {map as mapUtils} from '@gisatcz/ptr-utils';
import {mapConstants} from '@gisatcz/ptr-core';
import MapGrid from '../MapGrid';
impo... |
/* Copyright 2019 Google Inc. 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 applicable law or agreed to in ... |
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import { Form, Input, Modal, Row, Col, Tree, Table, Card, Select, Button } from 'antd';
import PicturesWall from '../../components/PicturesWall/PicturesWall';
import DicSelect from '@/components/DictionaryNew/DicSelect';
import GetLocation fro... |
/**
* Deductions Component
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
// import moment from 'moment';
// import DatePicker from 'react-datepicker';
import 'components/... |
const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp');
const async = require('neo-async');
const winston = require('winston');
const displayRoutes = require('express-routemap');
const printRoutes = require('express-print-routes');
const configFile = require('../config/app_default.js... |
/*
* Create a list that holds all of your cards
*/
const deck = document.querySelector('.deck');
const stars = document.querySelector('.stars');
const moves = document.querySelector('.moves');
const restart = document.querySelector('.restart');
const winningBg = document.querySelector('.winning-bg');
const re... |
const db = require("../models");
const Projects = db.project;
const Comments = db.comments;
const Categories = db.categories;
const User = db.user;
const UsersVotes=db.user_votes;
const Themes = db.themes;
const Collaborations = db.collaborations;
const nodemailer = require("nodemailer");
let testAccount = nodemailer.c... |
var _contextPath="/blog_v2.0";
layui.use(['element','layer','util','form'],function(){
var $=layui.jquery;
var layer=layui.layer;
layui.util.fixbar({
bar1:'',
click:function(type){
if(type==='bar1'){
var sear=new RegExp('layui-hide');
if(se... |
import React, { Component } from 'react';
import * as IzanamiServices from "../services/index";
import { Table, SimpleBooleanInput, TextInput, NumberInput} from '../inputs';
import {CartesianGrid, XAxis, YAxis, Tooltip, AreaChart, Area} from 'recharts'
import _ from 'lodash';
import moment from 'moment';
class Variant... |
const knex = require("./db/knex");
var io;
var gameSocket;
/**
* This function is called by index.js to initialize a new game instance.
*
* @param sio The Socket.IO library
* @param socket The socket object for the connected client
*
*/
exports.initGame = function (sio, socket) {
io = sio;
gameSocket = so... |
var $successBox, $errorBox, $warningBox, successBoxTimeout, errorBoxTimeout;
var LOADER_DELAY = 200;
var showTheLoader;
function initAutocomplete(
selectAutocomplete,
filterDuplicate,
templateId,
containerId,
deleteSelector,
deleteAttr,
removeSelector
) {
... |
function find_s(x, y)
{
var minid = '-1', minv = 1000000000;
var idx = 0;
for(var key in global_points)
{
var p = global_points[key];
var lon = parseFloat(p['@lon']), lat = parseFloat(p['@lat']);
var dist = (lon-x)*(lon-x)+(lat-y)*(lat-y);
if(dist<minv)
{
minv = dist;
minid = key;
}
idx += 1;
}... |
/* cbe_slide.js
* CBE v4b10 : Cross-Browser DHTML API for IE, Gecko, Opera, Netscape, Konqueror and similar browsers. Download at cross-browser.com
* Copyright (c) 2002 <NAME> (<EMAIL>)
* This library is distributed under the terms of the GNU Lesser General Public License (gnu.org).
* Time-based, parametric equatio... |
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
//**
// * SMSCountry vTiger Integration
// * (c) KINAMU Business Solutions AG 2009
// *
// * Parts of this code are (c) 2006. RustyBrick, Inc. http://www.rustybrick.com/
// * Parts of this code are (c) 2008 vertico software GmbH
// * Parts of this code are (c) 2009 Copyright (c) 2009 <NAME> (anantgarg.com | inscri... |
// Global
let datar = new Datar();
let ruang = new Ruang();
let perintah = new Intruction();
let execPerintah = false;
let penyelesaian;
let nomorSoal = 0;
let backNext = document.querySelectorAll(".seconds");
let outputText = document.querySelector(".outputText");
let currentPilihan = document.getElementByI... |
var express = require("express"),
app = express();
var ErgastClient = require('ergast-client'),
ergast = new ErgastClient();
var Request = require("request");
var async = require("async");
const fs = require('fs');
// const csv = require('fast-csv');
var port = process.env.PORT || 8080;
app.use(express.static... |
const menu = document.getElementById('jsMenu');
const content = document.getElementById('jsContent');
const description = document.getElementById('jsContentDescription');
const canvas = document.getElementById('content_canvas');
const btn_section = document.getElementById('jsButtonSection');
const updown_btn = document... |
/*
* Copyright (c) 2016. Happy Gears, 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... |
'use strict';
function retornaPermissoes() {
if (window.loggedUser.permissoes !== undefined) {
var arrayOriginal = window.loggedUser.permissoes.slice(1);
return arrayOriginal.map(function (permissao) {
return permissao.authority;
});
} else {
return [];
}
}
var arrayPermissoes = [];
func... |
import dialog from "@skpm/dialog"
const sketch = require("sketch")
const Style = sketch.Style
const Settings = sketch.Settings
const UI = sketch.UI
const doc = sketch.getSelectedDocument()
const selectedLayers = doc.selectedLayers
const layerType = {
ARTBOARD: "Artboard",
SHAPEPATH: "ShapePath",
TEXT: "Text... |
const fs = require('fs');
const db = require('./modules/database/database.js');
const util = require('./util.js');
var config = util.getConfig()[1];
var lang = require('./localization.js').getLocalization();
//The users in interactive mode (to disable their command permissions)
var inInteractiveMode = [];
class Comma... |
/** @jsx jsx */
import { jsx } from "@emotion/core";
import { useId } from "@reach/auto-id";
import { bool, func, string } from "prop-types";
import {
createContext,
forwardRef,
useContext,
useEffect,
useRef,
useState,
} from "react";
import { Manager, Popper, Reference } from "react-popper";
import Box fro... |
import React, {useState} from 'react';
import {connect} from 'react-redux';
import {useDispatch} from 'react-redux';
import {updateBook} from '../actions/BookActions';
import {deleteBook} from '../actions/BookActions';
import {Form, Col, Button, Modal} from 'react-bootstrap';
import '../App.css';
funct... |
import * as Babylon from "../WebXR-Modules/babylon.js";
import * as customMat from "../WebXR-Modules/babylonjs.materials.min.js";
///////////////////////////////////////////////////////////////////////////
var canvas = document.getElementById("renderCanvas");
var engine = new BABYLON.Engine(canvas, true);
// var c... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ComponentContainer = void 0;
const config_1 = require("../config/config");
const internal_error_1 = require("../errors/internal-error");
const event_emitter_1 = require("../utils/event-emitter");
const utils_1 = require("../utils/utils... |
import React, { useState, useEffect } from 'react'
import { useSelector, useDispatch } from 'react-redux'
import {
CHeader,
CHeaderNav,
CHeaderNavItem,
CHeaderNavLink,
CImg,
CDropdown,
CDropdownItem,
CDropdownMenu,
CDropdownToggle,
} from '@coreui/react'
import { useHistory } from 'react-router-dom';
... |
import React from 'react';
import {
StyleSheet,
View,
Text,
ScrollView,
Image,
SafeAreaView,
ActivityIndicator,
RefreshControl,
TouchableOpacity
} from 'react-native';
import { fetch_timeout } from './tools/Tools';
import { COLORS, SIZES, icons, FONTS, images, URL } from '../constants';
import SecureS... |
/**
* Created by ChanD on 29.09.14.
*/
function switchCollapseOnRadioValue(radioId, collapseTargetIdIfFalse, collapseTargetIdIfTrue) {
var radioValue = getInputValue(radioId);
var collapseRadioValue;
$('#' + collapseTargetIdIfTrue).find('input').toggleClass('postinput', false);
$('#' + collapseTarget... |
//定义变量
var datajson;
var userphone;
var selecttype;
var colortype;
var items = new Array();
var mapPoint;
var unitname;
//var njpointresult;
//njpointresult = new Array();
var njpointlayer;
var graphictemp;
var pt;
var njpointresult1;
njpointresult1 = new Array();
var dianx;
var diany;
var unitid = sessionStorage.uni... |
// 将 wieldy-webpack 迁移到 vue-cli 3.0 插件体系
// [x]env.js -> 改为使用 .env 机制
// [x]merge-env.js -> 改为使用 .env 机制
// [x]get-define-plugin.js -> 改为使用 .env 机制
// [x]get-webpack-config.js -> 升级到支持 webpack4
// [x]chunk-name-resolver.js -> 升级到支持 webpack4
// [x]wpk.js -> 升级到支持 webpack4
// ... |
/* eslint-disable unicorn/number-literal-case */
'use-strict';
import { createServer } from 'net';
import { once } from 'events';
import readline from 'readline';
import { spawn } from 'child_process';
import LoggerService from '../../../services/logger/logger.service.js';
const findSyncFrame = (streamChunks) => {
... |
/* public vars */
var doctors = [];
var mApi = {
mapsUrl: "https://maps.googleapis.com/maps/api/js?key=",
key:"<KEY>",
geocodeUrl:"https://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=",
// centLat:48.62,
// centLon:2.44,
zoom:10
};
/** based on function from
* ... |
// @ts-nocheck
/* eslint-env mocha */
const constantsPath = '../lib/constants.js';
const KEYS = [
'YEAR', 'MONTH', 'WEEK', 'DAY',
'HOUR', 'MINUTE', 'SECOND', 'MS',
];
const ms = require('../');
describe('parse', () => {
it('should be case-insensitive', () => {
expect(ms('1.5H')).toBe(5400000);
expect(ms('20 mI... |
// In this file you can instantiate your views
// We here first instantiate wrapping views, then the trial views
/** Wrapping views below
* Obligatory properties
* trials: int - the number of trials this view will appear
* name: string
*Optional properties
* buttonText: string - the text on the button ... |
"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];
})... |
const gulp = require('gulp');
const shell = require('gulp-shell');
gulp.task('test:build-html', (cb) => {
const through = require('through2');
const rename = require('gulp-rename');
const path = require('path');
const minifyHtml = require("gulp-minify-html");
const glob = require('glob');
const packages = [];
c... |
/**
Description: Custom web component that allows you to place an acronym on a
webpage and when the mouse is hover over it. It will expand to show what
the meaning of the acronym.
Usage:
<x-acronym innerstyle="bg-color: red;">
National Aeronautics Space Administration
</x-acronym>
Attribure:
innerstyle - i... |
///////////////////////////////////////////////////////////////////////////
// Copyright © 2014 Esri. 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://w... |
import React from 'react';
import { gql } from '@apollo/client';
import {
defaultHeaderClassName,
defaultColumnClassName,
nonSortableHeaderClassName,
} from 'Components/Table';
import LabelChip from 'Components/LabelChip';
import TopCvssLabel from 'Components/TopCvssLabel';
import WorkflowListPage from 'Co... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import styles from './VideoPlayer.module.scss';
class videoPlayer extends Component {
render() {
if (!this.props.selectedVideo) {
return (
<div className={styles.videoPlayer}>
<div clas... |
// 对Date的扩展,将 Date 转化为指定格式的String
// 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符,
// 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字)
// 例子:
// (new Date()).Format("yyyy-MM-dd hh:mm:ss.S") ==> 2006-07-02 08:09:04.423
// (new Date()).Format("yyyy-M-d h:m:s.S") ==> 2006-7-2 8:9:4.18
Date.prototype.For... |
var xlsx = require ( 'xlsx' );
var fs = require ( 'fs' );
var Excel = require ( 'exceljs' );
var workbook1 = new Excel.Workbook ( );
if ( typeof require !== 'undefined' ) XLSX = require ( 'xlsx' );
var workbook = XLSX.readFile ( 'boxxspring.xlsx', {
cellStyles: true
} );
var worksheet = workbook.Sheets[ 'deleteCateg... |
/*
* This program has been developed by students from the bachelor Computer Science at Utrecht University
* within the Software Project course. © Copyright Utrecht University (Department of Information and
* Computing Sciences)
*/
const { LiveGames } = require('./utils/live-games');
const { Players } = requ... |
const { EventEmitter } = require('eventemitter3')
const fs = require('fs-extra')
const path = require('path')
const Promise = require('bluebird')
const { app, getCurrentWebContents } = require('electron').remote
const glob = require('globby')
const Module = require('module')
const util = require('./util')
const API = ... |
const { unknownOp } = require('../util.js'),
MISSING = require('./missing_symbol.js'),
Path = require('./path.js');
class Value {
constructor(value) { this.value = value; }
get ResultType() { return this.constructor; }
static any(value) {
if (typeof value === 'number') {
r... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buttonStyles = void 0;
var tslib_1 = require("tslib");
var _ = require("lodash");
var utils_1 = require("../../../../utils");
var Loader_1 = require("../../../../components/Loader/Loader");
var getBorderFocusStyles_1 = require("../../g... |
import _pt from "prop-types";
import _ from 'lodash';
import React, { PureComponent } from 'react';
import { LayoutAnimation, StyleSheet, Keyboard, TextInput, PixelRatio, I18nManager } from 'react-native';
import { Constants } from "../../helpers";
import { asBaseComponent } from "../../commons/new";
import Assets from... |
"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 (Object.protot... |
import React, { Component } from 'react';
import {
withTheme,
Text,
Surface,
Dialog,
Portal,
Button,
Appbar,
} from 'react-native-paper';
import {
TouchableOpacity,
TextInput,
StyleSheet,
Image,
FlatList,
ScrollView,
CameraRoll,
} from 'react-native';
import { material, robotoWeights } from ... |
'use strict';
var Field = require('data/Field');
var PubSub = require('PubSub');
var _ = require('util');
var solrToVizTypeMap = Object.freeze({
// Predefined schema types
string: 'categorical',
boolean: 'boolean',
long: 'ordered',
int: 'ordered',
double: 'ratio'
});
// Schemaless types
var __solrTypeMap... |
export function showErrorWithCode(errCode) {
console.log(errorMess)
let errorMess
switch (errCode) {
case 'not_logged_in':
errorMess = 'Bạn chưa đăng nhập'
break;
case 'no_account':
errorMess = 'Bạn chưa có tài khoản FO4, vui lòng tạo tài khoản FO4'
break;
case 'server_error':
... |
export const fingerJoints = {
thumbFinger: [0, 1, 2, 3, 4],
indexFinger: [0, 5, 6, 7, 8],
middleFinger: [0, 9, 10, 11, 12],
ringFinger: [0, 13, 14, 15, 16],
pinkyFinger: [0, 17, 18, 19, 20],
};
export const directions = {
STATIC: 0,
UP: 1,
RIGHT: 2,
DOWN: 3,
LEFT: 4,
FORWARD: 5,
... |
const readline = require('readline');
const Promise = require('bluebird')
const fs = require('fs'),
Path = require('path');
function readFile(path) {
return new Promise((resolve, rejcet) => {
const raw_paths = [];
const fileReader = readline.createInterface({
input: fs.createReadSt... |
import React, { useState } from 'react'
import PropTypes from 'prop-types'
import useIcon from 'common/useIcon'
import useCategoryIcon from 'common/useCategoryIcon'
/**
* @summary CategoriesPresentation
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function CategoriesPresentation({ ca... |
const hre = require("hardhat");
const chai = require("chai");
const { solidity } = require("ethereum-waffle");
const { parseEther, formatEther } = require("ethers/lib/utils");
chai.use(solidity);
const { expect } = chai;
describe("Campaign contract", function () {
let Campaign;
let campaign;
let owner;
let a... |
var express = require('express')
var router = express.Router()
var path = require('path')
var mysql = require('mysql')
// if change for server version, use dbCo
// config.remoteOption
var dbConfig = require(path.join(__dirname, '../dbConnect')).dbConfig.localOption
var conn = mysql.createConnection(dbConfig)
// render... |
/*
* <NAME>, <NAME>
* Neptun-ID: R48G73, EMX74N
* Applied cryptography project - a postquantum messenger application
* January 2017
* This solution was submitted and prepared by <NAME>(R48G73), <NAME>(EMX74N) for the project assignment of the Applied cryptography project seminar course.
* We declare that this sol... |
const RippleAPI = require('ripple-lib').RippleAPI;
const rippleBinaryCodec = require('ripple-binary-codec');
const promptly = require('promptly');
const util = require('util');
const EventEmitter = require('events');
const rippleHashes = require('ripple-hashes');
const passwordPromptAsync = util.promisify(promptly.pas... |
import { csrfFetch } from 'utils/CSRF';
import { arrayIsSubset, arrayShuffle } from 'utils/Util';
let draft = null;
function init(newDraft) {
draft = newDraft;
}
function id() {
return draft._id;
}
function cube() {
return draft.cube;
}
function pack() {
return draft.seats[0].packbacklog[0] || [];
}
funct... |
import { defineMessages } from 'react-intl';
const messages = defineMessages({
accessTypeTitle: {
defaultMessage: 'ACCESS TYPE',
description: 'Title for "Access Type" menu, in all capital letters',
id: 'boxui.share.accessType',
},
canEdit: {
defaultMessage: 'Can edit',
... |
var fs = require("fs");
var Logger = require('../modules/Logger');
var ini = require('../modules/ini.js');
var UserRoleEnum = require('../enum/UserRoleEnum');
var server = require("../server/server.js");
var cmd = require("../server/server.js");
var worker = require("../worker/worker.js");
var socket2 = require(... |
const baseUrl = "https://morning-waters-88941.herokuapp.com"
const loginContainer = document.querySelector("#login-container")
const myBudgetContainer = document.querySelector("#myBudget-container")
const usernameInputField = document.getElementById("username")
const usernameSubmitBtn = document.querySelector(".btn-suc... |
var vm = require("vm");
var fs = require("fs");
var path = require("path");
var standard = require("./libs/std_scripts.js");
var standardScripts = require("./libs/standard.js");
var hacksim = {
objects: {
context: {
__standard: standardScripts.scripts,
__db: require("./libs/database.js"),
__scripts: stand... |
$(window).on('entity:map', function (e, data) {
var map = data.map;
var loaded_site = false;
var loaded_course = false;
// Show outdoor layers in application maps
$.each(['site', 'course'], function (i, modelname) {
var layer = new L.ObjectsLayer(null, {
modelname: modelname,
... |
chrome.runtime.onMessage.addListener(function(message) {
if (message.text != 'show') {
return;
}
const pageHost = message.pageHost;
const selection = message.selection;
let imageRequest = message.imageRequest;
const uris = getUris(selection, pageHost);
if (uris.size == 0) {
... |
const organizationModal = $("#organizationModal");
function newOrganization() {
$('#organizationModalLabel').text("Добавление организации");
$('#organizationId').val("0");
$('#organizationName').val("");
$('#organizationDescription').text("");
$('input[name=categories]').prop("checked", false);
... |
import React, { Component } from 'react';
import { connect } from 'dva';
import {
Form,
Row,
Col,
Input,
Select,
Button,
DatePicker,
Table,
Radio,
Modal,
Icon,
Pagination,
Tabs,
message,
Breadcrumb,
} from 'antd';
import Header from "./GridHeader";
import Body from "./GridBody"
@connect(... |
import React, {useEffect, useState} from "react";
import './order-register.css'
import { PageTemplate } from '../common/PageTemplate'
import {MDBBtn} from "mdbreact";
import axios from 'axios'
import { useHistory } from 'react-router-dom';
import {Navigation} from "../common/HomeMain";
import makeStyles from "@material... |
#!/usr/bin/env node
// Grab provided args
const [,, ...args] = process.argv
download = require("download-git-repo");
var fs = require('fs')
var Spinner = require('cli-spinner').Spinner;
var spinner = new Spinner('%s');
spinner.setSpinnerString('|/-\\')
main()
function main(){
if(args.length > 0){
command ... |
const Player = require('./Player');
const config = require('../config');
const utils = require('../utils');
const _ = require('lodash');
const a = require('awaiting');
let animsLoaded = false;
let bonusOverlapPx = 6;
module.exports = class Level {
constructor(scene, x, y) {
this.scene = scene;
t... |
// myCrews.js
function getCrews() {
//alert("OK");
// cr.idx as idx, cr.jobNo as jobNo, cr.jobDate as jobDate, cr.rate as rate, cr.empID as empID, cr.franID, cr.timeTotal as timeTotal ,em.firstname as firstname, em.lastname as lastname,
// cr.title as title, cr.startTime as startTime, cr.endTime as endTime
docume... |
/**
* @Author: dragon
* @Date: 2019-08-31 12:16:22
* @Desc: 工具类
*/
import { isObject } from './validate.js'
// 补零
const zerofill = (number) => {
return number < 10 ? `0${number}` : number
}
// 某个日期(时间戳-毫秒)格式化; formater: 'YY-MM-DD hh:mm:ss'
const dateFormate = (ms, formater) => {
if (!ms) return ''
formater ... |
var width = $(window).width()*0.95;
var height = $(window).height()*0.6;
var seatCount;
function draw(gameState) {
var player2nickname = {};
for (var i = 0; i < gameState['users'].length; i++) {
var user = gameState['users'][i];
player2nickname[user['player']] = user['nickname'];
}
sea... |
/**
* Copyright (c) 2018-present, <NAME>, <EMAIL>
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const mime = require('mime');
const path = require('path');
const debug = require('debug');
const { parse } = require('u... |
/* --------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* ----------------------------------------------------------------... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import RaisedButton from 'material-ui/RaisedButton';
import NewCard from '../utils/NewCard';
import SupportingDocuments from '../utils/SupportingDocuments';
import { Grid } from 'react-bootstrap';
import Dialog from 'material-ui/Dialog';
i... |
/* eslint-disable no-underscore-dangle */
const grpc = require('@grpc/grpc-js');
const camelCase = require('lodash/camelCase');
const snakeCase = require('lodash/snakeCase');
const { EventEmitter } = require('events');
const { messages, rpcs } = require('@arcblock/forge-proto');
const { createExtensionMethods } = requi... |
var url = $("#urlWeb").val();
var pointUser = $("#pointUser").val();
var pointed = 0;
var user_id = ($("#user_id").val() != 'null') ? $("#user_id").val() : null;
var keyAPI = '<KEY>';
var inputAddressCustomer = "";
function responseGeocoding() {
// local var
inputAddressCustomer = $("#deliveryAddress").val()
... |
var pm25_gap = [0, 11, 23, 35, 41, 47, 53, 58, 64, 70],
pm25_gap_color = ['#c9e7a7', '#00ff00', '#0c0', '#ff0', '#f3c647', '#e46c0a', '#d99694', '#ff0000', '#800000', '#7030a0'];
var pm25_NASA_gap = [0, 3, 5, 8, 10, 13, 15, 18, 20, 35, 50, 65],
pm25_NASA_gap_color = ['#0000cc', '#03c', '#06f', '#09f', '#3cf', '... |
// for qunit in nodejs
if (typeof require != 'undefined')
{
if (typeof QUnit == 'undefined') {QUnit = require('qunit-cli');}
if (typeof UrlDict == 'undefined') {UrlDict = require("./../dist/urldict.js")}
}
// return a dictionary with all method names and number of times they were called.
function set_coverage(... |
// Requiring this allows access to the environment variables of the running node process.
require("dotenv").config();
// Sets the target Instagram username.
const targetInstagramUsername = process.env.TARGET_INSTAGRAM_USERNAME;
// Sets the Discord webhook ID.
const discordWebhookID = process.env.DISCORD_WEBHOOK_ID;
... |
/*
* grunt-cover-ts
* https://github.com/kitsonk/grunt-cover-ts
*
* Copyright (c) 2015 <NAME>
* Licensed under the BSD-3-Clause license.
*/
var sourceMap = require('source-map');
var path = require('path');
var TN = /^TN:\s*(.*)$/;
var SF = /^SF:\s*(.*)$/;
var FN = /^FN:\s*([0-9]+),(.*)$/;
var FNF = /... |
import React from 'react';
import {
TouchableOpacity,
TouchableWithoutFeedback,
StyleSheet,
Text,
SafeAreaView,
KeyboardAvoidingView,
View,
Alert,
Modal,
FlatList} from 'react-native';
import { Ionicons } from '@expo/vector-icons';
import { Container, Item, Input, Toast, Spinner } from 'native-base... |
"use strict";
/* tslint:disable:no-unused-variable */
var MatchService_1 = require('./MatchService');
var match_1 = require('./match');
var testing_1 = require('@angular/core/testing');
//////// SPECS /////////////
/*
1. Vundne kampe: Spillerne rangeres efter antallet af vundne kampe. Spilleren med
flest vund... |
var box2d = require("./box2d/box2d");
Object.extend = require("./box2d/object.extend").extend;
var sys = require("sys");
var sys = require("sys")
, http = require("http")
, fs = require("fs")
, path = require("path")
, ws = require('../../node-websocket-server/lib/ws');
// DEMO BASE
function createW... |
const fetch = require('node-fetch');
const moment = require('moment');
let tracker, database;
module.exports.load = (_tracker, _database) => {
tracker = _tracker;
database = _database;
}
module.exports.fetchSpeedrun = (req, res) => {
if (req.params.id !== undefined) {
database.models['run'].findOn... |
/* eslint-disable no-plusplus */
import { Card, Grid } from '@mui/material';
// project imports
import MainCard from 'ui-component/cards/MainCard';
import SecondaryAction from 'ui-component/cards/CardSecondaryAction';
import { gridSpacing } from 'store/constant';
import RelayLightCard from './RelayLightCardOld';
// a... |
'use strict';
var autoprefixer = require('gulp-autoprefixer');
var clangFormat = require('clang-format');
var del = require('del');
var exec = require('child_process').exec;
var gulp = require('gulp');
var gulpFormat = require('gulp-clang-format');
var gulpPlugins = require('gulp-load-plugins')();
//var sass = require... |
const axios = require('axios-https-proxy-fix')
const adapter = require('axios-https-proxy-fix/lib/adapters/http')
const ObjectId = require('mongodb').ObjectId
const DB_NAME = process.env.TMS_WXPROXY_MONGODB_DB
const CL_CONFIG = process.env.TMS_WXPROXY_MONGODB_CL_CONFIG
const CL_TEMPLATE_MESSAGE = process.env.TMS_WXP... |
import React, { Component } from "react";
import Comment from "./commentComponents/Comment";
import {
ChevronLeft,
ChevronRight,
ChevronDown,
ArrowDown,
ArrowUp,
Filter,
} from "react-feather";
import {
DatePicker,
DateTimePicker,
DateRangePicker,
DateTimeRangePicker,
} from "react-advance-jalaali-d... |
// Copyright 2018-2021, University of Colorado Boulder
/**
* ?fuzzBoard keyboard fuzzer
* TODO: keep track of keyState so that we don't trigger a keydown of keyA before the previous keyA keyup event has been called.
*
* @author <NAME> (PhET Interactive Simulations)
*/
import stepTimer from '../../../axon/js/step... |
import React, { Component } from "react";
import { connect } from "react-redux";
import Button from "./Button";
import MenuButton from "./MenuButton";
import Row from "./Row";
import Column from "./Column";
import Bar from "./Bar";
import PageButton from "./PageButton";
import {
fontSize,
fontScale,
sendAnswer,
... |
/*
/* (c) 2016 <NAME> <<EMAIL>>
/*
/* See LICENSE comming with the source of daap.js for details.
*/
import {includes, is_defined} from './utils.js';
import {Data, DEFAULT_CONTENT_CODES, CONTENT_TYPES} from './data.js';
import request from './request.js';
import List from './list.js';
import Song from './song.js';
imp... |
var localVideo;
var localStream;
var localDisplay;
var screenCaptureOn = false;
var displayStream;
var remoteVideo;
var screenToggle;
var peerConnections = {};
var uuid;
var audioStream = new MediaStream();
var audioTag;
var micRequest, activeMic;
var webcam;
var serverConnection;
var potentialCandidates = [];
const ur... |
function toPosition(pos) {
var x = game.stageWidth / 2 - game.segmentsLength * pos[0] - 5;
var z = -game.stageHeight / 2 + game.segmentsLength * pos[1] + 5;
return new THREE.Vector3(x, 0, z);
}
function toIndex(matIndex) {
var x = Math.floor(matIndex % (game.segmentsLength * 2) / 2);
var y = Math.f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.