This file contains 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
Striated Pardalote | |
Elegant Crested Tinamou | |
Little Tinamou | |
Slaty-breasted Tinamou | |
Thicket Tinamou | |
Great Tinamou | |
Chilean Tinamou | |
Cinereous Tinamou | |
Brown Tinamou | |
Greater Rhea |
This file contains 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" | |
click menu item "Reset Content and Settings…" of menu "iOS Simulator" of menu bar 1 | |
delay 0.25 | |
key code 76 -- The return button | |
end tell |
This file contains 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
desc 'Use Mogenerator to create Core Data models' | |
task :mogen do | |
`which mogenerator` | |
unless $?.success? | |
fail "This project requires mogenerator. See installation instructions"\ | |
" at http://rentzsch.github.io/mogenerator/" | |
end | |
cmd = "mogenerator --template-var arc=true "\ | |
"--model My_Project/Model.xcdatamodeld/Model.xcdatamodel/ "\ | |
"--output-dir My_Project/Model/" |
This file contains 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
import lldb | |
def GetFirstArgumentAsValue(target, frame): | |
# Note: I assume the PC is at the first instruction of the function, before the stack and registers have been modified. | |
if target.triple.startswith('i386'): | |
espValue = frame.regs[0].GetChildMemberWithName("esp") | |
address = espValue.GetValueAsUnsigned() + target.addr_size | |
return espValue.CreateValueFromAddress('arg0', address, target.FindFirstType('id')) | |
else: | |
return frame.regs[0].GetChildMemberWithName("arg1") |
This file contains 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 | |
#usage | |
# mdown-wiki input_file.mdown | |
# | |
# Generates a file in the same directory named 'input_file.wiki' | |
FILENAME="${1%%.*}" | |
pandoc --from=markdown_github --to=mediawiki --output=$FILENAME.wiki "$1" |
This file contains 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
/code _-====-__-======-__-========-_____-============-__ | |
_( coffee _) | |
OO( train )_ | |
0 (_ choo! _) | |
o0 (_ choo! _) | |
o '=-___-===-_____-========-___________-===-dwb-=' | |
.o _________ | |
. ______ ______________ | | _____ | |
_()_||__|| ________ | | |_________| __||___||__ | |
(BNSF 1995| | | | | __Y______00_| |_ _| |
This file contains 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
#!bash | |
# | |
# bash/zsh completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# |
This file contains 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 | |
# Functions to change tab and window names in Terminal | |
function tabname { | |
if [ -z $1 ] | |
then | |
printf "\e]1;${PWD##*/}\a" | |
else | |
printf "\e]1;$1\a" |
This file contains 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 ruby | |
# Get the current Xcode file | |
filename = `osascript -e 'tell application "Xcode" to set current_document_path to path of last source document'` | |
# Parse the file name | |
name = File.basename(filename) | |
dir = File.dirname filename | |
# Change to the working directory of our repo |
This file contains 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/ruby | |
unless `git status -s`.strip.empty? | |
puts "Cannot merge-it when your working directory is dirty.\nClean that shit up, bruh" | |
exit | |
end | |
curr_branch = `git branch | grep "*" | sed "s/* //"`.strip | |
system("git checkout master && git merge #{curr_branch} && git branch -d #{curr_branch}") |