Skip to content

Instantly share code, notes, and snippets.

View thisgeek's full-sized avatar

Christopher Joslyn thisgeek

View GitHub Profile
jQuery(function() {
var myApi, verts;
// Query for sub-navigation elements. Make each vertically
// scrollable. Save query object as local variable to allow
// methods to be added to the instance.
verts = $(".vertScrollable").each(function(i, e) {
$(e).scrollable({
vertical: true,
prev: ".healthup",
@thisgeek
thisgeek / index.html
Created September 6, 2012 01:21
navigator.getUserMedia() demo
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5 Webcam Test</title>
</head>
<body>
<h1><code>navigator.getUserMedia()</code></h1>
<video autoplay controls></video>
<p>
<button id="capture">Capture video</button>
/**
* Example of using an angular provider to build an api service.
* @author Jeremy Elbourn (jelbourn@google.com)
*/
/** Namespace for the application. */
var app = {};
/******************************************************************************/
@thisgeek
thisgeek / inject.js
Created May 22, 2017 20:10
A composition of lodash utilities that produces a function which changes the way any function passed to it receives parameters.
import _ from 'lodash';
// return a function where the keys in the passed object will be
// applied as arguments.
/*
var foo = function (a, b, c, d) {
// does stuff
};
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.12941177189350128</real>