Skip to content

Instantly share code, notes, and snippets.

@LutherBaker
LutherBaker / intro.textile
Created August 14, 2014 18:14
Node Stack
# http://stackoverflow.com/questions/1755665/get-names-of-all-files-from-a-folder-with-ruby
Dir["/path/to/search/**/*.rb"]
Dir.entries(folder)
@LutherBaker
LutherBaker / .bash_colors.sh
Last active August 29, 2015 14:02
Apple Terminal
txtblk='\[\e[0;30m\]' # Black - Regular
txtred='\[\e[0;31m\]' # Red
txtgrn='\[\e[0;32m\]' # Green
txtylw='\[\e[0;33m\]' # Yellow
txtblu='\[\e[0;34m\]' # Blue
txtpur='\[\e[0;35m\]' # Purple
txtcyn='\[\e[0;36m\]' # Cyan
txtwht='\[\e[0;37m\]' # White
bldblk='\[\e[1;30m\]' # Black - Bold
bldred='\[\e[1;31m\]' # Red
## http://www.ruby-doc.org/gems/docs/d/davidtrogers-cucumber-0.6.2/Cucumber/Ast/Table.html
https://github.com/kif-framework/KIF
http://cocoadocs.org/docsets/KIF/2.0.0/
http://cocoadocs.org/docsets/KIF/2.0.0/Classes/KIFUITestActor.html#//api/name/waitForViewWithAccessibilityLabel:
https://github.com/kif-framework/KIF/blob/master/Documentation/Examples/Testable/Acceptance%20Tests/IntegrationTestCases.m
The first thing you will want to do is set up a test target you will be using for KIF.
@LutherBaker
LutherBaker / bash_profile.sh
Last active August 29, 2015 14:01
Git Cheatsheet
. ~/.bash_colors
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
export PS1=$txtred'[\W]'$txtylw'$(__git_ps1)'$txtrst' \$ '
fi
export GIT_PS1_SHOWUPSTREAM=auto
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1