This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PropTypes from 'prop-types'; | |
import React, { Component } from 'react'; | |
import { StripeProvider } from 'react-stripe-elements'; | |
export default class AsyncStripeProvider extends Component { | |
static propTypes = { | |
apiKey: PropTypes.string.isRequired | |
}; | |
// constructor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
id: 58966a17f9fc0f352b528e6d | |
title: Registration of New Users | |
challengeType: 2 | |
isHidden: false | |
forumTopicId: 301561 | |
--- | |
## Description | |
<section id='description'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
require('dotenv').config() | |
const express = require("express"); | |
const myDB = require('./connection'); | |
const fccTesting = require("./freeCodeCamp/fcctesting.js"); | |
const session = require('express-session'); | |
const passport = require('passport'); | |
const ObjectID = require('mongodb').ObjectID; | |
const LocalStrategy = require('passport-local'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
require('dotenv').config(); | |
const express = require('express'); | |
const session = require('express-session'); | |
const passport = require('passport'); | |
const LocalStrategy = require('passport-local'); | |
const ObjectID = require('mongodb').ObjectID; | |
const myDB = require('./connection'); | |
const fccTesting = require('./freeCodeCamp/fcctesting.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
require('dotenv').config(); | |
const express = require('express'); | |
const session = require('express-session'); | |
const passport = require('passport'); | |
const ObjectID = require('mongodb').ObjectID; | |
const myDB = require('./connection'); | |
const fccTesting = require('./freeCodeCamp/fcctesting.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
require('dotenv').config(); | |
const express = require('express'); | |
const session = require('express-session'); | |
const passport = require('passport'); | |
const ObjectID = require('mongodb').ObjectID; | |
const myDB = require('./connection'); | |
const fccTesting = require('./freeCodeCamp/fcctesting.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
class Card: | |
def __init__(self, suit, rank): | |
self.suit = suit | |
self.rank = rank | |
def __str__(self): | |
return f"{self.rank['rank']} of {self.suit}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MockXMLHttpRequest = require('mock-xmlhttprequest'); | |
const server = MockXMLHttpRequest.newServer({ | |
get: ['/views', function (xhr) { | |
let count = 0; | |
if (typeof (Storage) !== "undefined") { | |
count = Number(localStorage.getItem("count")); | |
} else { | |
console.log('Sorry! No Web Storage support for this browser. This web page will not function properly'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set up tooltip | |
const tooltip = d3.select("#tooltip") | |
.style("display", "none") | |
.classed("tooltip", true); | |
// Draw the map and add tooltip functionality | |
g.selectAll(".countries") | |
.data(countries) | |
.enter().append("path") | |
.attr("class", "countries") |
NewerOlder