Skip to content

Instantly share code, notes, and snippets.

View humphd's full-sized avatar
💭
Helping others get started

David Humphrey humphd

💭
Helping others get started
View GitHub Profile
This is test
this is another test.
<!doctype html>
<html>
<head>
<script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script>
<script>
// ensure the web page (DOM) has loaded
document.addEventListener("DOMContentLoaded", function () {
// Create a popcorn instance by calling Popcorn("#id-of-my-video")
var pop = Popcorn("#ourvideo");
@humphd
humphd / popcorn-youtube.html
Created June 20, 2011 17:27 — forked from brettgaylor/gist:1032479
Popcorn YouTube Example
<!doctype html>
<html>
<head>
<script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script>
<script src="http://popcornjs.org/code/dist/popcorn-super-hack-for-documentation.js"></script>
<script>
// ensure the web page (DOM) has loaded
document.addEventListener("DOMContentLoaded", function () {
// Create a popcorn instance by calling the Youtube player plugin
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script>
<script>
// ensure the web page (DOM) has loaded
document.addEventListener("DOMContentLoaded", function () {
// Create a popcorn instance by calling the Youtube player plugin
<!doctype html>
<html>
<head>
<script src="http://popcornjs.org/code/dist/popcorn-complete.min.js"></script>
<script>
// ensure the web page (DOM) has loaded
document.addEventListener("DOMContentLoaded", function () {
// Create a popcorn instance by calling Popcorn("#id-of-my-video")
var pop = Popcorn("#ourvideo");
@humphd
humphd / twitter-scramble.js
Created April 22, 2012 20:59
Twitter Scramble
/**
* Swap Twitter pictures, remove names from tweets in your twitter
* stream. The effect is often hilarious. Can you figure out who
* said what?
*
* Assumes you're running this bookmarklet from twitter.com.
*
* Quick hack, please improve as you see fit. @humphd
**/
@humphd
humphd / Huh
Created May 16, 2012 22:02 — forked from mjschranz/Huh?
Something
css: function( url, exclude, callback, checkFn ){
var scriptElement;
checkFn = checkFn || function(){
return !!scriptElement;
};
url = fixUrl( url );
var interval;
function f() {
@humphd
humphd / gist:3006865
Created June 27, 2012 21:09 — forked from mjschranz/gist:3004993
Page Tests
/*global text,expect,ok,module,notEqual,Butter,test,window*/
(function (window, document, Butter, undefined) {
require( [ "../src/core/page", "../src/core/config", "../src/dependencies" ],
function( Page, Config, Dependencies ) {
var _config = Config.parse( '{ "test": "derp" }' ),
_loader = Dependencies( _config ),
_page = new Page( _loader, _config );
var $document = document
@humphd
humphd / gist:3229279
Created August 1, 2012 17:56
Embed Structure
tools/embed.js
({
baseUrl: '../src',
paths: {
'text': '../external/require/text'
},
has: {
@humphd
humphd / TFExample
Created November 22, 2012 19:52 — forked from RickEyre/TFExample
Test Fixture Example
public CueVerticalTest : public testing::Test
{
protected:
virtual void SetUp()
{
}
virtual void SetFile(char * fileName)
{