text stringlengths 3.22k 29.5k |
|---|
import React from 'react';
import Helmet from 'react-helmet';
import { ConnectedComponent as SiteMain } from '../../components/SiteMain';
import { reactUtils } from '../../utils';
import scssVariables from '../../../variables.scss';
const { useBodyClass } = reactUtils;
const AssetMaster = () => {
useBodyClass('page-... |
"use strict"
importScripts("./blas.js");
var db;
{
var req = indexedDB.open('CNN');
req.onSuccess = (event)=>{
db = event.target.result;
db.onerror = console.log;
}
}
addEventListener('message',({data})=>{
if (data.canvas) {
main(data.canvas);
}
else throw Error('Worker not provided canvas');
},{once:t... |
/* const permite declarar una variable que no se puede mofidicar */
/* Guardo el canvas en la variable c */
const c = document.querySelector("#lienzo");
const ctx = c.getContext("2d");
function verificarPuntoEnIntervalo(li, ls, x){
/* Se verifica si un punto x esta en un intervalo de li a ls */
if(li<=x && x<=ls){
... |
const DEFAULT_CSS =
`body {
background-color: rgba(0, 0, 0, 0);
margin: 0;
padding: 0;
overflow: hidden;
}`;
const DISCORD_STREAMKIT_HTML_SAMPLE =
`<div id="app-mount">
<div style="font-family:Whitney, sans-serif;background-color:transparent;" class=" " data-reactid=".0">
<div class="voice-container" d... |
// CLEANING ALL DATA
export function cleanDataYear (fetchedData) {
console.log('oldData: ', fetchedData)
let newData = fetchedData.map(item => {
let itemDateValue = item.date.value
// Transform all elements to uppercase
item.date.value = item.date.value.toUpperCase()
// Replace all bc and ad with ... |
import draw2d from "draw2d";
import PubSub from 'pubsub-js'
import cuid from 'cuid'
import { menuItem } from "../../common/Menus";
import { clickHandler } from "../../common/mouseClicks";
import timing from "../../common/timing";
import Colors from "./Colors";
import CommandChangeIcon from "./CommandChangeIcon";
import... |
/*
* classrooms array
*
* Classrooms are stored in array as objects. Classroom Objects have a
*building, a room number, and available times stored under building,
*room, and times respectively.
*
*The times member is a 7 element array of arrays.
*times[0] corresponds to sunday. The subarrays of times
*correspo... |
//Require libraries
const http = require("http");
const url = require("url");
const net = require('net');
const fs = require('fs');
const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
const LRU = require('./LRU_Cache');
// Setup Configura... |
import React, { Component } from "react"
import "./Demo.css"
import Viz from "../viz/Viz"
import gsap from "gsap"
import { ScrollTrigger } from "gsap/ScrollTrigger"
import * as d3 from "d3"
import {
scrollContent,
// General
generalData,
generalConfig,
generalAnimations,
// Caucasian
caucasianData,
c... |
var vectorator = require('./vectorator.js');
var wordList = require('./wordlist.js');
var mjs = require('mathjs');
var surku = require('./surkuWrapper.js');
var rb = require('crypto').pseudoRandomBytes;
var _type = require('type-detect');
var parseItem = function(data, globalOpts) {
var types = ['string','date','nu... |
const fs = require('fs');
const { promisify } = require('util');
const path = require('path');
const symlink = promisify(fs.symlink);
const readFile = promisify(fs.readFile);
const writeFile = promisify(fs.writeFile);
const mkdirp = promisify(require('mkdirp'));
const chokidar = require('chokidar');
const chalk = requi... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
// charts
import { Pie, Doughnut } from 'react-chartjs-2';
// bootstrap
import Alert from 'react-bootstrap/Alert';
// material-ui components
import Paper from '@material-ui/core/Paper';
import Button from '@material-ui/core/Button';
imp... |
var tressa = tressa || require('tressa');
// running for 100% code coverage
var indexOf = Array.prototype.indexOf;
delete Array.prototype.indexOf;
var CircularJSON = CircularJSON || require('../build/circular-json.node.js');
Array.prototype.indexOf = indexOf;
tressa.title('CircularJSON');
(function () {
var specia... |
/**
* Checks if the script set property for the label to checked by the script
* is set
* @return {string/boolean} Label if set, false if not
*/
function returnCurrentUserLabelSet() {
const userProperties = PropertiesService.getUserProperties();
const userLabel = userProperties.getProperty('SELECTED_LABEL');
if ... |
var gaussian = require('gaussian')
var pool = require('ndarray-scratch')
var bhtree = require('./includes/bhtree.js')
var vptree = require('./includes/vptree.js')
var TSNEEZ = function (opt) {
this.perplexity = getopt(opt, 'perplexity', 10) // (van der Maaten 2014)
this.numNeighbors = getopt(opt, 'numNeighbors', ... |
import React, { useState, useEffect } from "react";
import AddCourseFunctionBox from "../../FunctionBox/AddCoursesFunctionBox/addCoursesFunctionBox";
const AddCourses = (props) => {
const [addCourseDetails, setAddCourseDetails] = useState({
email: props.emailMap[props.account],
year: "",
numCourses: "",
... |
import React, { Component } from 'react';
import { Input, Button, Select, Icon, Modal, Upload, Spin } from 'choerodon-ui';
import { Content } from 'choerodon-front-boot';
import _ from 'lodash';
import PropTypes from 'prop-types';
import { editCycleSide, deleteAttachment, removeDefect, addDefects } from '../../api/Cycl... |
/*
* kudos_button.js - Defines a class representing a DOM button
* Revised 09/09/2015 by sigkill
* Licensed under MIT-Zero
*/
/* KudosCreateButtons(container, tooltip_callback, button_descriptors) -> object
* This is a fairly complicated interface.
*
* container is a DOM element into which the button elements w... |
import { asyncToGenerator as _asyncToGenerator, inheritsLoose as _inheritsLoose, wrapNativeSuper as _wrapNativeSuper } from './_virtual/_rollupPluginBabelHelpers.js';
import runtime_1 from './node_modules/regenerator-runtime/runtime.esm.js';
import randomBytes from 'randombytes';
import { createSha2Hash } from './sha2H... |
/* eslint object-curly-newline: 0, import/prefer-default-export: 0 */
/**
* nvlps-currency Currency Library for nvlps.io
*
* Copyright (c) 2020 Asymworks, LLC.
*
* The nvlps-currency library may be freely distributed under the terms of
* the BSD license. For all licensing information, details and documenta... |
$(document).foundation({
equalizer : {
equalize_on_stack: true
}
}, 'reflow');
// Facebook SDK
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3&appI... |
var _ = require("lodash"),
async = require("async"),
events = require("events"),
assert = require("assert");
var toIgnoreInArray = ["background", "dropDups", "v"],
toIgnoreInDatabase = ["v", "ns"],
toIgnoreIfUndefined = ["name"];
var isArrayOfIndexes = function(arrayOfIndexes) {
var isArrayOfO... |
import React, {useEffect, useState} from "react";
import "../styles/evaluation/summary-evaluation.css";
import "../styles/main.css";
import {useHistory, useParams} from "react-router-dom";
import {getEvaluation, softDeleteEvaluation} from "../repository/EvaluationRepository";
const SummaryEvaluation = props => {
con... |
//////////Geoprocessing Module////////////
//Common and settings should be used by all sub-modules
var express = require('express'), common = require("../../common"), flow = require('flow'), settings = require('../../settings/settings');
//The next requires are specific to this module only
var gp = require('./operat... |
/**
* Copyright 2019 The AMP HTML Authors. 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... |
// dependencies
var AWS = require('aws-sdk');
var moment = require('moment');
// Set the region
AWS.config.update({ region: 'us-east-2' });
// Create DynamoDB service object
var ddb = new AWS.DynamoDB({ apiVersion: '2012-08-10' });
var minDaysBetweenUpdateUser = 28;
exports.handler = function(event, context, callbac... |
import {computeDiff} from "./diff"
import {Change, Span} from "./change"
export {Change, Span}
export {simplifyChanges} from "./simplify"
// ::- A change set tracks the changes to a document from a given
// point in the past. It condenses a number of step maps down to a
// flat sequence of replacements, and simplifies... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const CWD = process.cwd();
const glob = require('glob');
const fs = require('fs');
const path = require('path');
const metadataUt... |
/*!
*
* Copyright 2016 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Copyright (c) 2015 Uber Technologies, Inc.
//
// 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 rights
// to use, copy, modify, merge... |
// Music Road
//
// Copyright (c) 2017-2018 <NAME> dam.pic AT free.fr
//
// 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 rights to
// ... |
'use strict';
const moment = require('moment');
const { titleCase } = require('title-case');
const { identity, get } = require('lodash');
const helpers = require('@envage/water-abstraction-helpers').charging;
const DateRange = require('../../../lib/models/date-range');
const Transaction = require('../../../lib/models... |
"use strict";
var prime = require('prime'),
Emitter = require('prime/emitter'),
Bound = require('prime-util/prime/bound'),
Options = require('prime-util/prime/options'),
bind = require('mout/function/bind'),
contains = require('mout/array/contains'),
DragEvents = require... |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... |
const { Vec3 } = require('vec3')
const assert = require('assert')
const math = require('../math')
const conv = require('../conversions')
const { performance } = require('perf_hooks')
const { createDoneTask, createTask } = require('../promise_utils')
const { Physics, PlayerState } = require('prismarine-physics')
modul... |
var async = require('async');
var mysql = require('mysql');
var mysqlUtilities = require('mysql-utilities');
var async = require('async');
var mysqlManager = function() {
var dsClass = require('./lib/datastructure');
this.wait = require('wait.for');
this.ds = new dsClass();
this.connection = null;
this.separato... |
import { msg } from '../i18n'
import { requestPageMediaInfo } from '../api'
import { isOnline } from '../utils'
import { temp, isInvalidEvent, isImgZoomedIn, getFingerAmount, toggleZoom, clearZoom, zoomStart, zoomMove, zoomScroll, zoomEnd, slideStart, slideMove, slideEnd } from './gestures'
import { addEventListener } ... |
var LIVE2DCUBISMCORE = Live2DCubismCore
//如果资源在CDN,一定要写http://或者https://否则会以本域名请求且为相对路径
//模型的model3.json文件路径
var baseModelPath = "live2d/";
var modelPath;
//Application全局变量
var app = null;
//模型渲染的位置
var tag_target = '.live2d';
//待机的动作索引
var idleIndex;
//登录的动作索引,只针对动作文件中有idel字段的
var loginIndex;
//回港动作,只针对碧蓝航线等有回港动作,动作文件... |
/* global PAYPAL_SUPPORTERS */
import { createAction, handleActions } from 'redux-actions';
import { uniqBy } from 'lodash';
import { createTypes, createAsyncTypes } from '../utils/createTypes';
import { createFetchUserSaga } from './fetch-user-saga';
import { createAcceptTermsSaga } from './accept-terms-saga';
import... |
var promise = require('bluebird');
var options = {
promiseLib: promise
};
var pgp = require('pg-promise')(options);
//NUESTRA BD TEST
//var connectionString = 'postgres://ervocumi:<EMAIL>:5432/ervocumi';
//BD DE RESTAURANT
//var connectionString = 'postgres://bqnkffou:<EMAIL>:5432/bqnkffou';
//BD del grupo
var cn = ... |
// Set up drag & drop.
displayCanvas.ondragover = function () { this.className = 'hover'; return false; };
displayCanvas.ondragend = function () { this.className = ''; return false; };
displayCanvas.ondrop = function (e) {
e.preventDefault();
if (e.dataTransfer.files.length > 0) {
readfile(e.dataTransfer.... |
'use strict';
const mech = require('./mechanics.js');
const ind = require('./industry.js');
// const drawMap = require('./drawMap.js');
// Bezier Curve:
// B(t) = (1-t) * ((1-t) * p0 + t * p1) + t * ((1-t) * p1 + t * p2)
const hullNamer = () => {
let id = 0;
return () => {
id += 1;
return id;
};
};
cons... |
import { COLOR, FILL, STROKE, X, Y } from '../../channel';
import * as log from '../../log';
import { channelScalePropertyIncompatability, hasContinuousDomain, isContinuousToContinuous, isContinuousToDiscrete, ScaleType, scaleTypeSupportProperty } from '../../scale';
import * as util from '../../util';
import { contain... |
/**
* Module dependencies.
*/
var colors = require('colors/safe')
, utils = require('./utils')
, repeat = utils.repeat
, truncate = utils.truncate
, pad = utils.pad;
/**
* Table constructor
*
* @param {Object} options
* @api public
*/
function Table (options){
this.options = utils.options({
c... |
import {KEY_CODES, isPrintableChar} from './../helpers/unicode';
import {stringify} from './../helpers/mixed';
import {stripTags} from './../helpers/string';
import {pivot, arrayFilter, arrayMap} from './../helpers/array';
import {
addClass,
getCaretPosition,
getScrollbarWidth,
getSelectionEndPosition,
outerW... |
// float directions
var leftRight = 1;
var rightLeft = 2;
var topDown = 3;
var bottopUp = 4;
// side
var leftSide = 1;
var rightSide = 2;
// position
var topCorner = 1;
var bottomCorner = 2;
// default title
var _title = '';
// default width
var popupWidth = 210;
var popupHe... |
'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]; } } }... |
//(function () {
// 'use strict';
var width = 375, height = 667;
var count = 0, size = 50, canvas, ctx, stage, text, loader;
var shape, dashCmd, tween, image, groups = [];
function load() {
canvas = document.getElementById("canvas");
canvas.width = 375;
canvas.height = 667;
ctx = canvas.getContext('2d... |
// GAME VARIABLES
let gamePlay = []; // array to keep track of the computer's order of tile selections
let userPlay = []; // array to keep track of player's order of tile selections
let flash; // the number (integer) of tile flashes in the game
let round; // keep track of what round we are on
let ace; /* is a boolean ... |
import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import Dropzone from 'react-dropzone';
import ReactTooltip from 'react-tooltip';
// material ui
import { Button, Tooltip, Typography } from '@material-ui/core';
import { Help as HelpIcon, Sort as SortIcon } from ... |
'use strict';
var Buffer = require('buffer/').Buffer;
/**
* Credits to https://github.com/cryptocoinjs/blake-hash
*/
Blake256.sigma = [
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
[14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3],
[11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4],
... |
import React, { Component } from 'react';
import {
View, StyleSheet, Text, Image, ImageBackground, Dimensions, BackHandler, TouchableOpacity,
} from 'react-native';
import TuyaShareApi from '../api/TuyaShareApi';
import TuyaHomeManagerApi from '../api/TuyaHomeManagerApi';
import TuyaSceneApi from '../api/TuyaSceneApi... |
/**
* Copyright 2016-2020, Optimizely
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
function toggleSidebar(){
"use strict";
var content = $(".content");
var sidebar = $(".sidebar");
var controls = $(".controls");
var sizeControls = $(".size-controls");
var windowHeight = window.innerHeight - 50;
sidebar.css("height", windowHeight);
if(sidebar.position().left !== 0){
sidebar.cs... |
/**
* @file viola.js
* @description Viola the BC3(DXT5) texture loader
* @author hifmac(E32456 of the Frea server)
* @copyright (c) 2021 hifmac
* @license MIT-License
*/
'use strict';
import { makeError } from "../blanc/lisette.js";
const DXT5_BLOCK_SIZE = 16;
function dataSizeToRect(size) {
/*
* gues... |
'use strict';
/*
This program will ask a visitor 5 Yes/No questions about Melissa
Q1:Is Melissa from the Greater Seattle area?
Q2:Does Melissa enjoy dim sum for breakfast on Sundays?
Q3:Is Melissa's favorite dog the Old Enlish Sheepdog?
Q4:Is snowboarding Melissa's favorite winter sport?
Q5:Can Melissa make at leas... |
import { Game } from "./ships.js";
/////////////////////////////Prebuilt stuff
let newGame = Game();
let humanPlayer = newGame.getPlayer(1);
let computerPlayer = newGame.getPlayer(2);
let humanGB = humanPlayer.getGameBoard();
let computerGB = computerPlayer.getGameBoard();
// functions to create human-fleet
function... |
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame'];
window.cancelAnimationFrame =
window[vendors[x]+'Cancel... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
var teamSalesContacts = '<tr><td style="width: 100px;"><img src="../images/janet.png" /></td><td style=""><strong>Team lead:</strong> <NAME><br /><strong>Phone: </strong>555-313-899<br /><strong>Email: </strong><EMAIL></td></tr>',
teamSalesStaff = '<strong><NAME></strong> Team lead, Phone: 555-313-899<br /><stron... |
'use strict'
const BB = require('bluebird')
const cp = require('child_process')
const execFileAsync = BB.promisify(cp.execFile, {
multiArgs: true
})
const finished = require('./finished')
const LRU = require('lru-cache')
const optCheck = require('./opt-check')
const osenv = require('osenv')
const path = require('pa... |
'use strict';
const os = require('os');
const {constants} = require('../lifx');
const productDetailList = require('./products.json');
const utils = exports;
/**
* Return all ip addresses of the machine
* @return {Array} list containing ip address info
*/
utils.getHostIPs = function() {
const ips = [];
const if... |
'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]; } } }... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _inte... |
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
'use strict'
const spawn = require('cross-spawn').spawn
const path = require('path')
const fs = require('fs')
const os = require('os')
const rcFileLocation = path.join(process.cwd(), '.env-cmdrc')
const envFilePathDefault = path.join(process.cwd(), '.env')
const terminateSpawnedProcessFuncHandlers = {}
let terminatePr... |
/**
* JS module included on every page of the OSF. Site-wide initialization
* code goes here.
*/
'use strict';
// CSS used on every page
require('../../vendor/bootstrap-editable-custom/css/bootstrap-editable.css');
require('../../vendor/bower_components/jquery-ui/themes/base/minified/jquery.ui.resizable.min.css');
r... |
"use strict";
class ModFile {
constructor(name, title, instruments, sequenceIndicesToPlayInOrder, sequences) {
this.name = name;
this.title = title;
this.instruments = instruments;
this.sequenceIndicesToPlayInOrder = sequenceIndicesToPlayInOrder;
this.sequences = sequences;
... |
'use strict';
const QueryMetadataModel = require('./models/query_metadata');
const SubstitutionTokens = require('./utils/substitution_tokens');
module.exports.QueryMetadata = QueryMetadataModel;
function replaceTile0 (sql) {
return SubstitutionTokens.replaceXYZ(sql, { z: 0 });
}
/** Flattens an array */
functio... |
/*
* @Author: isboyjc
* @Date: 2020-07-05 20:44:59
* @LastEditors: isboyjc
* @LastEditTime: 2020-07-05 20:45:33
* @Description: plugin 积分打卡签到
*/
const fs = require("fs")
const low = require("lowdb")
const FileSync = require("lowdb/adapters/FileSync")
const DEFAULT_CONFIG = {
keyword: ["签到", "打卡"],
success: (... |
import React, { useState, useLayoutEffect, useEffect } from 'react'
import { connect } from 'react-redux'
import { Text, View, TouchableOpacity, Platform } from 'react-native'
import InputScrollView from 'react-native-input-scroll-view'
import { handleTextInput, withNextInputAutoFocusForm, withNextInputAutoFocusInput }... |
/*!
=========================================================
* Argon Dashboard React - v1.1.0
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-dashboard-react
* Copyright 2019 Creative Tim (https://www.creative-tim.com)
* Licensed under MIT (https:/... |
/**
* Copyright 2017-present, The Visdom Authors
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import React from 'react';
import EventSystem from './EventSystem';
const Pane = require('./Pane');
const DEFAU... |
const express = require("express");
const router = express.Router();
const request = require("request");
const querystring = require("querystring");
if (!process.env.NODE_ENV) require("dotenv").config();
const CLIENT_ID = process.env.CLIENT_ID;
const CLIENT_SECRET = process.env.CLIENT_SECRET;
const REDIRECT_URI =
pr... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
"use strict";
var fs = require('graceful-fs');
var Promise = require('any-promise');
var thenify = require('thenify');
var stripBom = require('strip-bom');
var parse = require('parse-json');
var popsicle = require('popsicle');
var popsicleStatus = require('popsicle-status');
var popsicleRetry = require('popsicle-retry'... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var _asyncToGenerator2 = _interopRequir... |
jQuery(document).ready(function () {
var ua = navigator.userAgent.toLowerCase();
if ((ua.indexOf("safari/") !== -1 && ua.indexOf("windows") !== -1 && ua.indexOf("chrom") === -1) || is_touch_device())
{
jQuery("html").css('overflow', 'auto');
jQuery('.post-num-comments a').click(func... |
import React from 'react';
import { Animated, Dimensions, PanResponder, View } from 'react-native';
import PropTypes from 'prop-types';
import {
calculateOffscreen,
onPanResponderMove,
validSwipe
} from './panresponder';
import triggerSwipeCallbacks from './swipe-callbacks';
import styles from './styles';
expor... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
/**
* Copyright (c) 2015-present, Alibaba Group Holding Limited.
* All rights reserved.
*
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* @providesModule ReactNavigatorBreadcrumbNavigationBar
*/
'use strict';
import React, { Component, PropTypes } from 'react';
import NavigatorBreadcrum... |
/**
* @license
* Copyright 2017 Google Inc. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
'use strict';
const copyProjectTemplateAndReplace = require('./copyProjectTemplateAndReplace');
const execSync = require(... |
const discord = require("discord.js");
const client = new discord.Client()
const { token, prefix, ServerID } = require("./config.json")
client.on("ready", () => {
console.log("I am ready to receive and Send Mails :D")
client.user.setActivity("Watching My Dm's :D")
})
client.on("channelDelete", (channel) ... |
/*************************************************************************/
/* library_godot_os.js */
/*************************************************************************/
/* This file is part of: */
/* ... |
/**
* Huedeck, Inc
*/
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import compose from 'recompose/compose';
import { connect } from 'react-redux';
import { Map } from 'immutable';
import { Dialog } from '@material-ui/core';
import { F... |
import { observable, observe, action, computed, isObservableArray, toJS, asMap, untracked } from 'mobx';
import _ from 'lodash';
import Base from './Base';
import {
$try,
$hasFiles,
$isBool,
$isEvent } from './utils';
import {
parseInput,
defaultClearValue } from './parser';
const setupFieldProps = (inst... |
/* ==========================================================
* ErgoAdmin v1.2
* charts.helper.js
*
* http://www.mosaicpro.biz
* Copyright MosaicPro
*
* Built exclusively for sale @Envato Marketplaces
* ========================================================== */
var data;
var divGraf;
function plotaGrafico... |
/////////////MAIN OBJECT/////////////////
var game = {
playerTurn: true,
difficulty: 0,
relics: [],
enemies: {
active: 1,
1: {
maxHP: 12,
HP: 12,
}
},
player: {
character: "warrior",
maxHP: 100,
HP: 100,
block: 0,
... |
import React from 'react';
import SeafileEditor from '@seafile/seafile-editor';
import 'whatwg-fetch';
import { seafileAPI } from './utils/seafile-api';
import { Utils } from './utils/utils';
import cookie from 'react-cookies';
import ModalPortal from './components/modal-portal';
import { Modal } from 'reactstrap';
imp... |
/**
* Galaxy utilities comprises small functions, which at this point
* do not require their own classes/files
*/
import _l from "utils/localization";
/** Builds a basic iframe */
function iframe(src) {
return `<iframe src="${src}" frameborder="0" style="width: 100%; height: 100%;"/>`;
}
/** Traverse through js... |
//Reusable Fields
const getSellFields = function () {
let fields = []
for (var i = 2; i < 14; i++) {
fields.push($("#sell_" + i)[0])
}
return fields
}
const getFirstBuyRadios = function () {
return [
$("#first-time-radio-no")[0],
$("#first-time-radio-yes")[0]
];
}
const getPreviousPatternRadio... |
// IMPORTANT NOTE!
//
// This is "throw it at the wall until it sticks" code.
// Don't take it too seriously
// Any help cleaning it up would be appreciated.
// <3 <3 <3 - Ryan
import React, { Component } from "react";
import { Route, Redirect } from "react-horizontal-router";
import { Text, View, Dimensions, Animated... |
import React, { useEffect, useState } from 'react'
import pluralize from 'pluralize'
import PropTypes from 'prop-types'
import Skeleton from 'react-loading-skeleton'
import {
Accordion,
AccordionItem,
AccordionItemHeading,
AccordionItemButton,
AccordionItemPanel,
} from '../Accordion'
import ListTog... |
import React, { useState, useEffect } from "react";
import '../styles.css'
import EditConditionVariableForm from './EditConditionVariableForm.js'
import { DataGrid } from '@material-ui/data-grid';
import { API } from "Api";
import { useHistory } from "react-router-dom"
import Button from '@material-ui/core/Button';
imp... |
/**
* Manage view module.
* @module manage/view
*/
import * as config from './config'
import * as modal from '../common/modals'
import * as vutils from '../common/viewutils'
import * as forms from '../common/forms'
import * as settings from '../common/settings'
/**
* Made to be used by the sort function, compares... |
import * as THREE from "three";
import Globe from "./globe.js";
import ColorGradient from "./ColorGradient.js";
import config_data from "./config.json";
let config = config_data.reduce(
(c, item) => {
// console.log(item, c)
return Object.assign(c, {
[item.name]: item.default
}... |
var AWS = require('aws-sdk'),
Promise = require('bluebird')
conf = Promise.promisifyAll(require('./lib/configHelper')),
s3 = Promise.promisifyAll(require('node-s3-encryption-client')),
awsS3 = Promise.promisifyAll(new AWS.S3()),
sftpHelper = require('./lib/sftpHelper'),
sqs = Promise.promisifyAl... |
const $tableID = $('#table');
const $BTN = $('#przycisk');
const $EXPORT = $('#export');
var $numberOfArrowColumn;
var $newCategory;
var $categoryType;
switch($option) {
case 1:
$newCategory = `
<tr>
<td class="pt-3-half" contenteditable="true">Nowa Kategoria</td>
<td c... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
"use strict";
const base64url = require("base64url");
const crypto = require("crypto");
const util = require("util");
exports.getLibraryProduct = () => { return "passport-azure-ad" };
exports.getLibraryVersionParam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.