text stringlengths 3.07k 16k |
|---|
//REFERENCE TO PAYMENT METHODS CHECKBOXES
let payment_methods_checks = [];
$("input[type='checkbox']", $('#payment_methods')).click(function(){
if(this.checked){
payment_methods_checks.push(this.value);
}
else {
var index = payment_methods_checks.indexOf(this.value);
payment_methods... |
import React from 'react';
import styles from '../../../Common/Common.scss';
import actionStyles from '../Actions.scss';
import Helmet from 'react-helmet';
import HandlerEditor from '../Common/components/HandlerEditor';
import KindEditor from '../Common/components/KindEditor';
import HeaderConfEditor from '../Common/co... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export class OrganizationChartNode extends Component {
static defaultProps = {
node: null,
nodeTemplate: null,
root: false,
first: false,
last: false,
... |
function slugify (x) {
return encodeURIComponent(String(x).trim().toLowerCase().replace(/\s+/g, '-'))
}
function htmlencode (x) {
/*
// safest, delegate task to native -- IMPORTANT: enabling this breaks both jest and runkit, but with browserify it's fine
if (document && document.createElement) {
const el = d... |
import React from 'react';
import InformationDialog from '../common/InformationDialog'
import PropTypes from 'prop-types';
import SelectMerchandise from "../common/SelectMerchandise";
class PersonalInventoryCreateDialog extends React.Component {
constructor(props){
super(props);
this.state = {
... |
const yargs = require('yargs');
const execa = require('execa');
const fs = require('fs-extra');
const path = require('path');
const semver = require('semver');
const util = require('util');
const glob = util.promisify(require('glob'));
const rootDir = process.cwd();
let argv = yargs
.usage(
'$0 [-p|--preid] [-... |
/**!
* Ono v2.2.1
*
* @link https://github.com/BigstickCarpet/ono
* @license MIT
*/
'use strict';
var util = require('util'),
slice = Array.prototype.slice,
vendorSpecificErrorProperties = [
'name', 'message', 'description', 'number', 'fileName', 'lineNumber', 'columnNumber',
'sourceURL', 'li... |
/**
* Copyright (c) Hathor Labs 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.
*/
import React from 'react';
import $ from 'jquery';
import walletApi from '../api/wallet';
import { util } from 'bitcore-lib';
import ... |
import {t} from '@lingui/macro'
import {Trans} from '@lingui/react'
import React, {Fragment} from 'react'
import {Accordion, Message} from 'semantic-ui-react'
import ACTIONS, {getAction} from 'data/ACTIONS'
import PETS from 'data/PETS'
import Module from 'parser/core/Module'
import {SUMMON_BAHAMUT_LENGTH} from './Pets... |
const cron = require("node-cron");
const MongoClient = require("mongodb").MongoClient;
const BigNumber = require("bignumber.js");
const { nodeCache } = require("../cache");
const { Sentry } = require("../sentry");
const { rawToRai } = require("../utils");
const { rpc } = require("../rpc");
const {
MONGO_URL,
MONGO_... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { is } from 'immutable';
import { PropTypes } from 'prop-types';
import {
FlatList,
StyleSheet,
TouchableOpacity,
View,
// Text,
} from 'react-native';
// import { getLocale } from '../../utils/locales';
impo... |
var proxy_port = parseInt(process.argv[2], 10);
if (!proxy_port || proxy_port<0) {
console.log('invalid port: '+proxy_port);
return;
}
var port_conf = (require('../__config').proxy2_conf || {})[proxy_port];
if (!port_conf) {
console.log('no config, invalid port: '+proxy_port);
return;
}
var net = require('net');
v... |
var idEquipo; //PK del equipo
var numEquipo; // 1 - equipo local, 2 - equipo visitante
var faseTieneEncuentros; // FK fase_tiene_encuentros
var deporte;
/**
* Abre el modal de resultados y carga las lista de jugadores.
* numEquipo: 1 equipo local, 2 equipo visitante
*/
function o... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... |
import React from "react";
import {
View,
StyleSheet,
TouchableOpacity,
Dimensions,
Text,
} from "react-native";
import { Header } from "react-native-elements";
import { LineChart, Grid, YAxis, XAxis } from "react-native-svg-charts";
import { Feather } from "@expo/vector-icons";
import cor from "../constants/... |
import { P as PFElement } from '../common/pfelement-8c41d7bd.js';
/*!
* PatternFly Elements: PfeDatetime 1.1.1
* @license
* Copyright 2021 Red Hat, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to dea... |
import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { Spring, animated } from 'react-spring'
import { springs, unselectable } from '../../utils'
const BAR_HEIGHT = 6
const HANDLE_SIZE = 24
const HANDLE_SHADOW_MARGIN = 15
const PADDING = 5
const MIN_WIDTH = HANDLE_... |
/* global THREE, GUI, $ */
import EventEmitter from 'eventemitter3'
import _ from 'lodash'
import osc from 'node-osc'
import Config from './config'
const DECORATIVE_KEY = {
'13': '\n',
'32': ' ',
'16': 'shift'
}
const KEY_MAP = {
'A': {keydown: 'makeTurbulance', keyup: null},
'S': {keydown: 'changeRotate', keyu... |
function showAlert(type, messages) {
return `<div class="alert alert-${type} alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<div class="text-center"><small>${messages}</small></div>
</div>`;
}
function countDown(date, messsag... |
var invGarmtsLogoL = "resources/img/logos/gll.jpg";
var invGarmtsLogoR = "resources/img/exangeOfGoods.jpg";
function pGarmtsInv(data){
if(userId*ONE != 37)//519)
return false;
var doc = new jsPDF('p', 'pt', 'a4');
var L = 200; var T = 25;
toDataURL(invGarmtsLogoR, function(dataUrl) {
doc.setFont("Cambria");
... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
const { card, cvc, expiration } = require("creditcards");
const validator = require("validator");
const { FORM_URL, FORM_FIELDS } = require("./constants.js");
const stateIndexes = require("./data/state-indexes");
function validate(formdata) {
return new Promise(function(succeed, fail) {
// Massage money
... |
/* jsbmp
Create bitmap files using JavaScript. The use-case this was written
for is to create simple images which can be provided in `data` URIs.
Copyright (c) 2009 <NAME> <sam [a inna circle] rephrase [period] net>
License: MIT
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INC... |
'use strict';
/***********************************
* Global Variables *
************************************/
var currentLevel;
var currentPrompt;
var currentPromptChar = 0;
var parsedCurrentPrompt;
var levelArray = [];
var highScoreArray = JSON.parse(localStorage.getItem('highScoreArray') || '[]');
var... |
import React, { Component, createRef } from 'react';
import PropTypes from 'prop-types';
import UploadCore from '@availity/upload-core';
import Dropzone from 'react-dropzone';
import { InputGroup } from 'reactstrap';
import { v4 as uuid } from 'uuid';
import FilePickerBtn from './FilePickerBtn';
import FileList from '.... |
//HEADER+++++++
// function dynamicallyLoadScript(url) {
// var scriptTag = document.createElement("script");
// scriptTag.setAttribute('src', url);
// scriptTag.async = true
// document.head.appendChild(scriptTag);
// }
// // this is not needed for you as your framework should have axios already
// dynamicall... |
const core = require("@actions/core");
const github = require("@actions/github");
const DEBUG_OFF = 0;
const DEBUG_ON = 1
const DEBUG_VERBOSE = 2
try {
const waitInterval = parseInt(
core.getInput("wait-interval-seconds", { required: true })
);
const waitMax = parseInt(core.getInput("wait-max-seconds", { req... |
var { Enumerable } = require("../Sequence/Enumerable");
const { getType } = require("../Utils/TypeUtils");
const { EqualityComparers } = require("../Utils/EqualityComparers");
const { IEnumerable } = require("../Sequence/IEnumerable");
class HashSet extends IEnumerable {
/**
* ()
* source
* source, comparer
... |
"use strict";
const vscode = require("vscode");
const path = require("path");
const dayjs = require("dayjs");
const fs = require("fs");
const { spawn } = require("child_process");
const aliyunUpload = require("./upload");
var uploadStatus = 0;
exports.activate = (context) => {
console.info("paste-ali-oss is active!");... |
import React from 'react'
import Helmet from 'react-helmet'
import styles from '../pages-style/jobs.module.scss'
import Modal from '../components/modal'
// import hiringIcon from '../pages-images/jobs/hiring.svg'
// import cultureIcon from '../pages-images/jobs/culture.svg'
// import locationIcon from '../pages-images/... |
import React from 'react'
import { expressionChecks } from 'step-wise/CAS'
import { M, BM } from 'ui/components/equations'
import { Par } from 'ui/components/containers'
import ExpressionInput, { basicMath, validWithVariables } from 'ui/form/inputs/ExpressionInput'
import { InputSpace } from 'ui/form/Status'
import ... |
var getTypeStr = require ('./GetTypeStr');
/** @module likeness.Sorting
@development
Tools for sorting and comparing documents.
*/
var ARR_SORT_PRIORITY = [
'null', 'number', 'integer', 'string', 'object', 'array', 'boolean'
];
var SORT_PRIORITY = {};
for (var i in ARR_SORT_PRIORITY) SORT_PRIORITY[AR... |
import {SubIndicator} from '../dataobjects'
import {checkIfSubCategoryHasChildren, checkIfCategoryHasChildren, Component, isIndicatorExcluded} from '../utils'
const hideondeployClsName = 'hideondeploy';
let parentContainer = null;
let categoryTemplate = null;
let subCategoryTemplate = null;
let indicatorTemplate = nul... |
/* TODO
display:
(using Canvas only)
logical,visual, with embedding levels and arrows between?
highlight based on bidi_type
*/
scenery.Util.polyfillRequestAnimationFrame();
var glyphPaths = {}; // index => scenery.Path
// @returns {scenery.Path}
function getG... |
/* * * * * * * * * * *
THIS FILE IS INCOMPLETE.
Also probably not needed.
* * * (NOT CURRENTLY IN USE) * * *
^ ^ ^ ^ ^ ^ ^ ^ ^ ^
**********/
import React from 'react';
import getStyle from './style';
import 'react-datepicker/dist/react-datepicker.css';
import DatePicker from 'react-datepicker';
import {
getM... |
import React, { Component, mountNode } from "react";
import ReactDOM from 'react-dom';
import {
NavBar,
Icon,
List,
InputItem,
Switch,
LocaleProvider,
Stepper,
Range,
Button,
Picker,
TextareaItem,
WhiteSpace,
DatePicker
} from 'antd-mobile';
import moment from 'moment'
import zhCN from 'antd/e... |
/**
* Exports a simple object that wraps all the express app and other related
* server goodies.
*
* var conf = {optional: conf};
* var server = require('./server')(conf);
* server.listen();
*/
var express = require('express'),
http = require('http'),
path = require('path'),
db = require('./db.js').get(),... |
/**
* Created by <NAME> on 20. 9. 2016.
*/
/**
* Created by <NAME> on 16. 9. 2016.
*/
// Category theory for JavaScript programmers #1: contracts
/*
Popisuje koncept contracu pomocí funkce která kontroluje že se jedná o uvedený datový typ
v první lekci čistě str contract
Mike ukazuje proč je kontrakt užitečný... |
const mongoose = require('mongoose');
const Bet = require('../models/bet');
const Point = require('../models/point');
const BetRound = module.exports = {};
var isOpen = true;
var round_id = 0;
// Used to open bets
BetRound.open = (callback) => {
// Listen for 'AI round' event from Game Agent aka 8 round before start... |
var Put = require('bufferput');
var util = require('util');
var log = function (msg) { }
exports.setLogger = function (logger) {
log = logger;
};
exports.ExceptionMessage = {
0x01 : 'ILLEGAL FUNCTION',
0x02 : 'ILLEGAL DATA ADDRESS',
0x03 : 'ILLEGAL DATA VALE',
0x04 : 'SLAVE DEVICE FAILURE',
0x05 : 'AC... |
var jQuery = require('jquery');
require("popper.js");
require("bootstrap");
window.$ = window.jQuery = jQuery;
var config = require('../../../config/config.json');
var firebase = require("firebase/app");
require("firebase/database");
require("firebase/storage");
require("firebase/functions");
require("firebase/auth")... |
const fetch = require('node-fetch');
require('dotenv').config();
// Ews object enums
const EwsObjectTypes = {
Container: '00',
Value: '01',
Trend: '02',
Alarm: '03',
};
/**
* @param {String} endpoint - Endpoint URL.
*
* @returns {Object} Querybuilder instance.
*/
const queryBuilder = function queryBuilder(... |
const momentTZ = require('moment-timezone');
require('moment-duration-format');
// const {inspect} = require('util');
const Command = require('../base/Command');
class Shardtimes extends Command {
constructor(client) {
super(client, {
name: 'shardtimes',
aliases: ['shard', 'payout']... |
var s = 0;
var time_for_fst;
var end_time;
var k = 0;
var j = 0;
var correct_num = 0;
var data = ['辛苦', '邪惡', '善良', '美國', '越南', '禮貌', '犯罪', '哈佛大學', '貧窮', '慈善', '梵蒂岡', '緬甸', '慷慨', '義大利黑幫', '伊斯蘭'];
var ans1 = [0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0];
var ans2 = [0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0];
var ans... |
const { Post } = require('../symbol')
const elements = require('../elements')
const merge = require('../merge')
const text = require('../text')
const value = require('../value')
const makeResult = require('../result')
function SteppingThreadGroup (node, context) {
const result = makeResult()
if (node.attributes.en... |
function yes_no(value,check,selector){
if(value == check) {
$(selector).show();
}
else{
$(selector).hide();
}
}
function show_hide(value,check,selector1,selector2){
if(value == check) {
$(selector1).show();
$(selector2).hide();
}
else{
$(selector1).hide();
... |
import React, { useMemo, useState } from 'react';
import PropTypes from 'prop-types';
import { useQuery } from 'react-query';
import { stripesConnect, useOkapiKy } from '@folio/stripes/core';
import { useInfiniteFetch, useBatchedFetch } from '@folio/stripes-erm-components';
import { generateKiwtQueryParams } from '@... |
// Normal JS Modules
const Decimal = require("decimal.js");
const moment = require("moment");
const ProdCal = require("prod-cal");
// Co-file import
const AbstractLoanSchedule = require("./abstract-loan-schedule");
// Define Class
class LoanSchedule extends AbstractLoanSchedule {
// Learn about constructors
constr... |
import React, { useState, useEffect } from "react";
import {
VictoryAxis,
VictoryChart,
VictoryLine,
VictoryContainer,
VictoryLabel,
VictoryTheme,
VictoryTooltip,
VictoryVoronoiContainer,
} from "victory";
import "./chart.scss";
import { makeStyles } from "@material-ui/core/styles";
import { Autocomplet... |
import React, { Component } from 'react'
import { _colors } from '../data/colors'
const _ = require('lodash')
const grid = {
rows: 8,
cols: 7
}
class Grid extends Component {
constructor() {
super()
this.state = {
matrix: this.buildGrid(),
feedback: this.buildGrid(1),
specials: this.bu... |
'use strict';
const path = require('path');
const fs = require('fs-extra');
const _ = require('lodash');
const CachingWriter = require('broccoli-caching-writer');
const Serializer = require('../serializers/main');
const compileMarkdown = require('../utils/compile-markdown');
function compileDescriptions(objects) {
... |
// We require the Hardhat Runtime Environment explicitly here. This is optional
// but useful for running the script in a standalone fashion through `node <script>`.
//
// When running the script with `npx hardhat run <script>` you'll find the Hardhat
// Runtime Environment's members available in the global scope.
cons... |
import React from 'react'
import _ from 'lodash'
import {
compose,
branch,
renderComponent
} from 'recompose'
import { decorateText } from 'src/utils/tweet'
import Icon from 'src/components/Icon'
import withStyles from './style'
import Video from 'src/components/Video'
import OG from './OG'
import { fromTwitt... |
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function load_form_container(url) {
$.get('/forms/'+url, function(result) {
$('#black_filter').after(result);
$('#black_filter').show();
$("#black_filter").css("heig... |
export class GamepadController{
constructor(eventCallback, pauseCallback, pauseMenu, gameTicker){
this.rightDown = false;
this.leftDown = false;
this.controllers = {};
this.buttons = [];
this.axis;
this.eventCallback = eventCallback;
this.pauseCallback = pauseCallback;
this.joydir = 0;... |
const { RecordingStatus } = require("sendbird-calls");
let directCall;
let recordingId;
function init() {
const recordingOtion = document.getElementById('selectRecordingOption');
let option = document.createElement("option");
option.text = "remote(audio/video)";
option.value = SendBirdCall.RecordingType.REMO... |
import component, {state} from 'kompo';
const {construct, react, mount, unmountAll, getState, debugLifeCycle} = component;
const {triggerUpdate, dispatch} = state;
import {addClasses, create, empty, delegate, throttle} from 'kompo-util';
import arrayMove from '../utils/arrayMove';
import orderByArray from '../utils/o... |
import React, { Component } from 'react';
import { connect } from 'react-redux'
import { toastr } from 'react-redux-toastr'
import { Responsive, WidthProvider } from 'react-grid-layout';
import IframeWidget from '../DashboardManager/components/widgets/IframeWidget'
import TextWidget from '../DashboardManager/components... |
import React from "react";
import axios from "axios";
import "react-datepicker/dist/react-datepicker.css";
import ButtonComponent from "../ButtonComponent";
import baseURL from "../../../config";
import AddForm from "./AddForm";
import { ToastContainer, toast } from "react-toastify";
import "react-toastify/dist/ReactTo... |
var ref = firebase.database().ref('/Companies');
var deptRef = firebase.database().ref('/Departments');
var companies = {};
var companyList = [];
var reverseCompanyMapping = {};
var reverseDeptMapping = {};
var reverseMassInput = {};
var departments = {};
//var departmentList = [];
var secondaryApp = firebase.initia... |
import React, { PureComponent } from 'react';
import {
Card,
Form,
Button,
Skeleton,
Tooltip,
message,
Modal,
Input,
DatePicker,
Select,
Row,
} from 'antd';
import StandardTable from '@/components/StandardTable';
import { formatMessage } from 'umi/locale';
import moment from 'moment';
import styl... |
import React from 'react'
import { withFormik } from 'formik'
import * as Yup from 'yup'
import classnames from 'classnames'
import Select from 'react-select'
// import 'react-select/dist/react-select.css'
import './Form.css'
// import { Wrapper } from './style'
const formikEnhancer = withFormik({
validationSchema:... |
// Our input frames will come from here.
const videoElement = document.getElementsByClassName("input_video")[0];
const canvasElement = document.getElementsByClassName("output_canvas")[0];
const controlsElement = document.getElementsByClassName("control-panel")[0];
const actionsElement = document.getElementsByClassName(... |
// Modifications copyright 2020 Caf.js Labs and contributors
/*!
Copyright 2013 Hewlett-Packard Development Company, L.P.
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.or... |
/**
@module ember-flexberry-gis
*/
import Ember from 'ember';
import layout from '../../templates/components/map-commands/go-to';
import { translationMacro as t } from 'ember-i18n';
/**
Component's CSS-classes names.
JSON-object containing string constants with CSS-classes names related to component's .hbs mark... |
var CouchDB = require('node-couchdb');
/* Setting up database */
var database = new CouchDB({
host: 'localhost',
protocol: 'http',
port: 5984
});
var databaseName = 'seng521';
var loginDocument = '001';
var dataDocument = '002';
var roleDriver = 'driver';
var roleManager = 'manager';
var usersnames = {
"user1": {
... |
import React, { Component } from 'react';
import './App.css';
import Web3 from 'web3';
import contractInfo from '../abis/Main.json';
//import logo from '../logo.png';
class App extends Component {
async componentWillMount() {
await this.loadWeb3()
await this.loadBlockchainData()
}
loadWeb3 = async () =... |
/**
* @author <NAME> (c) 2021
* @license MIT Licence (MIT)
*/
/* jshint -W014 */
// error: two base nodes !
/**
* Create constraint between a pair of nodes.
* @param {object} p1 - node one.
* @param {object} p2 - node two.
* @param {number} r - magnitude of vector from `p1` to `p2`.
* @param {num... |
import get from "lodash/get";
import { useDispatch } from "react-redux";
import { getEntityData, saveEntityData } from "./d365ce";
import merge from "./merge";
import { setEntity, setTemplate, getTemplates, setAttribute } from "./store";
/**
* @module editorCommandBar
*/
/**
* getCBItems
* @param {Object} tinyEd... |
import DashboardLayout from '../components/Dashboard/Layout/DashboardLayout.vue'
// GeneralViews
import NotFound from '../components/GeneralViews/NotFoundPage.vue'
// Dashboard pages
const Overview = () => import(/* webpackChunkName: "widgets" */ 'src/components/Dashboard/Views/Dashboard/Overview.vue')
const Widgets = ... |
import React from "react";
import {
Container,
Row,
Col,
ListGroup,
ListGroupItem,
Button,
} from "helpers/reactstrap";
import gql from "graphql-tag.macro";
import {useQuery} from "@apollo/react-hooks";
import {useSubscribeToMore} from "helpers/hooks/useQueryAndSubscribe";
import {Query, withApollo} from "r... |
// This file unifies inputs and the dat.GUI menu at the top.
// It also contains declarations for some global variables
// (sorry i know that's disorganized...)
var leftHeld = false;
var rightHeld = false;
var upHeld = false;
var downHeld = false;
var local_media = null;
var godMode = true;
var videoSenders = [];
var ... |
// Largely borrowed from Apostrophe.
var moment = require('moment');
var _ = require('lodash');
var sanitize = module.exports = {
string: function(s, def) {
if (!s) {
s = '';
}
s = s.toString();
return s.trim();
},
// Accept a user-entered string in YYYY-MM-DD, MM/DD, MM/DD/YY, or MM/DD/Y... |
// Platform dependent portion of error stack shim, for unreliably
// scraping the error stack string to produce the proposed JSON
// representation.
// lineToFrame(line) takes a (typically) single line string,
// representing a single stackframe of a stacktrace, and returns a
// JSON object in the proposed stack frame... |
const portscanner = require('portscanner');
const execFile = require('child_process').execFile;
module.exports = (api) => {
api.quitKomodod = (timeout = 100) => {
// if komodod is under heavy load it may not respond to cli stop the first time
// exit komodod gracefully
let coindExitInterval = {};
api... |
/*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
import React from 'react';
import { Button, Form, Modal, Radio, Select } from 'antd';
// import {div} from '../../utils/utils';
import styles from './UploadBook.less';
const FormItem = Form.Item;
const Option = Select.Option;
const RadioButton = Radio.Button;
const RadioGroup = Radio.Group;
const CreateAuditForm = For... |
// Copyright 2016 Zipscene, LLC
// Licensed under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
const _ = require('lodash');
const XError = require('xerror');
const path = require('path');
const fs = require('fs');
const defaultLogLevels = [ 'error', 'warn', 'info', 'debug', 'trace' ]... |
//variables
const phrase = [
"I love my puppy",
"I love startbucks",
"Knowledge is power",
"Simplicity is the soul of efficiency",
"My dog loves me",
"Black coffee is the best"
];
const keyborad = $("#qwerty");
const phraseElement = $("phrase");
let missed = 0;
const buttonClick = () => {
... |
const Config = require('config');
const tar = require('tar-stream');
const tarFs = require('tar-fs');
const sha256 = require('js-sha256');
const sha256File = require('sha256-file');
const Path = require('path');
const Handlebars = require('handlebars');
const fs = require('fs');
const fse = require('fs-extra');
const c... |
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
var countOfPlanets = document.getElementById("countOfPlanets");
var colorOfPoint = document.getElementById("colorOfPoint");
var sizeOfPoint = document.getElementById("sizeOfPoint");
var countOfPoint = document.getElementById("speedOfPoin... |
import 'date-fns';
import React, { useState } from "react";
import SelectReact from "react-select";
import { toast } from 'react-toastify'
import 'react-toastify/dist/ReactToastify.css';
// @material-ui/core components
import { makeStyles } from '@material-ui/core/styles';
// core components
import GridItem from "com... |
import FaArrowRight from "react-icons/lib/fa/arrow-right";
import FaCalendar from "react-icons/lib/fa/calendar";
import FaTag from "react-icons/lib/fa/tag";
import FaUser from "react-icons/lib/fa/user";
import Img from "gatsby-image";
import Link from "gatsby-link";
import PropTypes from "prop-types";
import React from... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
var AlertContainer = _interopDefault(require('react-alert'));
function createCommonjsModule(fn, module) {
return... |
//var serviceAccount = require("../../../serviceAccountKey.json");
const path = require('path');
const fs = require('fs');
//path.resolve
console.log(path.resolve(__dirname, '../../../config/APNsAuthKey_7F926WW9H2.p8'));
console.log(". = %s", path.resolve("."));
console.log("__dirname = %s", path.resolve(__dirname));... |
const DEFAULT_PSK_BUNDLES_PATH = "./../privatesky/psknode/bundles";
const DEFAULT_DOMAIN_SEED_PATH = "./domain-seed";
const DEFAULT_DOMAIN = "default";
const DEFAULT_DSU_TYPE_SSI_PATH = "./seed";
const BUNDLES_TAG = "--bundles=";
const SEED_TAG = "--seed=";
const DOMAIN_TAG = "--domain=";
const DSU_TYPE_SSI_TAG = "--... |
var React = require("react");
var {ButtonGroup, Button, DropdownButton, MenuItem} = require("react-bootstrap");
var {HBox} = require("./display");
var {Type, Node} = require("./base");
var {CValidate, renderWithValidation} = require("./validation");
var {CUnit} = require("./primitives");
var {confirmOrRetractButton} = ... |
import _filter from 'lodash.filter';
const GEOLOCATE_URL = 'https://www.googleapis.com/geolocation/v1/geolocate';
export default class GoogleMaps {
// @ngInject
constructor($window, $http, $rootScope, GoogleMapsConfig) {
angular.extend(this, {
$window,
$http,
$rootScope,
GoogleMapsConf... |
import { h, defineComponent, ref, computed, watch, onMounted, onBeforeUnmount, Transition } from 'vue'
import QSpinner from '../spinner/QSpinner.js'
import useRatio, { useRatioProps } from '../../composables/private/use-ratio.js'
import { hSlot } from '../../utils/private/render.js'
import { isRuntimeSsrPreHydration }... |
const debug = require('debug')('app:chat-server');
const { store, storeTools } = require('./store');
const helpers = require('../utils');
const { ADD_USER, ADD_MESSAGE, REMOVE_USER, SOMEONE_TYPING, CREATE_NEW_CHAT, SET_FAVORITE } = require('./constants');
const eventHandlers = notificationCenter => {
const { curre... |
import { getRandomInclusiveInteger } from "utils/math";
import { fetchAudioFile } from "engine/audio";
// cei
import cei1 from "../audio/cei/1.mp3";
import cei2 from "../audio/cei/2.mp3";
import cei3 from "../audio/cei/3.mp3";
// denied
import denied1 from "../audio/denied/1.mp3";
// faster
import faster1 from "../aud... |
const Immutable = require('immutable');
const minitrue = require('minitrue');
const _ = require('lodash');
const invariant = require('invariant');
// sentinel values
const IS_REDUX = {t: 'IS_REDUX'};
const STORE = {k: 'STORE'};
const VALUE = {k: 'VALUE'};
const NOT_SET = {};
// sentinel values to differentiate staged ... |
const fs = require('fs-extra');
const _ = require('lodash');
const path = require('path');
const { appdir } = require('../utility/directories');
const socket = require('../utility/socket');
const connections = require('./connections');
module.exports = {
folders_meta: true,
async folders() {
const folders = aw... |
/**
* Created by 10177027 on 2015/9/22.
*/
/**
* 表单组件接口
* @param componentContainer
* @constructor
*/
function FormComponentAPI(componentContainer){
this.componentContainer = componentContainer;
}
FormComponentAPI.componentType={
layout:"layout",
label:"label",
input_text:"input_tex... |
/******************************************************************************
Support for parsing a "full" Gmail message
History and Credits:
v. 1.0.0:
- Begin with <NAME>'s gmail-api-parse-message (v. 2.0.0)
(https://github.com/EmilTholin/gmail-api-parse-message)
- Change base64 decode r... |
//Variable que almacena todos los datos
var tabla;
//FUncion que se ejecuta al inicio
function init()
{
mostrarform(false);
listar();
$("#formulario").on("submit",function(e)
{
guardaryeditar(e);
})
//cargamos los items al select categoria
$.post("../ajax/articulo.php?op=selectCategoria",function(r)
{
$... |
import React, { Component } from 'react';
import { connect } from 'dva';
import { formatMessage, FormattedMessage } from 'umi/locale';
import { Card, Alert, Checkbox, Icon, notification, message, Button } from 'antd';
import Login from '@/components/Login';
import styles from './Login.less';
import QRCode from 'qrcode-... |
import React, { useState, useEffect } from "react";
import PaginationComponent from "react-reactstrap-pagination";
// reactstrap components
import {
Card,
CardHeader,
CardFooter,
Table,
Container,
Row,
Col,
UncontrolledCollapse,
Button
} from "reactstrap";
// core components
import ... |
import React, { useContext, useEffect, useState } from 'react';
import { useFormik, Field, FormikProvider, ErrorMessage } from 'formik';
import { useHistory } from 'react-router-dom';
import { useLazyQuery } from '@apollo/react-hooks';
import Button from '@material-ui/core/Button';
import TextField from '@material-ui/c... |
const { MessageEmbed, MessageAttachment, DataResolver, Util, MessageFlags } = require('discord.js');
const BaseMessageComponent = require('./BaseMessageComponent');
const { browser } = require('discord.js').Constants;
/**
* The GPayload class
*/
class GPayload {
/**
* Creates new GPayload instance
* @p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.