This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ----------------- | |
* Rover, the pet shoe! | |
* ----------------- | |
* | |
* Sleep code based on | |
* Sleep Demo Serial from http://www.arduino.cc/playground/Learning/ArduinoSleepCode | |
* Sleeping Arduino http://donalmorrissey.blogspot.com/2010/04/putting-arduino-diecimila-to-sleep.html | |
* | |
* Accelerometer code based on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Solution for the Thumbtack programming challenge #1 | |
http://www.thumbtack.com/challenges | |
--> | |
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
position: relative; | |
margin: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
/* | |
* A small script to disable elastic scrolling in Mobile Safari | |
* | |
* Bugs | |
* - If user is at top/bottom of page and tries to scroll up/down, it | |
* correctly disables further scrolling, but at the expense of not | |
* being able to scroll in the allowed direction either. Taking | |
* their finger off and then starting the scroll in the allowed | |
* direction works. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Earning Thumbtack swag in JS | |
* http://www.thumbtack.com/engineering/how-we-got-people-to-earn-our-schwag/ | |
*/ | |
// The board | |
// hard-coded here, but could be easily loaded in via AJAX | |
var thumbtackBoard = [ | |
[".", ".", ".", ".", ".", ".", "."], | |
[".", ".", ".", ".", ".", ".", "."], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Simple javascript mobile OS / iphone/ android detector | |
* | |
* License: GPLv3+ | |
* Author: justin.kelly.org.au | |
* | |
*/ | |
$(document).ready(function() { | |
var deviceIphone = "iphone"; |