This file contains 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
// Happiness Machine Arduino / Nanode Code | |
// See www.brendandawes.com | |
#include <EtherCard.h> | |
#include <NewSoftSerial.h> | |
NewSoftSerial Thermal(2, 3); //Soft RX from printer on D2, soft TX out to printer on D3 | |
#define FALSE 0 | |
#define TRUE 1 |
This file contains 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
<?php | |
function download($url){ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL,$url); | |
curl_setopt($ch, CURLOPT_FAILONERROR,1); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); | |
curl_setopt($ch, CURLOPT_TIMEOUT, 15); | |
$retValue = curl_exec($ch); |
This file contains 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
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
This file contains 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
#!/bin/bash -ex | |
#use bash, be verbose | |
HOSTNAME=despotify | |
SVN_TARGET="/tmp/spotify" | |
#Check for Root | |
function check_for_root () | |
{ | |
LUID=$(id -u) |
This file contains 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
/******************************************************************************* | |
* Reads a pulse (either HIGH or LOW) on a pin. If the pulseValue is HIGH, | |
* the object will start timing when the pin goes HIGH, then waits for the pin | |
* to go LOW, and executes the callback (callback expects a function with one | |
* parameter, the length of the pulse in microseconds). | |
* | |
* The accuracy of this function has not been tested, and will have some | |
* variance because of how callbacks work. | |
******************************************************************************/ | |
class Pulse { |