text stringlengths 3.07k 16k |
|---|
import { Row, Container, DropdownButton, Dropdown, Col, Button, ButtonGroup } from "react-bootstrap"
import { Component } from 'react'
import RoomService from '../../../services/room.service'
import AvalaibleRoomCard from "./AvailableRoomCard"
import Spinner from "../../shared/Spinner/Spinner"
import './AvalaibleRoomLi... |
import React from "react"
import { graphql } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
import Article from "../components/Article"
import Container from "../components/Container"
import { MdEmail } from "react-icons/md"
import { FaGithub, FaTwitter } from "react-icons... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const util_1 = require("@nestjsx/util");
const request_query_validator_1 = require("./request-query.validator");
class RequestQueryBuilder {
constructor() {
this._fields = [];
this._filter = [];
this._or = [];
... |
import { useState, useEffect, useRef } from "react";
import SuiButton from "components/SuiButton";
import SuiBox from "components/SuiBox";
import SuiTypography from "components/SuiTypography";
import SuiInput from "components/SuiInput";
import Modal from "@mui/material/Modal";
import Grid from "@mui/material/Grid";
imp... |
/**
* Copyright (C) 2018 New York University
* University at Buffalo,
* Illinois Institute of Technology.
*
* 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 Lic... |
import * as line from '@line/bot-sdk'
import FlexPokedex from './flex_pokedex'
import express from 'express'
import { debuger } from 'touno.io'
import conn from 'touno.io/db-opensource'
if (!process.env.LINE_TOKEN_POKEDEX || !process.env.LINE_SECRET_POKEDEX) {
throw new Error('LINE token access environment not found... |
'use strict';
const csso = require('csso');
const eleventyNavigationPlugin = require('@11ty/eleventy-navigation');
const eleventySvgContentsPlugin = require('eleventy-plugin-svg-contents');
const eleventySyntaxHighlightPlugin = require('@11ty/eleventy-plugin-syntaxhighlight');
const htmlmin = require('html-minifier');... |
/**
* 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... |
'use strict';
const chalk = require('chalk');
const commander = require('commander');
const packageJson = require('../package.json');
const fs = require('fs-extra');
var vfs = require('vinyl-fs');
const path = require('path');
const inquirer = require('inquirer')
const semver = require('semver');
const download = req... |
import React, { Component } from 'react';
import { View, StyleSheet, Text, TextInput,KeyboardAvoidingView,TouchableOpacity,Alert, ToastAndroid } from 'react-native';
import firebase from 'firebase';
import db from '../config';
import MyHeader from '../components/MyHeader'
export default class Exchange extends Componen... |
/**
* @license
* Copyright 2016 Palantir Technologies, Inc.
*
* 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... |
import React, { Component, Fragment, useEffect, useState } from "react";
import { View, Image, StyleSheet, Dimensions } from "react-native";
import MapView, { PROVIDER_GOOGLE, Marker } from "react-native-maps";
import * as Location from "expo-location";
import { connect } from "react-redux";
import { getDistance, getS... |
var gulp = require('gulp');
var concat = require('gulp-concat');
var connect = require('gulp-connect');
var eslint = require('gulp-eslint');
var file = require('gulp-file');
var htmlv = require('gulp-html-validator');
var insert = require('gulp-insert');
var replace = require('gulp-replace');
var size = require... |
import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import _inherits from "@swc/helpers/src/_inherits.mjs";
import _create_super from "@swc/helpers/src/_create_super.mjs";
var A1 = /*#__PURE__*/ function() {
"use strict";
function A1() {
_class_call_check(this, A1);
}
var _pr... |
import React, { useState, useContext, useEffect, useCallback } from 'react'
import PropTypes from 'prop-types'
import StoreContext from '../../context/store'
import VariantSelectors from '../variantSelectors'
const ProductForm = ({ product }) => {
const {
variants: [initialVariant],
priceRange: { minVariantP... |
import { loader, Graphics, TextStyle, Sprite, utils, Text } from 'pixi.js';
import Scene from 'CLIENT/modules/Scene';
import assets from 'CLIENT/assets';
class LessonsScene extends Scene {
constructor({ id }) {
super({ id });
this.init();
}
init() {
this.loadAssets();
}
loadAssets() {
load... |
/* © 2020 <NAME> */
import { strict as assert } from 'assert';
import { performance } from 'perf_hooks';
const { now: nowMillis } = performance;
const { toStringTag } = Symbol;
// =============================================================================
/**
* An abstract metric. This class captures some number... |
/**
* 存储localStorage
*/
export const setStore = (name, content) => {
if (!name) return;
if (typeof content !== 'string') {
content = JSON.stringify(content);
}
window.localStorage.setItem(name, content);
}
/**
* 获取localStorage
*/
export const getStore = name => {
if (!name) return;
var value = window.local... |
"use strict";
const optionsSchema = require("./optionsSchema.json");
const getSchemaPart = (path, parents, additionalPath) => {
parents = parents || 0;
path = path.split("/");
path = path.slice(0, path.length - parents);
if(additionalPath) {
additionalPath = additionalPath.split("/");
path = path.co... |
const path = require('path');
const gulp = require('gulp');
const sass = require('gulp-sass');
const svgSymbols = require('gulp-svg-symbols');
const rename = require('gulp-rename');
const cheerio = require('gulp-cheerio');
const filter = require('gulp-filter');
const sourcemaps = require('gulp-sourcemaps');
const postc... |
/*
* Copyright (C) 2020 Intel Corporation
* SPDX-License-Identifier: MIT
*/
/* global
require:false
*/
const jsonpath = require('jsonpath');
const {
AttributeType,
ObjectType,
} = require('./enums');
const { ArgumentError } = require('./exceptions');
class AnnotationsFilter {
constructor() {
... |
/*!
* Vue YouTube Embed version 2.2.1
* under MIT License copyright 2018 kaorun343
*/
// fork from https://github.com/brandly/angular-youtube-embed
if (!String.prototype.includes) {
String.prototype.includes = function () {
return String.prototype.indexOf.apply(this, arguments) !== -1
};
}
var youtubeRegex... |
/**
Copyright 2018 LNFWebsite
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 to in writing, sof... |
import Box from "alloy/layout/Box";
import React, {createContext, useContext, useRef, useState} from "react";
import Route from "alloy/components/Route";
import TextField from "alloy/form/TextField";
import Button from "alloy/form/Button";
import {useObserver} from "react-hook-useobserver/lib/useObserver";
import... |
import GL from '@luma.gl/constants';
import {Buffer, Transform} from '@luma.gl/core';
import {getShaders, getBuffers, padBuffer} from './attribute-transition-utils';
import Attribute from './attribute';
import BaseAttribute from './base-attribute';
import Transition from '../transitions/transition';
import log from '..... |
"use strict";
var complain = "MARKO_DEBUG" && require("complain");
var isClientReorderSupported = require("./client-reorder").isSupported;
var AsyncValue = require("./AsyncValue");
function safeRenderBody(renderBody, targetOut, data) {
try {
renderBody(targetOut, data);
} catch (err) {
return e... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//发送网络请求获取DOM
var superagent = require("superagent");
//能够像Jquery一样方便获取DOM节点
var cheerio = require("cheerio");
//发送邮件的node插件
var nodemailer = require("nodemailer");
//ejs模版引擎
var ejs = require("ejs");
//文件读写
var fs = require("fs");
//路径配置
var ... |
/**
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var Lib = require('../../lib');
var setConvertCartesian = require('../cartesian/set_convert');
var deg2rad = Li... |
/**
* Copyright (C) 2016 <EMAIL>
* test-helix.js
*
* changelog
* 2016-04-20[18:10:57]:revised
*
* @author <EMAIL>
* @version 1.0.0
* @since 1.0.0
*/
var helixArray = require('../helix-array').helixArray;
var assert = require('assert');
var leftpad = require('left-pad');
function g(len) {
var arr = new Ar... |
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
/****************************************************************************
Copyright (c) 2008-2010 <NAME>
Copyright (c) 2011-2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... |
$.ajaxSetup({
beforeSend: function(xhr) {
xhr.setRequestHeader('X-CSRF-TOKEN', $("meta[name='_csrf']").attr('content'));
}
});
var controller = {
disableSaveBtn: function() {
toggleSaveButton(false);
},
enableSaveBtn: function() {
toggleSaveButton(true);
},
removeC... |
const webpack = require("webpack")
const path = require("path")
const CopyPlugin = require("copy-webpack-plugin")
const WorkboxPlugin = require("workbox-webpack-plugin")
const UglifyJsPlugin = require("uglifyjs-webpack-plugin")
const HtmlPlugin = require("html-webpack-plugin")
const OptimizeCSSAssetsPlugin = require("o... |
const MsgEmbed = require('../classes/MsgEmbed')
const { timeUp } = require('../classes/subfunc')
module.exports = async (msg, query, locale) => {
const { guild, channel } = msg
const user = msg.author
const users = msg.client.data.users
const { t } = msg.client.locale
const embed = new MsgEmbed(guild)
//... |
/*
* This file is part of the nivo project.
*
* Copyright 2016-present, <NAME>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import MediaQuery from... |
const sitesElement = document.querySelector(".sites");
const clockElement = document.querySelector(".clock");
const weatherElement = document.querySelector(".weather");
const dialogElement = document.querySelector(".dialog");
let sites = JSON.parse(localStorage.getItem("sites") || "[]");
let theme = localStorage.getIte... |
import _extends from 'babel-runtime/helpers/extends';
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import PropTypes from '../../_util/vue-types';
import BaseMixin from '../../_util/BaseMixin';
import { connect } from '../../_util/store';
import shallowEqual from 'shallowequal';
import Table... |
import React, { useState, useEffect } from "react";
import {
StyleSheet,
View,
Text,
Image,
Pressable,
Dimensions,
TextInput,
ScrollView,
Alert,
} from "react-native";
import { MaterialIcons } from "@expo/vector-icons";
import {
Poppins_300Light,
Poppins_400Regular,
Poppins_600SemiBold,
Poppin... |
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import { contains } from "./arr.js";
import * as domUtils from "./domUtils.js";
import * as is from "./is.js"... |
// Copyright (c) 2012 <NAME>
// Licensed under the MIT license.
var events = require('events');
var precond = require('precond');
var util = require('util');
var Backoff = require('./backoff');
var FibonacciBackoffStrategy = require('./strategy/fibonacci');
// Wraps a function to be called in a b... |
import React, { Component} from 'react';
import PropTypes from 'prop-types';
import { Table } from 'react-bootstrap';
import '../../../css/components/Excel.css';
class Excel extends Component {
constructor(props) {
super(props);
this.state = {
data: props.initialData,
headers: prop... |
import {
setMilliseconds,
getMilliseconds,
setSeconds,
getSeconds,
setMinutes,
getMinutes,
setHours,
getHours,
setDate,
getDate,
getMonth,
setMonth,
getYear,
setYear,
addMilliseconds,
addSeconds,
addMinutes,
addHours,
addDays,
addWeeks,
... |
/**
* DashboardTopEarningPagesWidget component.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* 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
*
* https://www.apache.org/licen... |
import React from 'react';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import History from './components/history/History';
import Header from './components/header/Header';
import Footer from './components/footer/Footer';
import Form from './components/form/Form';
import Results from './components/r... |
/**
* @TYPES
* ==============================================
* PATIENTS
*/
export const PATIENTS_FETCH_ALL = 'PATIENTS_FETCH_ALL'
export const PATIENTS_FETCH_BY_ID = 'PATIENTS_FETCH_BY_ID'
export const PATIENTS_CREATE = 'PATIENTS_CREATE'
export const PATIENTS_UPDATE = 'PATIENTS_UPDATE'
export const PATIENTS_DELET... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.SpinProps = exports.SpinSize = undefined;
var _babelHelperVueJsxMergeProps = require('babel-helper-vue-jsx-merge-props');
var _babelHelperVueJsxMergeProps2 = _interopRequireDefault(_babelHelperVueJsxMergeProps);
var _defineProper... |
var _ = require('underscore');
var FeedParser = require('feedparser');
var request = require('request');
var async = require('async');
var url = require('url');
var iframelyGetPluginData = require('../../lib/core').getPluginData;
var pluginLoader = require('../../lib/loader/pluginLoader');
var pluginUtils = require('... |
import {
BufferAttribute,
DoubleSide,
DynamicDrawUsage,
Group,
InstancedBufferGeometry,
InstancedBufferAttribute,
InstancedMesh,
ShaderLib,
ShaderMaterial,
UniformsUtils,
Vector3,
} from '../../vendor/three.js';
class Birds extends InstancedMesh {
static setupGeometry() {
/* eslint-disable ... |
'use strict';
var calcs = require("./utils/tieredLeakageCalcs");
var dateUtils = require("./utils/dateUtils");
module.exports = function(T2compnotasdgdprdetailscontract) {
T2compnotasdgdprdetailscontract.processChild = function(req, filter, cb) {
this.process(req, filter, function(err, message){
... |
// Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {assertEquals, assertTrue} from 'chrome://test/chai_assert.js';
import {LRUCache} from './lru_cache.m.js';
export function testLRUCache() {
cons... |
useTheme();
useTeam();
waitForLoad(() => {
updateTeamDisplays();
console.log(`Completed Loading`);
$(".LOADING").removeClass("LOADING")
})
themePreloadCallback = () => {
for (let m = 0; m < 8; m++) {
$('.match' + (m + 1) + ' .teamlogo2').css("display", "none");
$('.match' + (m + 1) + ... |
import React from 'react'
import "styling/main.css"
import 'react-bootstrap-range-slider/dist/react-bootstrap-range-slider.css';
// bootstrap components
import Container from 'react-bootstrap/Container'
import Row from 'react-bootstrap/Row'
import Col from 'react-bootstrap/Col'
import Spinner from 'react-bootstrap/Sp... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classC... |
var _ = require('underscore');
var Backbone = require('backbone');
var ImportModel = require('./import-model');
var UploadModel = require('builder/data/upload-model');
var VisDefinitionModel = require('builder/data/vis-definition-model');
var PermissionModel = require('builder/data/permission-model');
/**
* Upload/i... |
"use strict";
/***************************************************************************************************************************
* @license *
* Copyright 2017 Coinbase, Inc. ... |
'use strict';
/* Services */
// Demonstrate how to register services
// In this case it is a simple value service.
var services = angular.module('app.services', []);
services.value('version', '1.0.2');
var ScopedSocket = function(socket, $rootScope) {
this.socket = socket;
this.$rootScope = $rootScope;
this.... |
/**
* LegacyAnalyticsAdSenseDashboardWidgetTopPagesTable component.
*
* Site Kit by Google, Copyright 2021 Google LLC
*
* 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
*
* https://... |
// MIT License - Copyright (c) 2020 <NAME> <<EMAIL>>
//
// 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... |
// abc_triplet_element.js: Definition of the TripletElem class.
// Copyright (C) 2010,2014 <NAME> (<EMAIL> at <EMAIL> dot <EMAIL>) and <NAME>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Soft... |
var componenteListado = $('[name=listar_facturas]');
var modelFila = '<tr>'+
' <td>{4}</td>'+
' <td>{9}</td>'+
' <td>{0}</td>'+
' <td id="codigo">{2}</td>'+
' <td>{5}</td>'+
' <td>{6}</td>'+
' <td>{10}</td>'+
' <td>{8}</td>'+
' <td>{11}</td>'+
' <td>... |
import React from 'react';
const RefreshRejectedLast1 = () =>
<svg xmlns='http://www.w3.org/2000/svg' width={422} height={64}>
<g fill='none' fillRule='evenodd' transform='translate(0 -4)'>
<text fill='#7F8FA4' fontFamily='OpenSans, Open Sans' fontSize={12} opacity='.3'>
<tspan x='18.207' y='13.849... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author <NAME> @sokra
*/
var Module = require("./Module");
var OriginalSource = require("webpack-sources").OriginalSource;
var RawSource = require("webpack-sources").RawSource;
var DependenciesBlock = require("./DependenciesBlock");
function C... |
/* eslint-disable no-console, max-len, camelcase, no-unused-vars */
const { strict: assert } = require('assert');
const querystring = require('querystring');
const crypto = require('crypto');
const { inspect } = require('util');
const isEmpty = require('lodash/isEmpty');
const bodyParser = require('koa-body');
const R... |
/*!
* Copyright (c) 2018, Salesforce.com, Inc.
* 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 ... |
'use strict'
var Promise = require('bluebird');
var hooks = [];
exports.setHooks = function (newHooks) {
exports.removeHooks();
exports.addHooks(newHooks);
};
exports.addHooks = function (newHooks) {
hooks = hooks.concat(newHooks);
};
exports.removeHooks = function () {
hooks = [];
};
function res... |
// JavaScript Document
/***********************************************
* Universal Countdown script- � Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
function ... |
'use strict';
exports.__esModule = true;
var _inherits = require('inherits');
var _inherits2 = _interopRequireDefault(_inherits);
var _client = require('../../client');
var _client2 = _interopRequireDefault(_client);
var _bluebird = require('bluebird');
var _bluebird2 = _interopRequireDefault(_bluebird);
var _t... |
const Discord = require("discord.js");
const config = require("../../config/config.json");
module.exports = {
name: 'reminder',
description: 'Set a reminder',
category: 'Utilities',
aliases: ["remindme", "remind"],
usage: '`{prefix}reminder t:<time> r:<time> <reminder>`',
examples: '`{prefix}re... |
isInpopup = null
function oneClickGetPopupHtml(extension) {
if (!extension && "undefined" != typeof _extension) {
extension = _extension
}
// mail = `<EMAIL>`,
// rateLink = `https://chrome.google.com/webstore/detail/iailenailkodagjankopbieohnphhjbi/reviews`,
// githubLink = `https://github.com/1... |
'use strict';
/*
* payment_eth_html_add_question_type_javascript
*/
// Imports
const Web3Modal = window.Web3Modal.default;
const WalletConnectProvider = window.WalletConnectProvider.default;
const EvmChains = window.EvmChains;
// Web3modal instance
let web3Modal;
// Chosen wallet provider given by the dialog wind... |
var gui = require('nw.gui');
fs = require('fs');
// Make global references to the window methods. Needed for CodeMirror which expects to be running
// in a browser context but is currently called from node
global.document = window.document;
global.navigator = window.navigator;
global.getComputedStyle = window.getCom... |
const fetch = require('node-fetch')
// const OpenCC = require('opencc');
// const converter_TW = new OpenCC('s2twp.json');
// const converter_TC = new OpenCC('s2t.json');
function migrate(org, t, offset = 10 ** -3) {
const isDigit = x => !isNaN(Number(x));
const plus = (num1, num2, ...others) => {
// ... |
import { assert, warn } from 'ember-metal/debug';
import buildComponentTemplate from 'ember-htmlbars/system/build-component-template';
import getCellOrValue from 'ember-htmlbars/hooks/get-cell-or-value';
import { get } from 'ember-metal/property_get';
import { MUTABLE_CELL } from 'ember-views/compat/attrs-proxy';
impor... |
/* eslint-disable */
import "bootstrap";
import "./style.css";
import "./assets/img/rigo-baby.jpg";
import "./assets/img/4geeks.ico";
const creditCard = document.querySelector("#cardNumber");
const cvc = document.querySelector("#cvc");
const amount = document.querySelector("#amount");
const firstName = document.que... |
let chokidar = require('chokidar');
let path = require('path');
let fs = require('../../core/fs.js');
const DAPP_PIPELINE_CONFIG_FILE = 'pipeline.js';
const DAPP_WEBPACK_CONFIG_FILE = 'webpack.config.js';
const DAPP_BABEL_LOADER_OVERRIDES_CONFIG_FILE = 'babel-loader-overrides.js';
// TODO: this should be receiving t... |
import Route from './route'
import { assign, isEmpty } from '@hyper/utils'
import { parseUri, parseQS, stringifyQS, stringifyHash, joinPaths } from '@hyper/router-utils'
import { scroll_to, lookup_parent_element } from '@hyper/dom-base'
import EventEmitter from './drip/emitter'
// this is a generic router. it doesn't... |
const path = require('path')
const colors = require('colors/safe')
const PrerenderSPAPlugin = require('prerender-spa-plugin')
const SVGSpritemapPlugin = require('svg-spritemap-webpack-plugin')
const ImageminPlugin = require('imagemin-webpack-plugin').default
const ImageminMozjpeg = require('imagemin-mozjpeg')
const Pu... |
import AdComponent from "discourse/plugins/discourse-adplugin/discourse/components/ad-component";
import discourseComputed, { observes } from "discourse-common/utils/decorators";
import loadScript from "discourse/lib/load-script";
let _loaded = false,
_promise = null,
renderCounts = {},
publisher_id = Discourse.... |
/*
This component creates a modal with options to
either import or create a user seed for account setup
*/
import React, { Component } from "react"
import {
Text,
ScrollView,
View,
TextInput as NativeTextInput,
Alert
} from "react-native"
import Styles from '../../../styles/index'
import { Button, TextI... |
var points = [1, 2, 3, 4, 5, 6, 7, 8];
var four = [];
var squareCount;
var total;
var locations = [];
var pseudoSquares = false;
var delay = 0;
$(document).ready( function() {
$('#run').click( function() {
clearInterval(interval);
$('#output').text('');
run();
});
$('#end').click( function() {
clearInter... |
import React, { useGlobal } from "reactn";
import { LazyLoadImage } from "react-lazy-load-image-component";
import { startCase } from "lodash";
import PropTypes from "prop-types";
import styled from "styled-components";
import { handleWishlist } from "../Utils";
import Heart from "../Icons/Heart";
import Chat from "..... |
import { CSS_PREFIX } from '../module.js';
import { icon, emptyNode, img, div, span, appendText, htmlToNode } from './html.js';
const CSS_ROW = `${CSS_PREFIX}row`;
const CSS_LABEL = `${CSS_PREFIX}label`;
const CSS_VALUE = `${CSS_PREFIX}value`;
const CSS_CURRENT = `${CSS_PREFIX}current`;
const CSS_MAX = `${CSS_PREFIX}m... |
const gepars = require('../..');
const geast = require('geast');
const gelex = require('gelex');
const fs = require('fs');
geast.node('print', [ 'expression' ]);
const code = fs.readFileSync(process.argv[2]).toString();
const ldef = gelex.definition();
ldef.defineComment('//');
ldef.defineComment('/*', '*/');
ldef.... |
import React from 'react'
import PropTypes from 'prop-types'
import { Row, Col, Box, Button, Inputs } from 'adminlte-2-react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
// import BchWallet from 'minimal-slp-wallet'
const siteConfig = require('../../site-config')
const BchWallet = typeof window !... |
/*
* 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 to in writing, software
* distributed u... |
import React, { Component } from 'react';
import Web3 from 'web3'
import './App.css';
import MyCollectible from '../abis/MyCollectible.json'
class App extends Component {
constructor(props) {
super(props)
this.state = {
account: '',
contract: null,
price: 0,
mintedSoFar: 0,
tota... |
const canvas = document.getElementById("canvas1");
const ctx = canvas.getContext("2d");
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
let particleArray = [];
let adjustX = canvas.width / 200;
let adjustY = canvas.height / 200;
// get mouse mouse position //
let mouse = {
x: null,
y: nul... |
//Unit Testing with Selenium and Jest
/**
* @jest-environment jest-environment-webdriver
*
* Visit jest documentation at: https://jestjs.io/docs/api
*/
const {By, Builder, until} = require("selenium-webdriver");
require("chromedriver");
const url = 'http://localhost:3000/' // This url needs to be changed ... |
window.dzsap_part_starRatings_loaded = 'on';
class dzsapStarRatingsSource {
constructor(dzsapClass) {
this.dzsap = dzsapClass;
this.init();
}
init() {
var $ = jQuery;
var starrating_index = 0;
var dzsapClass = this.dzsap;
$(document).on('mousemove', '.star-rating-con', mouse_star... |
var current_page = 1;
var records_per_page = ads_per_page;
var ads_type = "";
var objJson = [];
function prevPage() {
if (current_page > 1) {
current_page--;
changePage(current_page);
}
}
function nextPage(event) {
if (current_page < numPages()) {
current_page++;
changePag... |
import React, { Component } from "react";
import { connect } from "react-redux";
import { sizeToString, vhCheck } from "../../utils";
import { isPreviewable } from "../../config";
import { Button, Typography, withStyles } from "@material-ui/core";
import Divider from "@material-ui/core/Divider";
import TypeIcon from ".... |
import React, { Component, useState } from "react";
import PropTypes from "prop-types";
import TextField from '@mui/material/TextField';
import Button from '@mui/material/Button';
import Dialog from '@mui/material/Dialog';
import DialogActions from '@mui/material/DialogActions';
import DialogContent from '@mui/material... |
exports.data = {
name: 'Twitter Watcher',
nick: 'twitter',
command: 'twitter',
description: 'Creates a watcher for tweets.',
author: '<NAME>: <EMAIL>'
};
const Twit = require('twit');
const Discord = require('discord.js');
const he = require('he');
const chalk = require('chalk');
const moment = require('moment');... |
'use strict'
const Rx = require('rxjs');
const { filter, map, tap } = require('rxjs/operators');
// Imports the Google Cloud client library
const uuidv4 = require('uuid/v4');
const { PubSub } = require('@google-cloud/pubsub');
const { ConsoleLogger } = require('@nebulae/backend-node-tools').log;
const messageAckAfter... |
import { isValidCommand } from "../common/get-valid-element-properties";
import { parseStringWithIndefiniteNumberOfParams } from "../parse-data-attributes";
import {
getValueForClosestKey,
getClosestElemWithKey,
getTargetElemsForKeyName,
getValueForKeyName,
} from "./getAndSetKeyValues";
import { forEachAttr } ... |
/**
*
* Reldens - EnemyObject
*
* This is an example object class, it extends from the NpcObject class and then define the specific parameters for the
* behavior and animations.
* The main point here is that this is just and example, and you could even create several NPCs and make them run any
* kind of actions ... |
var currentObj;
var activateNum = 0;
var maxNum = 0;
var editor;
$(function () {
if ('632' > 0) {
$("#IsEnableRadio").find("input:radio[name=IsEnable][value='True']").attr("checked", "checked");
$("#EditTypeRadio").find("input:radio[name=EditT... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
/* ---- THE FOLLOWING CONFIG SHOULD BE EDITED ---- */
var pkg = require( './package.json' );
var config = {
pluginSlug: 'torro-forms',
pluginName: 'Torro Forms',
pluginURI: pkg.homepage,
author: pkg.author.name,
authorURI: pkg.author.url,
description: pkg.description,
version: pkg.version,
license: pkg.licens... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.