text stringlengths 3.07k 16k |
|---|
//
// Copyright 2017-present Amrayn Web Services
// https://amrayn.com
//
// Author: @abumusamq
//
// 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/licens... |
var express = require('express'),
app = express(),
router = express.Router(),
fs = require('fs'),
path = require('path'),
async = require('async'),
_ = require('lodash');
/***************
* SEARCH PAGE *
***************/
router.get('/', function (req, res) {
// reque... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.start = start;
var _http = require("http");
var _url = require("url");
var _string_decoder = require("string_decoder");
var _defaults = require("./helpers/defaults");
var _fixers = require("./helpers/fixers");
var _util = re... |
const WebPageTest = require("webpagetest");
const core = require("@actions/core");
const github = require('@actions/github');
const ejs = require('ejs');
const { cornflowerblue } = require("color-name");
const { keyword } = require("color-convert");
const WPT_BUDGET = core.getInput('budget');
const WPT_OPTIONS = core.... |
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, useIntl } from 'react-intl';
import styled from 'styled-components';
import { ColorBlock, Right, StyledMenu } from './styles';
import { MenuHr, MenuItem } from '../menu';
import Icon from '../icon';
import Container from '../../c... |
import { camelizeKeys } from 'humps';
import _ from 'lodash';
import {
DEFAULT_CURRENCY,
ZERO_CENTS_REGEX,
USER_ID_REGEX,
} from './constants';
const CURRENCY_EMOJI_MAP = {
CAD: ':flag-ca:',
USD: ':flag-us:',
SZL: ':soylent:',
BYR: ':beer:',
};
const homoglyphReplacements = [
[',', '\u201A'], ['-', '... |
const BigNumber = require('bignumber.js');
/**
* We can easily verify that none of the entries in the first seven rows of Pascal's triangle are divisible by 7:
*
* 1
* 1 1
* 1 2 1
* ... |
/**
* Copyright 2019 Arcus Project
*
* 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 agre... |
import Immutable, { fromJS, Map } from 'immutable';
const transit = require('transit-immutable-js');
import {validateTree} from "./validation";
import {extendConfig} from "./configUtils";
/**
* @param {Immutable.List} path
* @param {...string} suffix
* @return {Immutable.List}
*/
export const expandTreePath = (pa... |
'use strict';
const path = require('path');
const fs = require('fs-extra');
const routeTemplatePath = path.join(__dirname + '../../../html/render.html');
var createPages = function createPages (abe, template, originalPath, newPath, json, pager, currentIndex, currentPageIndex, isLast, regex_tag_abe) {
json = JSON.pa... |
import React, { useState, useEffect, useCallback } from 'react'
import PropTypes from 'prop-types'
/** style */
import * as El from './Room.style'
/** components */
import Button from '@material-ui/core/Button'
import ButtonGroup from '@material-ui/core/ButtonGroup'
import Card from '@material-ui/core/Card'
import Card... |
'use strict';
import gulp from 'gulp';
import sequence from 'run-sequence';
import gulpLoadPlugins from 'gulp-load-plugins';
import browserSync from 'browser-sync';
import gulpif from 'gulp-if';
import source from 'vinyl-source-stream';
import sourcemaps from 'gulp-sourcemaps';
import buffer from '... |
import React, { useEffect, useState } from "react";
import { useSelector, useDispatch } from "react-redux";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faSquare } from "@fortawesome/free-solid-svg-icons";
import { Spring } from "react-spring/renderprops";
import "../ConsentForm.css";
impo... |
const WSCommand = require('./WSCommand_.js');
class WSCommand_I2C extends WSCommand {
constructor(delegate) {
super(delegate);
this.module = 6;
this._CommandInit = 0;
this._CommandDeinit = 1;
this._CommandWrite = 2;
this._CommandRead = 3;
this._CommandSlvWritten = 4;
}
// Commands
... |
import React, { useState, useEffect } from "react";
import { connect } from "react-redux";
import VideoPlayer from "./videoplayer";
import Card from "@material-ui/core/Card";
import Typography from "@material-ui/core/Typography";
import { withStyles } from "@material-ui/core/styles";
import { Link } from "react-router-... |
'use strict';
var Vec2 = require('../../Common/Vec2');
var Entity = require('../Entity');
var Joint = require('./Joint');
/**
* Base class to extend Wall and Path entities with common functionalities.
*
* @method LinePrototype
* @module Entities
* @submodule LinePrototype
* @param {String} idPrefix 'W' for wall... |
const { BN, constants, expectRevert } = require('@openzeppelin/test-helpers');
const { expect } = require('chai');
const { ZERO_ADDRESS } = constants;
const BEWToken = artifacts.require("BEWToken");
contract('BEWToken', (accounts) => {
const [owner, recipient, somebody] = accounts;
const tokenName = "Be Whale Tok... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
import React, { useContext } from 'react'
import { Box, Grid } from 'grommet'
import { Switch, Route, Redirect } from 'react-router-dom'
import { CurrentUserContext, PluralConfigurationContext, PluralProvider } from './login/CurrentUser'
import MyPublisher from './publisher/MyPublisher'
import Publisher from './publish... |
/**
* @license
* Copyright 2020 The FOAM Authors. All Rights Reserved.
* http://www.apache.org/licenses/LICENSE-2.0
*/
foam.ENUM({
name: 'ItemStatus',
properties: [
{
name: 'color'
},
{
class: 'Boolean',
name: 'active'
}
],
values: [
{ name: 'BACKLOG', label: ... |
var globby = require('globby');
var fs = require('fs');
var async = require('async');
var path = require('path');
var wiredep = require('wiredep');
var stripBom = require('strip-bom');
exports.get = function(opts, callback){
async.parallel(getFileMethodFunctions(opts), function(err, result){
if(er... |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
TouchableOpacity,
ActivityIndicator,
Text,
Platform,
ListView,
TextInput,
FlatList,
Image,
TouchableHighlight,
Animated,
ScrollView,
View
} from 'react-native';
import Dimensions from 'Dim... |
/**
* @file 我的证书
*/
/* global wx:false */
/* eslint "class-methods-use-this":"off",
*/
import React, { PropTypes } from 'react';
import autoBind from 'react-autobind';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Avatar from '../../../components/avatar/avatar';
import... |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View,
Text,
Modal,
TextInput,
Button,
Alert,
TouchableHighlight
} from 'react-native';
import Dimensions from 'Dimensions';
import realm from '../realm.js';
const height = Dimensions.get('window').height;
... |
export class FeatureExtraction {
constructor(sheetWrapper, rowBase, columnBase, finalFirstClusters, formulaCells, numberCells, stringCells) {
this.sheetWrapper = sheetWrapper
this.rowBase = rowBase
this.columnBase = columnBase
this.finalFirstClusters = finalFirstClusters
this.formulaCells = formul... |
var body_;
var regexpNum = /^([0-9])+$/;
var regexpProject =/^([0-9]{4})+$/;
var regexpPrice = /^(\d{1,3}(((\.(\d{3})))*(\.(\d{1,3})))?([^\S][\$]))$/
var arrayLineId = [];
var title_match = "title_match";
var local = "local";
var visit = "visit";
var selector_value = "Seleccione el valor de la apuesta";
var errorMark ... |
import m from 'mithril';
import inlineError from '../c/inline-error';
import countrySelect from '../c/country-select';
import _ from 'underscore';
import h from '../h';
const I18nScope = _.partial(h.i18nScope, 'activerecord.attributes.address');
const addressFormNational = {
view: function ({ attrs }) {
c... |
const $ = jQuery;
function desiredHeight (element) {
const desired = $(element).data('desired-height');
if (!isNaN(desired)) {
return desired;
} else {
return 300;
}
}
class Row {
constructor (elements, width) {
this.elements = elements;
this.width = width;
//this.freeze();
}
aspe... |
var vec3 = require('gl-vec3')
export default function (noa) {
return {
name: 'entmesh',
order: 100,
state: {
mesh: null,
offset: null,
moving:false,
fired:false,
walkcycle:0,
health: 1000,
dead:false,
far:false,
npcList:null,
playerMesh:n... |
import React from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import {
CategoryField,
InputField,
StaticField,
FormGroup
} from 'form';
import {
createUser, editUser, getUser, deleteUser,
clearFormStatus
} from 'a... |
const _ = require('lodash')
const {Node} = require('@secrez/fs')
class Mv extends require('../Command') {
setHelpAndCompletion() {
this.cliConfig.completion.mv = {
_func: this.selfCompletion(this),
_self: this
}
this.cliConfig.completion.help.mv = true
this.optionDefinitions = [
{
... |
"use strict";
var windowUtils = require("../../core/utils/window");
var DEFAULT_COLUMN_WIDTH = 50;
var VirtualScrollingRowsViewExtender = {
_handleScroll: function(e) {
var that = this,
left = e.scrollOffset.left;
that.callBase.apply(that, arguments);
if(that.option("rtlEnab... |
/**
* Period Store
*/
// Svelte
import { writable } from "svelte/store";
// utils
import Logger from "../utils/log/log";
import math from "../utils/math/math";
import snakeCase from "../utils/snake-case/snake-case";
import NomieLog from "../modules/nomie-log/nomie-log";
// Vendors
import Storage from "../modules... |
import React, { useState, useEffect } from 'react';
import Toolbar from '../components/toolbar';
import { Link } from 'react-router-dom';
import Swal from 'sweetalert2';
import withReactContent from 'sweetalert2-react-content';
import { EventSVG, } from '../components/svgPath';
import { EVENT_EDITOR_URL } from '../../c... |
const fileUrl = require('file-url')
const {createConsumer} = require('@iconduit/consumer')
const {dirname, extname, join, relative} = require('path')
const {buildManifest} = require('./manifest.js')
const {formatList} = require('./logging.js')
const {groupSizes, resolveSizesForOutputs} = require('./size.js')
const {ou... |
'use strict';
var _ = require('lodash');
var os = require('os');
var path = require('path');
var fs = require('fs');
var async = require('async');
var crypto = require('crypto');
var fontConfig = require('./config');
var fontWorker = require('./worker');
var BUILDER_CONCURREN... |
import fs from "fs-extra";
import mkdirp from "mkdirp";
import fetch from "node-fetch";
import { fetchFromFileSystem }
from "../helpers/fetch-from-file-system.js";
import { fetchJSON } from "../helpers/fetch.js";
import { normalizeURL } from "../helpers/ur... |
import Vuex from '../../node_modules/vuex/dist/vuex.cjs'
import { updateLocal } from '@/utils/utils'
import moduleTab from './module/tab'
import moduleUrl from './module/url'
import moduleSearch from './module/search'
const store = Vuex.createStore({
state: {
navName: 'Quick Url',
catalogue: [
... |
'use strict'
// tar -r
const hlo = require('./high-level-opt.js')
const Pack = require('./pack.js')
const Parse = require('./parse.js')
const fs = require('fs')
const fsm = require('fs-minipass')
const t = require('./list.js')
const path = require('path')
// starting at the head of the file, read a Header
// If the c... |
/**
* Copyright (c) Microsoft. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
import * as wasm from "../pkg";
import nipplejs from "nipplejs";
const game = new wasm.Game();
console.log(game.get_state());
const CELL_SIZE = 20; // px
const canvas = document.getElementById("game-canvas");
canvas.height = window.innerHeight;
canvas.width = window.innerWidth;
const debugEl = document.getElementBy... |
const R = require('ramda');
const spawn = require('threads').spawn;
const Block = require('../blockchain/block');
const CryptoUtil = require('../util/cryptoUtil');
const Transaction = require('../blockchain/transaction');
const Config = require('../config');
const moment = require('moment');
class Miner {
construc... |
const MARKETING_NAMES = {
'none': 'Not instrumented',
'splunk-otel': 'Splunk Java OTel agent',
'profiler': 'Splunk Java OTel agent with AlwaysOn Profiling'
}
async function startOverhead() {
console.log('overhead started');
document.getElementById('test-run')
.addEventListener("change", te... |
import React from 'react';
import styled, { css } from 'styled-components';
import colors from './colors';
import Media from './Media';
import Grid from './Grid';
const noMargin = `
margin: 0px;
`;
const noPadding = `
padding: 0px;
`;
const spacing = (type, size) => {
let sizes = size;
if (!Array.isArray(siz... |
import React from 'react'
import { Page, Panel } from 'react-blur-admin'
import { Row, Col} from 'react-grid-system'
import styles from './style.css'
// import EventSource from 'react-eventsource'
import axios from 'axios'
import { OrderResponsive } from './OrderResponsive'
import { UserProfile } from './UserProfile'
i... |
//-------------------------------------------------------------------------------
// Copyright IBM Corp. 2016
//
// 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/l... |
const fs = require("fs");
const fetch = require("node-fetch");
const imageUrls = [
"https://images.unsplash.com/photo-1553531384-411a247ccd73",
"https://images.unsplash.com/photo-1542359649-31e03cd4d909",
"https://images.unsplash.com/photo-1515552726023-7125c8d07fb3",
"https://images.unsplash.com/photo... |
'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 ("va... |
import React, { Fragment } from 'react'
import { css, merge } from 'glamor'
import { nest } from 'd3-collection'
import { ascending, descending } from 'd3-array'
import IgnoreIcon from './IgnoreIcon'
import { FollowIcon, RevertIcon, CheckIcon } from '@project-r/styleguide/icons'
import {
fontStyles,
Editorial,
... |
import "core-js/modules/es6.array.for-each";
import "core-js/modules/es6.array.filter";
import "core-js/modules/es6.object.define-property";
import "core-js/modules/es6.array.index-of";
import "core-js/modules/web.dom.iterable";
import "core-js/modules/es6.array.iterator";
import "core-js/modules/es6.object.keys";
impo... |
/**
* Game manager controller
*/
var gameMgr;
//var model = null;
var GTs = {
trainCnt : 0,
matchCnt : 0,
playCnt : 0,
lastPlayTrainCnt : 0,
lastPlayMatchCnt : 0
};
var models = [];
var last_inputs;
var lastPredict;
var lastMove;
var b_workaround = true;
var callBack_showStatus, callBack_showPredict;
let ... |
/**
* Webpack configuration
* Svelte / Typescript / PostCSS / Tailwind CSS
*/
"use strict";
require("dotenv").config();
const path = require('path');
const mkdirp = require("mkdirp");
const childProcess = require("child_process");
const webpack = require("webpack");
const TerserPlugin = require("terser-webpack-p... |
import React, {Component, PropTypes} from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import Menu from '../../components/Menu/Menu'
import TopMenu from '../../components/Menu/TopMenu'
import { getKehadiran } from '../../redux/modules/kehadiran'
// import { getKelas } from '../../... |
import React, {Component} from 'react';
import {Link} from 'react-router-dom';
import {withRouter} from "react-router";
import Divider from '@material-ui/core/Divider';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon... |
// https://stackoverflow.com/questions/9815625/looping-through-files-for-filereader-output-always-contains-last-value-from-loo
function init() {
//
labelToContainerMap = {};
// assign event handler to sketch loader button
var sketchLoader = document.getElementById("sketchLoader");
sketchLoader.addEventList... |
import { select } from 'redux-saga/effects';
import moment from "moment/moment";
import UUID from "uuid/v4";
import Validation from '../common/forms/AWSAccountForm';
const getAccountIDFromRole = Validation.getAccountIDFromRole;
const getEventDateFromState = (state) => (state.events.dates);
export const getEventDates... |
var imageCommon = require("./image-common");
var style = require("ui/styling/style");
var enums = require("ui/enums");
var types = require("utils/types");
var imageSource = require("image-source");
var utils = require("utils/utils");
var fs = require("file-system");
global.moduleMerge(imageCommon, exports);
var FILE_PR... |
require("dotenv").config();
const Nightmare = require("nightmare");
require("nightmare-upload")(Nightmare);
require("nightmare-real-mouse")(Nightmare);
const { query, aql, upsert } = require('./db')
let getUpl = () => Nightmare({
show: true,
webPreferences: {
partition: "persist: upl"
}
});
module.exports =... |
'use strict';
var containerElement = document.getElementById('container');
var imgOneElement = document.getElementById('image-one');
var imgTwoElement = document.getElementById('image-two');
var imgThreeElement = document.getElementById('image-three');
var listElement = document.getElementById('lists');
var clickCount... |
const AWS = require('aws-sdk');
const dynamodb = new AWS.DynamoDB();
const jwt = require('jsonwebtoken');
const jwksClient = require('jwks-rsa');
const SSO_ISSUER = process.env.SSO_ISSUER || 'https://oidc.gov.bc.ca/auth/realms/3l5nw6dk';
const SSO_JWKSURI = 'https://oidc.gov.bc.ca/auth/realms/3l5nw6dk/protocol/openid-c... |
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import Button from '@material-ui/core/Button';
import { withTheme, withStyles } from '@material-ui/core/styles';
const Styling = ({ palette, spacing }) => {
var
underStripeBorderColor = palette.text.primary,
buttonColor = '#21... |
const marked = require('marked');
const DocumentedMethod = require('./documented-method');
function smokeTestMethods(data) {
data.classitems.forEach(function(classitem) {
if (classitem.itemtype === 'method') {
new DocumentedMethod(classitem);
if (
classitem.access !== 'private' &&
c... |
const config = require('../config.js');
const db = require('knex')(config.database);
const randomstring = require('randomstring');
const utils = require('./utilsController.js');
const path = require('path');
const fs = require('fs');
const Zip = require('jszip');
const albumsController = {};
albumsController.list = as... |
var spawn = require('child_process').spawn;
var PluginError = require('plugin-error');
var Promise = require('pinkie-promise');
const DEBUGGING_ARGS_RE = /^--inspect|^--debug/;
const DEBUGGING_BREAKPOINTS_ARGS_RE = /^--inspect-brk|^--debug-brk/;
function getTaskListFromArgs (args) {
if (Arr... |
var application = require("application");
var fs = require("file-system");
(function() {
_cleanAttachmentFolder();
})();
exports.available = function () {
return new Promise(function (resolve, reject) {
try {
var uri = android.net.Uri.fromParts("mailto", "", null);
var intent = new android.content... |
let timer;
let user_id;
function open_chat() {
document.getElementById("chat_show").style.display = "block";
document.getElementById("chat_button").style.display = "none";
chat_loadFriendsList();
getUserId();
}
function close_chat() {
document.getElementById("chat_show").style.display = "none";
... |
const test = require("ava");
const path = require("path");
const fs = require("graceful-fs");
const sinon = require("sinon");
const mock = require("mock-require");
test.afterEach.always((t) => {
sinon.restore();
});
const AbstractUi5Formatter = require("../../../lib/types/AbstractUi5Formatter");
// It's not possible... |
'use strict';
const ava = require('ava');
const fs = require('fs');
require('../../scope/h1');
const tests = require('../../lib/tests');
const now = Date.now();
const getCommon = async (test_name, type = 'a1.nano') => {
const vm_name = `vm-test-${test_name}-${now}`.replace(/[^\w]/g, '-');
const token = awai... |
/* jshint node:true */
/**
* Module dependencies.
*/
var express = require('express'),
routes = require('./routes'),
session = require("express-session"),
http = require('http'),
path = require('path'),
fs = require('fs'),
bodyParser = require('body-parser');
var app = express();
var conver... |
function Person(firstName, lastName) {
this.firstName = firstName;
this.lastName = lastName;
}
function Size(size, price) {
this.size = size;
this.price = price;
}
function Crust(name) {
this.name = name;
this.sizes = [];
}
function Toppings(name) {
this.name = name;
this.sizes = [];
... |
const { MessageEmbed } = require("discord.js");
const db = require("quick.db");
const fs = require("fs");
var ms = require('parse-ms');
module.exports.run = async (client, message, args, invite, color) => {
db.add(`cmdusage.${client.user.id}`, 1)
let cooldown = 5000
let lastdaily = await db.fetch(`las... |
const Discord = require('discord.js');
const fs = require('fs');
const config = require('config');
const client = new Discord.Client();
const disbut = require('discord.js-buttons')(client);
const readfile = () => {
try {
return fs.readdirSync('./files/', { withFileTypes: true }, (err, files) => {
... |
/**
* @license
*
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const fs = require('fs');
const path = require('path');
const { promisify } = require('util');
const chalk = re... |
import _ from "lodash"
import { Validator, MedusaError } from "medusa-core-utils"
import { BaseService } from "medusa-interfaces"
import { Brackets } from "typeorm"
class ClaimItemService extends BaseService {
static Events = {
CREATED: "claim_item.created",
UPDATED: "claim_item.updated",
CANCELED: "clai... |
import { mergeDeep, objJSON, extend, next_tick } from '@hyper/utils'
import { random_id } from '@hyper/random'
import { value } from '@hyper/dom/observable'
import obj_value from '@hyper/obv/obj_value'
import ResizeSensor from '@hyper/dom/resize-sensor'
// @Encapsusation: the plugin should make its own h context inst... |
// Spherical Harmonic Helpers
import Texture from '../Texture';
import FrameBuffer from '../FrameBuffer';
import Texture2D from '../Texture2D';
import Pass from '../compositor/Pass';
import vendor from '../core/vendor';
import Skybox from '../plugin/Skybox';
import Skydome from '../plugin/Skydome';
import EnvironmentMa... |
var w = 1280,
h = 800;
var color = d3.scale.ordinal().domain(["entity", "document"]).range(["#333", "#38b"]);
var nodeSize = d3.scale.linear().range([9,20]);
var nodes, links;
var overallWeight = {}, nameLinks = {}, links, nodes;
var dbData = data["URIS_TO_DOCS"],
docMetadata = data["DOC_METADATA"];
for (var ... |
import { EventEmitter } from 'events'
// Client ID and API key from the Developer Console
const CLIENT_ID = '941050951476-akmt430s16rgv8vn69uegvpl2top89kt.apps.googleusercontent.com';
const API_KEY = '<KEY>';
// Array of API discovery doc URLs for APIs used by the quickstart
const DISCOVERY_DOCS = ["https://www.googl... |
"use strict";
// {index : { name : [{ color : time, ...}] }}
let shiftObj = {
// Data Passed
"1" : {
"Sachin": {
"time":"08:00-11:00",
"task_name":"Task 1",
"project_name":"Relevnt",
"entries":
[
{"1" : "08:10-09:00"},
... |
import React, { useEffect } from 'react';
import styled from 'styled-components';
import {SectionContainer} from '../components/myStyledComponents'
import one from '../images/one.jpg';
import Particles from 'react-particles-js';
const AnimatedSection = () => {
useEffect(() => {
if (typeof window !== `undefined`) {
... |
import React, { memo, useMemo, useState, useEffect } from 'react';
import {
MDBTreeview,
MDBTreeviewList,
MDBTreeviewItem,
MDBSpinner,
MDBSwitch,
MDBIcon,
MDBSimpleChart
} from 'mdbreact';
import useHover from 'utils/customHooks/useHover'
import IconButtonToolTip from 'components/IconButtonToolTip/IconBu... |
import {
FLIP_UP_CARD, SHUFFLE_CARDS, CHECK_MATCHED_PAIR, MARK_PAIR_AS_MATCHED,
MY_FLIP_CARDS, FLIP_DOWN_PAIR, INIT_GAME, START_TIMER,
STOP_TIMER, TICK_TIMER, shuffleCards, myFlipCards,
checkMatchedPair, flipUpCard, flipDownPair, markPairAsMatched,
stopTimer
} from "../actions/gameActions";
import shuffle fro... |
import React, { Component } from "react";
import {
FlatList,
SafeAreaView,
Text,
ImageBackground,
StyleSheet,
View,
TouchableOpacity,
Platform,
Alert,
} from "react-native";
import moment from "moment";
import "moment/locale/pt-br";
import AsyncStorage from "@react-native-community/async-storage";
imp... |
import React, { Component } from 'react';
import { connect } from 'dva';
import { Breadcrumb, Button, Tag, Form, Row, Col, Input, Card, Popconfirm, Select, Table, message, Tabs, Badge, Modal } from 'antd';
import CommonBreadCrumb from '@/components/CommonBreadCrumb';
import { formatMessage } from 'umi/locale';
import ... |
/**
* @file
* Example 007: Get a document from an envelope
* @author DocuSign
*/
const path = require('path')
, docusign = require('docusign-esign')
, dsConfig = require('../../config/index.js').config
, validator = require('validator')
;
const eg007EnvelopeGetDoc = exports
, eg = 'eg007' // T... |
/*
A discord bot template.
Author: <NAME>
*/
console.clear();
const fs = require('fs');
if (fs.existsSync('config/config.json')) {
var { DEVELOPERS, TOKEN, PREFIX, MONGODBURL, APIKEYS } = require('../config/config.json');
} else if ( (process.env.DEVIDS) && (process.env.DEVNAMES) && (process.env.TOKEN) && (proce... |
/*
* Prana Model.
*
* A model object holds type instance data and data changing methods and is a
* wrapper around the type instance.
*/
/*
* Module dependencies.
*/
var util = require('util');
var utils = require('./utils');
/**
* Model constructor.
*
* @constructor
* @inherits EventEmitter
* @param {Pran... |
const SusAnalyzer = require('sus-analyzer')
const form = document.getElementById('upload')
const sus_area = document.getElementById('sus_area')
const sus_songid = document.getElementById('sus_songid')
const sus_songname = document.getElementById('sus_songname')
const sus_artist = document.getElementById('sus_artist'... |
const Discord = require("discord.js");
const fs = require("fs");
const mongoose = require("mongoose");
const dayjs = require("dayjs");
require('dotenv').config();
const onmsg = require("./utils/onmsg");
const color = require("./utils/color.json");
const config = require("./utils/config.json");
const Snipe = require(... |
import React, { Component } from "react";
import * as ImagePicker from "expo-image-picker";
import Constants from "expo-constants";
import * as Permissions from "expo-permissions";
import {uploadImage,sendImagetoGoogleVision} from '../utils/firebase'
import {
Image,
Platform,
ScrollView,
StyleSheet,
Touchable... |
/**
* External dependencies.
*/
import cx from 'classnames';
import { Component, Fragment } from '@wordpress/element';
import {
Toolbar,
PanelBody,
ServerSideRender
} from '@wordpress/components';
import { BlockControls, InspectorControls } from '@wordpress/editor';
import { withSelect } from '@wordpress/data';
im... |
const express = require('express');
const router = express.Router();
const database = require('../database/database');
const { isAuthenticated } = require('../lib/isAuthenticated');
const { encryptPassword, compareCryptedPassword } = require('../lib/utils');
const util = require('util');
router.get('/', isAuthentica... |
const jwt = require('jsonwebtoken');
const { EXPRESS_SECRET } = require('../config.json');
const path = require('path');
const fs = require('fs');
const ls = require('ls');
const request = require('request');
const { renderToString } = require('react-dom/server');
const { createAppState } = require('../services/state'... |
/*
Name: statementschoolfees.js
Written by: <NAME>
ORMS Version: 1.0
Description: Handle all the requests and behaviors of statementschoolfees.blade.php
*/
$(document).ready(function () {
// Initialise the ajax headers to have the CSRF laravel token
$.ajaxSetup({
headers: { 'X-CSRF-TOKEN': $("... |
const browsersync = require('browser-sync').create();
const cached = require('gulp-cached');
const cssnano = require('gulp-cssnano');
const del = require('del');
const fileinclude = require('gulp-file-include');
const gulp = require('gulp');
const gulpif = require('gulp-if');
const npmdist = require('gulp-npm-dist');
c... |
'use strict';
// NOTE: Ensure this is the very first line.
installGlobalHandlers();
/* Start: Legacy stuff - Don't mess with it! */
var devCheck = 0;
window.dump = window.dump || devCheck ? console.log : () => { };
function moveFrame() { }
function devO() { }
function dalert(a) { }
function ddump(a) { }
/* End: Legac... |
'use strict';
const chalk = require('chalk');
const { getQuery, getLogLines, getQueryFsLogs } = require('./util');
module.exports = function logsServices (logs, Sequelize) {
const Op = Sequelize.Op;
if (!logs.logsConfig) {
logs.logsConfig = {
level: 'info'
};
}
// ----- logs en sistema de arch... |
/**
*Daily summary.
*/
function sleep_s(secs) {
secs = (+new Date) + secs * 1000;
while ((+new Date) < secs);
}
//ETH_MNEMONIC='governments of the industrial world you weary giants of flesh and steel'
INFURA_ACCESS_TOKEN='<KEY>'
var MasterDeployer = artifacts.require("MasterDeployer");
var Wr = Wrapped_Ether = a... |
import axios from "axios";
import React, { Component } from "react";
import {
BsEnvelopeFill, BsExclamationCircleFill, BsExclamationTriangleFill, BsLockFill
} from "react-icons/bs";
import { Navigate } from "react-router-dom";
import CheckButton from "react-validation/build/button";
import Form from "react-validation... |
var express = require('express');
const zoo = require('../models/zoo');
var router = express.Router();
const zooModel = require("../models/zoo");
var cadenaRespuesta = [];
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { animales: '',respuesta : "falso" });
});
/* GET home page... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.