Skip to content

Instantly share code, notes, and snippets.


Lukas Falke lfalke

  • Munich, Germany
View GitHub Profile
lfalke / detect-chromecast.js
Last active Mar 25, 2020
Detect Chromecast Model / Generation in Javascript
View detect-chromecast.js
* We use this workaround to detect the Chromecast device generation.
* Unfortunately the Cast Application Framework (CAF) does not have an API for that.
* cc-1: Chromecast 1st Gen.
* cc-2: Chromecast 2nd Gen.
* cc-3: Chromecast 3rd Gen.
* cc-ultra: Chromecast Ultra
* cc-builtin: Android TV with Chromecast built-in
lfalke / StripeCardsSection.js
Last active Apr 10, 2021
Usage of react-stripe-elements with Material UI (v1.0) styling
View StripeCardsSection.js
import React, { PureComponent } from 'react'
import Grid from 'material-ui/Grid'
import { CardNumberElement, CardExpiryElement, CardCVCElement } from 'react-stripe-elements'
import StripeElementWrapper from './StripeElementWrapper'
export default class extends PureComponent {
static displayName = 'StripeCardsSection'