This file contains hidden or 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
| tell application "iPhone Simulator" | |
| activate | |
| end tell | |
| tell application "System Events" | |
| tell process "iPhone Simulator" | |
| tell menu bar 1 | |
| tell menu bar item "iOS Simulator" | |
| tell menu "iOS Simulator" | |
| click menu item "Reset Content and Settings…" |
This file contains hidden or 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
| # Taken from http://tldp.org/LDP/abs/html/tabexpansion.html | |
| # file: td_completion | |
| # td-completion.sh parameter-completion | |
| _td_completion_func () | |
| { | |
| local cur # pointer to current word | |
| COMPREPLY=() | |
| cur=${COMP_WORDS[COMP_CWORD]} | |
| case "$cur" in |
This file contains hidden or 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
| /* http://canisbos.com/customreader */ | |
| .page { | |
| width: 70%; | |
| border: none; | |
| padding: 40px 0px; | |
| background-color: #efefef; /* same as article */ | |
| color: #000000; | |
| font-family: Georgia !important; | |
| text-rendering: optimizelegibility; | |
| } |
This file contains hidden or 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
| Binary Int Name | |
| -- --------- --------- --------- --------- --------- -------- ---------------- | |
| 0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0 kCGImageAlphaNone | |
| 0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 1 kCGImageAlphaPremultipliedLast | |
| 0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0010 2 kCGImageAlphaPremultipliedFirst | |
| 0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0011 3 kCGImageAlphaLast | |
| 0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0100 4 kCGImageAlphaFirst | |
| 0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0101 5 kCGImageAlphaNoneSkipLast | |
| 0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0110 6 kCGImageAlphaNoneSkipLast | |
| 0x 0000 0000 0000 0000 0000 0000 0000 0000 0000 0111 7 --- |
This file contains hidden or 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/bash | |
| function unix_to_days_offset () | |
| { | |
| echo "($1-1356966000)/(24*3600)" | bc; | |
| } | |
| function unix_to_human () | |
| { | |
| res=`date -d @$1 "+%Y-%m-%d %H:%M:%S %Z"`; |
This file contains hidden or 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
| I created the gist without loging in. Bleh! | |
| https://gist.github.com/anonymous/7150165 |
This file contains hidden or 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
| <EditorStyle name="Twilight" _description="Twilight, the TextMate theme"> | |
| <!-- Color palette --> | |
| <Color name="tl.general.selection" value="#545454" /> <!-- light gray --> | |
| <Color name="tl.general.background" value="#252525" /> <!-- *light* black --> | |
| <Color name="tl.general.background.dark" value="#191919" /> <!-- not so light black --> | |
| <Color name="tl.plainText" value="#CDCDCD" /> <!-- light gray --> | |
| <Color name="tl.comments" value="#3FA41C" /> <!-- green --> | |
| <Color name="tl.strings" value="#A0AB7F" /> <!-- lime --> | |
| <Color name="tl.sharactersAndNumbers" value="#786DC4" /> <!-- purple --> | |
| <Color name="tl.keywords" value="#C31265" /> <!-- pink--> |
This file contains hidden or 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
| ;; Add ~/.elisp directory to my load path. | |
| ;; Not needed since .emacs.d is read by default | |
| (add-to-list 'load-path' "~/.emacs.d") | |
| ;; Show trailing white spaces | |
| (setq-default show-trailing-whitespace t) | |
| (set-face-background 'trailing-whitespace "#191970") | |
| ;; Adds Other Package manager repositories | |
| (require 'package) |
This file contains hidden or 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
| // LEAKING | |
| @implementation CandidatesWindow | |
| CandidatesWindow *sharedInstance = nil; | |
| - (id)initWithFrame:(CGRect)frame | |
| { | |
| if (sharedInstance) { | |
| sharedInstance.frame = frame; | |
| } else { | |
| sharedInstance = [super initWithFrame:frame]; | |
| } |
This file contains hidden or 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/bash | |
| set -e; | |
| [ -z "$1" ] && { echo "ERROR: No AndroidManifest.xml provided"; exit 1; } | |
| command -v xmlstarlet >/dev/null 2>&1 || { echo >&2 "ERROR: xmlstarlet command not available"; exit 1; } | |
| MANIFEST_FILE=$1 | |
| function addUsesPermission () |