Joined July 2012
·

Sean Todd

Developer at PayNearMe
·
Sunnyvale, CA
·
·

Posted to Remove all gems over 1 year ago

you could just use rvm gemset empty

I'm not quite sure why the expect syntax is that much better.

row.day.should eq 'value' seems much more readable. I would love to hear from you why you use 'expect'.

Posted to Streaming Files in Rails over 1 year ago

You specify this for the content-type:

response.headers['Content-Type'] = 'text/event-stream'

Doesn't this only go to WebSocket stuff and not a file? My tip is specifically geared towards streaming to a file download.

Anyways, thanks for the examples.

Posted to Git Aliases over 1 year ago

Are you sure you want to alias destructive calls to such simple commands? Personally, I leave those out of my aliases because I want to make sure I know what I'm doing before issuing those commands.

@kablamo I avoided letters for this because I never know when I might trigger that combination and because having it on the j key would cause it to pause slightly when you type j. I've also heard on a few screencasts that some of the faster types don't like repetitive keystrokes since they can be slower.

Posted to Git: Temporarily ignoring files over 1 year ago

@daniel-marschner Is the file in the repo yet? The update-index action only works on files that are in your repo. If its not in the repo yet, you can add it to .gitignore.

Posted to Sort gems in your Gemfile over 1 year ago

That makes sense. I thought your original idea was to sort all the gems in the top-level of the Gemfile.

Posted to Sort gems in your Gemfile over 1 year ago

Why would you want to sort your Gems? Usually (as pointed out above) they're in groups. Sometimes they're also sorted according to purpose.

Achievements
201 Karma
13,980 Total ProTip Views