Skip to content

Instantly share code, notes, and snippets.

View robertcedwards's full-sized avatar
🖼️
Framing

Robert C Edwards robertcedwards

🖼️
Framing
View GitHub Profile
@robertcedwards
robertcedwards / gist:3342950
Created August 13, 2012 18:24
iPhone mailto intent url
@robertcedwards
robertcedwards / gist:3342959
Created August 13, 2012 18:24
iPhone mailto intent url w/subject and body
mailto:[email protected]?subject=I%20am%20at%20your%20desk&body=That%20is%20some%20body
@robertcedwards
robertcedwards / fitbit tem
Created August 13, 2012 20:27
fitbit, open.sen.se when I sync
"%DATE %TIME %VALUE%UNIT"
in @Rob_Team1_Desk's timeline
/*
* ////////////////////////////////////////////////////
* /////Built from many people and their hard work/////
* ////////////////////////////////////////////////////
* Godzilla Room PIR Sensor attached to a Power Switch tail,
* detects movement with the room, turns on the lights,
* tweets to https://twitter.com/T1GodzillaRoom
* Uses Arduino UNO, Ethernet Shield, and Power Switch Tail.
* ////////////////////////////////////////////////////
* //making sense of the Parallax PIR sensor's output//
@robertcedwards
robertcedwards / T1_Godzilla_with_Calibration.ino
Created August 30, 2012 22:07
The file that is currently on an Arduino Uno with a serial number of 310
/*
* ////////////////////////////////////////////////////
* /////Built from many people and their hard work/////
* ////////////////////////////////////////////////////
* Godzilla Room PIR Sensor attached to a Power Switch tail,
* detects movement with the room, turns on the lights,
* tweets to https://twitter.com/T1GodzillaRoom
* Uses Arduino UNO, Ethernet Shield, and Power Switch Tail.
* ////////////////////////////////////////////////////
* //making sense of the Parallax PIR sensor's output//
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),
@robertcedwards
robertcedwards / gist:3902946
Created October 17, 2012 00:17
Coconut Carmel
$(function () {
var chart;
$(document).ready(function() {
var colors = Highcharts.getOptions().colors,
categories = ['Sugar', 'Coconut Milk', 'Vanilla', 'Coconut'],
@robertcedwards
robertcedwards / gist:4103888
Created November 18, 2012 06:34
Alpha LED sign Foursquare Check-ins
<?php
$checkin = stripslashes($_POST["checkin"]);
$val = json_decode($checkin);
$firstname = $val->user->firstName;
$lastname = $val->user->lastName;
$display = $firstname . " " . $lastname . " just checked in! Welcome, " . $firstname . "!";
$display = urlencode($display);
@robertcedwards
robertcedwards / gist:4103891
Created November 18, 2012 06:36
Arduino commands for Alpha Sign Communication Protocol
// Commands for Alpha Sign Communication Protocol
byte NUL = 0x00;
byte START_HEADER = 0x01;
byte START_TEXT = 0x02;
byte END_TRANSMISSION = 0x04;
byte ESC = 0x1B;
byte FILL = 0x30;
byte ROTATE = 0x61;
byte SLOW = 0x15;
byte FAST = 0x19;
@robertcedwards
robertcedwards / scss
Created January 10, 2013 06:38
SASS color function - Adjust hue for perfect pastel colors
adjust_hue(saturate(darken(#eeeeee, 4), 45), 360)