Skip to content

Instantly share code, notes, and snippets.

View buob's full-sized avatar

Jake Buob buob

  • Cisco Meraki
  • New Orleans, LA
View GitHub Profile
@buob
buob / embed.jsx
Created May 4, 2018 18:53 — forked from steveliles/embed.jsx
embedly with react.js
import React, {Component} from 'react'
import { connect } from 'react-redux'
// one-time init of the embedly platform.js, hidden behind
// typeof check not to blow up on server-side render
if (typeof window !== 'undefined') {
let init_embedly = function(w,d){
var id='embedly-platform', n = 'script';
if (!d.getElementById(id)){
w.embedly = w.embedly || function() {(w.embedly.q = w.embedly.q || []).push(arguments);};