Skip to content

Instantly share code, notes, and snippets.

View TexRx's full-sized avatar
🏠
Working from home

Bobbie Tables TexRx

🏠
Working from home
  • Austin, TX
View GitHub Profile
@TexRx
TexRx / lcd.js
Last active August 29, 2015 14:16 — forked from haugstrup/lcd.js
// Wire up LCD as described here:
// http://learn.adafruit.com/character-lcds/overview
var five = require("johnny-five"),
board, lcd;
board = new five.Board();
board.on("ready", function() {
#!/bin/bash
#
input="JcQfgA.gif"
output="/tmp/anim.gif"
pingpong=1 # comment this if you dont want a pingpong loop
frame_start=1 # which frame to pick as starting frame from inputfile?
frame_stop=20 # and which frame to stop?
frame_bg=1 # which frame should function as background 'still' ?
overlay_x=140 # which part should be animated?
var objectToQueryString = function(obj) {
var qs = _.reduce(obj, function(result, value, key) {
return (!_.isNull(value) && !_.isUndefined(value)) ? (result += key + '=' + value + '&') : result;
}, '').slice(0, -1);
return qs;
};
┌ ─── ─── ─── ─── ─── ─── ─── ─── ┐
│ │
├ ─── ─── ─── ─── ─── ─── ─── ─── ┤
│ │
└ ─── ─── ─── ─── ─── ─── ─── ─── ┘
# So close, yet so far away
##The setup
Except for my obstinate 8-year old, people read from top to bottom; some left to right, others right to left. No one reads bottom to top. Well, maybe [Billy Crystal][1].
[1]: http://www.goodreads.com/work/quotes/844335-when-harry-met-sally "When Harry Met Sally quotes"
Web pages load with the topmost part of the page in view (linked anchor sections not withstanding). To view any [below-the-fold][2] content, you have to scroll down* . As you scroll down, the page content moves up into view.
[2]: http://en.wiktionary.org/wiki/below_the_fold "Below the fold on Wikipedia"
@TexRx
TexRx / SassMeister-input.scss
Created January 30, 2015 23:01
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
$dark-purple: #4b2d83;
$medium-dark-purple: rgba(#9b7bb5,0.5);
$medium-light-purple: rgba(#b096c5,0.4);
$light-purple: rgba(#ebe3ef,0.15);
$dark-gold: #86754e;
@TexRx
TexRx / fajitas.md
Last active August 29, 2015 14:14 — forked from remy/fajitas.md

Fajitas

Serves 2

Ingredients

  • 1 large oninon
  • 350-400g of chicken breast chopped into cubes/chunks
  • Fajita seasoning
  • 1/2 tin of refried beans
@TexRx
TexRx / SassMeister-input.scss
Created January 30, 2015 22:42
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
/// Trim `$string`
/// @param {String} $string - String to trim
/// @return {String}
@function trim($string) {
@return str-slice(
@TexRx
TexRx / SassMeister-input.scss
Created January 30, 2015 22:41
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
/// Trim `$string`
/// @param {String} $string - String to trim
/// @return {String}
@function trim($string) {
@return str-slice(
var TM = {};
TM.staggerTo = function(targets, duration, vars, stagger, onCompleteAll, onCompleteAllParams, onCompleteAllScope) {
stagger = stagger || 0;
var delay = vars.delay || 0,
a = [],
finalComplete = function() {
if (vars.onComplete) {
vars.onComplete.apply(vars.onCompleteScope || this, arguments);
}