text stringlengths 3.07k 16k |
|---|
/* global ga */
var doSurvey = document.getElementById('mainscript').getAttribute('data-survey') === 'true'
function getCookie(name) {
function escape(s) {
return s.replace(/([.*+?\^${}()|\[\]\/\\])/g, '\\$1')
}
var match = document.cookie.match(RegExp('(?:^|;\\s*)' + escape(name) + '=([^;]*)'))
return m... |
/**
* Takes a module name or path and returns its canonical representation.
*/
exports.canonicalizeModuleName = function(path) {
return path
.replace(/(?:\.min|)\.[^\.]+$/g, '') // foo/bar-baz-.min.js => foo/bar-baz-
.replace(/\/+/g,'.') // foo/bar-baz- => foo.bar-baz-
.replace(/-+/g,'_') // foo.bar-baz... |
'use strict'
const src = '../../../../../src'
const Test = require('tapes')(require('tape'))
const Sinon = require('sinon')
const P = require('bluebird')
const Moment = require('moment')
const Uuid = require('uuid4')
const Db = require(`${src}/db`)
const UrlParser = require(`${src}/lib/urlparser`)
const TransfersReadM... |
const fs = require('fs')
const mustache = require('mustache')
const path = require('path')
const shell = require('shelljs')
const chalk = require('chalk')
const ora = require('ora')
const SVGO = require('svgo/lib/svgo')
const dist = path.resolve(__dirname, 'dist')
const svgPath = path.resolve(__dirname, 'ionicons/src/... |
// (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.
var React = require('react');
var SpinningIcon = require('./icons/Spinning');
var LeftIcon = require('./icons/Left');
var RightIcon = require('./icons/Right');
var Scroll = require('../utils/Scroll');
var InfiniteScroll = require('../mixins/InfiniteS... |
import React, { useState, useEffect } from 'react';
import { ScrollView, View, Text, Image, TouchableOpacity, TextInput, ActivityIndicator, Dimensions, Modal } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'... |
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 updateGrid = require('./update-grid');
var updateSoul = require('./update-soul');
var rbush = require('../dumb-rbush');
var findWhere = require('../findwhere');
var math = require('basic-2d-math');
var callNextTick = require('call-next-tick');
// Not really a radius: More like half a square.
const clickRadius = 20... |
/**
* @param {string} rgb hexadecimal RGB string e.g. #FBEE13
*
* @return {array} x and y values
*/
const rgbHexToXy = rgb => {
return rgbToXy(
parseInt(rgb.substring(1, 3), 16),
parseInt(rgb.substring(3, 5), 16),
parseInt(rgb.substring(5, 7), 16)
);
}
/**
* https://developers.meethue.com/document... |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const socket_io_1 = __importDefault(require("socket.io"));
const volume_1 = require("./volume");
const g... |
/**
* Refactored 3daddict's js-stl-parser.
*
* Found at
* https://github.com/3daddict/js-stl-parser/blob/master/index.js
*
* Refactored by <NAME>
*
* @date 2021-04-16
* @version 0.0.1
*/
class Vertex {
constructor(x, y, z) {
this.x = x;
this.y = y;
this.z = z;
}
}
// Vertex H... |
/*
Copyright 2020 Adobe. All rights reserved.
This file is licensed to you 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... |
const Joi = require("@hapi/joi");
const Boom = require("@hapi/boom");
const vega = require("vega");
const clone = require("clone");
const deepmerge = require("deepmerge");
const getMappedSpec = require("../../helpers/itemVegaMapping.js").getMappedSpec;
const dataHelpers = require("../../helpers/data.js");
const getChar... |
// DOM constants
const wiki_section = document.querySelector('#wiki-getter')
const wiki_output = document.querySelector('#wiki-output')
const shakes_output = document.querySelector('#shakes-output')
const search_btn = document.querySelector('#search')
const search_input = document.querySelector('#wiki-search')
const se... |
/**
* YTVideo
* Компонент, для воспроизведения видео с Youtube.
* Два варианта работы:
* 1 - "Fast and low traffic" - сначала отображается только превью, а затем подгружается видео (iframe)
* ютуба
* Плюсы и минусы:
* + При большом колличестве видео быстрее грузиться и тратиться меньше трафика
* Каждо... |
var webpages = require('..');
var express = require('express');
var expect = require('expect.js');
var supertest = require('supertest');
var async = require('async');
var morgan = require('morgan');
var http = require('http');
var host = require('osh-test-host');
var iso = require('osh-iso-test');
var toArray = require... |
const e = React.createElement;
const item_types = ['Armor', 'Trinket', 'Back', 'Weapon', 'UpgradeComponent',
'Tool', 'Gathering', 'Gizmo', 'Consumable', 'Bag',
'Container', 'CraftingMaterial', 'MiniPet', 'Trait',
'Trophy'];
const wiki_search = 'http://wiki.gui... |
/** @module commit-from-action */
import {getInput} from "@actions/core"
import {exec} from "@actions/exec"
import {context, getOctokit} from "@actions/github"
import chalk from "chalk"
import getBooleanActionInput from "get-boolean-action-input"
import isGitRepoDirty from "is-git-repo-dirty"
import resolveAny from "r... |
// FIXME: Fix songs not downloading the folder.
// TODO: Add quality selection
// TODO: Add folder selection
// TODO: Add list downloading
// TODO: Better code lol
const fs = require("fs");
const ytdl = require("ytdl-core");
const progress = require("progress-stream");
const path = require("path");
const { shell } = ... |
// Copyright (c) 2019 ml5
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
/* ===
ml5 Example
PoseNet example using p5.js
=== */
//Sketch de experieimnttación sonora, a partir de la reactividad
let video;
let poseNet;
let poses = [];
// Elementos sonoros
let polySynth;... |
#!/usr/bin/env node
var _ = require('lodash');
var async = require('async');
var fs = require('fs');
var MapwizeAPI = require('mapwize-node-api');
var chalk = require('chalk');
var program = require('commander');
var xml = require('xml2json');
var coordinate = require('./coordinate');
program
.version('0.1.0')
... |
import React, {
useState,
useEffect,
useMemo,
useCallback,
useRef
} from "react";
import PropTypes from "prop-types";
import { FormProvider } from "../hooks/internal/useForm";
import { getPath, setPath, deletePath } from "../utils/objectPath";
const DEFAULT_PROPS = {
fullWidth: true,
debug: false
};
fun... |
/**
* Created by <NAME> (h<EMAIL>) on 6/4/16.
*/
var tr = (point) => "translate(" + point.x + "," + point.y + ")";
var gr = (base, classes, pos) => base.append('g').attr({
class: classes,
"transform": tr(pos)});
class PCPlot {
constructor(parent, x, y, data, options) {
`Draw a PC plot under par... |
import React, { useState } from "react"
import { BodyContainer, ScoreP } from "./Styles"
import Banner from "../Banner"
import Card from "../Card"
import Form from "../Form/Index"
import mc from "../../../static/Images/mc.png"
import robin from "../../../static/Images/robin.png"
import paul from "../../../static/Images... |
// information
export function information() {
const elms = document.querySelectorAll('.moss-version');
for (const elm of elms) {
elm.innerHTML = window.Moss.version
}
document.querySelector('#copyright-year').innerHTML = new Date().getFullYear();
}
// aside menu.
export function asideMenu() {
const Elem... |
import { db } from '../db/index.js'
import { errorCode } from '../util/error.js'
import { getPaginatedData } from '../util/pagination.js'
import { decreaseQuantityInSnackBatches, increaseQuantityInSnackBatch } from '../snack/controller.js'
import sequelize from 'sequelize'
const { Op } = sequelize
const PURCHASE = 1
c... |
var gpio = require('pi-gpio');
var Service, Characteristic;
module.exports = function(homebridge) {
Service = homebridge.hap.Service;
Characteristic = homebridge.hap.Characteristic;
homebridge.registerAccessory("homebridge-becker-blinds", "GPIO-Blinds", GPIOBlindsAccessory);
}
function GPIOBlindsAccessor... |
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {BANNER} from '../src/mediaTypes.js';
import * as utils from '../src/utils.js';
const GVL_ID = 136;
const BIDDER_CODE = 'stroeerCore';
const DEFAULT_HOST = 'hb.adscale.de';
const DEFAULT_PATH = '/dsh';
const DEFAULT_PORT = '';
const FIVE_MINUTES_I... |
import upperFirst from 'lodash/upperFirst';
import camelCase from 'lodash/camelCase';
import chroma from 'chroma-js';
import minBy from 'lodash/minBy';
import maxBy from 'lodash/maxBy';
import uniq from 'lodash/uniq';
import isArray from 'lodash/isArray';
import { getNiceTickValues } from 'recharts-scale';
import map f... |
// Starting code comes from Office hour session with Instructor Dom
// May share similarities with other students
// console.log("app.js loaded");
// Functions to draw each graph per homework instructions
function drawBargraph(sampleID) {
// console.log(`Draw Bargraph for ${sampleID}`);
// Use d3 to read dat... |
import React, { useEffect, useState } from 'react'
import { connect } from 'react-redux';
import {fetchLogs, createLog} from '../../action/runActions'
import {updateRegimen} from '../../action/regimenActions'
import {blackOrWhite} from '../StyledComponent'
import ExerciesFilter from './ExerciesFilter';
import Flash fro... |
import {
nanoid
} from 'nanoid'
import config from '../../../yiya.config'
import keyboardjs from 'keyboardjs';
import {
encoder
} from './encoder'
import {
loadderComponent
} from './componentsLoadder'
import inputBox from '../../components/base/InputBox.vue'
//给拖动的元素添加"外壳"
function addShell(position, el, s... |
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: teal; icon-glyph: magic;
// Example match value: 'Home,Weekday,Fri,am,Morning,09'
// The first match is used
const RULES = [
//==================
{title: 'Woken Up',
match: 'Home,.*,.*,.*,Early,.*',
shortcuts: [
... |
/*
* Copyright 2020 Cognitive Scale, 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 b... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _equals = require('mout/src/object/equals');
var _equals2 = _interopRequireDefault(_equals);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _Coordinate2DWidget = require('PVWStyle/ReactWidgets/Coor... |
"use strict"
const commands = {
"ping": "handlePing",
"date": "handleGetDate",
"online": "handleGetOnline",
"ai": "handleAddItem",
"ac": "handleAddCoins",
"rc": "handleRemoveCoins",
"ban": "handleBan",
"unban": "handleUnban",
"kick": "handleKick",
"mute": "handleMute",
"unmute": "handleUnmute",
"as": "hand... |
import React, { Component } from "react";
import ReactDOM from "react-dom";
import ReactTable from "react-table/lib";
import { Button, ListGroup, ListGroupItem } from 'react-bootstrap';
import styles from 'main.css';
import rest from 'rest-calls.js';
class StarWars extends Component {
constructor() {
super... |
import React from 'react';
import './App.css';
import { connect } from 'react-redux';
import 'whatwg-fetch';
var injectTapEventPlugin = require("react-tap-event-plugin");
injectTapEventPlugin();
import AppBar from 'material-ui/AppBar';
import TextField from 'material-ui/TextField';
import Toggle from 'material-ui/Tog... |
'use strict';
process.noDeprecation = true;
/**
* Load dependencies
*/
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ExtractSVGPlugin = require('svg-sprite-loader/lib/extract-svg-plugin');
const autoprefixer = require('autopr... |
var AMOUNT = 100;
var container, stats;
var camera, scene, renderer;
var videostream, videoImage, videoImageContext, videoTexture;
var video, beat, image, imageContext,
imageReflection, imageReflectionContext, imageReflectionGradient,
texture, textureReflection, textureLeft;
var image2, imageContext2, texture2, video2,... |
import React, { Component } from 'react'
import uuid from 'uuid'
import CollectionCardInput from './CollectionCardInput'
import { connect } from 'react-redux'
import { selectCard } from '../actions/cards'
import { updateCollection, deleteFromCollection } from '../actions/collection'
import { Card, List, Label, Button, ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.requestAnimFrame = exports.cancelAnimFrame = exports.cancelAnimationFrame = exports.requestAnimationFrame = exports.browser = exports.getRaw = exports.createEditorState = exports.createArticleState = exports.isCS = exports.isES = ex... |
$(document).ready(function() {
doContentLoad();
triBG();
});
//資料呈現流程
function doContentLoad() {
$(".share-button").remove();
fadeWords(false);
showLoadingButton(true);
getContent();
// showLoader(true); //觸發全螢幕loader效果,但不耐常看,暫且封印
// 暫且等候 getContent 完成資料撈取,並讓按鈕轉個一圈
setTimeout(function() {
showLo... |
import { eth, Contract } from 'decentraland-eth'
import { env } from 'decentraland-commons'
import { Doctor } from './Doctor'
import { Diagnosis } from './Diagnosis'
import { asyncBatch } from '../../src/lib'
import { Parcel, Estate } from '../../src/Asset'
import { BlockchainEvent } from '../../src/BlockchainEvent'
i... |
import Home from '@/components/Home'
import flushPromises from 'flush-promises'
import { stubSimpleTabStore } from '../helpers/storeHelper.js'
import { rightSideNavStyle, leftSideNavStyle, footerMsgStyle, navPanelType } from '../helpers/domHelper.js'
import { createLocalVue, shallowMount, mount, TransitionStub } from '... |
import Form from '@themes/inc/form.js';
import swal from 'sweetalert'
//jQuery time
var current_fs, next_fs, previous_fs; //fieldsets
var left, opacity, scale; //fieldset properties which we will animate
var animating; //flag to prevent quick multi-click glitches
var cform1 = new Form()
cform1.formId ='#reg-stp-... |
/**
* External dependencies
*/
import classnames from 'classnames';
import { get, has, without } from 'lodash';
/**
* WordPress dependencies
*/
import { createContext, useContext } from '@wordpress/element';
import { createHigherOrderComponent } from '@wordpress/compose';
import { addFilter } from '@wordpress/hook... |
var express = require('express');
var router = express.Router();
var multer = require('multer');
var storage = multer.diskStorage({
destination: function (req, file, cb) {
cb(null, './public/upload')
},
filename: function (req, file, cb) {
cb(null, Date.now() + '_' + file.originalname);
}
});
var uplo... |
import React, { useEffect, useState, useContext } from "react";
import { Store } from "../../store";
import API from "../../utils/apiHelper";
import { makeStyles } from "@material-ui/core/styles";
import robotImage from "../../assets/roboArm.png";
import {
Icon,
Container,
Grid,
Paper,
Box,
Button,
Button... |
'use strict';
const { resolveLocalPath, isNasProtocol, endWithSlash } = require('./path');
const debug = require('debug')('fun:nas:cp');
const { isDir, isFile } = require('./cp/file');
const { uploadFolder, uploadFile } = require('./cp/upload');
const { getNasHttpTriggerPath, statsRequest } = require('./request');
con... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.RadioGroup = exports.radioGroupClassName = void 0;
var _map2 = _interopRequireDefault(require... |
var questions = [
{
gifQuestion: "assets/img/1.gif",
guesses: ["The Ring", "Devil's Backbone", "The Sixth Sence", "House of 1000 Corpes"],
correctAns: "Devil's Backbone"
},
{
gifQuestion: "assets/img/2.gif",
guesses: ["The Plague of Zombies", "Zombie", "Night of the L... |
var selectizeCountry = null;
var selectizeTypes = null;
var selectizeSpecialities = null;
var checkPlaceData = function (t, step) {
var place = {
name: t.find('#input-name').value,
types: $('#select-types').val(),
specialities: $('#select-specialities').val(),
streetNumber: t.find('#input-street-number').valu... |
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';
va... |
import groupBy from 'lodash/groupBy';
import mean from 'lodash/mean';
import meanBy from 'lodash/meanBy';
import concat from 'lodash/concat';
import maxBy from 'lodash/maxBy';
import minBy from 'lodash/minBy';
import upperCase from 'lodash/upperCase';
import moment from 'moment';
import range from 'lodash/range';
cons... |
import React from 'react';
import axios from 'axios';
import { Image, View } from 'react-native';
import { ImagePicker, Permissions, Constants } from 'expo';
import { StyleSheet, Dimensions, ScrollView, Platform, KeyboardAvoidingView, AsyncStorage, Alert } from 'react-native';
import { Button, Block, Text, Input, them... |
function objectSortableOn() {
$('#subjects_list').sortable({
update: function() {
var values = $('#subjects_list').sortable('serialize');
values += '&category=' + category + '&subcategory=' + subcategory;
$.ajax({
url: '/ajaxChangeSubjectOrder.php',
type: 'post',
dataType: "te... |
/*
* Tests the "waterfall" primitive.
*/
var mod_tap = require('tap');
var mod_vasync = require('..');
var count = 0;
var st;
mod_tap.test('empty waterfall', function (test) {
st = mod_vasync.waterfall([], function (err) {
test.ok(err === null);
test.ok(st.ndone === 0);
test.ok(st.nerrors === 0);
test.ok(... |
"use strict";
import {PippoAppsJSBase} from "./pippoapps/PippoAppsJSBase.js";
var FONT = "px IQOSW02-Regular";
var TXT_X = 10;
var TXT_Y = 10;
var COLOR = "#77cdd5";
var COLOR_SELECTED = "#35313E";
var TXT_COLOR = "#ffffff";
var TXT_COLOR_SELECTED = "#ff0000";
export class GameTile extends PippoAppsJSBase {
co... |
const fs = require('fs').promises;
const path = require('path');
const webpack = require('webpack');
const annotationParser = require('./annotation-parser');
const execPromise = require('./exec-promise');
const ensureDirectory = require('./fs/ensureDirectory');
const removeDirectoryRecursive = require('./fs/removeDire... |
"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";
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.definePrope... |
import { CONFIDENCES } from './constants';
// Format a 0–1 float score to 33.3%, with the given number of digits after the decimal point
export function formatScore(score, mantissaDigits = 1) {
if (Number.isNaN(score)) {
score = 0;
}
return `${Math.round(score * 100 * Math.pow(10, mantissaDigits)) /
(1 ... |
import React from 'react'
import {Link} from 'react-router-dom'
import axios from 'axios';
// import PlacesAutocomplete, {
// geocodeByAddress,
// getLatLng
// } from "react-places-autocomplete";
import MultipleImageUploadComponent from './multiple-image-upload.component';
import Map from './Maps';
class Step3... |
import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import Layout from '../components/Layout';
import { Grid, GridItem } from '../components/common/Grid';
import { isCoreTeam, getName } from '../helpers/contributorHelper';
const externalLinkAttributes = 'target="_blank" re... |
const BaseAccessory = require('./base_accessory');
const SwitchAccessory = require('./switch_accessory');
let Accessory;
let Service;
let Characteristic;
let UUIDGen;
class ValveAccessory extends BaseAccessory {
constructor(platform, homebridgeAccessory, deviceConfig, deviceData) {
({ Accessory, Characteristi... |
import React, { useState } from 'react';
import { connect } from 'react-redux';
import '../../../styles/ParentStyles/index.less';
import 'antd/dist/antd.css';
import { Calendar, Badge, Modal, Button } from 'antd';
import { InfoCircleOutlined } from '@ant-design/icons';
import { dateConverter } from '../../common/dateHe... |
//---------------
// SPACE INVADERS --
const eC = {version: 'r00'};
let lignes = [];
let inv_s;
let bunkers;
let canon;
let elements = [];
let level = -1;
let count=0;
let soucoupe = null;
let bg=[];
let pD;
function windowsResized(){
resizeCanvas(600,400);
// resizeCanvas(windowWidth,windowHeight);
inv_s = width... |
var through = require('through2');
var deploy = require("gulp-gh-pages");
var shell = require("gulp-shell");
var gulp = require('gulp');
var webpack = require('gulp-webpack');
var jshint = require('gulp-jshint');
var mocha = require('gulp-mocha');
var uglify = require('gulp-uglify');
var _ = require("./src/util.js");
v... |
/* GENERATED FILE */
import { html, svg, define } from "hybrids";
const PhMusicNotes = {
color: "currentColor",
size: "1em",
weight: "regular",
mirrored: false,
render: ({ color, size, weight, mirrored }) => html`
<svg
xmlns="http://www.w3.org/2000/svg"
width="${size}"
height="${size}"
... |
import fs from 'fs'
import arg from 'arg'
import inquirer from 'inquirer'
import chalk from 'chalk'
import clear from 'clear'
import figlet from 'figlet'
import Table from 'cli-table3'
import logUpdate from 'log-update'
import marked from 'marked'
import TerminalRenderer from 'marked-terminal'
import logSymbols from 'l... |
import { html, css, LitElement } from "lit";
import "../simple-popover.js";
class SimplePopoverManager extends LitElement {
constructor() {
super();
this.popover = null;
this.opened = false;
this.context = null;
this.orientation = "tb";
this.position = "bottom";
this.__ignore = false;
}... |
$(document).ready(function() {
var code = '';
var description = '';
$('#searching').on('change', function (e) {
fillFilteredEpsPatients($('#searching').val());
});
$('#code').on('change keyup', function (e) {
if ($('#code').val().length > 4) {
checkAuthorization($... |
/**
* Created by Mauriel on 1/19/2018.
*/
$(document).on('click', ".mdl-chip__action.action_cancel", function () {
$(this).closest(".message-container").remove();
});
$(document).on('change', "#switch-zoom", function () {
localStorage.setItem("AutoZoom", JSON.stringify($(this).prop("checked")));
});
$(docu... |
import React, { useEffect, useState } from 'react';
import { Tabs, Modal, message } from 'antd';
import TiersContainer from './Tiers';
import Limits from './Limits';
import Fees from './Fees';
import NewTierForm, {
NewTierConfirmation,
PreviewContainer,
} from './ModalForm';
import EditFees from './EditFees';
import... |
/**
* Based on: Bitcoin P2P networking that works in Node and the browser (https://www.npmjs.com/package/bitcoin-protocol)
*/
'use strict'
const struct = require('varstruct')
const varint = require('varuint-bitcoin')
var defaultTypes = require('... |
import React from 'react';
import { StaticQuery, graphql } from 'gatsby';
import styled, { css } from 'styled-components';
import Image from '../image';
import { space, colour, media, images } from '../../common/styles';
import unwrap from '../../utils/unwrap';
import X from '../x';
const SideBar = styled.nav`
posit... |
import React, { useState, useEffect } from "react";
import {
ActivityIndicator,
StyleSheet,
View,
Text,
AsyncStorage,
TouchableOpacity
} from "react-native";
import NetInfo from "@react-native-community/netinfo";
import SearchLayout from "../components/SearchLayout";
import MainLayout from "../components/Ma... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
/**
* tools.js
*
* The tools menu is where the user can perform most of the operations available.
* All the logic related to the tools menu is written here.
*/
// Logger
var logger = Logger.getInstance();
var storage = Storage.getInstance();
// Tools
var toolsElement = document.getElementById("tools");
var tool... |
import test from 'ava';
import sinon from 'sinon';
import {
DEFAULT_MIME_TYPE,
GLOBAL,
LINK,
MIME_TYPE_REGEXP,
REVOKE_TIMEOUT,
URL
} from '../src/constants';
import {
createBlob,
createObjectUrl,
getMimeType,
noop,
openPopupOrNavigate,
passThrough,
revokeObjectUrl,
saveWithDownloadAttribut... |
/* Copyright © 2012 RGen Solutions . All Rights Reserved.
Contact : <EMAIL>
*/
var Arrr;
function transformArr(orig) {
var newArr = [], types = {}, newItem, i, j, cur;
try {
for (i = 0, j = orig.length; i < j; i++) {
cur = orig[i];
if (cur.Security_Id == "1" && cur.Project_... |
function AVLTree() {
let Node = function (key) {
this.key = key;
this.left = null;
this.right = null;
};
let root = null;
this.getRoot = function () {
return root;
};
let heightNode = function (node) {
if (node === null) {
return -1;
} else {
return Ma... |
var cardsIdSeason = [];
var cardData = [];
var cardsLen;
var UserAgent = "<EMAIL>";
var requestsNum = 0;
var requestTimes = new Array();
var processedCardsNumber;
var junkPrices = {
'common' : 0.01,
'uncommon' : 0.05,
'rare' : 0.10,
'ultra-rare' : 0.20,
'epic' : 0.50,
'legendary' : 1.00
}
fun... |
var assign = require('object-assign');
var conditions = require('./conditions');
var defaultConfig = require('../config');
function removeSVGTagAttrs(tag) {
if (conditions.isSVGToken(tag)) {
tag.attributes = tag.attributes.filter(conditions.hasNoWidthHeight);
}
return tag;
}
function ... |
// JavaScript Document
var pageData = new function() {
this.resultsDiv = null;
this.calendarDiv = null;
this.categoriesDiv = null;
this.link1 = null;
this.statusDiv = null;
this.dimmerDiv = null;
this.hoverDiv = null;
}
function init() {
pageData.resultsDiv = document.getElementById("results");
... |
cards = [];
holdbutton = document.getElementById("hold");
//holdbutton.style.visibility = "hidden";
console.log("Version 1.0")
for(var i = 1;i<5;i++){
type = "";
if(i==1) {
type = "A"
}
if(i==2){
type= "B"
}
if(i==3){
type= "C"
}
if(i==4){
type="D"
}
for(var e = 2; e<15;e++){
car... |
/* eslint-disable no-unused-expressions */
/* eslint-disable global-require */
import isNode from 'detect-node';
import { expect } from 'chai';
import 'isomorphic-fetch';
import { GeoTIFF } from '../src/main';
import { makeFetchSource, makeFileSource } from '../src/source';
function createSource(filename) {
if (is... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
/**
* Decred Ticket Auto Splitter buys split Decred tickets in a set increment.
*
* This program will loop constantly until killed by the user. It will deplete ALL funds in the wallet if left to its
* own devices.
*
* PLEASE NOTE THE FOLLOWING BEFORE RUNNING THE PROGRAM:
* - The stakepool being used is 'decredv... |
/**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights re... |
const mineflayer = require('mineflayer')
const { Random, crackPlayerSeed, enchantments } = require('prismarine-rng')
const { once } = require('events')
const bot = mineflayer.createBot({
username: 'RngWizard',
version: '1.16.4'
})
let bits = []
let seed = -1
let rand = null
function wait (ms) {
return new Prom... |
const path = require('path')
// Core Deps required for packing
const webpack = require('webpack')
const HTMLPlugin = require('html-webpack-plugin')
const { VueLoaderPlugin } = require('vue-loader')
const MinifyPlugin = require('babel-minify-webpack-plugin')
const CaseSensitivePathsPlugin = require('case-sensitive-path... |
"use strict";
var _this = void 0;
// import Q from 'q';
// import hdlUtil from './hdlUtil';
// import _L from 'lodash';
// import fs from 'fs';
// import Path from "path";
var Q = require('q');
var hdlUtil = require('./hdlUtil'); // const _L = require('lodash');
var fs = require('fs');
var Path = require('path');... |
import React from 'react';
import styled, { injectGlobal } from 'react-emotion';
import StoreContext, { defaultStoreContext } from '../../context/StoreContext';
import UserContext, { defaultUserContext } from '../../context/UserContext';
import InterfaceContext, {
defaultInterfaceContext
} from '../../context/Interf... |
'use strict';
const os = require('os');
const open = require('open');
const kitx = require('kitx');
const inquirer = require('inquirer');
const SSO = require('../lib/sso');
const Portal = require('../lib/portal');
const helper = require('../lib/helper');
class Login {
constructor(app) {
this.app = app;
th... |
import {useState} from 'react';
import {
Link,
Text,
Input,
IconButton,
Box,
FormControl,
FormLabel,
Radio,
RadioGroup,
HStack,
Alert,
AlertDescription,
AlertIcon,
AlertTitle,
CloseButton,
} from '@chakra-ui/react';
import {ExternalLinkIcon, ArrowForwardIcon}... |
const commentParser = require('comment-parser');
const path = require('path');
/**
* @typedef {Object} Comment
* @private
* @property {string} description - type/function/ect. description text
* @property {Array.RawSource} source - for Source see https://www.npmjs.com/package/comment-parser
* @property {A... |
$(document).ready(function() {
$('.loading span').text("Loading...");
update();
});
function resume(id){
$("#" + id + " .resume").fadeOut();
$.get("action/" + id + "/resume");
$("#" + id + " .activity").text("Resuming…");
}
function pause(id){
$("#" + id + " .resume").fadeOut();
$.get("actio... |
import { createEntity } from "metabase/lib/entities";
import {
createThunkAction,
compose,
withAction,
withCachedDataAndRequestState,
withNormalize,
} from "metabase/lib/redux";
import _ from "underscore";
import * as Urls from "metabase/lib/urls";
import { color } from "metabase/lib/colors";
import { creat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.