text stringlengths 3.07k 16k |
|---|
/**
* Created by govind on 7/23/16.
*/
var express = require("express");
var restlayer = require('./RESTLayer');
var homeServer = require('./homeserver/homeserver');
var esclient = require('./elasticsearch/esclient');
var bodyParser = require('body-parser');
var child_process = require("./childprocess/childprocess")... |
/*
* DEMO HELPERS
*/
/**
* debugData
*
* Pass me a data structure {} and I'll output all the key/value pairs - recursively
*
* @example var HTML = debugData( oElem.style, "Element.style", { keys: "top,left,width,height", recurse: true, sort: true, display: true, returnHTML: true });
*
* @param Object o_Data ... |
/* eslint-disable no-throw-literal */
import * as c3 from 'antlr4-c3';
import { FilterParser } from '../../generated/parsers/filter/FilterParser';
import { computeTokenIndexAndText, NO_SUGGESTIONS } from './parse-utils';
const NO_OPERATOR = [];
const getInValues = (tokens) => {
return tokens.filter((t) => t.text !=... |
import atLibModels from '~models';
import atLibComponents from '~components';
import Strings from '~features/output/jobs.strings';
import Controller from '~features/output/index.controller';
import PageService from '~features/output/page.service';
import RenderService from '~features/output/render.service';
import Scr... |
/*!
* Copyright (c) 2015-2019 Cisco Systems, Inc. See LICENSE file.
*/
import uuid from 'uuid';
import {tap} from '@webex/common';
import {WebexPlugin} from '@webex/webex-core';
import RealtimeChannelCollection from './realtime-channel-collection.js';
/**
* @class
* @extends {Mercury}
* @memberof Board
*/
const... |
var filterObj = {
need: '',
city: '',
country: ''
}
function compare( a, b ) {
if ( a.text < b.text ) return -1;
if ( a.text > b.text ) return 1;
return 0;
}
function onlyUnique(value, index, self) {
return self.indexOf(value) === index;
}
var weallmoveForm = {
submit: function(contactForm) {
v... |
/*
* 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 applicabl... |
const nedb = require('nedb-promises')
const omit = require('./omit')
const fs = require('fs')
const path = require('path')
const databases = {}
/**
* ファイル存在判定
* @param {string} filename
* @return {boolean}
*/
const isFile = filename => {
try {
return fs.statSync(filename).isFile()
} catch {
return fa... |
const express = require('express')
const TaskRouter = express.Router()
const { TaskService, RecordService } = require('../services')
const { TaskModel, RecordModel } = require('../models')
const { body, validationResult } = require('express-validator')
const VALID_RULES = ['COUNT_TAGS', 'RETRIEVE_HEADER', 'RETRIEVE_FO... |
export const Is = (variable) => {
const type = Object.prototype.toString
.call(variable)
.match(/\s([a-zA-Z]+)/)[1]
.toLowerCase();
const object = () => {
return type === 'object' ? true : false;
};
const array = () => {
return type === 'array' ? true : false;
};
const date = () => {
return type === '... |
/**
* Created by same on 2016/8/12.
* File description:用户修改绑定手机号码
*/
'use strict';
import React,{Component,PropTypes} from 'react';
import Helmet from 'react-helmet';
import {connect} from 'react-redux';
import {Warning,UserHeader} from 'components';
import { push as pushState} from 'react-router-redux';
import {ph... |
import React, { useEffect, useState } from "react";
// @material-ui/core components
import { withStyles, makeStyles } from "@material-ui/core/styles";
// layout for this page
import Admin from "layouts/Admin.js";
// core components
import Card from "components/Card/Card.js";
import CardHeader from "components/Card/Ca... |
import React from 'react';
import PropTypes from 'prop-types';
import { useTranslation } from 'react-i18next';
import Link from '../helpers/Link';
import './footer.css';
const propTypes = {
children: PropTypes.any
};
const ColHeader = ({ children, ...other }) => (
<div className='col-header' {...other}>
{chil... |
const cache = require('@actions/cache');
const core = require('@actions/core');
const exec = require('@actions/exec');
const fs = require('fs');
const glob = require('@actions/glob');
const http = require('@actions/http-client');
const io = require('@actions/io');
const tc = require('@actions/tool-cache');
const os = r... |
/*global */
var expect = chai.expect;
var view = {
template: '<div class="container" style="width: 100%;"><ul class="cards">' +
'<li id="card-1" class="card">Content</li>' +
'<li id="card-2" class="card">Content</li>' +
'<li id="card-3" class="card">Content</li>' +
'<... |
import React from 'react';
import { Link } from 'react-router-dom'
import withStyles from "@material-ui/core/styles/withStyles";
import {
Typography,
Button,
} from '@material-ui/core';
import CustomBreadcrumbs from '../components/customBreadcrumbs';
import DetailPanel from '../containers/detail';
import EnhancedTa... |
const vscode = require('vscode');
const fs = require('fs');
/**
* @param {vscode.ExtensionContext} context
*/
function activate(context) {
// Track currently webview panel
let currentPanel = undefined;
let disposable = vscode.commands.registerCommand('webber.livepreview', () => {
const columnToShowIn = vscode.... |
'use strict';
const debug = require('debug')('store');
const keepAlive = require('mobx-utils').keepAlive;
const mobx = require('mobx');
const Normalizer = require('./normalizer');
const DataPackageService = require('./service');
const makeNonEnumerable = require('./lib/utils').makeNonEnumerable;
const dataPackageSer... |
var express = require('express');
var router = express.Router();
const fs = require('fs');
const mongoose = require('mongoose');
router.get('/', function(req, res) {
req.session.reload(function(err) {
if(req.session.isAuthorized == true) {
var projects_array = [];
mongoose.connect("mongodb://... |
const fs = require('fs-extra');
const path = require('path');
const {ConcatSource, RawSource} = require('webpack-sources');
const _ = require('lodash');
const DEFAULT_GENERIC_TEMPLATE_NAME = 'template.liquid';
const PLUGIN_NAME = 'Slate Sections Plugin';
module.exports = class sectionsPlugin {
constructor(options =... |
const { Toolkit } = require('actions-toolkit')
const dotenv = require("dotenv");
dotenv.config();
const axios = require('axios').default;
const btoa = require('btoa');
Toolkit.run(async tools => {
// Assign owner and repo data to variables
const owner = tools.context.payload.repository.owner.login
const repo = t... |
var questions = [{
ques: "In the episode, 'Sabre', what famous actor is featured as himself in the Sabre orientation video?",
ans: ["<NAME>", "<NAME>", "<NAME>", "<NAME>"],
name: "orientationActor",
correct: "<NAME>",
divClass: ".orientationActor"
},
... |
import React from 'react'
import Helmet from 'react-helmet'
import styled from 'styled-components'
import {v4 as uuid} from 'uuid'
import { colors } from '../style/branding'
import Content, { HTMLContent } from '../components/Content'
import Post from '../components/Post'
import { SectionHeading, SectionSubHeading } ... |
import { debug } from './config'
// -+-+-+-+-+-+-+-+-+ VNodes -+-+-+-+-+-+-+-+-+
//
// VNode [parent]
// |
// | up
// |
// prev_s ------- VNode ------- next_s
// __________|_________
// | |
// ... |
import React, { Component } from 'react';
import {Table,TableBody,TableHeader,TableHeaderColumn,TableRow,TableRowColumn,} from 'material-ui/Table';
import RaisedButton from 'material-ui/RaisedButton';
import axios from 'axios';
import $ from 'jquery';
const fs = require('fs');
const storage = '../datasets';
const {ipcR... |
function whichTransitionEvent(){
const el = document.createElement('fakeelement');
const transitions = {
'WebkitTransition': 'webkitTransitionEnd',
'MozTransition': 'transitionend',
'MSTransition': 'msTransitionEnd',
'OTransition': 'oTransitionEnd',
'transition': 'transitionEnd'
};
for(let ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ListItem = exports.listItemFactory = undefined;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProper... |
var viewTarget = require("can-view-target");
var makeTree = require("./make-tree");
var lazy = require("can-define-lazy-value");
var safeCustomElement = require("./safe-custom-element");
var attributeConnect = require("./attribute-connect");
function debounce(func, wait) {
var timeout;
return function executedFunct... |
/**
* Created by Administrator on 2017/11/17.
*/
import React, {Component} from 'react';
import {Form, Row, Input, Button, Switch, Icon, Modal, Popconfirm, message} from 'antd';
import {injectIntl} from 'react-intl';
import {connect} from 'dva';
import {renderNotification} from './../../../utils/utils'
const FormIte... |
import React from "react"
import styled from "styled-components"
import { StaticQuery, graphql } from "gatsby"
import { TitleStyle, HeadlineStyle, DescriptionStyle } from "../../css/style.js"
const Wrapper = styled.section`
width: 100%;
max-width: 1200px;
margin: 107.5px auto 120px auto;
`
const CardWrapper = st... |
const Post = require("../models/Post");
const ErrorHandler = require("../utils/errorHandler");
const catchAsyncErrors = require("../middlewares/catchAsyncErrors");
const APIFeatures = require("../utils/apiFeatures");
const cloudinary = require("cloudinary");
// Create new product => /api/v1/admin/product/new
expor... |
'use strict';
const got = require('got');
const pWaitFor = require('p-wait-for');
const xml2js = require('xml2js');
const { s3 } = require('@cumulus/common/aws');
const log = require('@cumulus/common/log');
const { sleep } = require('@cumulus/common/util');
const ONE_SECOND = 1000;
const THREE_SECONDS = 3000;
const O... |
// Variables globales de p5.js:
/*global
preload,
createCanvas,
background,
push,
pop,
translate,
scale,
rotateX,
rotateY,
rotate,
loadImage,
image,
frameRate,
mouseMoved,
draw,
setup,
*/
////// Lienzo
var ancho = 400;
var alto = 400;
////// Personaje
var rude = {
// Animación
freqAnim: 3,
cuadro: 0,
v... |
'use strict';
const _ = require('lodash');
const prepareParams = require('../util/prepare-params');
const quote = require('../util/quote');
const Statement = require('./statement');
/**
* Represents an INSERT query.
*
* @class
* @param {Table} source - Database object to query.
* @param {Object|Array} record - A... |
import React from 'react';
import { Row, Card, CardBody, CardTitle } from 'reactstrap';
import { NavLink } from 'react-router-dom';
import LinesEllipsis from 'react-lines-ellipsis';
import responsiveHOC from 'react-lines-ellipsis/lib/responsiveHOC';
import Breadcrumb from '../../../../containers/navs/Breadcrumb';
impo... |
const dotenv = require('dotenv');
const net = require('net');
const colors = require('colors');
// Load env vars
dotenv.config({ path: './config/config.env' });
const PORT = process.env.PORT || 5001;
// device data
var specs = [
function (raw) {
// 1203292316,0031698765432,GPRMC,211657.000,A,5213.0247,N,00516.... |
import React from 'react';
import Codemirror from 'react-codemirror/lib/Codemirror';
require('codemirror/mode/javascript/javascript');
require('codemirror/theme/monokai.css');
import { Form, Input, Button, Radio, Select, Upload, Icon, Alert, message } from 'antd';
import ApiStore from "../../stores/api";
import Project... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { withRouter } from 'react-router-dom'
import EmptyState from '../EmptyState'
import HarmonyMonarch from './HarmonyMonarch'
import { HarmonyThemeDark, HarmonyThemeLight } from './HarmonyTheme'
import { ReactComponent as InsertBlockIll... |
'use strict';
const { Contract, ContractFactory } = require('@ethersproject/contracts');
const { Logger } = require('@ethersproject/logger');
const constants = require('@ethersproject/constants');
const { InfuraProvider, BaseProvider } = require('@ethersproject/providers');
const { Interface } = require('@ethersprojec... |
// Karma configuration
process.env.CHROME_BIN = require('puppeteer').executablePath()
const path = require('path')
const webpack = require('webpack')
const branchOrPullRequestName =
process.env.TRAVIS_PULL_REQUEST === 'false'
? process.env.TRAVIS_BRANCH
: process.env.TRAVIS_PULL_REQUEST_SLUG +
'/' +
... |
'use strict';
var ChildProcess = require("child_process");
var express = require("express");
var Pool = require("generic-pool");
var BPromise = require("bluebird");
var nconf = require("nconf");
var logger = require("../util/logger");
var WORKER_LOGGER = logger.createLogger({ name:"EndpointWorker" });
var LOGGER = lo... |
'use strict';
const path = require('path');
const globby = require('globby');
const fs = require('fs');
const jsyaml = require('js-yaml');
const {
getMetadataArgsStorage,
getTreeRepository,
getRepository,
} = require('typeorm');
const Logger = require('./logger');
/**
* 将 ormconfig.xxx 转化为js对象
* @param {Strin... |
import { Player } from './backend.js';
import $ from 'jquery';
import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import './styles.css';
import lasercannon from './sounds/laser-cannon.mp3';
const laserCannon = new Audio();
laserCannon.src = lasercannon;
import aliendeathray from './sounds/alien-death-... |
import {
Avatar,
Box,
Button,
Chip,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
Divider,
List,
ListItem,
ListItemButton,
ListItemIcon,
ListItemText,
Paper,
Slide,
Stack,
Typography,
} from "@mui/material";
import { CategoryIcons, SearchArea } from "./marketItemSearch";
import ... |
function createHttpHeaders(token) {
let headers = {
'Accept': 'application/json',
'Content-Type': 'application/json'
};
if (token) {
headers['X-Auth-Token'] = token;
}
if (localStorage.getItem('wsConnectionId')) {
headers['socket-connection-id'] = localStorage.getIt... |
/* eslint-disable no-undef */
/* eslint-disable no-console */
/* eslint-disable no-lonely-if */
const AnyControl = function AnyControl() {
const SpeechRecognition = window.webkitSpeechRecognition || window.SpeechRecognition;
this.recognition = new SpeechRecognition();
this.finalTranscript = '';
this.commands =... |
'use strict';
const React = require('react');
const Axios = require('axios');
const GameCardContainer = require('./GameCardContainer');
const {
Button,
List,
Segment
} = require('semantic-ui-react');
let count = 0;
const sortedGames = (league) => {
const sorted = Object.keys(league).sort((a, b) =>... |
const collector = __dirname;
const project = process.cwd();
const lstat = require("lstat");
const path = require("path");
const glob = require("fast-glob");
const yaml = require("read-yaml-promise");
const sander = require("sander");
const { log } = require("./utils");
const package = require("../package.json");
cons... |
/*!
* Villa Mowe v0.6.0 (http://getvilla.org/)
* Copyright 2013-2015 Noibe Developers
* Licensed under MIT (https://github.com/noibe/villa/blob/master/LICENSE)
*/
$('#prices-scroll').click(function () {
$("html, body").animate({
scrollTop: $('#prices').offset().top
}, '1200'
);
});
$('.wow').click(function (... |
const { resolve } = require('path');
const { readdirSync } = require('fs');
const { rmdirRf } = require('powercord/util');
module.exports = class PluginManager {
constructor () {
this.pluginDir = resolve(__dirname, '..', 'plugins');
this.plugins = new Map();
this.manifestKeys = [ 'name', 'version', 'des... |
/**
* Author: <NAME>
* Date: 2019 - Today
* Lobby auth and rooms of Subserver.
**/
var Subserver, xpros = require(global.LobbyServerRequireModule || './Subserver.js'),
http = require('http'),
https = require('https'),
events = require('events');
const EVENTS = {
CONNECT_ERROR: 'connectError',
LOBBY_UPDATE: '... |
#!/usr/bin/env node
'use strict'
/**
* Build a module from the code using a local Scratch
*/
const projectJson = require('../package.json');
const path = require('path');
const fs = require('fs-extra');
const commandLineArgs = require('command-line-args');
const rollup = require('rollup');
const babel = require('@ro... |
import "core-js/modules/es.array.for-each.js";
import "core-js/modules/es.array.join.js";
import "core-js/modules/es.array.map.js";
import "core-js/modules/es.function.name.js";
import "core-js/modules/es.object.assign.js";
import "core-js/modules/es.object.to-string.js";
import "core-js/modules/es.regexp.exec.js";
imp... |
/**
*
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
*
* SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd.
* Copyright (C) 2011 - 2018 SalesAgility Ltd.
*
* This program is free so... |
const utils = require('../utils')
const Big = require('big.js')
const StellarSdk = require('stellar-sdk')
const EventEmitter = require('events')
class Adapter extends EventEmitter {
constructor (config) {
super()
this.config = config
this.Account = config.models.account
this.Account.events.on('DE... |
function requestNewTile(view, scheduler, geometryLayer, metadata, parent) {
const command = {
/* mandatory */
view,
requester: parent,
layer: geometryLayer,
priority: 10000,
/* specific params */
metadata,
redraw: false,
};
return scheduler.ex... |
/* global process */
import React, {Component} from 'react';
import Favicon from 'react-favicon';
import {Helmet} from 'react-helmet';
import {orderBy} from 'lodash';
import qs from 'qs';
import {
Configure,
InstantSearch,
RefinementList,
CurrentRefinements,
} from 'react-instantsearch/dom';
import {withRoute... |
import * as d3 from "d3";
// Like d3.ascending but supporting null
export function d3AscendingNull(a, b) {
if (b === null || b === undefined) {
if (a === null || a === undefined) return 0; // a == b == null
else return 1; // b==null a!=null
} else { // b!=null
if (a === null || a === undefined) return ... |
"use strict";
const puppeteer = require('puppeteer');
var NodeHelper = require("node_helper");
var self;
module.exports = NodeHelper.create({
start : function(){
self = this;
self.playingMusic = false;
self.loggedIn = false;
self.page = null;
self.browser = null;
self.config = {};
sel... |
import * as THREE from 'https://unpkg.com/three@0.116.1/build/three.module.js'
import { OrbitControls } from 'https://unpkg.com/three@0.116.1/examples/jsm/controls/OrbitControls.js';
import { GPUComputationRenderer } from 'https://unpkg.com/three@0.116.1/examples/jsm/misc/GPUComputationRenderer.js';
var scene = new TH... |
Object.defineProperty(exports, "__esModule", { value: true });
exports.ISYNode = void 0;
const events_1 = require("events");
const Families_1 = require("./Families");
const ISY_1 = require("./ISY");
class ISYNode extends events_1.EventEmitter {
constructor(isy, node) {
var _a, _b;
super();
t... |
import React, { useEffect, useState } from "react";
import {
Form,
Input,
Button,
Select,
Row,
Col,
Modal,
Typography,
Divider
} from "antd";
import obyte from "obyte";
import { t } from "../../utils";
import { useLocalStorage } from "../../hooks/useLocalStorage";
const { Option } = Select;
const { ... |
const { advanceBlock } = require('../helpers/advanceToBlock');
const { increaseTimeTo, duration } = require('../helpers/increaseTime');
const { latestTime } = require('../helpers/latestTime');
const { ether } = require('../helpers/ether');
const { signHex } = require('../helpers/sign');
const BigNumber = web3.BigNumbe... |
import { useEffect, useState } from 'react'
import PropTypes from 'prop-types'
import Paragrapah from '../atoms/Paragraph'
import Container from '../atoms/Container'
import Speaker from '../molecules/Speaker'
import Heading from '../atoms/Heading'
import { choices, decisions } from '../../utils/designTokens'
import Pa... |
import * as d3 from 'd3';
import * as gAxis from 'g-axis';
import gChartframe from 'g-chartframe';
import * as parseData from './parseData.js';
import * as pyramidChart from './pyramidChart.js';
const dataFile = 'data.csv';
const sharedConfig = {
title: 'Title not yet added',
subtitle: 'Subtitle not yet adde... |
'use strict';
// Global variables
var hours = ['6am', '7am', '8am', '9am', '10am', '11am', '12am', '1pm', '2pm', '3pm', '4pm', '5pm', '6pm', '7pm', '8pm'];
var allShops = [];
var hourlyTotals = [];
var dailyAllTotal = 0;
var salmonTable = document.getElementById('salmonShops');
var locationForm = document.getElementByI... |
export var ReadHeepResponse = (buffer) => {
var it = 0;
var packetBytes = ReadSizeOfPacket(buffer, it);
var byteIndicatorBytes = packetBytes[1];
var thisResponse = {
op: buffer[0],
deviceID: ReadDeviceID(buffer.slice(it + 1,it + 5)),
packetBytes: packetBytes[0]
};
var dataPacket = buffer.slice... |
import moodGraphs from '../view/mood-graphs.js'
import * as auth from '../shared/auth.js'
import { render, html } from 'lit-html'
import {
local,
toggleVisibility
} from '../shared/utils.js'
import constants from '../shared/constants.js'
import logout from '../services/logout.js'
const components = {}
components... |
/*
* Kuzzle, a backend software, self-hostable and ready to use
* to power modern apps
*
* Copyright 2015-2020 Kuzzle
* mailto: support AT kuzzle.io
* website: http://kuzzle.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... |
import _ from 'underscore';
import $ from 'jquery';
import Backbone from 'backbone';
import localize from '../utils/localization';
import { timeFormatter, logFormatter } from '../utils/formatters';
import LogCollection from '../collections/Logs';
import listener from '../listener';
import { SERVER_LOG_CHANGED } from '... |
// import _ from '../../../../platform/utilities/data';
import _ from 'lodash';
import merge from 'lodash/merge';
import fullSchema from 'vets-json-schema/dist/21-526EZ-ALLCLAIMS-schema.json';
// import dateUI from 'us-forms-system/lib/js/definitions/date';
import dateRangeUI from 'us-forms-system/lib/js/definitions/da... |
/*!
* CoronaBot - Dashboard
*
* The dashboard implements a central location of sorts to send out and then
* update information as opposed to having to run commands.
*/
const Discord = require("discord.js");
const exec = require("child_process").execSync;
class Dashboard {
/**
* @param {object} config T... |
import * as sqlite from 'expo-sqlite';
import * as FileSystem from 'expo-file-system';
export const SIGHT_TABLE = 'sights';
export const SIGHT_CATEGORIES_TABLE = 'sight_categories';
export const SIGHTS_BY_CATEGORY_TABLE = 'sights_by_category';
export const SIGHT_LIST_TABLE = 'sight_list';
export const ROUTE_TABLE = 'r... |
import React from 'react';
import {
Platform,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
// 3rd party libraries
import _ from 'underscore';
import { Actions } from 'react-native-router-flux';
import { AdMobInterstitial } from 'react-native-admob';
import { IndicatorViewPager, PagerDotIn... |
/****************************************************************************
* @copyright <NAME>
* @authors <NAME> (<EMAIL>)
* @date 2021/5/21 3:20
* @version v1.0
* @filename bar.js
* @description
***************************************************************************/
function createB... |
document.addEventListener('joplin-noteDidUpdate', buildCalendars );
if (/WebKit/i.test(navigator.userAgent)) { // sniff
var _timer_life = setInterval(function() {
if (/loaded|complete/.test(document.readyState)) {
buildCalendars()
}
}, 10);
}
// Helpers functions
function dateToIso... |
import React, { useState, useEffect } from 'react'
import moment from 'moment'
import { useSelector } from 'react-redux'
import { Form, Input, Button, Select, Radio, DatePicker } from 'antd'
import AmountFormatterAda from 'components/Layout/AmountFormatterAda'
import AssetImage from 'components/Layout/AssetImage'
impor... |
import React, { useState, useEffect, useGlobal } from 'reactn';
import firebase from '../../fbConfig';
import deleteIcon from '../../images/delete-icon.png';
import upArrow from '../../images/up-arrow.png';
import downArrow from '../../images/down-arrow.png';
import useForm from '../../hooks/useForm';
import HeroWit... |
/**
* Copyright reelyActive 2014-2018
* We believe in an open Internet of Things
*/
// Constants (Prefix)
const PREFIX = 'aaaa';
// Constants (Packet)
const MIN_PACKET_LENGTH_BYTES = 4; // TODO: make these take a max
const MAX_PACKET_LENGTH_BYTES = 551; // from all packet types
// Constants (Type)
const T... |
// This file is part of MusicBrainz, the open internet music database.
// Copyright (C) 2015 MetaBrainz Foundation
// Licensed under the GPL version 2, or (at your option) any later version:
// http://www.gnu.org/licenses/gpl-2.0.txt
const isNodeJS = require('detect-node');
const Jed = require('jed');
const _ = requir... |
import React, {Component} from 'react';
import 'antd/dist/antd.css';
import './App.css';
import {Button, ConfigProvider, Dropdown, Layout, Menu, Tooltip} from 'antd';
import {Link, Route, Switch} from 'react-router-dom';
import Cluster from "./components/Cluster";
import Topic from "./components/Topic";
import TopicInf... |
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import Card from 'react-bootstrap/Card';
import {parseISO, format} from 'date-fns';
import pt from 'date-fns/locale/pt';
import { useAccordionToggle } from 'react-bootstrap/AccordionToggle';
import PessoaModal from './PessoaModal';
import PessoaP... |
/*
Access token:
It contains all the information the server needs to know if the user / device can access the resource you are requesting or not.
They are usually expired tokens with a short validity period.
Refresh token:
https://security.stackexchange.com/questions/133388/does-expiring-the-oauth-refresh-toke... |
/*!
* evolutility-server-node :: utils/sql-select.js
*
* https://github.com/evoluteur/evolutility-server-node
* (c) 2019 <NAME>
*/
const dico = require('./dico')
const ft = dico.fieldTypes
// - SQL for a single field/column in update/create/order
var columnName = {
'update': (f, idx) => '"'+f.column+'"=$'+idx,... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
import { useReducer, useEffect, useRef, useCallback, useMemo } from 'react'
import { useFigbird } from './core'
import { useRealtime } from './useRealtime'
import { useCache } from './useCache'
import { hashObject, inflight } from './helpers'
const get = inflight((service, id, params, options) => `${service.path}/${op... |
import React, { useState } from "react";
import { useStore } from "../../../../store/store";
import clsx from "clsx";
import PropTypes from "prop-types";
import { makeStyles } from "@material-ui/styles";
import {
Card,
OutlinedInput,
InputAdornment,
CardHeader,
CardContent,
Button,
Divider,
Table,
Tab... |
"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(... |
import document from 'document'
import { preferences } from 'user-settings'
import * as util from '../common/utils'
import { sendValue } from './message'
// import * as simpleActivity from "./activity"
import * as clock from './clock'
import * as hrm from './hrm'
import * as settings from './device-settings'
import * ... |
const { EnvironmentPlugin } = require('webpack');
// eslint-disable-next-line import/no-extraneous-dependencies
const path = require('path');
const CircularDependencyPlugin = require('circular-dependency-plugin');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
const CWD = process.cwd();
... |
/* eslint-disable no-irregular-whitespace */
/* eslint-disable-next-line no-undef */
/* eslint-env jquery, browser */ // https://eslint.org/docs/user-guide/configuring#specifying-environments
/* global systemLang, common, values2table, table2values, M, */ // for eslint
/**
* List of some global constant... |
/** namespace. */
var rhit = rhit || {};
rhit.FB_COLLECTION_COUNTERS = "Counters";
rhit.FB_KEY_NAME = "name";
rhit.FB_KEY_VALUE = "value";
rhit.FB_KEY_CREATED = "created";
rhit.fbCountersManager = null;
function htmlToElement(html) {
var template = document.createElement('template');
html = html.trim();
template.i... |
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Utilities for bumping objects back into worksapce bounds.
*/
'use strict';
/**
* Utilities for bumping objects back into worksapce bounds.
* @namespace Blockly.bumpObjects
*/
goog.module('Blockly.bumpObjec... |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 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... |
import React from 'react';
import autoBind from 'auto-bind';
import TileEditor from './tile-editor.js';
import { withTranslation } from 'react-i18next';
import { swapItemsAt, removeItemAt } from '../../../utils/array-utils.js';
import { Form, Menu, Radio, Slider, Button, Dropdown, Modal } from 'antd';
import ObjectMaxW... |
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import PropTypes from 'prop-types';
import React, {PureComponent} from 'react';
import {intlShape} from 'react-intl';
import {
Dimensions,
FlatList,
Platform,
StatusBar,
Text,
Touchab... |
'use strict';
const tools = require('../tools.js');
const https = require('https');
const adapterName = 'bshb';
/**
* Get root ca certificate of Bosch Smart Home Controller.
* We can do this or we can trust all.
*/
const ca = '-----BEGIN CERTIFICATE-----\n' +
'MIIFujCCA6KgAwIBAgIUIbQ+BIVcGVD29UIe+Sv6/+Qy/... |
'use strict'
const { MongoClient, ObjectID } = require('mongodb')
/**
* Parse sort expressions
*
* @param {String} key
* @return {Object}
* @api public
*/
const parseSort = (key = '') => {
if (Array.isArray(key)) {
const keys = key.map(parseSort)
return Object.assign(...keys)
}
const [sign] = ke... |
/* global randomColor */
/* global SNAKE, GAME_WIDTH, GAME_HEIGHT */
/* global foods */
var SNAKESTYLE = {
set : function (color, width, headlength, taillength, headtype, tailtype) {
this.color = color;
this.width = width;
this.headlength = headlength;
this.headtype = headtype;
this.... |
import React from 'react'
import Button from 'qnui/lib/button';
import Dialog from 'qnui/lib/dialog';
import PrintPreviewItem from './PrintPreviewItem'
import {api} from '../redux/actions/AY_API'
let PrintPreview = React.createClass({
getInitialState:function(){
return {isShow:false,show_index:1,printMould... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.