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
#!/usr/bin/env python | |
import os, os.path | |
import glob | |
import shutil | |
def build(target, output_dir): | |
"builds tracker for device or simulator" | |
t = target.lower() |
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
#!/usr/bin/env python | |
''' | |
must intall PyObjC, pyobjc-framework-DictionaryServices | |
source from http://sakito.jp/mac/dictionary.html | |
''' | |
import sys | |
from DictionaryServices import * |
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
;; You need this to be able to list all labels in gmail | |
(setq gnus-ignored-newsgroups "") | |
;; And this to configure gmail imap | |
(add-to-list 'gnus-secondary-select-methods '(nnimap "gmail" | |
(nnimap-address "imap.gmail.com") | |
(nnimap-server-port 993) | |
(nnimap-stream ssl))) | |
(provide 'init-gnus) |
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
#!/usr/bin/env zsh | |
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
if [[ -z "$INSIDE_EMACS" ]]; then | |
# normal term | |
ZSH_THEME="gentoo" | |
else | |
# inside Emacs | |
ZSH_THEME="dpoggi" |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Org Capture | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Capture templates for: TODO tasks, Notes, appointments, phone calls, and org-protocol | |
(setq org-capture-templates | |
(quote (("t" "todo" entry (file "~/org/refile.org") | |
"* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) | |
("r" "respond" entry (file "~/org/refile.org") | |
"* TODO Respond to %:from on %:subject\n%U\n%a\n" :clock-in t :clock-resume t :immediate-finish t) | |
("n" "note" entry (file "~/org/refile.org") |
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
# Use jdb to debug Android application | |
# Run ddms and select application to forward port. | |
ddms | |
# Execute jdb and attach to the listening application | |
# ddms show 8600 / 8700 | |
jdb -attach localhost:8600 | |
# Or in windows, need to specify connector explicitly |
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
aspell --with-lang-en | |
autoconf | |
automake | |
bazaar | |
bdw-gc | |
bitlbee | |
brew-gem | |
c-ares | |
cabextract | |
cloc |
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
;; from http://larkery.tumblr.com/post/465585528/emacs-dictionary-app | |
(defun mac-open-dictionary (the-word) | |
"Open Dictionary.app for the-word" | |
(interactive "Dictionary Lookup: ") | |
(shell-command | |
(concat "open \"dict:///" (replace-regexp-in-string "\"" "\\\\\"" the-word) "\""))) | |
;; see https://gist.github.com/1228110 | |
;; dict.py is from http://sakito.jp/mac/dictionary.html | |
(defun dictionary () |
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
export SDKVER="6.1" | |
configure_for_platform() { | |
export PLATFORM=$1 | |
export ARCHITECTURE=$2 | |
echo "Platform is $PLATFORM" | |
if [ "$PLATFORM" == "iPhoneSimulator" ]; then | |
export ARCH=i686-apple-darwin10 | |
fi |