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
Incident Identifier: [TODO] | |
CrashReporter Key: [TODO] | |
Hardware Model: iPod5,1 | |
Process: Clock [3512] | |
Path: /var/mobile/Applications/BC0783D7-3F57-4317-A0C7-BCEBE1AB9632/Clock.app/Clock | |
Identifier: com.raizlabs.clockradio | |
Version: 2.3.5 | |
Code Type: ARM | |
Parent Process: launchd [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
# Get a Continuous Integration Token on AppBlade.com | |
# while on your project details page. If you don't | |
# have a project yet, you'll have to create one. | |
CI_TOKEN=YOUR_PROJECTS_CI_TOKEN | |
BUNDLE_PATH=/path/to/bundle | |
# Optional arguments | |
ZIPPED_DSYM_PATH=/path/to/a/zipped/dsym | |
OVERRIDE_BUNDLE_VERSION_STRING=0.0.1 | |
CHANGELOG="Some changes bro" |
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
# Look up all the tags, grep for any on this commit, excluding jenkins-build tags | |
TAGGED_RELEASE=`git show-ref --tags --dereference | grep \`git rev-parse HEAD\` | awk '$2 !~ /refs\/tags\/jenkins(.+)\^\{\}/ { print $2 }'` | |
# Any results? | |
if [ -n "$TAGGED_RELEASE" ] | |
then | |
# If there was a match, we are on a tagged release (or many), normalize them, and grab the first one | |
GIT_TAG=`echo $TAGGED_RELEASE | tr "^{}" " " | tr "/refs/tags/" " " | awk -F" " '{print $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
#!/bin/bash | |
# some variables we'll use later on | |
PROJECT_PATH=${WORKSPACE}/trunk | |
SIGNING_PATH=${PROJECT_PATH}/Signing | |
APP=Clock | |
XCODEPROJ_PATH="${PROJECT_PATH}/${APP}.xcodeproj" | |
XCODE_TARGET_NAME=${APP}.app | |
DSYM_NAME=${XCODE_TARGET_NAME}.dSYM | |
BUILD_PATH=${PROJECT_PATH}/build |
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
# Push tagged commits to AppBlade | |
# https://appblade.com/api | |
# Look up all the tags, grep for any on this commit, excluding jenkins-build tags | |
TAGGED_RELEASE=`git show-ref --tags --dereference | grep \`git rev-parse HEAD\` | awk '$2 !~ /refs\/tags\/jenkins(.+)\^\{\}/ { print $2 }'` | |
# Any results? | |
if [ -n "$TAGGED_RELEASE" ] | |
then |
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
function savemyshitbro { | |
git stash | |
git checkout -b $1 | |
git stash apply | |
git push origin $1 | |
} | |
// $savemyshitbro BRANCH_NAME | |
// usage: savemyshitbro changes_to_something |
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
Day Job: Rails developer (freelance) and serial startup-cofounder | |
Open Source contribution (if any): a bundle, mostly focusing around Rails/OAuth/E-commerce | |
Tell me about your experience with Ruby/Rails: an intense love affair since 2004ish, only made rocky due to my running around with javascript | |
How do you use GitHub: with gusto? | |
Favorite luchador(es): strong bad |
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
class Blah | |
private | |
def method1 | |
end | |
def method2 | |
end |
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
Nokogiri::HTML(open('http://hackerunderground.com/')).css('#the_puzzle').text.match(/\[(.+)\]/)[1].split.group_by(&:to_i).select{|k,v| v.size > 1}.map(&:first).select(&:prime?).first |
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
#************************************** this will flip all the bits passed to it * * * * * * * | |
def flip(binary) | |
# replace 1 with 2, then 0 with 1, and then 2 with 0 | |
return ((binary.tr("1","2")).tr("0","1")).tr("2","0")\ | |
end | |
#************************************** adding implementation into the Integer class * * * * * | |
class Integer | |
def in_unsigned_binary(bits) #******* returns the unsigned binary form of the integer * * * |