text stringlengths 3.07k 16k |
|---|
/* eslint-disable jsx-a11y/anchor-is-valid */
import "./css/styles.css"
import 'bootstrap/dist/css/bootstrap.min.css';
import {connect, useDispatch, useSelector} from "react-redux";
import {Navigate, Link} from "react-router-dom";
import {Dropdown} from "react-bootstrap";
import styled from "styled-components";
import ... |
const path = require('path');
const fs = require('fs');
const meow = require('meow');
const git = require('git-rev-sync');
const cfnConfig = require('@mapbox/cfn-config');
const lambdaCfn = require('../index.js');
module.exports.main = main;
module.exports.parse = parse;
function parse(args, env) {
const cli = me... |
// Dependencies
const path = require('path')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const ManifestPlugin = require('webpack-manifest-plugin')
const CleanWebpackPlugin = require('clean-webpack-plugin')
const webpack = require('webpack')
... |
/**
* @license
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
var Color = require("color");
var Easing = require("easing");
var serialPort = require('serialport');
var onExit = require('signal-exit');
var START_VAL = 0x7e;
var MSG_TYPE_DMX_OUT = 0x06;
var DMX_STARTCODE = 0x00;
var END_VAL = 0xE7;
var fps = 40;
var open = false;
var LEDs = 120;
var spacing = ... |
const path = require('path');
const Ajv = require('ajv');
const ajv = new Ajv;
require('ajv-keywords')(ajv, ['instanceof']);
const schema = require('./schema.json');
module.exports = function AuthorizationCodeNormalize(options = {}) {
const validate = ajv.compile(schema);
const valid = validate(options);
if (!val... |
import React, { Component } from 'react'
import { Link } from 'gatsby'
import { CopyToClipboard } from 'react-copy-to-clipboard'
import Masonry from 'react-masonry-component'
import 'typeface-bitter'
import { rhythm } from '../utils/typography'
import FooterBio from '../components/FooterBio'
import Layout from '../com... |
'use strict';
// DEPENDENCIES
const express = require('express');
const cors = require('cors');
const superagent = require('superagent');
require('dotenv').config();
const pg = require('pg');
const { query } = require('express');
// INITIALIZE APP - ESTABLISH PORT
const app = express();
const PORT = process... |
var http = require('http'),
fs = require('fs'),
zlib = require('zlib'),
readline = require('readline');
// biblio-glutton server
var host = "localhost"
var port = "8080"
var service = "/service/oa?doi="
/**
* usage:
*
* > npm install
*
* > node oa_coverage -istex ../data/istex/istexIds.all.gz
* ... |
import React, { Component } from 'react';
import styled from 'styled-components';
import { Icon } from 'ming-ui';
import { Menu, Dropdown, Tooltip } from 'antd';
import WithoutFidldItem from './WithoutFidldItem';
import RenameModal from './RenameModal';
import { SortableContainer, SortableElement, arrayMove } from 'rea... |
import Vue from "vue";
import Vuex from "vuex";
import * as fb from "../firebase";
import router from "../router/index";
Vue.use(Vuex);
//How can I determine which team is there? Basically when someone enters the draft page I need to
const store = new Vuex.Store({
state: {
// Fully describes signed in user's pr... |
import { ComponenteReactivo, CustomElement } from "../../Utils/reactivity.js";
import { Input } from "../Inputs/Input.js";
import { Button } from "../Buttons/Button.js";
import { Select } from "../Selects/Select.js";
import {
validate_register_fields,
getData,
samePasswords,
} from "./registerForm_Utilities.js";
... |
var animSpeed = 250;
var successMessage = "<span class=\"success\">Congratulations!</span><br/> Your name can be completely constructed from the Periodic Table of Elements!";
var fakeMessage = "Not all letters in your name can be found in the Periodic Table..<br/>but how about throwing some <span style=\"color: rgba(23... |
// Global Variables
var loc0 = [-8.6296, 41.1557];
var i = 0;
var avg_S = 0
var dist = 0;
var transit = 0;
var dts = document.getElementById('dts');
var dur = document.getElementById('dur');
var dis = document.getElementById('dis');
var tra = document.getElementById('tra');
// Create the map
mapboxgl.accessToken = '<... |
/** @format */
// BaseController
const BaseController = require('./baseController')
// Module Repository
// Packages
var config = require('config')
var dateFormat = require('dateformat')
var querystring = require('qs')
class PaymentController extends BaseController {
constructor() {
super()
}
async getAll... |
'use strict';
var pauseIcon = 'icons/icon_off.svg',
startIcon = 'icons/icon.svg',
mbTabs = {},
mbwTabs = [],
urls = [],
currentTabId,
mbSettings;
function HTTPGetText(url, handleReqListener, handleReqError) {
var oReq = new XMLHttpRequest();
oReq.onload = handleReqListener;
oReq.onerror = handleReqError;
... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
module.metadata = {
"stability": "experimental"
};
var { Cc, Ci } = require("chrome");
var appIn... |
let Parser = require('rss-parser')
let fs = require('fs')
let querystring = require('querystring')
let urlMod = require('url')
let URL = urlMod.URL
let jsonText = fs.readFileSync('./subs.json');
let feedxUrls = JSON.parse(jsonText);
let content = JSON.stringify(feedxUrls, undefined, 4);
fs.writeFileSync(`./subs.json`... |
// Either supply the location of the config file in the argument or default to it being in the same folder as the script
// Consts
const CONFIG = require(process.argv[2] || './config.json');
// Field to error check that the config.json contains all the proper keys
let configJSONFieldsToCheck = [
"PATH_TO_MODELS_JS... |
var survey;
var InputChoice = /** @class */ (function () {
function InputChoice() {
}
return InputChoice;
}());
var Survey = /** @class */ (function () {
function Survey() {
this.choices = [];
}
Survey.prototype.isLastChoice = function (choice) {
return this.choices.indexOf(choic... |
import AssetEnum from "../assets/assetsenum";
import game from "index";
const TileType = {
//TODO: add other attributes
list: {
GRASS: { name: "GRASS", collision: false },
FLOOR: { name: "FLOOR", collision: false },
WOODFLOOR: { name: "WOODFLOOR", collision: false },
PATH: { n... |
import React from 'react';
import PropTypes from 'prop-types';
import SignatureCanvas from 'react-signature-canvas';
import withStyles from '@material-ui/core/styles/withStyles';
import Contacts from '@material-ui/icons/Contacts';
import MenuItem from '@material-ui/core/MenuItem';
import Select from '@material-ui/cor... |
const ArrayTypeNames = [
null,
'Float32Array',
'Int8Array',
'Int16Array',
'Int32Array',
'Uint8Array',
'Uint16Array',
'Uint32Array'
]
const ArrayTypes = [
null,
Float32Array,
Int8Array,
Int16Array,
Int32Array,
Uint8Array,
Uint16Array,
Uint32Array
]
function get_array_type(obj){
return ArrayTypeNames.i... |
let app = require('express')()
let server = require('http').Server(app)
let io = require('socket.io')(server)
let fs = require('fs')
const readline = require('readline')
app.get('/', function (req, res) {
res.send('<h1>Hello Wellcome</h1>')
})
server.listen(9000, () => {
console.log('in 9000')
})
// 记录房间当前人数... |
/* eslint-disable no-prototype-builtins */
const JSZip = require('jszip');
const xml2js = require('xml2js');
const fs = require('fs');
let { PowerPointFactory } = require('./factories');
let { PptxUnitHelper } = require('./helpers/unit-helper');
let POWERPOINT_LAYOUTS = require('./layout-types').Layouts;
// TODO: r... |
import React from "react";
import { useLocation } from "react-router-dom";
import styled from "styled-components";
import { opacify } from "polished";
import qs from "qs";
import { mdiPlay } from "@mdi/js";
import { useScrollX } from "@/lib/react-utils";
import { useResources } from "@/lib/resources";
import {
useI... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ImagePreview = ImagePreview;
exports.NoImagePreview = void 0;
var _react = _interopRequireDefault(require("react"));
var _hooks = require("@sanity/base/hooks");
var _assetUtils = require("@sanity/asset-utils");
var _imageUrl = _... |
/* global localStorage */
import React, { useContext, useEffect, useState } from 'react'
import { Helmet } from 'react-helmet'
import { Modal, message } from 'antd'
import Particles from 'react-particles-js'
// import GoogleLogin from 'react-google-login'
import { BrowserRouter as Router, Switch, Route } from 'react-r... |
/**
* Copyright (c) 2017, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* src/remoteCollection/handleCollectResponse.js
*/
const debug = require('debu... |
function getGuitar(guitarApp) {
return guitarApp.yourGuitar.guitar;
}
function addFretMarkId(fretDiv, fretNum) {
if ([3, 5, 7, 9, 15, 17, 19, 21].includes(fretNum)) {
fretDiv.className += " single-fret-mark";
} else if ([12, 24].includes(fretNum)) {
fretDiv.className += " double-fret-mark"... |
const router = require('express').Router();
const bcrypt = require('bcryptjs');
const cloudinary = require('cloudinary').v2;
const dbMethods = require('../data/db-model');
const db = require('../data/dbConfig');
const table = 'users';
// get by token
router.get('/user', async (req, res) => {
try {
const us... |
import React, { Component } from 'react'
import { graphql } from 'gatsby'
import SEO from 'components/Seo'
import Head from 'components/Head'
import Layout from 'components/layout/DefaultLayout'
import styled from 'styled-components'
import { clearFix } from 'polished'
import Tags from '../components/Tags'
import qs fr... |
/* Attach button listeners */
var progressBar;
var progressText;
var flowPane0;
var flowPane1;
var flowPane2;
var url;
var shortString;
var flowPane0Cont;
var flowPane1Cont;
var backgroundUrl;
var redirectLink;
var error;
window.addEventListener('load', function() {
progressBar = document.getElementById('progress'... |
function GetPluginSettings()
{
return {
"name": "Authentication",
"id": "Rex_Parse_Authentication",
"version": "0.1",
"description": "Authentication which is provided by parse.",
"author": "Rex.Rainbow",
"help url": "http://c2rexplugins.weebly.com/rex_parse_authentication.html",
"category... |
/*
Example visualisation based on http://bl.ocks.org/mbostock/4063423
D3.js and jQuery are dependencies
*/
function createD3ClusterDendrogram(root, config){
config = config || {};
var familyNames = {};
var fileRoot = config.root || '';
var radius = $(window).width()/2;
var cluste... |
// autoComplete.js on type event emitter
document.querySelector("#autoComplete").addEventListener("autoComplete", function(event) {
console.log(event);
});
// The autoComplete.js Engine instance creator
const autoCompletejs = new autoComplete({
data: {
src: async function() {
// Loading placeholder text
... |
var fs = require('fs');
var path = require('path');
var Q = require('q');
var debounce = require('debounce');
var utils = require('./utils');
var child_process = require('child_process');
// Returns a promise.
module.exports = exports = function push(target, watch) {
var argsAsJson = JSON.stringify([].slice.call(arg... |
/*
* Customised Workspaces extension for Gnome 3
* This file is part of the Customised Workspaces Gnome Extension for Gnome 3
* Copyright (C) 2021 A.D. - http://kronosoul.xyz
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... |
import { createMkdir } from './mkdir.js'
import { createStat } from './stat.js'
import debug from 'debug'
import errCode from 'err-code'
import { updateTree } from './utils/update-tree.js'
import { updateMfsRoot } from './utils/update-mfs-root.js'
import { addLink } from './utils/add-link.js'
import { toMfsPath } from ... |
/*
Copyright 2020-Present Couchbase, Inc.
Use of this software is governed by the Business Source License included in
the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that
file, in accordance with the Business Source License, use of this software will
be governed by the Apache License... |
"use strict";
/**
* @packageDocumentation
* @module Parts.uPRISM
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const ObnizPartsBleInterface_1 = __importDefaul... |
/* eslint-disable react/jsx-wrap-multilines */
import React, { Component } from 'react'
import { Button, Card, CardBody, CardHeader, Col, Row } from 'reactstrap'
import ReactTable from 'react-table'
import 'react-table/react-table.css'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import Reac... |
// Game Class
class HangmanGame {
// new game constructor
constructor(words) {
this.lives = 6;
this.word = this.generate_word(words);
this.visual = this.generate_visual(this.word);
}
// function to grab a random word from the words.json file
generate_word(words){
let rn = M... |
'use strict';
function ___$insertStyle(css) {
if (!css) {
return;
}
if (typeof window === 'undefined') {
return;
}
var style = document.createElement('style');
style.setAttribute('type', 'text/css');
style.innerHTML = css;
document.head.appendChild(style);
return css;
}
function _interop... |
import NodeCache from "node-cache";
import base64url from "base64url";
import { sort } from "./sort.js";
import { getFactoriesState, getStateOf, getAnsState } from "./smartweave.js";
import { V2_V3_ARRAY } from "./constants/v2_v3_conversion.js";
import { BLACKLIST, MASKING_CONTRACT } from "./constants/blacklist.js... |
'use strict';
var utils = require('../../../libs/utils.js');
var ajax = require('../../../libs/ajax.js');
var Proj4js = require('../../../libs/proj4js-compressed.js');
// ------------------------------------------------------------------------------
/**
* To add points on your maps, use DynamicalData.
*
* One Dyna... |
import {math} from '../lib/math.js';
/**
* @desc Creates torus-shaped geometry arrays.
*
* ## Usage
*
* In the example below we'll create an {@link XKTModel}, then create an {@link XKTMesh} with a torus-shaped {@link XKTGeometry}.
*
* [[Run this example](http://xeokit.github.io/xeokit-sdk/examples/#geometry_bui... |
const { WebcController } = WebCardinal.controllers;
const cscServices = require('csc-services');
const OrdersService = cscServices.OrderService;
const eventBusService = cscServices.EventBusService;
const momentService = cscServices.momentService;
const SearchService = cscServices.SearchService;
const { Topics, Commons... |
// webpack.config.js
const { HotModuleReplacementPlugin, BannerPlugin } = require('webpack')
const WebpackBar = require('webpackbar')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const FriendlyErrorsWebpackPlugin = require('@nuxt/friendly-errors-webp... |
(
suprolftpdCFG(ret, api, local, req, res, next),
"async"// async always
)
/*
* Reloaded API code: dynamic config
*/
function suprolftpdCFG(ret, api, local, req, res, next){
if(!local.url){// runs directly from `api_load` for `app_back_*`
return config_check(local.cfg)// dynamic config
}
... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('v... |
/**
* @category styles
* @component icon
* @variations collab-ui-react
*/
import React from 'react';
import PropTypes from 'prop-types';
import iconPaths from '@collab-ui/icons/data/iconsData.json';
import colors from '@collab-ui/core/data/colors.json';
import _ from 'lodash';
import { Button } from '@collab-ui/re... |
/*
* KodeBlox Copyright 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http: //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
//jshint ignore:start
import React, { Component } from 'react';
import {
Button,
Image,
StyleSheet,
Text,
View,
FlatList,
StatusBar,
Alert,
AsyncStorage,
TouchableOpacity,
ScrollView,
ListView
} from 'react-native';
import {ListItem} from 'react-native-elements';
//import Icon from 'react-native... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
require('./slicedToArray-a8a77f0e.js');
require('./unsupportedIterableToArray-f175acfa.js');
var React = require('react');
require('./_commonjsHelpers-1b94f6bc.js');
require('./index-46d0e707.js');
require('./defineProperty-3cad0327.js');
re... |
var upImgUrl;
$(function () {
$("#jqGrid").jqGrid({
url: baseURL + 'sys/popup/list',
datatype: "json",
colModel: [
{label: 'ID', name: 'id', index: 'id', width: 50, key: true},
{
label: '操作系统', name: 'os', index: 'os', width: 80,
format... |
/*
邀请链接:https://yxhhd2.5054399.com/comm/bzyld2/share/index.php?ext=3091185497
2021-09-07 10:24
@wenmoux
*/
const axios = require("axios")
var sckstatus = true
var strcode = ""
var name = []
var device = config.youlecheng.device
var scookie
const UA = config.youlecheng.UA ? config.youlecheng.UA : "..."
function get(b... |
import React, { Component } from "react";
import { connect } from "react-redux";
import titles from "../../../configs/title";
import translator from "../../../funcs/translator";
import { Translator, PopUp } from "../../../components/utils";
import { updateData } from "../../../store/actions/rootActions";
import Select ... |
// For static header
import React from "react";
import Header from "../components/Header.js";
import TextBlock from "../components/HeaderBlocks/TextBlock";
// For list of medical info
import Grid from "@material-ui/core/Grid";
import List from "@material-ui/core/List";
import ListItem from "@material-ui/core/ListItem"... |
const http = require('http');
const assert = require('assert');
const crypto = require('crypto-js');
const qs = require('querystring');
const ERROR_CODES = {
812: '短信发送太频繁',
817: '抱歉,短信验证码发送次数已达到今日上限!',
7001: '短信验证码错误!',
8010: '号源不足!',
8019: '超过停挂时间!',
};
const request = (method, url, payload, headers) => {... |
/**
* @Description: 二级菜单浮出层组件-搜索框
*
* @author: gaoxin
*
* @date: 2020/2/6
*/
import React, { PureComponent } from 'react';
import { AutoComplete } from 'antd';
import { connect } from 'dva';
import { routerState } from '@/utils/tool';
import Cookie from '@/utils/cookie';
import styles from "./queryInput.less"
... |
const { createMD5Hash } = require('../../utils/');
const X = require('./../../utils/X');
const {
ERROR_CODES : {
NOT_FOUND,
WRONG_FORMAT
}
} = require('./../../etc/config');
const Homie = require('./../Homie');
class HomieClient {
constructor({ homie }) {
i... |
/*
* Copyright(c) 2017 Microsoft Corporation. All rights reserved.
*
* This code is licensed under the MIT License (MIT).
*
* 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 rest... |
'use strict';
const _ = require('lodash');
const proxyquire = require('proxyquire');
const middleware = proxyquire('../lib/middleware', {
'basic-auth': function (req) {
return req.auth;
}
});
const lib = require('../lib');
const errors = lib.errors;
const MethodNotAllowed = errors.MethodNotAllowed;
const NotFo... |
import * as React from "react";
import { createTheme, ThemeProvider } from "@mui/material/styles";
import useMediaQuery from "@mui/material/useMediaQuery";
import CssBaseline from "@mui/material/CssBaseline";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import Link from "@mui/... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*
*/
'use strict';
const Blob = require('../Blob/Blob');
const BlobManager = require('../Blob/BlobManager');
co... |
/* eslint-disable */
function drawTable(size) {
var tableString = "<table>";
for (var y = 0; y <= size; y++) {
var trString = "<tr>";
for (var x = 0; x <= size; x++) {
trString = trString + `<td id="${x}-${y}" style="background-color: blue;"></td>`;
}
trString = trSt... |
// homebridge-deconz/lib/Deconz/WsClient.js
//
// Homebridge plug-in for deCONZ.
// Copyright © 2018-2022 <NAME>. All rights reserved.
'use strict'
const events = require('events')
const homebridgeLib = require('homebridge-lib')
const WebSocket = require('ws')
/** Client for web socket notifications by a deCONZ gate... |
#!/usr/bin/env /usr/local/bin/node
/*
<bitbar.title>Vigil Website Monitoring</bitbar.title>
<bitbar.version>v1.0</bitbar.version>
<bitbar.author><NAME></bitbar.author>
<bitbar.author.github>cameronrye</bitbar.author.github>
<bitbar.desc>Displays the status of hosts being monitered by Vigil.</bitbar.desc>
<... |
import React, { useEffect, useState } from 'react';
import { StatusBar } from 'expo-status-bar';
import {
Button, Alert, CheckBox,
StyleSheet, Text, TextInput, View, ScrollView,
TouchableOpacity, Modal, Pressable
} from 'react-native';
import { Feather } from '@expo/vector-icons';
import { useSelector, useD... |
const fs=require('fs')
// const { Module } = require('node:module')
const path=require('path')
class SubjectModel{
constructor(filename='subjects.json'){
this.path=`./data/${filename}`
try {
fs.readdirSync('data')
} catch (error) {
fs.mkdirSync('data')
}... |
const express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
const path = require('path');
const fs = require('fs');
var scope = require('./scope')
var camera = require('./camera')
var api = require('./api')
var sudo = require('sudo-js');
var sext... |
/*
* Main feathersjs application entrypoint
*/
const path = require('path');
const favicon = require('serve-favicon');
const compress = require('compression');
const cors = require('cors');
const helmet = require('helmet');
const logger = require('winston');
const Rave... |
checkFlag = false;
var game3 = new Phaser.Game(640, 400, Phaser.AUTO, '', { preload: preload_3, create: create_3, update: update_3, render: render_3 });
function preload_3() {
game3.load.image('land', 'images/world3.png');
game3.load.spritesheet('player', 'images/player.png', 32, 48);
game3.load.image(... |
'use strict';
module.exports = {
tryToRefreshChatMessagesStoring,
currentlyIsOkay,
getNewMessageSequenceNumber,
persistMessage,
listMessages
};
const goblinBase = require('../../../index.js').getGoblinBase(),
log = goblinBase.logsHook;
const MESSAGE_COUNTER_HEADER = inGroup => `chatMsg-${inG... |
import * as types from '../mutations_types.js'
const state = {
// 购物车的商品数组
cart: [],
// 是否编辑购物车
isEditCart: false,
// 运费
deliver: 10,
// 运费的上限
limitDeliver: 88,
// 购物车的商品总数(头部图标)
displayCartNum: 0,
// 优惠
discount: 4,
// 选择的地址
address: {
receiver: '',
detail: "",
province: ... |
/*
Created by <NAME> on June 5, 2017.
*/
// Declare Closure Variables
let map;
let stopMarkers = [];
// $('#buses_here_btn').on('click', function (event, ui) {
// console.log('Button works');
//
// });
function addStopToTable(index, bus){
//Make Bus Schedule HTML table with jQuery
// <... |
// The Cloud Functions for Firebase SDK to create Cloud Functions and setup triggers.
const functions = require('firebase-functions')
// All HTTPS requests via promises
const rp = require('request-promise')
// The Firebase Admin SDK to access the Firebase Realtime Database.
const admin = require('firebase-admin')
co... |
$(function () {
$('#contractbasiclist').datagrid({
url: 'contractbasic/searchsplist',
rownumbers: true,
pagination: true,
// toolbar:toolbar1,
singleSelect: true,
striped: true,
pageSize: 10,
pageList: [10, 20],
columns: [[
{field: '... |
import React, { useEffect, useState, useRef } from "react";
import api from "../../services/api";
import GoogleMapReact from "google-map-react";
// import useSupercluster from "use-supercluster";
import FormLabel from "@material-ui/core/FormLabel";
import FormControl from "@material-ui/core/FormControl";
import FormGr... |
/*
Development
Bugs
*/
let fs = require("fs");
let dataPath = require('electron').remote.app.getPath("userData");
let page = 0;
function nextPage() {
switch(page) {
case 0:
document.getElementById("title").innerHTML = "Search Engine";
document.getElementById("content").innerHTML = "... |
const fs = require('fs')
const Twitter = require('twitter')
// If modifying these scopes, delete your previously saved credentials
// at ~/.credentials/calendar-nodejs-quickstart.json
const SCOPES = ['likes', 'follower_list', 'basic', 'public_content']
const CRED_DIR = './.tokens/'
const STORED_TOKEN = `${CRED_DIR}tok... |
import { useEffect, useState } from 'react';
import NFTInput from './NFTInput';
import Button from './common/button';
import { connect } from 'react-redux';
import { _metadata, _metadataTypes } from '../lib/metadataSchema.ts';
import { event } from '../utility/analytics';
import FormInputs from './FormInputs';
import ... |
const express = require('express'),
server = express(),
bodyParser = require('body-parser'),
countries = require("i18n-iso-countries");;
var {
google
} = require('googleapis');
const OAuth2Client = google.auth.OAuth2;
const SCOPES = ['https://www.googleapis.com/auth/spreadsheets.readonly'];
const path = requi... |
import { menu, payments } from './data'
import districts from './dataDistrict'
import {removeAcento} from './utils'
const nameInput = document.querySelector('#name')
const phoneInput = document.querySelector('#phone')
const addressInput = document.querySelector('#address')
const districtInput = document.querySelector(... |
import {isTuple} from 'vega-dataflow';
import {codegen, constants, functions} from 'vega-expression';
import {random} from 'vega-statistics';
import {
isArray, isBoolean, isDate, isNumber, isObject, isRegExp, isString,
panLinear, panLog, panPow, zoomLinear, zoomLog, zoomPow,
toBoolean, toDate, toNumber, toString,... |
import _find from "lodash/find";
import _filter from "lodash/filter";
import _map from "lodash/map";
import _remove from "lodash/remove";
import Fuse from "fuse.js/dist/fuse";
class PersonalDoctorsController {
constructor(PreloadService, AuthorizationService, HelperService, $rootScope, $timeout) {
"ngInject";
thi... |
import { load as load_template } from './templates';
import * as network from './network';
import * as apps from './apps';
import * as time from './time';
import Mustache from 'mustache';
import { api, lowcan,signalcomposer } from 'agl-js-api';
export function niceFormat(unformatted_number){
return unformatted_... |
const express = require('../PimpMyStremio/src/node_modules/express')
const getPort = require('../PimpMyStremio/src/node_modules/get-port')
const addon = require('../PimpMyStremio/src/lib/addon')
const uConfig = require('../PimpMyStremio/src/lib/config/userConfig')
const userConfig = uConfig.read().userDefined
const run... |
const express = require('express');
const cors = require('cors');
const app = express();
const server = require('http').Server(app)
const io = require('socket.io')(server)
const fs = require('fs');
const path = require('path');
var util = require('fluent-ffmpeg-util');
const webmToMp4 = require('webm-to-mp4');
app.use... |
"use strict"
const NodeQuest = require("node-quest");
const Cron = require("cron").CronJob;
const SpellRepository = require("../game/SpellRepository.js");
const UserRepository = require("../game/UserRepository.js");
const JobRepository = require("../game/JobRepository.js");
const MonsterRepository = require(".... |
const {always, compose, toString} = require('ramda');
const test = require('tap');
const sut = require('./label'); // Subject Under Test
const nodeLabel = compose(toString, sut);
const locales = always([
{terms: [
{name: '🌯', form: 'symbol', value: ['🔥🔥', '🔥🔥🔥']}]},
{terms: [
{name: '🍣', form: 'ver... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
const fs = require('fs');
const http = require('http');
const https = require('https');
const express = require('express');
const path = require('path');
const logger = require('morgan');
const cors = require('cors');
const compression = require('compression');
const methodOverride = require('method-override');
const s... |
/**
* @license Apache-2.0
*
* Copyright (c) 2019 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
"use strict";
/***************************************************************************************************************************
* @license *
* Copyright 2017 Coinbase, Inc. ... |
import React from 'react';
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import { Card, Image } from 'semantic-ui-react'
import {updatePersonList} from '../../redux/userlist.redux'
import { createSelector } from 'reselect'
import { store } from '../../store'
// const a = {x:1}, b={... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _inte... |
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var mysql = require('mysql');
var onlineUsers = new Array();
var app_users = {};
var app_admins = {};
var resultData ={};
var d = new Date();
app.set('port', (process.env.PORT || 5000));
a... |
const loggerNamespace = 'dx-service:bots:ClaimBot'
const Bot = require('./Bot')
const Logger = require('../helpers/Logger')
const logger = new Logger(loggerNamespace)
const assert = require('assert')
const schedule = require('node-schedule')
const CLAIM_EVERY_4H = '00 02,06,10,14,18,22 * * *'
const BOT_TYPE = 'Cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.