- 
install Xcode
 - 
install Xcode command line tools
 
http://cmd.hhmr.biz/2013/09/mavericksxcode-command-line-tools.html
- setup the xcode path
 
$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
install Xcode
install Xcode command line tools
http://cmd.hhmr.biz/2013/09/mavericksxcode-command-line-tools.html
$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
| <?xml version="1.0" encoding="utf-8"?> | |
| <colorTheme id="11666" name="XCode - Dusk - Actual" modified="2012-10-31 16:08:07" author="mechatronic"> | |
| <searchResultIndication color="#616161" /> | |
| <filteredSearchResultIndication color="#616161" /> | |
| <occurrenceIndication color="#616161" /> | |
| <writeOccurrenceIndication color="#616161" /> | |
| <findScope color="#E0E2E4" /> | |
| <deletionIndication color="#E0E2E4" italic="true" /> | |
| <sourceHoverBackground color="#000000" /> | |
| <singleLineComment color="#41B644" /> | 
| function byteArrayToString(arr) { | |
| var s = ""; | |
| arr.forEach(function(i) { | |
| s += String.fromCharCode(i); | |
| }); | |
| return s; | |
| } | 
| git tag -d <tag_name> | |
| git push origin :refs/tags/<tag_name> | 
| # http://source.android.com/source/downloading.html | |
| curl https://storage.googleapis.com/git-repo-downloads/repo > ~/repo | |
| chmod a+x ~/repo | |
| sudo mv ~/repo /usr/bin/ | 
| git config --global color.ui true | |
| git config --global core.editor vim | |
| git config --global core.quotepath false | |
| # git alias | |
| git config --global alias.br branch | |
| git config --global alias.co checkout | |
| git config --global alias.cp cherry-pick | |
| git config --global alias.st stash | |
| git config --global alias.sub submodule | 
| #!/bin/sh | |
| hg_remote=$1 | |
| project_path=$2 | |
| function usage() { | |
| echo " Usage: ./hggit-clone.sh <mercurial repository remote url> <project path>" | |
| echo "Example: ./hggit-clone.sh https://bitbucket.org/oojah/mosquitto mosquitto" | |
| } | |
| # check hg_remote | 
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| #define test_bool(var) _test_bool(var, #var) | |
| void _test_bool(bool var, const char * var_name) { | |
| printf("%s => %d\n", var_name, var); | |
| printf("true ? %s\n", true == var ? "YES" : "NO"); | |
| printf("false ? %s\n\n", false == var ? "YES" : "NO"); | |
| } | 
| # enables color in the terminal bash shell | |
| export CLICOLOR=1 | |
| # sets up the color scheme for list | |
| export LSCOLORS=ExFxCxDxBxegedabagacad | |
| # enables color for iTerm | |
| export TERM=xterm-color | |
| export TERM="xterm-color" | 
| <!-- | |
| Try to change radio's view | |
| Using <input> CSS style 'appearance' | |
| But How to display the words in input label? | |
| Reference: | |
| http://css-tricks.com/almanac/properties/a/appearance/ | |
| --> | |
| <!doctype html> | |
| <html> |