text stringlengths 3.07k 16k |
|---|
'use-strict';
let imgArray = ['bag.jpg','banana.jpg','bathroom.jpg','boots.jpg' ,'breakfast.jpg','bubblegum.jpg','chair.jpg','cthulhu.jpg','dog-duck.jpg','dragon.jpg','pen.jpg','pet-sweep.jpg','scissors.jpg','shark.jpg','sweep.png','tauntaun.jpg','unicorn.jpg','usb.gif','water-can.jpg','wine-glass.jpg'];
const leftIm... |
const Observable = require("tns-core-modules/data/observable").Observable;
const maxDuration = 10000000 ;
const minDuration = 0;
const minimumSeekableTime = 5000
const START_TIME = "startTime";
const END_TIME = "endTime";
const CURRENT_TIME = "currentTime";
const SLIDER_VALUE = "sliderValue";
const SECONDS_TO_TRIM ... |
import React, { Component } from 'react';
import { compose } from 'redux';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { connect } from 'react-redux';
import { reduxForm, Field } from 'redux-form';
import { Link } from 'react-router-dom';
import { Row, Col, Card, Form, Button } from 'react-... |
const Toast = require('../../components/dist/toast/toast');
var wxb = require('../../utils/wxb.js');
var md5 = require('../../utils/md5.min.js');
var utils = require('../../utils/util.js')
var app = getApp();
Page({
data: {
isLogin: true,
fun_id: 2,
time: '获取验证码', //倒计时
currentTime: 61,
userPhon... |
import React, { Component } from 'react';
import { string, func, array, bool, object } from 'prop-types';
import { isString, isArray, isObject } from '../../../../utils';
import { Box, MultiDownshift, Text } from '../../index';
import InputTagBody from './tag-body';
import InputTagInputField from './tag-input-field';
i... |
// ECMAScript 6
var removeList = {
class:['Header', 'Footer', 'header', 'footer', 'topbar', 'ArticleList', 'LinkList', 'links', 'banner', 'leaderboard', 'related', 'avatar', 'previous', 'next', 'feed', 'navbar', 'menu'],
id:['links', 'header', 'footer', 'banner', 'leaderboard', 'related'],
tag:['script', '... |
"use strict";
const assert = require('better-assert');
const assert_hard = require('assert');
const assert_soft = require('assertion-soft');
const validator = require('validator');
const interpolate = require('../interpolate');
const Promise = require('bluebird');
const table_columns = require('./table').columns;
const... |
/** @jsx jsx */
import React from "react";
import { jsx } from "@emotion/core";
import dateFns from "date-fns";
import { SecondaryButton } from "./ui";
import { useSetNotify } from "../actions/action-hooks";
import { formatHour } from "../utils";
import { ChevronLeft, ChevronRight } from "./icons";
function ArrowButto... |
import * as MV from "./MV.js";
import { Canvas } from "./canvas.js";
import { WebGLRenderingObject, normRgb } from "./webgl-object.js";
import { createSphereVertices } from "./3d-geometry.js";
import "./texture.js";
export class WebGLLightingObject extends WebGLRenderingObject {
constructor(gl, intialPos, // TODO: ... |
import React from "react";
import PropTypes from "prop-types";
import ToggleButton from "@material-ui/lab/ToggleButton";
import ToggleButtonGroup from "@material-ui/lab/ToggleButtonGroup";
import { makeStyles } from "@material-ui/core/styles";
import Tabs from "@material-ui/core/Tabs";
import Tab from "@material-ui/c... |
import * as _ from "../deps/underscore-1.10.2-esm.js"
import { inspect } from "./_writer.js"
import { make_simple_assert } from "./assert.js"
import Class from "./class.js"
import { array_to_list } from "./pair.js"
import { assert_symbol, assert_list } from "../library/infra.js"
//
// R6RS Enumerations
// http://www.... |
import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ReactWidgets/ColorByWidget.mcss';
import AdvancedView from './AdvancedView';
const SEP = ':|:';
function doubleToHex(number) {
let str = Math.floor(number * 255).toString(16);
while (str.length < 2) {
str = `0${str}`;... |
'use strict';
const nconf = require.main.require('nconf');
const winston = require.main.require('winston');
const db = require.main.require('./src/database');
const User = require.main.require('./src/user');
const Messaging = require.main.require('./src/messaging');
const PluginSockets = require.main.require('./src/s... |
var settings = require('../core/settings');
var THREE = require('three');
var undef;
var glslify = require('glslify');
var shaderParse = require('../helpers/shaderParse');
var _copyShader;
var _velocityShader;
var _positionShader;
var _velocityRenderTarget;
var _velocityRenderTarget2;
var _positionRenderTarget;
var ... |
import React from 'react';
import { PropTypes } from 'prop-types';
import { Button, Card, Col, Row } from 'react-bootstrap';
import { Bar, BarChart, CartesianGrid, Legend, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';
import { mapToChartFormat, parseOutFields } from '../../../utils/Analytics';
import _... |
import React from "react";
import anon from "../assets/anon.png";
import Files from "react-files";
import { Profile } from "metanear-react-components";
const uploadResizeWidth = 96;
const uploadResizeHeight = 96;
export class ProfileApp extends React.Component {
constructor(props) {
super(props);
const keys... |
import Phaser from 'phaser';
import gameConfig from 'configs/gameConfig';
import eventConfig from 'configs/eventConfig';
import audioConfig from 'configs/audioConfig';
import hasInput from 'components/hasInput';
import canListen from 'components/canListen';
import Visualizer from 'scenes/Visualizer';
import hasAudio fr... |
import { SELECTED_DOCUMENT_NEEDED, QUERY_RELEVANT, QUERY_DEACTIVATED } from '../_symbols';
import logger from '../logger';
import _ from 'lodash';
import Promise from 'bluebird';
import url from 'url';
import sqlite3 from 'sqlite3';
import AbstractQuery from './abstract_query';
import QueryHelper from '../query_helper'... |
import axios from 'axios';
import {toast, Zoom} from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import REST_APIS from 'services/APiCalls/config/apiUrl'
import STORAGE from 'services/APiCalls/config/storage'
toast.configure();
const headersConfig = {
'Content-Type': 'application... |
//Imports
import React, { Component, useState } from 'react';
import './App.css';
import { withAuthenticator } from '@aws-amplify/ui-react';
import Amplify, { API } from 'aws-amplify';
import awsConfig from './aws-exports';
import Auth from "@aws-amplify/auth";
import Select from 'react-select'
import { Modal } from 'a... |
import React from 'react';
import { withTranslation } from 'react-i18next';
import { StyleSheet, View, Text } from 'react-native';
import navigator from 'libs/navigation';
import { getThemeFromState } from 'shared-modules/selectors/global';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
impo... |
function mem_html(id, name) {
var mem = document.createElement('div');
mem.innerHTML ='<a href="#!" id="' + id + '" class="list-group-item list-group-item-action">' + name + '</a>';
return mem;
}
var mem_list;
var new_id = 0;
function update_members(){
document.getElementById('members').inne... |
import React, { Component } from 'react';
import { login, logout } from '../../store/modules/user';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import './SideNav.css';
const menus = [
{
icon: 'os-icon-window-content',
title: 'Dashboards',
link: '/'
},
{
icon: '... |
const http = require('http');
const https = require('https');
const { writeFile } = require('fs');
const { resolve, extname, join } = require('path');
const colors = require('colors/safe');
const globby = require('globby');
const ora = require('ora');
const queue = require('async-promise-queue');
const tmp = require('t... |
// Copyright 2020 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
// Initial delay before the community contribution collections will begin. This gives the full
// gamemode some time to set everything up, befo... |
import React, { Component } from "react";
import Form from "react-bootstrap/Form";
import { Button, Paper } from "@material-ui/core";
// import React, { Component } from "react";
// import Form from 'react-bootstrap/Form'
// import Button from 'react-bootstrap/Button'
// import Bootstrap from "react-bootstrap";
import... |
var Players = [
{name: "<NAME>",
score: 31,
id: 1},
{name: "<NAME>",
score: 28,
id: 2},
{name: "<NAME>",
score: 35,
id: 3},
{name: "<NAME>",
score: 30,
id: 4}
];
var nextId = 5;
/* ====== ADDPLAYERFORM CLASS ===== */
var Stopwatch = React.createClass({
getInitialState: func... |
/**
* Based on rework-vars by reworkcss
* https://github.com/reworkcss/rework-vars
*/
// Dependencies
// =============================================================================
import balanced from 'balanced-match';
import parseCss from './parse-css';
import stringifyCss from './stringify-css';
impor... |
var flowers = [['Anthurium', 17], ['Aureus', 13], ['Baccatus', 21], ['Blazing', 11], ['Bluestar', 4], ['Citrus', 16], ['Daisy', 2], ['Fabled', 9], ['Fourpetal', 12], ['Fragrant', 10], ['Jalapa', 8], ['Lilia', 20], ['Mela', 15], ['Mystic', 5], ['Nox', 3], ['Painted', 1], ['Rosaceae', 6], ['Spotted', 0], ['Tahitian', 19]... |
import React from 'react';
import PropTypes from 'prop-types';
import styled, { css } from 'styled-components';
import humanFormat from 'human-format';
import { Link as GatsbyLinkWrapper } from 'gatsby';
import { styles, animation, Cardinal, AvatarList } from '@storybook/design-system';
import customSVG from '../../../... |
// variables created to move the functionality of the //program
const cards = ["fa-diamond","fa-paper-plane-o","fa-anchor","fa-bolt","fa-cube","fa-bicycle","fa-bomb","fa-leaf"];
let movesCounter = 0;
let cardCounter=1;
let openCard;
let checker =true;
let sec = 0;
let winCounter = 0;
let timerReset;
let starsCounter =3... |
const vecn = require('vecn')
const BezierCurve = require('./curve')
const thomas = require('./thomas')
/**
* A function that calculates the weight to be assigned to the "speed" of curve `i`.
* @callback weightsCallback
* @param {number} i The index of the knot at the end of the curve to be weighted. Integers on [1... |
import { expect } from '@open-wc/testing';
import { localize } from '../../src/localize.js';
import { localizeTearDown } from '../../test-helpers.js';
import { formatNumberToParts } from '../../src/number/formatNumberToParts.js';
const c = v => ({ type: 'currency', value: v });
const d = v => ({ type: 'decimal', valu... |
import _ from 'lodash'
import React from 'react'
import { Container, Divider, Dropdown, Grid, Header, Icon, Image, List, Menu, Segment } from 'semantic-ui-react'
const LeftImage = () => (
<Image
floated='left'
size='medium'
src='/assets/images/wireframe/square-image.png'
style={{ margin: '2em 2em 2em... |
/*
*
* Backpack - Skyscanner's Design System
*
* Copyright 2016-2019 Skyscanner Ltd
*
* 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
... |
var eku_compile_template = require("./eku_compile_template");
var __REGISTER_COMPONENT_CONTAINER__ = {};
var __HTML2JS_TPL__ = "__HTML2JS_TPL__";
function isObject(x) {
return Object.prototype.toString.call(x) === "[object Object]";
}
function isFunction(x) {
return Object.prototype.toString.call(x) === "[... |
const proxyquire = require( 'proxyquire' );
const modulePath = './dashboard-data';
const realUrls = require( '../lib/urls' );
describe( 'Dashboard data', () => {
let dashboardData;
let req;
let res;
let next;
let config;
let urls;
let indexResponse;
let reportIndexResponse;
beforeEach( () => {
( { req, r... |
/*
Original by Ruin0x11
Ported to Windows by Scheliux, Dragoner7
Ported to Javascript by <NAME>
Create animated GIFs with mpv
Requires ffmpeg.
Adapted from http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
Usage: "g" to set start frame, "G" to set end frame, "Ctrl+g" to create.
*/
String.prototype.format = fun... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.FormMultiSelectInput = FormMultiSelectInput;
var _styledComponents = _interopRequireDefault(require("styled-components"));
var _react = _interopRequireDefault(require("react"));
var _downshift = _interopRequireDefault(require("do... |
//// Main js for catagories /////
$.ajax({
url: "../../../layout/header.html",
context: document.body,
success: function (response) {
$("#header").html(response);
}
});
$.ajax({
url: "../../../layout/footer.html",
context: document.body,
success: function (response) {
$("#footer").html(response);
... |
const switchSetup = (selectedSetup) => {
console.log('switchSetup', selectedSetup, window.selectedSetup)
if(selectedSetup === 'camera' || selectedSetup === 'image') {
if(selectedSetup !== window.selectedSetup) {
window.selectedSetup = selectedSetup
switchExample(selectExample.value)
}
} ... |
const RangeIndex = require('./range_index')
const SparseArray = require('./sparsearray')
const Hub = require('../lib/hub')
module.exports = (cube, map) => {
let _range = []
let shownulls = true
const nulls = new Set()
const filterindex = new SparseArray()
const hub = Hub()
const filter = [null, null]
co... |
/**
* Call a node.js generator with backoff and other customization
*
* Licensed under MIT.
* Copyright (c) 2014 <NAME> <https://github.com/codeactual/>
*/
'use strict';
/**
* Reference to Prankcall.
*/
exports.Prankcall = Prankcall;
/**
* Create a new Prankcall.
*
* @return {object}
*/
exports.create = f... |
'use strict';
const Path = require('path'),
Notification = require('atom').Notification,
Constants = require('./../helpers/constants'),
DataBase = require('./../helpers/database');
class ProjectView extends HTMLElement {
// native
createdCallback () {
this.classList.add('list-item');
... |
const BaseCard = require('./basecard');
const _ = require('underscore');
const { Locations, EffectNames } = require('./Constants');
const AbilityDsl = require('./abilitydsl.js');
class ProvinceCard extends BaseCard {
constructor(owner, cardData = { strength: 3, element: [], type: 'province', side: 'province', na... |
const fs = require('fs');
const path = require('path');
const project__dist = path.join(__dirname, 'project-dist'); // path to folder project-dist
const project__assets = path.join(project__dist, 'assets');
fs.mkdir(project__dist, { recursive: true }, err =>{if(err) throw err;}); //create folder
const bundle__html ... |
const fetch = require('node-fetch');
const { HTTP_URL } = require('../constants');
const { sleep } = require('../utils');
const { InvalidToken } = require('../errors/Errors');
const Requester = require('./Requester');
class Route {
constructor(v, method='GET', route='/') {
if (route.startsWith('/')) route ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function appendPropertyInAstObject(recorder, node, propertyName, value, indent) {
const indentStr = _buildIndent(indent);
let index = node.start.offset + 1;
if (node.properties.length > 0) {
// Insert comma.
const l... |
//Variables for the canvas
var canvas;
var canvasContext;
//Variables for ball movement
var ballX = 400;
var ballY = 300;
var ballSpeedX = 5;
var ballSpeedY = 5;
var framesPerSecond = 30;
//Variables for paddle movement
var paddle1Y = 210;
var paddle2Y = 210;
const PADDLE_HEIGHT = 150;
const PADDLE_THICKNESS = 10;
... |
import React, { Component } from 'react';
import { forwardRef } from 'react';
// material ui
import Typography from '@material-ui/core/Typography';
import MaterialTable from 'material-table';
import Dialog from '@material-ui/core/Dialog';
//icons
import AddBox from '@material-ui/icons/AddBox';
import VisibilityIcon... |
var scrollToLastMsg;
var sendMessageViaSocket;
var loadChatMsgs;
var prepareMsgToAppend;
$(function () {
socket.emit("login-to-chat-socket", {
'user_enc_id': $(".this_user_enc_id").val(),
'chat_enc_id': $(".this_chat_enc_id").val()
});
if ($(".load_admin_chat_js_file").length > 0) {
... |
// Recent Comment Script for Blogger with Auto Refresh & Notification by <NAME>
// URL: https://plus.google.com/108949996304093815163/about
var cm_config_defaults = {
home_page: "http://www.dte.web.id",
max_result: 7,
t_w: 32,
t_h: 32,
summary: 9999,
new_tab_link: true,
ct_id: "comments-container",
new_cm: " K... |
var msRest = require("@azure/ms-rest-js");
var Face = require("@azure/cognitiveservices-face");
/* Install the following modules:
* npm install @azure/ms-rest-js
* npm install @azure/cognitiveservices-face
*/
/**
* This sample includes:
* - Detect Faces: using a single-faced image and a group image, gets the... |
// function that count every second and refresh website
function count() {
// obiekt - zestaw zmiennych, lub cech utworzony według KLASY, przygotowany do przechowywania pewnych atrybutów.
// Date() to obiekt w Javascripcie zawierający: dzień, miesiąc, rok, godzina, minuta, sekunda
var today = new Date();
//zmienn... |
// Generated by BUCKLESCRIPT VERSION 4.0.7, PLEASE EDIT WITH CARE
import * as Block from "bs-platform/lib/es6/block.js";
import * as Curry from "bs-platform/lib/es6/curry.js";
import * as React from "react";
import * as Js_exn from "bs-platform/lib/es6/js_exn.js";
import * as Js_dict from "bs-platform/lib/es6/js_dict.... |
import React, { Component, Fragment } from "react";
import { connect } from "react-redux";
import { getAllInvoices } from "../../../actions/invoiceActions";
import Select from "react-select";
import {
BarChart,
Bar,
CartesianGrid,
XAxis,
YAxis,
Tooltip,
Legend
} from "recharts";
class SaleReport extends ... |
/* jshint esversion:6 */
import Map from '../map/map.js';
/**
* Class containing the ViewModel logic.
*/
class ViewModel {
/**
* Create a `ViewModel` instance
* @param {Knockout} ko Main Knockout instance of the application.
* @param {Array} locations Array containing location objects.
*/
constr... |
const fs = window.require('fs');
// global array of input field DOM elements
let height = 0;
let width = 0;
let grid = [];
function LoadData() {
let z1 = [];
let filePicker = document.getElementById("filePicker");
let file = filePicker.files[0];
let fileText = "";
let fileReader = new FileReade... |
import React from 'react';
import Img from 'gatsby-image';
import { useStaticQuery, graphql } from 'gatsby';
import { Box, Container, Flex, Heading, Text, Link, Image } from 'theme-ui';
import icon1 from 'assets/wallet-1.svg';
import icon2 from 'assets/wallet-2.svg';
import icon3 from 'assets/wallet-3.svg';
import butt... |
// Copyright IBM Corp. 2017. All Rights Reserved.
// Node module: ibmapm
// This file is licensed under the Apache License 2.0.
// License text available at https://opensource.org/licenses/Apache-2.0
var url = require('url');
var http = require('http');
var https = require('https');
var HttpsProxyAgent = require('../t... |
import { graphql } from "gatsby";
import Img from "gatsby-image";
import React from "react";
import ButtonLink from "../components/ButtonLink";
import Layout from "../components/layout";
import Row from "../components/Row";
import SEO from "../components/seo";
// Illustrations
import SEOIcon from "../images/illustrati... |
/*
* Copyright (c) 2018 ISP RAS (http://www.ispras.ru)
* Ivannikov Institute for System Programming of the Russian Academy of Sciences
*
* 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
*... |
const fs = require('fs');
const fsPromises = require('fs').promises;
const path = require('path');
const zip = require('archiver');
const structuralFiles = require('./constituents/structural.js');
const markupFiles = require('./constituents/markup.js');
const util = require('./utility.js');
// Construct a new document... |
const opentracing = require('opentracing')
const CallableInstance = require('callable-instance')
const EventEmitter = require('eventemitter3')
const genUuid = require('../utils/genUuid')
const parseEvent = require('../utils/parseEvent')
const getStackLine = require('../utils/getStackLine')
const ms = require('ms')
cla... |
const HTMLParser = require("node-html-parser");
const Promise = require("bluebird");
const AudioRequests = require("./audio");
const SearchRequests = require("./search");
const ArtistsStatic = require("../static/artists");
const RecomsStatic = require("../static/recoms");
const PlaylistsStatic = require("../static/pl... |
import React from 'react';
import PropTypes from 'prop-types';
import debounce from 'ringcentral-integration/lib/debounce';
import Header from '../Header';
import Panel from '../Panel';
import SpinnerOverlay from '../SpinnerOverlay';
import CallList from '../CallList';
import CallListV2 from '../CallListV2';
import st... |
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import { Col, Row, Form, Button } from 'react-bootstrap';
import { useDispatch, useSelector } from 'react-redux';
import { PayPalButton } from 'react-paypal-button-v2';
import { getBookingDetails, payBooking } from '../actions/bookingActions... |
var describe = require('mocha').describe;
var it = require('mocha').it;
var assert = require('assert');
var Maze = require('@sbj42/maze-generator-core').Maze;
var GridMask = require('@sbj42/maze-generator-core').GridMask;
function makeRandom(seed) {
var randomjs = require('random-js');
var engine = randomjs.M... |
import { action, makeObservable, observable, computed, toJS } from "mobx"
import Dexie from 'dexie';
import Board from '../classes/Board'
import Player from '../classes/Player'
import Square from '../classes/Square'
import Move from '../classes/Move'
import { SIDE_NAME } from '../classes/Player'
const IDB_SCHEMA = {
... |
var appHosp = $('#appHosp').val();//varivel constate atribuida no header
/*
$(document).ready(function(){
document.getElementById('frmCadastro').addEventListener('submit', function(){ // CRIA EM EVENTO QUE É DISPARADO QUANDO O ELEMENTO DE ID 'form' FOR 'submetido/enviado'.
var inputs = this.getElementsByTagNa... |
// https://github.com/jhayley/node-mastodon
const Masto = require( "mastodon" );
const slackClient = require( "./slackManager.js" );
slackClient.initialize();
var wMastadonClient = null;
const Eris = require("eris");
var discordBot = null;
var discordCreds = null;
require("shelljs/global");
const wSleep = require( "./g... |
$(document).ready(function() {
websqlOpenDBSUP();
websqlCreatTable(GoodCard);
shopTable(GoodCard);
/* $("#paypal-button-container").click(function(){
if ( check()){
alert(chenggong)
}else {
alert(fail)
}
});*/
});
function shopTable(tabl... |
import _ from 'underscore';
import React from 'react';
import PropTypes from 'prop-types';
import Board from './components/Board';
import CardCounter from './components/CardCounter';
import Modal from './components/Modal';
import 'seedrandom';
// hard-coded cardColors grid
// 9 for 1st team, 8 for 2nd team
// 1 death... |
"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... |
import React, { Component } from "react";
// import PropTypes from "prop-types";
import axios from "axios";
import { graphql } from "react-apollo";
import { updateUser } from "../../graphql/login";
import Banner from "../components/common/banner";
import InlineError from "../components/common/inlineError";
import Prel... |
import React, { useState } from "react";
import { Alert, StyleSheet, Text, View } from "react-native";
import { ListItem, Button, Image } from "react-native-elements";
import TouchableScale from "react-native-touchable-scale";
import { SwipeListView } from "react-native-swipe-list-view";
import { TouchableOpacity } fro... |
const expect = require('chai').expect;
const sinon = require('sinon');
require('chai').use(require('sinon-chai'));
const Blockchain = require('../server/blockchain');
const validator = require('validator');
describe("Blockchain", () => {
let blockchain;
beforeEach(() => {
blockchain = new Blockchain... |
import React,{ useState, useEffect, useReducer, useMemo } from 'react';
import { useHistory, useLocation } from 'react-router-dom';
import { vibrate, morphologicalAPIClient, wordCount, spawnNotification } from '../common/util';/* morphologicalAnalysis */
import MIC from '../assets/img/mic.png';
import STOP from '../a... |
import { BLACK_FRIDAY, CYBER_MONDAY, PLANS_TYPE } from '../../constants';
import { getEventName, isBlackFriday } from '../helpers/blackFridayHelper';
import { getAfterCouponDiscount, hasBlackFridayCoupon, normalizePrice } from '../../../helpers/paymentHelper';
/* @ngInject */
function blackFriday(
dispatchers,
... |
import React, { PureComponent } from 'react';
import { PDFDownloadLink, Page, Text, View, Document, StyleSheet, Image, Font, PDFViewer } from '@react-pdf/renderer';
import { withRouter, Link } from 'react-router-dom';
import { registrationFail } from '../actions';
import { connect } from 'react-redux';
// WIP
// Int... |
function init_map1()
{
// creates events
{
let img = new Image();
img.src = "./resources/Actor.png";
events.push( new Events_manager(400,100, 50, img, 4,4, true, "Joao1010",0, 1)); // <- if u dont use same event on another map u need clear events!
events[0].hook_t... |
/*
Copyright 2020 OmiseGO Pte Ltd
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 {
NEXGDDP_SET_MAP_ZOOM,
NEXGDDP_SET_MAP_CENTER,
NEXGDDP_SET_MARKER_MODE,
NEXGDDP_SET_MARKER_POSITION,
NEXGDDP_SET_MAP_MODE,
NEXGDDP_SET_GRAPH_MODE,
NEXGDDP_SET_SCENARIO_OPTIONS,
NEXGDDP_SET_SCENARIO_SELECTION,
NEXGDDP_SET_TEMP_RESOLUTION_OPTIONS,
NEXGDDP_SET_TEMP_RESOLUTION_SELECTION,
NEXGD... |
var margin = {top: 40, right: 20, bottom: 30, left: 40},
width = 960 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom;
var x0 = d3.scale.ordinal()
.rangeRoundBands([0, width], .3);
var x1 = d3.scale.ordinal();
var y = d3.scale.linear()
.range([height, 0]);
var color = d3.scale... |
import React, {PureComponent} from 'react';
import Bluebird from 'bluebird';
import {deepEqual, shallowEqual} from 'fast-equals';
import memoize from '../src';
console.group('standard');
const foo = 'foo';
const bar = 'bar';
const baz = 'baz';
const quz = 'quz';
const method = function(one, two) {
console.log('st... |
import crypto from 'crypto';
import { getConfig } from '../config';
import { parseMarkdown } from 'lib/react-utilities';
// TODO: Add Jest Testing
export function debounce(func, timeout, addInstantFlag = false) {
/* Be careful of the addInstantFlag, as if you don't call all arguments
of the debounced function it ... |
const fs = require('fs');
const jsonServer = require('json-server');
const jwt = require('jsonwebtoken');
const fetch = require('node-fetch');
const bodyParser = require('body-parser');
const server = jsonServer.create();
const router = jsonServer.router('./database.json');
server.use(bodyParser.urlencoded({ extended:... |
let admin = require("firebase-admin");
let config = require("./_cfg");
let serviceAccount = require(config.FIREBASE_SERVICE);
const creati = require('./creati.js');
/* File Storage */
const {format} = require('util');
const {Storage} = require('@google-cloud/storage');
const Multer = require('multer');
const storage ... |
#!/usr/bin/env node
const Web3 = require("web3");
const fs = require("fs");
const path = require('path');
const RLP = require('rlp');
const BigNumber = require('bignumber.js');
const mainnetUrls = ['https://mainnet.infura.io',
'https://semi-node.kyber.network',
'https://api.m... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Service = undefined;
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... |
'use strict';
var fs= require('fs');
var Iconv= require('iconv').Iconv;
var leadZeros= function(num, length) {
var leadStr;
for (var i= 0; i < length; i++) {
leadStr += '0';
}
return (leadStr + num).slice(-length);
};
/*
* convert Date to human readable String with UTC Time
*/
var dateToI... |
import style from './GraphStyle';
const GraphService = (graphLibrary, window) => {
const graphLib = graphLibrary;
const windowObject = window || null;
let graph = null,
linkAreaCtx = null,
linkMode = false,
actions = {},
domElement = null,
mouseDown,
isDraggi... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
import * as moment from "moment";
import { Regions } from "../Helpers/Assemblies";
export const URL_ADD_AUTH =
"https://us-central1-gnalet-e91c4.cloudfunctions.net/addAuthorityAccount";
export const REF_REPORTERS = "GN-REPORTERS";
export const REF_DUMMY_HOLDER = "AUTHHOLDER";
export const EVENTS_DOC = "GN-EVENTS";
e... |
'use strict';
// product names array
const productNames = ['bag', 'banana', 'bathroom', 'boots', 'breakfast', 'bubblegum', 'chair', 'cthulhu', 'dog-duck', 'dragon', 'pen', 'pet-sweep', 'scissors', 'shark', 'sweep', 'tauntaun', 'unicorn', 'usb', 'water-can', 'wine-glass']
// variables for html IDs
const allImageSectio... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
import React, { useEffect, useState } from "react";
import { Button } from "reactstrap";
import api from "../API/axiosHeader.js";
import { withFormik, Form, Field } from "formik";
import * as Yup from "yup";
import logo from "../images/logo.png";
import SignUp from "../API/newUserForm";
import { connect } from "react-r... |
'use strict';
/** @namespace DevKit */
var DevKit;
(function (DevKit) {
'use strict';
DevKit.msdyn_solutionhistoryApi = function (e) {
var EMPTY_STRING = '';
var f = '@OData.Community.Display.V1.FormattedValue';
function webApiField(entity, logicalName, schemaName, entityLogicalCollectionName, entityLogi... |
// Generated by BUCKLESCRIPT, PLEASE EDIT WITH CARE
'use strict';
var $$Array = require("bs-platform/lib/js/array.js");
var MomentRe = require("bs-moment/lib/js/src/MomentRe.js");
var Belt_Array = require("bs-platform/lib/js/belt_Array.js");
var Caml_array = require("bs-platform/lib/js/caml_array.js");
var Caml_splice... |
// Copyright 2006 <NAME>. All Rights Reserved.
// ==UserScript==
// @name Gmail + Google Reader
// @namespace http://persistent.info/
// @description Embeds Google Reader into Gmail by adding a "Feeds" link
// @include http://mail.google.com/*
// @include https://mail.google.com/*
// @i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.