Skip to content

Instantly share code, notes, and snippets.

Thomas thomasaw

Block or report user

Report or block thomasaw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thomasaw
thomasaw / xcodebuild or xctool specifying destination
Last active Mar 20, 2016
xcodebuild or xctool specifying destination
View 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 Aug 29, 2015
SparkFun MAG3110 Breakout Example Code - updated for Arduino wire changes. Also see here: https://github.com/thomasaw/MAG3110_Breakout_Board
View compass.ino
/*
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 Jan 5, 2015
Color values for bash
View .bash_colors
# 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
View .bash_profile
export CLICOLOR=1
@thomasaw
thomasaw / .bash_profile
Created Dec 27, 2014
bash entry for grep color support
View .bash_profile
YELLOW='1;33'
export GREP_OPTIONS='--color=auto'
export GREP_COLOR=$YELLOW
You can’t perform that action at this time.