Skip to content

Instantly share code, notes, and snippets.

View jezreljane's full-sized avatar
🏠
Working from home

jezreljane jezreljane

🏠
Working from home
View GitHub Profile
@bryanbibat
bryanbibat / team_x_prob_a.rb
Created December 3, 2012 15:43
DevCon Code Challenge Cup Solutions
def trunc(x)
(x * 100.0).floor / 100.0
end
output = File.open("bestfit2.txt", "w")
count, point_count, points, = nil, nil, nil
IO.readlines("bestfit.txt").each do |line|
@sumanmukherjee03
sumanmukherjee03 / mess_with_bindings.rb
Created September 20, 2012 12:08
Messing with bindings in ruby
# Coding hazard.
class CoOrdinate
attr_reader :x, :y
def initialize(x, y)
@x = x
@y = y
end
end
@xdite
xdite / 42-things.md
Created July 14, 2012 05:11
Ten (42) Things You Didn't Know Rails Could Do

Since Obie Fernandez posted his demands as a consultant I thought I would post mine too.

  • I will be paid $10,000 per day, in $50 bills, in a titanium briefcase that you will purchase for the sole purpose of providing a container for my money. You may not re-use the briefcase for the next day's payment.
  • The $50 bills must have been printed in the last three months and handled by no more than 2 people.
  • Anybody handling the money must do so with clean white gloves that must be placed on the hand immediately before touching the briefcase. If the hand leaves the briefcase, the white gloves must be replaced with new ones before the briefcase is touched again.
  • I will arrive in your city by a private jet. Fuel and any other costs incurred by this trip will be paid by you, and is not included in the $10k/day fee.
  • Transportation from my jet to your workplace must be performed by a driver who is between the ages of 50
@kathgironpe
kathgironpe / .0.md
Created September 8, 2011 14:26 — forked from rstacruz/.0.md

Stop littering your gitignores

Do yourself a favor and put one of these in your machine.

@njonsson
njonsson / The difference between the junior and senior Rails developer
Created May 6, 2009 03:31
The difference between the junior and senior Rails developer — an extract of the discussion forum at the Rubyists LinkedIn group
Someone recently asked the following question in the discussion forum of the Rubyists LinkedIn group: What separates a junior Rails developer from a senior one?
My response follows. Join us at http://www.linkedin.com/groups?gid=120725 to weigh in on this and other topics of interest to Rubyists. As of today there are almost 1,200 members, including numerous movers and shakers in the Ruby and Rails communities.
“Distinguishing between junior and senior people in the Rails world is not so different from making the distinction in other web development environments.
“Junior Rails people have not dealt with scaling issues to the degree that senior people have. Getting a public-facing Rails application to perform under significant stress is more challenging than doing the same with other building materials such as PHP. Senior people know how to performance-test Rails applications, where to look for bottlenecks, and how to eliminate them one after another until performance is acceptable in real conditions. The Ra