Skip to content

Instantly share code, notes, and snippets.

View wessmith's full-sized avatar

Wes Smith wessmith

View GitHub Profile
@wessmith
wessmith / specta-focus-check.sh
Created October 20, 2015 19:03
Generate warnings when focusing tests with Specta
#!/bin/sh
FOCUS="fit\(|fdescribe\(|fcontext\("
find "${SRCROOT}/Path/To/Tests" \( -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($FOCUS).*\$" | perl -p -e "s/($FOCUS)/ warning: \$1/"
@wessmith
wessmith / pod-install-post-checkout.sh
Last active August 29, 2015 14:01
pod install post-checkout script
#!/bin/bash
PREVIOUS_HEAD=$1
NEW_HEAD=$2
BRANCH_SWITCH=$3
if [[ $BRANCH_SWITCH == "1" && $PREVIOUS_HEAD != $NEW_HEAD ]]; then
# Kill the simulator.
SIM=`pgrep 'iPhone Simulator'`
@wessmith
wessmith / Load Reveal
Created November 12, 2013 03:30
Loading Reveal in Debug only
// Doing this for debug only (via xcconfig but could also be specified in Xcode)
FRAMEWORK_SEARCH_PATHS = $(inherited) "/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/"
OTHER_LDFLAGS = $(inherited) -framework Reveal