Skip to content

Instantly share code, notes, and snippets.

@igrigorik
igrigorik / ruby-1.9-tips.rb
Created February 3, 2011 17:19
Ruby 1.9 features, tips & tricks you may not know about...
def tip(msg); puts; puts msg; puts "-"*100; end
#
# 30 Ruby 1.9 Tips, Tricks & Features:
# http://www.igvita.com/2011/02/03/new-ruby-19-features-tips-tricks/
#
tip "Upgrading to Ruby 1.9 is simple: rvm install 1.9.2 && rvm --default 1.9.2"
tip "Ruby 1.9 supports named captures in regular expressions!"
@idoru
idoru / aerobuild.sh
Created June 19, 2011 21:33
bump version, build & archive, tag git version and publish iOS app builds to testflight
#!/bin/sh
#
# aerobuild.sh
#
# What does this do?
# ==================
# - Bumps build numbers in your project using agvtool
# - Builds your app and packages it for testing/ad-hoc distribution
# - Commits build number changes to git
@samanthamjohn
samanthamjohn / generate_hopscotch_project
Created May 1, 2015 14:04
Generates a hopscotch project with 500 objects all growing, modify as needed for your own projects
class ProjectMaker
def original_json
'{
"rules" : [
{
"objectID" : "966281C2-C13C-4CC0-9E5E-00A2CF1D363C-28679-00001DADC7E1BB63",
"abilityID" : "0C0AC15D-34D4-4411-AE82-0B1FE1B85D49-28679-00001DADC7E4CA0B",
"parameters" : [
{
"type" : 42,