Skip to content

Instantly share code, notes, and snippets.

View heff's full-sized avatar
💭
✏️ 📺

Steve Heffernan heff

💭
✏️ 📺
View GitHub Profile
@heff
heff / gatsby-browser.js
Created February 21, 2018 00:58
Adding/Integrating Heap Analytics in GatsbyJS
/**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/
// You can delete this file if you're not using it
// This is how we've implemented it on Mux.com. Open to other suggestions.
exports.onClientEntry = () => {
@heff
heff / gist:30595844865b8e9ff1cd
Created April 24, 2015 22:03
Vimeo resize testing
<iframe style="width:50%; height:50%;" src="https://player.vimeo.com/video/123454903?badge=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> <p><a href="https://vimeo.com/123454903">Fedde Le Grand and Jewelz &amp; Sparks - ROBOTIC (extended version)</a> from <a href="https://vimeo.com/jobjorismarieke">Job, Joris &amp; Marieke</a> on <a href="https://vimeo.com">Vimeo</a>.</p>
@heff
heff / gist:b092c519fac01129a209
Last active August 29, 2015 14:19
video-js.less.css
/*!
Video.js Default Styles (http://videojs.com)
@version 4.12.5
Create your own skin at http://designer.videojs.com
*/
/* SKIN
================================================================================
The main class name for all skin-specific styles. To make your own skin,
replace all occurrences of 'vjs-default-skin' with a new name. Then add your new
skin name to your video tag instead of the default skin.
@heff
heff / keybase.md
Created April 3, 2014 23:24
keybase.md

Keybase proof

I hereby claim:

  • I am heff on github.
  • I am heff (https://keybase.io/heff) on keybase.
  • I have a public key whose fingerprint is E5FE FD2C 42C7 C6AC 62D1 210E 3B94 848B C9D9 010C

To claim this, I am signing this object:

@heff
heff / video.dev.js
Last active August 29, 2015 13:56
Video.js for IE9 with no Media Player
/**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
@heff
heff / iframe-mode.js
Created November 17, 2012 03:07
Version 3.1 update
_V_.options.iFrameMode == true;
@heff
heff / html5-track-tag.html
Created November 17, 2012 00:53
Version 3.2 Update
<video>
...
<track kind="subtitles" src="en-subtitles.vtt" srclang="en" label="English">
</video>
@heff
heff / cdn-hosted-player-files.html
Created November 11, 2012 01:19
Setting up Video.js using the CDN-hosted video player files and the HTML5 video tag.
<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/c/video.js"></script>