Skip to content

Instantly share code, notes, and snippets.

David Sabine DavidSabine

View GitHub Profile
@DavidSabine
DavidSabine / gist:74617f2d715155ca50615b40c575666c
Last active Jan 30, 2019
Gatsby+React+Stripe.Elements.CardElement Example
View gist:74617f2d715155ca50615b40c575666c
import React from 'react'
import { CardElement, injectStripe } from 'react-stripe-elements'
class CustomCheckoutForm extends React.Component {
constructor(props) {
super(props)
}
componentDidMount() {
if((typeof window !== `undefined`) && (typeof window.Stripe !== `undefined`)) {
this.stripe = window.Stripe(`my_key`, {
@DavidSabine
DavidSabine / .block
Last active Jun 12, 2016
Etymology of Management
View .block
license: gpl-3.0
View Simple-Sound-With-Web-Audio-API.markdown
View Web-Audio-API-Theremin.markdown

Web Audio API Theremin

In honour of Léon Theremin's great invention, this JavaScript controls the frequency and volume of the instrument via mouse movements.

A Pen by David Sabine on CodePen.

License.

You can’t perform that action at this time.