https://github.com/everydayhero/mycharity
git clone https://github.com/everydayhero/mycharity.git
Create fullname.txt and add "justin hennessy" to it
To see the changes that have been made from the last commit
https://github.com/everydayhero/mycharity
git clone https://github.com/everydayhero/mycharity.git
Create fullname.txt and add "justin hennessy" to it
To see the changes that have been made from the last commit
def user_with_highest_kilometers | |
highest = User.new | |
users.each do |user| | |
highest = user if user_distance_sum(user) > user_distance_sum(highest) | |
end | |
highest | |
end | |
def user_with_highest_ascent | |
highest = User.new |
!#/usr/env ruby | |
require 'json' | |
require 'uri' | |
# Removes repeated USER records from one of the AMQP queues. | |
# | |
# USAGE: ruby queue_fix.rb "queue_name" "email_address" | |
# | |
# This will dump the whole queue to a temp file. (In case anything goes wrong) | |
# it will strip out the user messages containing the email provided then |
Add something to the end of a line
1,$ s/$/",/g
Add something to the start of a line
1,$ s/^/"/g
Turn on/off line numbers