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
source ~/.git-completion.bash | |
source ~/.git-prompt.sh | |
#PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ ' | |
PS1='[\u@\h \W$(__git_ps1 " (\[\e[0;33m\]%s\[\e[0m\])")]\$ ' |
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
void setup () { | |
Serial.begin(9600); | |
} | |
void loop () { | |
Serial.println(freeRam()); | |
delay(1000); | |
} | |
int freeRam () { |
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
--- libraries/SoftwareSerial/SoftwareSerial.h.orig 2014-09-04 08:52:10.000000000 -0700 | |
+++ libraries/SoftwareSerial/SoftwareSerial.h 2014-09-04 08:52:59.000000000 -0700 | |
@@ -39,7 +39,7 @@ | |
* Definitions | |
******************************************************************************/ | |
-#define _SS_MAX_RX_BUFF 64 // RX buffer size |
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
--- hardware/arduino/cores/arduino/HardwareSerial.cpp.orig 2014-09-04 08:58:24.000000000 -0700 | |
+++ hardware/arduino/cores/arduino/HardwareSerial.cpp 2014-09-04 08:59:10.000000000 -0700 | |
@@ -56,7 +56,7 @@ | |
#if (RAMEND < 1000) | |
#define SERIAL_BUFFER_SIZE 16 | |
#else | |
- #define SERIAL_BUFFER_SIZE 64 | |
+ #define SERIAL_BUFFER_SIZE 256 | |
#endif | |
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
/** | |
* Implement JSONP | |
* @param {string} url The URL to call. | |
* @param {function} callback A callback function, called with a single data parameter. | |
*/ | |
function jsonp(url, callback) { | |
var callbackName = 'callback_' + Math.round(100000 * Math.random()); | |
window[callbackName] = function(data) { |
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/sh | |
RUN_DIR=`pwd`; | |
find . -type d -name .git -print0 \ | |
| xargs -0 -I{} dirname {} \ | |
| sort \ | |
| while read line; do echo "\033[1m$line\033[0m" && cd "$line" && git pull; cd "$RUN_DIR"; done |