text stringlengths 3.07k 16k |
|---|
// @ts-check
import Vec2 from "../../algebra/vec2";
import * as Util from "./util";
import Scene from "../scene";
export { HitResult } from "./util";
export default class Capsule {
/**
* @param {Vec2} center
* @param {number} halfHeight
* @param {number} radius
* @param {string} [color]
... |
const arrItrProto = Object.getPrototypeOf([].values())
const primordialPropSet = new Set([
...Object.getOwnPropertyNames(Object.prototype),
...Object.getOwnPropertyNames(Array.prototype),
...Object.getOwnPropertyNames(Function.prototype),
...Object.getOwnPropertyNames(Error.prototype),
...Object.getOwnProper... |
// jshint esversion: 9
var bq;
const path = "./gcloud_cred.json";
//var st;
/**
* @description null
* @param {ParamsType} params list of command parameters
* @param {?string} commandText slack text message
* @param {!object} [secrets = {}] list of secrets
* @return {Promise<SlackBodyType>} Slack response body
*/... |
const lifeDiv = document.querySelector("#life"),
scoreDiv = document.querySelector("#score");
// Enemies our player must avoid
const Enemy = function(x, y) {
// Variables applied to each of our instances go here,
// we've provided one for you to get started
this.x = x;
this.y = y;
this.speed = setSpeed();
/... |
// The MIT License
//
// Copyright (c) 2018 Google, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, mo... |
/*!
* numeral-systems
*
*
* Copyright(c) 2019-2021 <NAME>
* MIT Licensed
*/
'use strict'
/**
* Modules as JSON files.
*/
const {
all,
arabic,
khmer,
lao,
modern,
persian,
romain,
thai,
romain_payload: {
Decimal,
Romain
}
} = require('./payload.json')
const {
__ALL__,
__ARABIC__... |
import Modal from 'react-native-modalbox';
import Progress from './Progress';
import * as Animatable from 'react-native-animatable';
import Icon from 'react-native-vector-icons/Ionicons';
import _ from 'lodash';
import * as styles from '../styles';
import * as constants from '../constants';
import EmptyCart from './... |
'use strict';
const tag = require('../middlewares/tag');
const cleanUpQueryParams = require('../middlewares/clean-up-query-params');
const credentials = require('../middlewares/credentials');
const dbConnSetup = require('../middlewares/db-conn-setup');
const authorize = require('../middlewares/authorize');
const check... |
/**
* Copyright 2015-2016, Google, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
const mongoose = require("mongoose");
const cloudinary = require('cloudinary').v2;
const fs = require("fs");
const Product = require("../models/product");
const upload = require('./../middleware/multer');
exports.createProduct = (req, res) => {
const { title, description, price, category, featured } = req.body
... |
'use strict';
import './styles.scss';
import '@babel/polyfill';
import $ from 'jquery';
import moment from 'moment';
import humanize from 'humanize';
import packageJson from '~root/package.json';
window.CLSP_DEMO_VERSION = packageJson.version;
const defaultWallUrls = [
'clsp://172.28.12.248/testpattern',
'cls... |
import { deleteVaultById } from '@/lib/db';
import getStrengthColor from '@/utils/getStrengthColor';
import {
AlertDialog,
AlertDialogBody,
AlertDialogContent,
AlertDialogFooter,
AlertDialogHeader,
AlertDialogOverlay,
Box,
Button,
Flex,
FormControl,
FormLabel,
Heading,
Input,
InputGroup,
I... |
import { Observable, Subject } from 'rxjs';
import 'rxjs/add/operator/map';
import 'rxjs/add/observable/dom/ajax';
import 'rxjs/add/observable/from';
import 'rxjs/add/operator/reduce';
import 'rxjs/add/operator/catch';
import { readAsArrayBuffer } from 'promise-file-reader';
import { readFromBinaryFile } from 'exif-js'... |
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
/**
* Copyright 2017 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 applic... |
import React, { Component } from "react";
import { Typography, withStyles, CardMedia } from "@material-ui/core";
import { observer } from "mobx-react";
import PropTypes from "prop-types";
import Hidden from "@material-ui/core/Hidden";
import QRCode from "qrcode.react";
import notifications from "../../../stores/notifi... |
var rank = require('./rank');
Array.prototype.contains = function (element) {
return this.indexOf(element) > -1;
};
module.exports = {
VERSION: "MadFoldBot v2.4",
bet_request: function (game_state, bet) {
return this.strategy1(game_state, bet);
},
showdown: function (game_state) {
... |
var callbacks = [];
function patch(parent, oldNode, newNode) {
var element = patchElement(
parent,
parent.children[0],
oldNode,
newNode
);
for (var cb; (cb = callbacks.pop()); cb()) {}
return element
}
function merge(target, source) {
var result = {};
for (var i in target) {
result[... |
/* eslint-disable */
// Noop
async function noop() {}
// Printer Classic as ES4
function Printer(dom, options) {
// Check Initial
if (!(this instanceof Printer)) {
return new Printer(dom, options);
}
// Options Extension
this.options = this.extend(this.preset, options);
// Set Dom as check
this.do... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = exports.VSOP = void 0;
var _fs = _interopRequireDefault(require("fs"));
var _path = _interopRequireDefault(require("path"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": ob... |
// Copyright (c) 2017 <NAME>, netblocks.org
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, cop... |
import {
CREATE_REPLY,
DELETE_TICKET,
FETCH_TICKETS,
FILTER_TICKETS,
MESSAGE_KIND_REPLY,
RECEIVE_TICKETS,
SELECT_TICKET,
SET_MESSAGES_TO_READ,
SORT_TICKETS,
TICKET_STATUS_OPEN,
UPDATE_TICKET,
MESSAGE_KIND_NOTE_DELETE
} from '../constants/tickets';
import { STATUSES } from '../components/tickets/... |
import * as Cesium from "cesium/Cesium";
/**
*圆形扩大扫描圈
* */
function AddCircleScanPostStage(viewer, cartographicCenter, maxRadius, scanColor, duration) {
var ScanSegmentShader =
"uniform sampler2D colorTexture;\n" +
"uniform sampler2D depthTexture;\n" +
"varying vec2 v_textureCoordinat... |
const database = firebase.database().ref('users');
var uid = '';
firebase.auth().onAuthStateChanged((user) => {
if (user) {
uid = user.uid;
}
});
function getAllUsers() {
loadConfidentiality();
database.get().then((snapshot) => {
var i = 0;
var j = 0;
var row = documen... |
const docmakerPlugin = require('./src/theme/plugins/docmaker')
const colors = require('./src/theme/data/colors')
const { getDynamicColors } = require('./src/theme/plugins/color-variants')
const borderRadius = {
none: '0',
sm: '3px',
default: '5px',
lg: '10px',
xlg: '20px',
full: '9999em'
}
const boxShadow... |
// Copyright (c) 2019 <NAME>
//
// ISC License (ISC)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
import React, { Component } from "react";
import {
UncontrolledDropdown,
DropdownToggle,
DropdownMenu,
DropdownItem,
Button,
Modal,
ModalHeader,
ModalBody,
ModalFooter,
UncontrolledTooltip,
Form,
Label,
Input,
InputGroup,
} from "reactstrap";
import SimpleBar from "simplebar-react";
import ... |
function EQ_GET_DATA(){
var ret = {
"name": " lucene-solr working set: {solr.contrib.jaegertracer-configurator}", "value":600393,
"prmetrics":{"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1},
"prmetricvalues":{"5":0,"6":1,"7":0,"8":45,"9":6,"10":1,"11":12},
"children": [ {
"name": "org.apache.solr.jaeger", "key": "ba... |
import React from 'react';
import PostImageResp from '../components/story/PostImageResp';
import TwoPostImageResp from '../components/story/TwoPostImageResp';
import StoryPage from '../components/story/StoryPage';
import StoryTextBlock from '../components/story/StoryTextBlock';
import StoryImages from '../components/st... |
var inside = require('point-in-polygon');
var Polygon = require('polygon');
var Vec2 = require('vec2');
var _ = require('underscore');
var countries = require('i18n-iso-countries');
var d3 = require('d3');
var MapModel = function(featureData) {
this.featureData = featureData;
this._countryFeatureCache = {};
th... |
const losingSound = new Audio(
"http://www.music-note.jp/bgm/mp3/20130312/carnival.MP3"
);
const canvas = document.querySelector("canvas");
const ctx = canvas.getContext("2d");
const progressBar = document.querySelector("meter");
const buttonWidth = 140;
const buttonHeight = 35;
const buttonX = canvas.width / 2 - but... |
#!/usr/bin/env node
const util = require('util');
const argv = require("minimist")(process.argv.slice(2));
const { demangle } = require("demangle");
const exec = util.promisify(require('child_process').exec);
const fs = require("fs");
const http = require("http");
const path = require("path");
const prettyBytes = requ... |
/**
* Copyright 2018 The Pennsylvania State University
* @license Apache-2.0, see License.md for full text.
*/
import { LitElement, html, css } from "lit-element/lit-element.js";
import { LrndesignGalleryBehaviors } from "./lrndesign-gallery-behaviors.js";
import "./lrndesign-gallery-zoom.js";
import "./lrndesign-ga... |
var contentOffset;
var portfolioArray;
$(document).ready(function () {
buildPortfolio();
contentOffset = parseInt($("#about").css("padding-top").slice(0, -2)) + parseInt(+$("#about").css("margin-top").slice(0, -2));
console.log("Offset: " + contentOffset);
setListeners();
$('body').scrollspy({
target: '.... |
$(document).ready(function(){
$('.image-space').addClass('active');
$('.image-create ul li').click(function() {
$('.image-create ul li').removeClass('active');
$(this).addClass('active');
$('.image-create .tab-pane').removeClass('in');
$('.image-create .tab-pane').removeClass('ac... |
const { Logger } = require('@dojot/microservice-sdk');
const nearley = require('nearley');
const Utils = require('../Utils');
const whereParser = require('./Parser');
const { InvalidSyntax, InvalidEscapeValue } = require('../Errors').Errors;
const OperatorValidator = require('./OperatorValidator');
const logger = ne... |
import React from 'react'
import { Row, Col, Menu, Icon, Modal, Button, Form, Input, Tabs } from 'antd'
import logo from '../../images/logo.png'
import axios from 'axios'
import { Link } from 'react-router'
const TabPane = Tabs.TabPane;
const FormItem = Form.Item;
class PCHeader extends React.Component {
constru... |
var container, stats, controls;
var camera, scene, renderer, light;
const FACE_MORPH = {
"EYE_CLOSE" : 12,
"EYE_CLOSE_R" : 13,
"EYE_CLOSE_L" : 14,
"EYE_Surpirsed" : 19,
"MTH_A" : 29,
"MTH_I" : 30,
"MTH_U" : 31,
"MTH_E" : 32,
"MTH_O" : 33,
};
var morphMesheFace;
var weightFace = {
... |
////
// DATA
////
// Rearrange our top coin data so that its usefull to us
var coin_map_to_name = new Object()
top_100_coins.forEach(coin => coin_map_to_name[coin.name.toLowerCase()] = { "name": coin.name, "slug": coin.slug, "symbol": coin.symbol });
////
// CONTAINER
////
var heatmap_container_bounds = document.getEl... |
var router = require('express').Router();
const { text } = require('express');
const { requiresAuth } = require('express-openid-connect');
const { createUser , queryUser, queryUsers, updateUser, activateUser, userStatistic, updateUserName } = require('../db/sqldb');
const nodemailer = require("nodemailer");
const confi... |
const SocketClient = require('../socket/socket_client')
const util = require('./util')
const keepAliveInterval = 120 * 1000 // 2 minutes
class ElectrumClient extends SocketClient {
constructor(host, port, protocol, options) {
super(host, port, protocol, options)
}
async connect(clientName, electrumProtocol... |
import { DependencyGraph } from "./dependency-graph";
const DEPENDENCY_GRAPH = Symbol();
const TASKS = Symbol();
const TASK_SORT = Symbol();
const CELL_HEIGHT = Symbol();
const CELL_WIDTH = Symbol();
const taskHandlers = new Map;
const ONE_DAY_MS = 86400000;
const DEFAULT_CELL_HEIGHT = 20;
const DEFAULT_CELL_WIDTH =... |
/**
* App Settings Reducers
*/
import update from 'react-addons-update';
import {
COLLAPSED_SIDEBAR,
DARK_MODE,
BOXED_LAYOUT,
RTL_LAYOUT,
MINI_SIDEBAR,
SEARCH_FORM_ENABLE,
CHANGE_THEME_COLOR,
TOGGLE_SIDEBAR_IMAGE,
SET_SIDEBAR_IMAGE,
SET_LANGUAGE,
START_USER_TOUR,
STOP_USER_TOUR,
TOGGLE_DARK_SIDENAV,
CH... |
/*
* MODEFONY FRAMEWORK UNIT TEST
*
* MOCHA STYLE
*
* In the global context you can find :
*
* nodefony : namespace to get library
* kernel : instance of kernel who launch the test
*
*/
//const http = require("http");
//var https = require("https");
//const WebSocketClient = require('websocket').cl... |
var weatherData;
var citySearch;
var cityArray = []
//get all the city stored in the local storage if not then assigns a blank array
var searchCityList = JSON.parse(localStorage.getItem("searchHistory") ) || [];
console.log("LS", searchCityList);
for( var i = 0; i < searchCityList.length; i++ ){
var liTag... |
$.ajaxSetup({async: false});
var showCunli = function (theYear, theButton, cunliCode) {
if (!cunliCode) {
cunliCode = '';
}
var valueKeys = {
playButton1: 'avg',
playButton2: 'mid',
playButton3: 'sd',
playButton4: 'mid1',
playButton5: 'mid3'
};
consol... |
import AsyncValidator from 'async-validator';
import emitter from '../../utils/mixins/emitter';
let formItemTemplate = `
<div class="form-item" :class="{
'is-error': validateState === 'error',
'is-validating': validateState === 'validating',
'is-required': isRequired || required
}">
<label :for="prop" class="f... |
"use strict";
$(".selectpicker").selectpicker({
iconBase: "fas",
tickIcon: "fa-check",
});
$("#run-button").click(function (e) {
e.preventDefault();
run(editor);
});
$("#terminal").mouseenter(function () {
$("#terminal>div.toolbar").fadeTo("normal", 1);
});
$("#terminal").mouseleave(function () {
$("#te... |
import React, { useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
import {
CButton,
CCol,
CFormGroup,
CInput,
CInputCheckbox,
CLabel,
CModal,
CModalBody,
CModalFooter,
CModalHeader,
CModalTitle,
CRow,
CSelect,
} from "@coreui/react";
import DashboardHelper from ... |
import JavascriptTimeAgo from 'javascript-time-ago';
import fr from 'javascript-time-ago/locale/fr';
import CssBaseline from '@material-ui/core/CssBaseline';
import {
BrowserRouter as Router,
Switch,
Route as NativeRoute,
Redirect,
useLocation
} from 'react-router-dom';
import { createPrivateRouteComponent } from... |
import React from 'react'
import R from 'ramda'
import { withReducer, lifecycle } from 'recompose'
import { TextField } from 't63'
const SIZE = 20
const {
set,
lensProp,
map,
nth,
merge,
zipObj,
times,
propOr,
cond,
find,
propEq,
compose,
T,
always,
and,
equals,
ifElse,
identity,
... |
const { app, BrowserWindow, ipcMain } = require("electron");
const path = require("path");
const fs = require("fs");
const axios = require("axios");
const https = require("https");
const LCUConnector = require("lcu-connector");
const RiotWSProtocol = require("./src/utils/webSocketLCU");
const connector = new LCUConnec... |
import React, { Component } from 'react';
import {spiral} from '../../../utils/tiles-builder'
import PubSub from 'pubsub-js';
class MenuMiniMap extends Component {
constructor(props) {
super(props);
this._onResize = this._onResize.bind(this)
this._onClick = this._onClick.bind(this)
}
... |
var _ = require('lodash');
var fs = require('fs');
var path = require('path');
var gulp = require('gulp');
var del = require('del');
var less = require('gulp-less');
var connect = require('gulp-connect');
var runSequence = require('run-sequence');
var rename = require('gulp-rename');
var merge = require('merge-stream')... |
var db;
var dbCreated = false;
var scroll = new iScroll('wrapper', { vScrollbar: false, hScrollbar:false, hScroll: false });
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
db = window.openDatabase("EmployeeDirectoryDB", "1.0", "PhoneGap Demo", 200000);
if (dbCreate... |
var net = require('net');
const fs = require('fs');
const readline = require('readline');
var {blake2bInit, blake2bUpdate, blake2bFinal} = require('blakejs');
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}
functio... |
import React, { Component } from 'react'
import { Sparklines, SparklinesLine } from 'react-sparklines'
import getAssetImage from 'cryptoicons-cdn'
import orderBy from 'lodash/orderBy'
import BtcIcon from 'assets/btc-symbol.svg'
import EthIcon from 'assets/eth-symbol.svg'
import UsdIcon from 'assets/usd-symbol.svg'
im... |
"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... |
const apiHost = 'https://an-it-p.herokuapp.com/api/v1';
const getAnnouncements = (status = '') => {
setLoading(true);
const url = new URL(`${apiHost}/announcements`);
url.searchParams.append('status', status);
fetch(url.toString(),
{
method: "GET",
headers: {
... |
var $location = $injector.get('$location');
var $routeParams = $injector.get('$routeParams');
var $route = $injector.get('$route');
var $filter = $injector.get('$filter');
var $modal = $injector.get('$modal');
$scope.paramId = $routeParams.id;
$scope.routes = [];
$scope.filtered1 = [];
$scope.displayed1 = [];
$scope... |
import {getGroupedByProperty} from './index.js';
import {isMatch} from '@writetome51/is-match';
let arrays = [
[1, 2], [3, 4, 5, 6, 7], [8, 9, 10], [11, 12], [13, 14, 15, 16], [17, 18, 19, 20, 21], [22, 23, 24, 25]
];
let groups = getGroupedByProperty('length', arrays);
if (isMatch(groups, [
[[1, 2], [11, 12]],
[[... |
import React from "react";
import { Link } from "react-router-dom";
import '../../main.css';
import DatePicker from "react-datepicker";
import FooterPath from "./FooterPath";
import "react-datepicker/dist/react-datepicker.css";
import { registerLocale, setDefaultLocale } from "react-datepicker";
import pt from 'react... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var mkdir = require('./mkdir.js');
var stat = require('./stat.js');
var debug = require('debug');
var errCode = require('err-code');
var updateTree = require('./utils/update-tree.js');
var updateMfsRoot = require('./utils/update-mfs-root.js'... |
$(function () {
$(document).ready(function () {
bsCustomFileInput.init();
// $('#form').ajaxForm({
// beforeSubmit: function () {
// $('#form').validate({
// rules: {
// file_import: {
// required: tr... |
/// file system
const fs = require('fs');
/// locale
const locale = require('../config/locale.json');
/// commands
const commands = require('../config/commands.json');
/// class containing bind stuff
class BindsModule {
/// constructor, fancy JS stuff.
/// .bind(this) is used to make "this.something"... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _element = require("@wordpress/element");
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"... |
const fs = require("fs");
const { Message, Collection, Client, MessageEmbed, Invite } = require('discord.js');
const { colors, rawEmb, emotes } = require("./commands/utilities");
const config = require("./config.json");
const { Member, Settings, syncDatabase } = require('./database/dbInit');
var { token, owner } = con... |
const assert = require("../wrapper/assert-wrapper");
const { ObjectNamespace } = require("../lib/object-namespace");
const { ReplaceObjects } = require("./spawn/replace-objects");
const { Spawn } = require("./spawn/spawn");
const { Card, Rotator, Vector, world } = require("../wrapper/api");
/**
* Base class with some... |
var gulp = require("gulp");
var serve = require("gulp-serve");
var sass = require("gulp-sass");
var cssnano = require("gulp-cssnano");
var concat = require("gulp-concat");
var pug = require("gulp-pug");
var uglify = require("gulp-uglify");
var rename = require("gulp-rename... |
'use strict';
/* --------------------------------------------------------------------------
* Gulp libs
* --------------------------------------------------------------------------
*/
var gulp = require('gulp'),
concat = require('gulp-concat'),
less = require('gulp-less'),
minifyCss = ... |
// Load Environment Variables
require('dotenv').config();
const React = require('react');
const ReactDOMServer = require('react-dom/server');
const serialize = require('serialize-javascript');
const Cube = require('../models/cube');
const { NODE_ENV } = process.env;
const pages = {};
if (NODE_ENV === 'production') {... |
import React, { Component } from 'react';
import PropTypes from 'proptypes';
import classnames from 'classnames';
import _ from 'lodash';
import endcall from './app.js';
var endTime = new Date().setTime(1362009600000);
var currentTime = new Date().getTime();
var remainingTime = endTime - currentTime;
//var mins = ... |
var $ = null;
var element = null;
// 创建 tab
var create_tab = function (title, url){
var tab_li = $('.layui-layout-admin .layui-body .layui-tab-title li');
var tab_li_length = tab_li.length;
var find_this_li = false;
var find_li_last = false;
$.each(tab_li, function (k, v){
if($(v).find('spa... |
/* global Tools */
/**
* @file Holds {@link Chungo}
* @author [<NAME>]{@link https://github.com/aesedepece}
* @author [<NAME>]{@link https://github.com/TitanNano}
* @author [<NAME>]{@link https://github.com/Gioyik}
* @author [<NAME>]{@link https://github.com/gargsms}
* @license AGPLv3
*/
'use strict';
var Chungo = {... |
const axios = require('axios-https-proxy-fix');
const CryptoJS = require("crypto-js");
const Crypto = require("crypto");
const EnumUtil = require('./../util/enum-util');
let iniParser = require('iniparser');
let config = iniParser.parseSync('./resource/config.ini');
let proxy = {
host: config['PROXY']['ip'],
p... |
'use strict';
/* jslint node:true */
var _ = require('underscore');
var Table = require('cli-table');
var View = require('./view');
var values = require('../runtime/values');
var JuttleMoment = require('../runtime/types/juttle-moment');
class TableView extends View {
constructor(options, env) {
super(opti... |
'use strict';
const _get = require('lodash/get'),
_defaults = require('lodash/defaults'),
_map = require('lodash/map'),
_capitalize = require('lodash/capitalize'),
_constant = require('lodash/constant'),
_reject = require('lodash/reject'),
_last = require('lodash/last'),
fs = require('fs'),
path = requ... |
/*
* caseMapper.js - define upper- and lower-case mapper
*
* Copyright © 2014-2015, JEDLSoft
*
* 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/L... |
const { task, option, logger, argv } = require('just-task')
const fs = require('fs')
const download = require('download')
const path = require('path')
const fetchWrapper = require('./scripts/fetch_wrapper')
const buildAddon = require('./scripts/build_addon')
const packAddon = require('./scripts/pack_addon')
const fsExt... |
// @@@ RealTime Event Plugins
/*
description : Uniswap DAI wETH Swaps
Sync_historical: false
topic : Swap(address,uint256,uint256,uint256,uint256,address)
ABI: {
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{... |
/**
* Javascript for common elements in main layout template, such as menus,
* headers, and footers.
*
* author: <NAME> - DICE
*/
/**
* Information regarding the current file path and 'page' of data for that path being displayed
*/
var baseAbsPath = "/";
var baseAbsPathAsArrayOfPathElements;
var displayPage = ... |
import { EditorState, EditorSelection } from "@codemirror/state";
import { markdown, deleteMarkupBackward, insertNewlineContinueMarkup } from "@codemirror/lang-markdown";
import ist from "ist";
function mkState(doc) {
let cursors = [];
for (let pos = 0;;) {
pos = doc.indexOf("|", pos);
if (pos <... |
/*
* mdu-reduce-sorted.js: exactly like mdu-reduce.js, but assumes that its input
* is sorted first and processes the input online, without reading all the input
* at once.
*/
var mod_assertplus = require('assert-plus');
var mod_cmdutil = require('cmdutil');
var mod_lstream = require('lstream');
var mod_jsprim = r... |
/**
*
* GuidePage
*
*/
import React, { useState, useCallback } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import { EditorState, convertToRaw } from 'draft-js';
import randomString fro... |
import React, { Component } from 'react';
import {Dropdown, Container, Table, Pagination, Button} from 'semantic-ui-react'
import beautify from 'json-beautify'
import _ from "lodash"
import {XYPlot, LineSeries, MarkSeries, XAxis, YAxis} from 'react-vis'
class ResearcherDashboard extends Component{
constructor(pro... |
const _ = require('lodash');
const { BU } = require('base-util-jh');
const Model = require('./Model');
const protocol = require('./protocol');
const { checkTripleInv } = require('../errorChecker');
const AbstConverter = require('../../Default/AbstConverter');
class Converter extends AbstConverter {
/**
* @param... |
/**
* Copyright 2015 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
import React, { useState, useEffect, useCallback, useRef, useMemo } from 'react'
import { Card, Stack, Pagination } from '@shopify/polaris'
import parseLinkHeader from 'parse-link-header'
import SelectResourceType from './SelectResourceType'
import Search from './Search'
import ResourceList from './ResourceList'
impor... |
var data_table=null;
function datatableInit(){
data_table=$('#kt_datatable').KTDatatable({
data: {
type: 'remote',
source: {
read: {
url: '/users/getUsersDataTable',
headers: {
'X-CSRF-Token': $('meta[nam... |
// Constructor for an XAL Message Session with the specified remote service
function XAL_MessageSession( servname, host, port ) {
// message handlers keyed by request ID
this.responseHandlers = new Object();
// create a request counter for this instance
this.createRequestCounter();
// if the arguments are not s... |
/*!
* deep-diff.
* Licensed under the MIT License.
*/
// https://github.com/flitbit/diff -- using index.js from Bower version 0.3.3
// made changes to force return of function to DeepDiff global variable
/*
ZeGenie Changes:
- removed hackish setting at the end
- removed platform check at the beginning
- removed $c... |
import React from 'react';
import jump from 'jump.js';
import moment from 'moment';
import { TimeIcon } from './icons';
/**
* return calss name
* @param {String} state
* @param {Number} index
*/
export const getRecordClass = (status, index) => {
if (status === 'failed') return 'row_fail'
if (status === 'pend... |
"use strict";
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const rimraf = require('rimraf');
const webpack = require('webpack');
const url = require('url');
const common_tags_1 = require('common-tags');
const utils_1 = require('../models/webpack-configs/utils');
const webpack_... |
class Screen {
constructor(width, height) {
this.width = width;
this.height = height;
this.menus = [];
this.time = 0;
this.texture = null;
this.gameMenu = new PIXI.Container();
this.editMenu = new PIXI.Container();
this.inputMenu = new PIXI.Container();
this.tooltip = new Tooltip(a... |
import React from 'react'
import './index.css'
// header
// content
// footer
const ArrowUp = 'ArrowUp',
ArrowDown = 'ArrowDown',
ArrowLeft = 'ArrowLeft',
ArrowRight = 'ArrowRight'
function Square(props) {
return (
<button className='square'>
{props.value}
... |
import tinymce from 'tinymce/tinymce';
import 'tinymce/themes/silver';
import 'tinymce/plugins/lists';
import 'tinymce/plugins/table';
import 'tinymce/plugins/image';
import 'tinymce/plugins/preview';
var IconPicker = require('@furcan/iconpicker');
export default (function () {
if (typeof window.tinymce === 'und... |
/*!
* Copyright (c) Microsoft and contributors. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Azure KeyVault Keys SDK for JavaScript - 1.0.0
*/
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var tslib = re... |
import { APP_SETTING } from "../../achievementsApp/config";
import { AppBarMenuItemsExport } from "../../components/AppDrawerElements";
// import { Home } from "../../components/Home";
import Home from "../Home/AltHome";
import { Route, HashRouter as Router } from "react-router-dom";
import { connect } from "react... |
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
var hash = bcrypt.hashSync("bacon");
//var passportLocalMongoose = require('passport-local-mongoose');
var config = require('../../config');
var moment = require('moment');
//var db = mongoose.connect(config.development.dbUrl);
var ApartmateUs... |
const canvas = document.createElement('canvas');
const context = canvas.getContext('2d');
canvas.width = 500;
canvas.height = 500;
canvas.style.border = '1px solid black';
document.body.append(canvas);
const tilesize = canvas.width / 8;
const tiles = [];
let moving = false;
let mousepos = 0;
let pie... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.