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
; multi-segment executable file template. | |
data segment | |
a DB 1 | |
b DB 1 | |
c DW 1 | |
x DW 1, 2, 3 | |
count = ($-x)/2 | |
y DW count dup(0AAh) | |
err_msg DB 'Err', 0Dh, 0Ah, '$' |
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
function adbc () { | |
IP=`adb shell ifconfig wlan0 | grep 'inet addr:' | cut -d: -f2 | awk '{print $1}'` | |
adb tcpip 5555 | |
adb connect $IP | |
adb devices | |
} | |
function adbscr () { | |
echo "Shoot" | |
adb shell screencap -p /sdcard/screen.png |
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
sudo apt-get -y update | |
sudo apt-get -y install git-core vim htop zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
sudo apt-get -y install git mercurial make binutils bison gcc build-essential -y | |
curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | zsh | |
source /home/pi/.gvm/scripts/gvm | |
gvm install go1.4 | |
echo Use Go 1.4 | |
gvm use go1.4 |
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
#include <LiquidCrystal.h> | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
/** | |
* Trigger Button | |
*/ | |
const int buttonPin = 7; | |
/** | |
* Mode Button |