Retracked wraps your event recording system in an API optimized for React components.
Somewhere early in execution:
# set the recording function
retracked.setup(myTrackingSystem.push);
<link rel="import" href="../chart-js/chart-js.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/iconsets/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<link rel="import" href="../paper-checkbox/paper-checkbox.html"> | |
<polymer-element name="my-element"> | |
<template> |
effuse-hcii-cs-cmu-edu:~ taleahma$ brew install gource | |
==> Downloading http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz | |
######################################################################## 100.0% | |
==> ./configure --with-pc-path=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig --disable-debug -- | |
==> make install | |
/usr/local/Cellar/pkg-config/0.23: 7 files, 220K, built in 38 seconds | |
==> Downloading http://www.libsdl.org/release/SDL-1.2.14.tar.gz | |
######################################################################## 100.0% | |
==> ./configure --prefix=/usr/local/Cellar/sdl/1.2.14 --disable-debug --disable-dependency-tracking --disable-nasm | |
==> make install |
/* Requires: | |
* Modernizr <http://www.modernizr.com/> | |
* JQuery Numeric <http://www.texotela.co.uk/code/jquery/numeric/> | |
*/ | |
// require numeric input even when HTML5 not available | |
if (!Modernizr.inputtypes.number) { | |
// no native support for <input type="number"> | |
$("input[type=number]").numeric(false, function() { alert("Integers only"); this.value = ""; this.focus(); }); | |
} |
RewriteEngine on | |
# match any directory | |
RewriteCond %{REQUEST_FILENAME} -d | |
# redirect somewhere instead of serving it | |
RewriteRule ^(.*)$ http://www.cs.cmu.edu/~taleahma/ [R,NC,L] |
I hereby claim:
To claim this, I am signing this object:
# usage _.levenshteinDistance("PART", "PARTY") or _("PART").levenshteinDistance("PARTY") | |
_.mixin | |
levenshtein : (str1, str2) -> | |
return str2.length if str1.length == 0 | |
distance = [] | |
for i in [0..str1.length] | |
distance[i] = [] | |
distance[i][0] = i |
# spec/support/poltergeist_screenshot_helper.rb | |
module PoltergeistScreenshotHelper | |
# FROM http://blog.jerodsanto.net/2012/12/capybara-and-poltergeist-snap/ | |
def snap!(options={}) | |
path = options.fetch :path, "~/.Trash" | |
file = options.fetch :file, "#{Time.now.to_i}.png" | |
full = options.fetch :full, true | |
path = File.expand_path path |
#!/usr/bin/env bash | |
# This script works after you've paired the Bluetooth devices with | |
# both the local and remote computer. Turning one off and the other on | |
# forces the devices to reconnect with the only computer that has BT on. | |
# Look up local SSH hosts with Bonjour using `dns-sd -B _ssh` | |
# You may want to set up an SSH keypair to log in without typing a password | |
REMOTE=Stone.local |