Skip to content

Instantly share code, notes, and snippets.

View davydog187's full-sized avatar
🍍
Still Elixirin'

Dave Lucia davydog187

🍍
Still Elixirin'
View GitHub Profile
@davydog187
davydog187 / responsive_background_images.html
Created April 28, 2015 18:54
Responsvie background images
<!DOCTYPE html>
<html>
<head>
<style>
.small div {
width:200px;
height:75px;
}
# -*- mode: sh -*-
# ~/.bash_prompt: executed by bashrc for interactive shells.
DULL=0
BRIGHT=1
_bold=$(tput bold)
_normal=$(tput sgr0)
FG_BLACK=30
@davydog187
davydog187 / gist:dc5b228991c306261d21
Created April 4, 2015 14:06
Process url for cip6791
var exampleInputs = [
"http://example.com/",
"http://example.com/#hash",
"http://example.com/#hash?something=hello",
"http://example.com/#hash?something=hello&else=hi"
];
function getHashValueFrom(url, hashIndex, queryStringIndex) {
if (hashIndex === -1) {
return "";
var five = require("johnny-five");
var board = new five.Board();
function outputBinary(number, leds) {
var states = [
number & 1,
number & 2,
number & 4
];