Skip to content

Instantly share code, notes, and snippets.

@thomasaw
thomasaw / xcodebuild or xctool specifying destination
Last active March 20, 2016 14:01
xcodebuild or xctool specifying destination
xctool test -workspace MyProject.xcworkspace/ -scheme MyScheme -configuration UnitTest -sdk iphonesimulator -destination "platform=iOS Simulator,OS=8.1,name=iPhone 4s" -destination-timeout 1
@thomasaw
thomasaw / compass.ino
Last active August 29, 2015 14:16
SparkFun MAG3110 Breakout Example Code - updated for Arduino wire changes. Also see here: https://github.com/thomasaw/MAG3110_Breakout_Board
/*
MAG3110 Breakout Example Code
by: Aaron Weiss, aaron at sparkfun dot com
SparkFun Electronics 2011
date: 9/6/11
license: beerware, if you use this code and happen to meet me, you
can by me a beer
The code reads the raw 16-bit x, y, and z values and prints them
@thomasaw
thomasaw / .bash_colors
Created January 5, 2015 00:39
Color values for bash
# from https://wiki.archlinux.org/index.php/Color_Bash_Prompt
# Reset
Color_Off='\e[0m' # Text Reset
# Regular Colors
Black='\e[0;30m' # Black
Red='\e[0;31m' # Red
Green='\e[0;32m' # Green
Yellow='\e[0;33m' # Yellow
@thomasaw
thomasaw / .bash_profile
Created January 5, 2015 00:37
ls color support
export CLICOLOR=1
@thomasaw
thomasaw / .bash_profile
Created December 27, 2014 11:35
bash entry for grep color support
YELLOW='1;33'
export GREP_OPTIONS='--color=auto'
export GREP_COLOR=$YELLOW