Joined June 2011
·
Posted to
Rails Quick Tips - Random Records
over 1 year
ago
ids = User.ids.sample(5)
User.find ids
Posted to
If you're not Surprised by how Good you are it could be a Sign you're not Improving
over 1 year
ago
There is still a plenty of room for the improvement.
Posted to
Working with Unicode in Ruby
over 1 year
ago
Default in Ruby 2.0
Posted to
Forms, CSRF authenticity token and fragment caching in Rails
over 1 year
ago
What if you want to do page/action caching?
Posted to
Doing some image manipulation in Ruby?
over 1 year
ago
Use GraphicsMagick. It's supported by mini_magick
.
Posted to
Real time in Rails
over 1 year
ago
Use Time.current
Posted to
therubyracer and libv8 gem on centos5
over 1 year
ago
Latest version of therubyracer doesn't require libv8.
Posted to
DO NOT $('#foo a'); DO $('#foo').find('a');
over 1 year
ago
jQuery find() convention has bad performance
For DOM queries use Cascading $('#foo a')
or parent > child $('#foo > a')
.
// bad
$('#foo', 'a').hide();
// bad
$('#foo').find('a').hide();
// good
$('#foo a').hide();
// good
$('#foo > a').hide();
Posted to
Quickly increment/decrement
over 1 year
ago
42<Ctrl-A>
to increment by forty-two
Posted to
Authenticating Rails Apps - Don't go it alone
over 1 year
ago
Bad tip. Doesn't work for all cases. Rails has SecurePassword module.
Posted to
A faster way to rake (with bundler)
over 1 year
ago
Achievements
202 Karma
1,955 Total ProTip Views
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2014
Altruist
Increase developer well-being by sharing at least 20 open source projects
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2012
Octopussy
Have a repo followed by a member of the GitHub team
Lemmings 100
Write something great enough to have at least 100 watchers of the project
Forked 20
Have an established project that's been forked at least 20 times
Ashcat
Make Ruby on Rails better for everyone by getting a commit accepted
Forked
Have a project valued enough to be forked by someone else
Kona
Have at least one original repo where CoffeeScript is the dominant language
Honey Badger
Have at least one original Node.js-specific repo
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
@andoriyu 99, 400 people can't be wrong.