Skip to content

Instantly share code, notes, and snippets.

View dstnbrkr's full-sized avatar

Dustin Barker dstnbrkr

View GitHub Profile
@dstnbrkr
dstnbrkr / gist:2770652
Created May 22, 2012 18:10
predicate templates
// the query:
// foo amount:15
// first becomes an array of predicate templates
[ "${column} like '%foo%'", "${column} >= 14 and ${column} <= 16" ]
// next, we inspect the model to find which columns to search on
// and repeat each query for each property
@dstnbrkr
dstnbrkr / Makefile
Last active September 25, 2017 00:22
The Makefile we use for continuous integration and distribution at Artsy.net
PROJECT = Artsy
BUNDLE_ID = net.artsy.artsy.beta
CONFIGURATION = Beta
WORKSPACE = $(PROJECT).xcworkspace
SCHEME = $(PROJECT)
APP_PLIST = $(PROJECT)/App/$(PROJECT)-Info.plist
IPA = $(PROJECT).ipa
DSYM = $(PROJECT).app.dSYM.zip
@dstnbrkr
dstnbrkr / gist:5f9a3c91d43eca89afce
Created March 18, 2015 05:19
Loop through filenames with spaces
# example: renaming files named {0, 0, 0, 0} to 0-0-0-0
find $DIR -type f | while read f
do
NEW=`echo $f | sed 's/[{}]*//g' | sed 's/, /-/g'`
git mv "$f" $NEW
done
@dstnbrkr
dstnbrkr / gist:ac579f689f1275eed71c
Created March 18, 2015 20:53
find files matching multiple name patterns
find $DIR -type f \( -name '*.h' -o -name '*.mm' \)
target :'MyApplicationTestsHost', :exclusive => true do
end