text stringlengths 3.22k 29.5k |
|---|
import React, { Component } from 'react';
import {withRouter} from 'react-router';
import axios from 'axios';
import Pusher from 'pusher-js';
import DraftTable from './draftTable/DraftTable';
import DraftHistory from './draftHistory/DraftHistory';
import DraftTeams from './draftTeams/DraftTeams';
import DraftOrder from... |
import React, { Component } from 'react';
import { Card, message, Input, Button, List, Spin, Divider, Tag } from 'antd';
import { withRouter } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import numeral from 'numeral';
import PageHeaderLayout from '../../../co... |
//How do I JScript again...?
//All I remember is console cscript objects and activex controls that are so robust
//that you can actually load a dotnet app from jScript.
//Oh, and that JScript is so horribly out of date to the point that you can't even
//index a string.
//Oh, and a lot of the script objects use ".item(n... |
var moment = require('moment'),
_ = require('lodash'),
NestApi = require('nest-api'),
config = require('./config.js').nest || {},
Dashboard = function Dashboard( req ) {
this.req = req;
};
Dashboard.prototype.getNestData = function () {
return new Promise(( resolve, reje... |
var rec
var isCommercialEnabled = true
var audio_seq = []
$(document).ready(function () {
var timeInterval = NaN
var count = 3
onload()
var isRunning = false
$('a[value="trigger"]').on('click', function () {
if (isRunning) {
return
}
if (!rec) {
showTo... |
import React from "react";
import ReactDOM from "react-dom";
import { makeStyles } from "@material-ui/core/styles";
import {
TextField,
Button,
Drawer,
AppBar,
IconButton,
Toolbar,
Typography,
Divider,
} from "@material-ui/core";
import MenuIcon from "@material-ui/icons/Menu";
import ChevronRightIcon f... |
/*==================================================
------------ UTILS FILE -----------
Place all your universal useful code here to help others (;
==================================================*/
const moment = require('moment');
const _A_ACCENT = "[AÀÁÂÃÄÅÆaàáâãäå]";
const _E_ACCENT = "[EÈÉÊË... |
import React, { memo } from 'react';
import PropTypes from 'prop-types';
import { Redirect, Link as RouteLink } from 'react-router-dom';
import {
makeStyles,
Avatar,
Button,
CircularProgress,
TextField,
FormControlLabel,
Checkbox,
Typography,
Box,
Grid,
Link,
Paper,
Tooltip,
IconButton,
} fr... |
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var concat = require('gulp-concat');
var rimraf = require('rimraf');
var argv = require('yargs').argv;
var notifier = require('node-notifier');
var template = require('gulp-template');
var fs = require('fs');
var path = require('path');
var fi... |
// 禁用按钮
$(document).on('click','.disabled',function(e){
e.preventDefault();
return false;
});
var father=$(window.top.document);
// 弹出层-------------------------------
$(document).on('click','[data-layer-url]',function(){
if($(this).hasClass('disabled')) return false;
const tit=$(this).data('layer-title'... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.NavList = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var React = _interopRequireWildcard(require("react"));
var _NavVariants = require("./NavVariants");
var _nav = _interopRequireDefault(require("@pa... |
const _ = require('lodash')
const tracery = require('tracery-grammar')
const fs = require('fs')
const adjectives = JSON.parse(fs.readFileSync('corpora/data/words/adjs.json', 'utf8'))['adjs']
const adverbs = JSON.parse(fs.readFileSync('corpora/data/words/adverbs.json', 'utf8'))['adverbs']
const animals = JSON.parse(fs.... |
import angular from 'angular';
import {get} from 'lodash/object';
import template from './catalogueResults.html';
export const catalogueResultsComponentName = 'appCatalogueResults';
export const catalogueResultsComponent = {
template,
controller: CatalogueResultsController,
controllerAs: 'vm',
bindings... |
export function sha256() { return new SHA256(); }
class SHA256 {
constructor() {
this.words = Array(64);
this.block = undefined;
this.index = 0;
this.wrote = 0;
this.state = Int32Array.of(0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19);
}
update(... |
// This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
const { remote } = require('electron')
const logger = require('electron').remote.require('./logger');
const { spawn } = require('child_process');
co... |
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
//var Vue = require('vue');
//const VueRo... |
$(document).ready(function(){
//include autocomplete in the search field
lexiconModule.includeAutoComplete();
//include cloud of symbols in the main page
lexiconModule.createLexiconCloud();
});
// sc#1-e#1 get the word searched
function Searching(){
if (searchText !="") {
//sc#... |
// ================ bacon.test
var filters = {
// e.g. jsonPath(a, '$[?(@.rerid == 23)]')
jsonPathFilter: function(expression) {
return function(event) {
if(event==null) return null;
var target = null;
try {
if(isEvent(event)) {
target = event.value;
} else {
target = event;
}
r... |
const AppClass = require("../index");
const { SHA3 } = require('sha3');
const mtools = require('merkle-tools');
let allcoins = 2000;
let Stakes = {
'0x01': { volume: 1000, key: '0x01', priority: 0 },
'0x00': { volume: 100, key: '0x00', priority: 0 },
'0x02': { volume: 0, key: '0x02', priority: 0 },
}
let ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _promise = require('babel-runtime/core-js/promise');
var _promise2 = _interopRequireDefault(_promise);
var _defineProperty = require('babel-runtime/core-js/object/define-property');
var _defineProperty2 = _interopRequireDefault(_def... |
/* Simple JavaScript Inheritance
* By <NAME> http://ejohn.org/
* http://ejohn.org/blog/simple-javascript-inheritance/
* MIT Licensed.
*/
// Inspired by base2 and Prototype
//<editor-fold defaultstate="collapsed" desc="Clss">
var Class = (function () {
var initializing = false, fnTest = /xyz/.test(function () {
... |
"use strict";
let Base = require('./Base.js')
let Logger = require('./Logger.js')('Helper')
let SbEvent = require('./SbEvent.js');
let StopWords = require('./Stopwords.js');
let BinarySearch = require("binary-search");
let debug = require('debug')('helper')
module.exports = {
//A bunch of objects to help with in... |
var firstGuess = '';
let secondGuess = '';
let count = 0;
let matches = 0;
let tries = 0;
let delay = 1200;
let test4 = '';
let myImage = '';
let modal_sound = "";
let modal_img = "";
let modal_desc = "";
let audio = '';
var gameGrid = [];
//Some variables to hold the buttons
var playGameButton = document.getElementB... |
import React, { useContext, useEffect, useState } from 'react';
import { Link } from 'react-router-dom';
import axios from 'axios';
import moment from 'moment';
import Context from '../utils/context';
// import Button from '@material-ui/core/Button';
import { Button,Header,Feed,Icon } from 'semantic-ui-reac... |
'use strict'
var generateBoxesMesh = require('box-geometry')
var ndarray = require('ndarray')
var createTexture= require('gl-texture2d')
var url4data = require('url4data')
var getPixels = require('get-pixels')
var createSkinMesh = function(gl) {
var boxes = []
// MC1.8 64x64 skin format UV coords ht... |
var products = {};
var options = {};
var socket = io('/job-card');
socket.on('connect', function(data) {
socket.emit('getProducts');
});
socket.on('message',(data)=>{
console.log(data);
});
//when a new product arrives refresh the page to refresh the list of product
socket.on('newProduct',()=>{
location... |
var color = {
r : 0,
v : 0,
b : 0
}
var inc = 0.1;
var xoff1 = 0;
var xoff2 = 100;
var xoff3 = 10000;
var diametre = 15;
var grow = true;
function setup() {
createCanvas(windowWidth, windowHeight);
dotCircle = new DotCircle(width/2, height/2, 100, 500);
dotCircle2 = new DotCircle(width/2, height/2, 120, 500)... |
'use strict'
const File = require('../models/Files.js')
const Path = require('path')
const formidable = require('formidable')
const mongoose = require('mongoose')
const gridfs = require('gridfs-stream')
const fs = require('fs')
function GetFile (req, res) {
// Devuelve los documentos de archivos de la BD. Utiliza u... |
import React, { Component, PropTypes } from 'react'
import { bindActionCreators } from 'redux'
import ReactDOM from 'react-dom'
import { Link } from 'react-router'
import { connect } from 'react-redux'
import LoadMore from '../../components/LoadMore'
import Loding from '../../components/Loding'
import * as Actions from... |
import vuex from 'vuex'
import { createNanoEvents } from 'nanoevents'
import { isFirstOlder } from '@logux/core'
import { deepCopy, isPromise, forEachValue } from '../utils/index.js'
let { createStore: createVuexStore } = vuex
export function createStoreCreator(client, options = {}) {
let reasonlessHistory = optio... |
import React, { Component, Fragment } from 'react';
import {
withRouter
} from 'react-router-dom';
import {
Row, Col,
Button,
FormGroup,
Label
} from 'reactstrap';
import Select from 'react-select';
import 'react-semantic-ui-datepickers/dist/react-semantic-ui-datepickers.css';
import { Sort } from '../../co... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getThumbnailUrl = exports.getShippingMethodFromOrder = exports.getShippingFieldLabelOrderSuccess = exports.getShippingFieldLabel = exports.getProductBreadcrumbs = exports.getPaymentMethodFromOrder = exports.getParentIds = exports.ge... |
/*******************************************************
* Copyright (C) 2017-2018 GTA by <NAME>, NUS, <EMAIL>
*
* This file is part of GTA.
*
* GTA can not be copied and/or distributed without the express
* permission of <NAME> and NUS.
*
* Written by <NAME>, NUS, and modified by <NAME> <<EMAIL>>, 2018.
*
... |
/*!
* (C) Ionic http://ionicframework.com - MIT License
*/
import { isAfter, isBefore, isSameDay } from './comparison';
import { getNumDaysInMonth } from './helpers';
import { getNextMonth, getPreviousMonth } from './manipulation';
/**
* Returns the current date as
* an ISO string in the user's
* timezone.
*/
exp... |
import React, { Component } from 'react';
import { Card, Image } from 'semantic-ui-react';
import Slider from 'react-slick';
import axios from 'axios';
import { connect } from 'react-redux';
// import Chip from '@material-ui/core/Chip';
import io from 'socket.io-client';
import { getAge, getLastLog } from '../../shared... |
import React from 'react';
import dataSlice from "../../redux/reducers";
import { useDispatch } from "react-redux";
import { Filters } from "react-data-grid-addons";
import { makeStyles } from '@material-ui/core/styles';
import stylesheet from '../styles';
import { getNCRTags } from "../../redux/middleware";
import { E... |
export const white = 0xffffff;
export const red = 0xff0000;
export const green = 0x00ff00;
export const yellow = 0xffff00;
export const pink = 0xff00ff;
export const blue = 0x0098c2;
export const lightGreen = 0x90ee90;
export const orange = 0xed7e00;
export const darkSlateBlue = 0x483d8b;
export const darkKhaki = 0xbdb... |
import * as THREE from '/three/build/three.module.js'
import * as Board from '/js/board.js'
import Camera from '/js/camera.js'
import { GLTFLoader } from '/three/examples/jsm/loaders/GLTFLoader.js'
let lasers = [];
const renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.setSize( window.innerWidth,... |
//Penjelasan Asynchronous
/*
app.get('/', (req,res) => {
res.send("Hello World !");
});
*/
//Kode diatas sebenarnya asynchronous
/*
Asynchronous berarti hal tersebut bekerja tersendiri dan selesai pada waktunya sendiri, mengabaikan alur kerja dari lainnya.
Alur kerja Synchronous :
... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
/**
* Fork of nedb persistence
*
* Enables storing data in multile files, where every model represents one file
*/
/**
* Handle every persistence-related task
* The interface Datastore expects to be implemented is
* * Persistence.loadDatabase(callback) and callback has signature err
* * Persistence.persistN... |
// Require our dependencies
var autoprefixer = require('autoprefixer');
var bourbon = require('bourbon').includePaths;
var browserSync = require('browser-sync');
var cheerio = require('gulp-cheerio');
var concat = require('gulp-concat');
var cssnano = require('gulp-cssnano');
var del = require('del');
var gulp = requir... |
import React, { Component } from "react";
import { toast } from "react-toastify";
import { connect } from "react-redux";
import LaddaBtn, { ZOOM_IN } from "react-ladda";
import { createForm } from "rc-form";
import Fontawesome from "@fortawesome/react-fontawesome";
import faTimes from "@fortawesome/fontawesome-free-so... |
import React, { useState } from 'react';
import styled from 'styled-components';
import PhoneIcon from 'react-ionicons/lib/IosCall';
import MailIcon from 'react-ionicons/lib/MdMail';
import { NavLink } from 'react-router-dom';
import { useMutation } from 'react-apollo';
import ReactPixel from 'react-facebook-pixel';
im... |
/*
*/
var width = 960,
height = 380,
mid = height/2;
var svgSt = d3.select("#lensesSVG"),
lens = {x: width/2, h: mid - 10},
obj = {x: 100, h: 50},
focus = {x: 100},
img = {x: 0, h: 0};
var lensDom,
objDom,
imgDom,
focusDom,
invFocDom;
var dataRays = [[{x:... |
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
NativeEventEmitter,
ScrollView,
TouchableOpacity,
} from 'react-native';
import Kontakt, { KontaktModule } from 'react-native-kontaktio';
const {
init,
configure,
// authorization
getAuthorizationStatus,
requestWhenInUseA... |
const contractSource = `
contract Source =
record state = {
source_oracle : map(address, oracle(string, string)),
id_query : map(address, oracle_query(string, string)),
question_answer : map(string, string)}
stateful entrypoint init() : state =
{ source_oracle = {},
id_que... |
var OptionLib = (function(optionlib) {
optionlib.daysToExpiry = function(options) {
var daysToExpiry = [];
for (i = 0; i < options.length; i++) {
//Get 1 day in milliseconds
var one_day = 1000 * 60 * 60 * 24;
// Convert both dates to milliseconds
var dateToday = new Date();
va... |
import React, { Component } from 'react';
import { connect } from 'dva';
import { Card, Button, Form, Select, Row, Col, Table } from 'antd';
import { formatMessage } from 'umi/locale';
import { unixSecondToDate, getLocationParam } from '@/utils/utils';
import { DEFAULT_PAGE_LIST_SIZE, DEFAULT_PAGE_SIZE } from '@/consta... |
const Noise = require('noisejs').Noise;
const d3 = require('d3');
const state = {
points: 50,
items: [],
data: []
};
const graph = document.getElementById('graph');
const settingsTemplate = {
noise: {
seed: {
type: 'number',
min: 0,
max: 1000
},
... |
import React from "react";
import { Layout, SEO, Button, Header } from "../components/Components";
import { Container, Box, Grid, Typography } from "@material-ui/core";
import { NavigateNextRounded, CheckRounded } from "@material-ui/icons";
import { useMediaQuery } from "react-responsive";
import { StaticImage } from "... |
/* eslint-disable no-console */
const Util = require('util')
const Extend = require('extend')
const Http = require('http')
const Path = require('path')
const FileSystem = require('fs-extra')
const Unzipper = require('unzipper')
const StatusBar = require('status-bar')
const MySQL = require('mysql')
const mome... |
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 ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
var coffee = require('coffee-script');
var request = require('request');
var uglify = require('uglify-js');
var events = require('events');
var sqwish = require('sqwish');
var utils = require('utils');
var path = require('path');
var less = require('less');
var fs = require('fs');
/**
* Normalize the options provided... |
/**
* @license
* Copyright 2018 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 require... |
'use strict';
/* eslint-disable no-console, no-process-exit, line-comment-position, sort-vars, no-eval */
const request = require('request');
const _ = require('lodash');
const jsonfile = require('jsonfile');
const numeral = require('numeral');
const dashdash = require('dashdash');
const parserOptions = [{
names:... |
import React, {Fragment} from "react";
import PropTypes from "prop-types";
import classNames from "classnames";
import {withStyles} from "@material-ui/core/styles";
import Drawer from "@material-ui/core/Drawer";
import AppBar from "@material-ui/core/AppBar";
import Toolbar from "@material-ui/core/Toolbar";
import List ... |
const Discord = require("discord.js");
const helper = require("../admin/helper.js");
var _db = require('../database/mongo_db.js')
var BOT_TOKEN = ""
var ava = require('../ava/avax.js')
var avax = require('../ava/helper.js')
var dico = require("../custo/dico.js")
const prefix = '!'
module.exports.init = function() {
... |
import * as d3 from 'd3';
import moment from 'moment';
import 'moment-timezone';
import colorVariables from '@density/ui/variables/colors.json';
export function overlayTwoPopups({
topPopupFormatter,
bottomPopupFormatter,
bottomOverlayTopMargin,
topOverlayBottomMargin,
topOverlayWidth,
topOverlayHeight,... |
const _ = require('lodash')
const mongoose = require('mongoose')
const moment = require('moment')
const ObjectId = mongoose.Types.ObjectId
// type: lesson, membership
exports.typeDef = `
"""
회원이 센터에 입장할 때의 정보에 대한 형식입니다.
"""
type MemberAccess {
_id: String
# 센터 정보
gym: Gym
gymid: String
# 회... |
"use strict";
const _ = require("underscore");
const express = require("express");
const timeout = require("connect-timeout");
const bodyParser = require("body-parser");
const xml2js = require("xml2js");
const config = require("./config.js");
class GeoserverMockServer {
// eslint-disable-next-line max-statement... |
import Types from './types';
import Constants from './constants';
var MessageType = Types.MessageType,
ApplicationTransitionType = Types.ApplicationTransitionType;
export default function ServerModel(mpInstance) {
var self = this;
function convertCustomFlags(event, dto) {
var valueArray = [];
... |
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _regeneratorRuntime = _interopDefault(require('babel-runtime/regenerator'));
var _toConsumableArray = _interopDefault(require('babel-runtime/helpers/toConsumableArray'));
var _JSON$stri... |
'use strict';
const fs = require('fs');
const commons = require('@sap/odata-commons');
const QueryOptions = commons.uri.UriInfo.QueryOptions;
const DebugJsonSerializer = require('./DebugJsonSerializer');
const ExpressionTreeImage = require('./ExpressionTreeImage');
const STACKTRACE_SECTION_REGEXP = new RegExp('\\s+<!... |
const { Err } = require('@openaddresses/batch-schema');
const moment = require('moment');
const Job = require('./job');
const Data = require('./data');
const util = require('./util');
const { Status } = require('./util');
const { sql } = require('slonik');
const Generic = require('./generic');
class Run extends Generi... |
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 ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
var crypto = require('crypto');
var AWS = require('aws-sdk');
var CfnLambda = require('cfn-lambda');
var APIG = new AWS.APIGateway({apiVersion: '2015-07-09'});
exports.handler = CfnLambda({
Create: Create,
Update: Update,
Delete: Delete,
NoUpdate: NoUpdate,
SchemaPath: [__dirname, 'schema.json']
});
func... |
'use strict';
/* global DOM */
const Emitify = require('emitify');
const inherits = require('inherits');
const rendy = require('rendy');
const exec = require('execon');
const load = require('load.js');
const {promisify} = require('es6-promisify');
const tryToCatch = require('try-to-catch');
const pascalCase = requir... |
import React, { Component } from 'react';
import {
Button, Form, Layout, Input, message, Select, Upload, Icon, Popconfirm,
} from 'antd';
import TableList from '@tableList';
import { regExpConfig } from '@reg'
import Drawer from '@components/draw/draw'
import {
qzlUserList,
qzlUserDetail,
qzlChangeUserGold,
q... |
/*!
* v3.0 Copyright 2016-2018 http://v.shoutu.cn
* Email <EMAIL>
*/
var playerhigh = "1";
//是否开启播放器高度自适应,0关闭1开启(开启后将播放器设置100%关闭填写固定高度)
var lazyswitch = "1";
//是否开启图片懒加载,0关闭1开启(关闭后会通过js直接加载图片,速度较慢)
var playcolumn = "8";
//是否开启有序播放列表,0关闭,3、6、8、10、12开启并指定列数,数字代表每行列数,手机强制4列
var qrcode1 = "1";
//右侧悬... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BuildCommand = void 0;
const cli_framework_1 = require("@ionic/cli-framework");
const cli_framework_output_1 = require("@ionic/cli-framework-output");
const format_1 = require("@ionic/cli-framework/utils/format");
const utils_fs_1 = re... |
import * as i0 from '@angular/core';
import { Injectable, Component, Input, NgModule } from '@angular/core';
import lightGallery from 'lightgallery';
class LightgalleryService {
constructor() { }
}
LightgalleryService.ɵfac = function LightgalleryService_Factory(t) { return new (t || LightgalleryService)(); };
Ligh... |
import React, { Component } from 'react';
import { hsluvToHex } from 'hsluv';
import { saveAs } from 'file-saver';
import './Matrix.css';
import {STOPWORDS, NOINDEX, MODE} from './constants.js';
import config from './config.js';
// TODO: colormap docs (https://www.npmjs.com/package/colormap) say that n>10
// should ... |
'use strict';
const _ = require('lodash');
const AbstractConnectionManager = require('../abstract/connection-manager');
const { logger } = require('../../utils/logger');
const debug = logger.debugContext('connection:pg');
const Promise = require('../../promise');
const sequelizeErrors = require('../../errors');
const ... |
/*
* @author lovepsone 2019 - 2021
*/
import * as THREE from './../../libs/three.module.js';
import {RigidBody} from './RigidBody.js';
import {Character} from './Character.js'
import {STATE, FLAG, GROUP, GeometryInfo} from './flags.js';
const clock = new THREE.Clock();
let _worker = null, _scope = null;
let _option ... |
var slimScroll = function(C, payload){
var i = {},
_this = this,
w = "wrapper",
s = "scrollBar",
S = "scrollBarContainer",
a = "",
m = "",
l ="data-slimscroll",
// properties
oT = "offsetTop",
sT = "scrollTop",
pE ... |
var issuesList;
var issuesHTML;
$(document).ready(function() {
//此处需要注意的是你的github pages 是否启用了https,大约在2016年7月份左右的时候,github强制启用了https,再此之前建立的有部分的github pages 可能没有启用https
var user = window.location.href.split("https://")[1].split(".")[0];
//user = 'jignchenxu';你可以再此定制自己的名字
blogListURL = 'https://api.git... |
var express = require('express');
const router = express.Router();
var aws = require('aws-sdk');
var path = require('path');
const accessKeyId = require('../../config/keys').accessKeyId; //../config/keys
const secretAccessKey = require('../../config/keys').secretAccessKey;
const region = require('../../config/keys').re... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventoProcessor = void 0;
const schema = require("../schema/index");
const xmlHelper_1 = require("../xmlHelper");
const webserviceHelper_1 = require("../webservices/webserviceHelper");
const nfe_1 = require("../interface/nfe");
const U... |
import {t} from '@lingui/macro'
import {Trans} from '@lingui/react'
import React from 'react'
import {Table} from 'semantic-ui-react'
import {ActionLink} from 'components/ui/DbLink'
import ACTIONS from 'data/ACTIONS'
import STATUSES from 'data/STATUSES'
import Module from 'parser/core/Module'
import {Rule, Requirement... |
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import styled, { withTheme } from 'styled-components';
import {
Box, Button, ResponsiveContext, Heading,
} from 'grommet';
import { ROUTES } from 'themes/config';
import { isMinSize } from 'utils/responsive';... |
import http from 'http';
import fs from 'fs';
import path from 'path';
import { parse, URLSearchParams } from 'url';
import { EventEmitter } from 'events';
import CheapWatch from 'cheap-watch';
import amp_validator from 'amphtml-validator';
import vite from 'vite';
import create_manifest_data from '../../core/create_ma... |
// Copyright 2011 <NAME>, University of San Francisco. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of... |
/* eslint-env jest */
const squid = require('flying-squid')
const settings = require('../config/default-settings')
const mineflayer = require('mineflayer')
const { Vec3 } = require('vec3')
function assertPosEqual (actual, expected) {
expect(actual.distanceTo(expected)).toBeLessThan(1)
}
const once = require('event... |
const queries = require('./queries');
const config = require('./config');
function currencyFormat(num) { return '£' + num.replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,')}
function project_view(req, res) {
var sess = req.session;
var user = req.session.user;
var group = req.session.group;
var project_id = req.params.p... |
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to deal in the Software without restriction, including without limitation
// the ri... |
/**
* Module dependencies.
*/
var express = require('express');
var path = require('path');
var bodyParser = require('body-parser')
var mqtt = require('mqtt')
var app = module.exports = express();
// parse application/x-www-form-urlencoded
app.use(bodyParser.urlencoded({ extended: false }))
// parse application/js... |
var _ = require('lodash');
var gulp = require('gulp');
var gulpLoadPlugins = require('gulp-load-plugins');
var $ = gulpLoadPlugins();
var path = require('path');
var webpack = require('webpack');
var webpackConfig = require('./webpack.config.js');
var exec = require('child_process').exec;
var walk = require('walk');
va... |
'use strict';
/* eslint no-console: 0 no-unused-vars: 0 */
const logger = require('app/components/logger');
const path = require('path');
const express = require('express');
const rewrite = require('express-urlrewrite');
const session = require('express-session');
const nunjucks = require('nunjucks');
const routes = ... |
var EventEmitter = require('events').EventEmitter,
_ = require("lodash"),
util = require( 'util' ),
url = require('url'),
__slice = Array.prototype.slice,
utils = require("./utils"),
findCallback = utils.findCallback,
niceArgs = utils.niceArgs,
niceResp = utils.niceResp,
strip = util... |
var color1 = '#1C1C1C'; //matte black
var color2 = '#FFCD94'; //skin color
var color3 = '#F9EF21'; //shirt color
var color4 = '#88583B'; //hair color
var color5 = '#5a5a5a'; //sunglasses color
var color6 = '#EAC086'; //neck color
var color7 = '#FFC0CB'; //bubble color
var color8 = '#FFFFFF'; //White color
var blowUp ... |
kaboom()
// load assets
loadSprite("bean", "/sprites/bean.png")
loadSprite("ghosty", "/sprites/ghosty.png")
loadSprite("spike", "/sprites/spike.png")
loadSprite("grass", "/sprites/grass.png")
loadSprite("prize", "/sprites/jumpy.png")
loadSprite("apple", "/sprites/apple.png")
loadSprite("portal", "/sprites/portal.png")... |
require('dotenv').config();
const express = require('express');
const layouts = require('express-ejs-layouts');
const passport = require('../config/ppConfig');
const session = require('express-session');
const studentRouter = express.Router();
const helper = require('../helper')
const flash = require('connect-flash');
... |
// table view
// uses react-table
// see https://react-table.tanstack.com/
// example - https://react-table.tanstack.com/docs/examples/editable-data
import React from 'react'
// import { Checkbox } from '@fluentui/react/lib-commonjs'
import {
useTable,
useSortBy,
useFilters,
useRowSelect,
// useGroupBy,
/... |
'use strict';
var envoyData = function () {
$.getJSON('/envoy/', function (Data) {
try {
var inverters = Data[1].inverters;
var d = moment(new Date(Data[0].readingTime * 1000));
$("#readingTime").html('<i class="fa fa-clock-o" aria-hidden="t... |
const path = require('path');
const hotMiddlewareScript = 'webpack-hot-middleware/client?reload=true';
const webpack = require('webpack');
const glob = require("glob");
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CommonsChunkPlugin = ... |
const _ = require('lodash')
const {
// GraphQLScalarType,
GraphQLNonNull,
GraphQLList
} = require("graphql")
const SCALARS = {
Int: 'integer',
Float: 'number',
String: 'string',
Boolean: 'boolean',
ID: 'string',
};
function digNonNullTypeGraphQL(graphqlType) {
while (graphqlType instanceof GraphQLN... |
/**
* @ngdoc directive
* @name ng.directive:rcSubmit
*
* @description
* Alternative to ngSubmit that verifies the ngFormController is valid before
* executing the given expression. Otherwise it cancels the event.
*
* @element form
* @param {expression} rcSubmit {@link guide/expression Expression} to eval.
*... |
import React, { Component, Fragment } from "react";
import ReactDOM from "react-dom";
import gql from "graphql-tag";
import { graphql, withApollo } from "react-apollo";
import { Row, Col, Container, Button, Input, ButtonGroup } from "reactstrap";
import Grid from "../GridDom";
import ExtraControls from "./extraControls... |
/* ================
// Required Plugins
// ============= */
const { src, dest, lastRun, series, parallel, watch } = require('gulp');
var fs = require('fs'),
reload = require('require-reload')(require),
packageJSON = require('./package.json'),
configuration = require('./configuration.json'),
browserSync... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.