Public Gists by radar

Gravatar
Mon Nov 09 18:33:44 -0800 2009
1
2
3
require 'rubygems'
require 'ruby-prof'
require 'RMagick'
Gravatar
Tue Nov 03 16:57:59 -0800 2009
1
2
- ["James Rocket", "8.0", "0", "8.0"],
+ ["James Rocket", "8.0", "0", "8.0"],
Gravatar
Mon Nov 02 19:03:55 -0800 2009
1
2
3
My first look at rails 3.0.pre and the steps to take to create and live with rails 3.0.pre that I came across.
 
Why was I looking at the secret Rails 3.0? Their generators are being migrated over to Thor and I wanted to see them in action. I might migrate newgem to use Thor too.
Gravatar
Mon Nov 02 03:55:21 -0800 2009
1
2
3
What did you do to get good at Rails?
    I came from a PHP background, so the path I took was to workout how to do everything I knew with PHP
    in Ruby and Rails, as well as reading loads of source code and ripping parts out and making smaller apps.
Gravatar
Mon Nov 02 03:55:09 -0800 2009
1
2
What did you do to get good at Rails?
Initially started with the Agile Web Dev with Rails book, used that to build an all-AJAX Twitter app back when Twitter was shiney and new. Demo'd that to work and that rolled into a pilot project using Ruby/Rails to tie a couple of backend APIs together into a r
Gravatar
Sun Nov 01 17:16:06 -0800 2009
1
2
3
What did you do to get good at Rails?
 
I just kept at it and worked with it on a professional basis. Constantly learning about new things and working with people who do Rails is also a good start.
Gravatar
Sun Nov 01 17:05:27 -0800 2009
1
2
3
What did you do to get good at Rails?
 
Built an online store, i jumped in the deep end, but after two months part time on rails, i got a cool little app working.
Gravatar
Sun Nov 01 03:38:59 -0800 2009
1
The first of these people is Sam Elliot. Sam Elliot is a guy from Scotland who is passionate about Ruby. He jumped straight into Rails in late-2007, without even trying Ruby. He said the Rails site looked great and he wondered how powerful it was. He regrets this experience now saying that Ruby was
Gravatar
Sun Nov 01 02:41:40 -0800 2009
1
2
3
* **What did you do to get good at Rails?**
* **Who taught you what you know?**
* **Do you have any fond (or not so fond) memories of your learning experiences?**
Gravatar
Tue Oct 27 03:28:08 -0700 2009
1
2
3
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index fab6359..93b2deb 100755
--- a/activerecord/lib/active_record/associations.rb
Gravatar
Mon Oct 26 17:43:37 -0700 2009
1
2
3
function gpar() {
  for remote in `git remote show`
  do
Gravatar
Mon Oct 26 17:43:11 -0700 2009
1
2
3
ryanbigg@fp:fairystan (master)$ git push -v
Pushing to git@github.com:happyland/fairystan.git
To git@github.com:happyland/fairystan.git
Gravatar
Sun Sep 27 18:51:50 -0700 2009
1
2
3
<table class="tablesorter patients">
  <thead>
    <tr>
Gravatar
Sun Sep 27 15:16:08 -0700 2009
1
2
3
sp() {
  if [ -d ~/Sites/side_projects/$1* ]; then
    cd ~/Sites/side_projects/$1*;
Gravatar
Fri Sep 18 02:47:01 -0700 2009
1
2
3
I'll attempt to forego the whole life-story part here and give you some background on myself.
 
Born and bred (or is that bred and born?) in Adelaide, South Australia, Australia growing up in the city's north with my parents. Attended a public school until I was 12, and then was moved to the adjacent private school. Did well enough to pass every subject, but wasn't a straight-A student. Instead, I spent my later years following my interest in web development, meeting people at school. Together we formed a friendship and made the original version of this site, the name coming from one of them. Unfortunately we fell out, and I was left with this domain, as abstract as the name sound I like it. In years 11 and 12 I elected to study a TAFE (Teritary and Further Education) course whose formal name was "Information Technology, Certificate III (Client Support)". This covered interacting with the Microsoft Office suite and clients. It was around this point in my life that my parents separated, and my brother and I stayed with Dad, whilst mum moved out into a house that they were originally renting out to other people.
Gravatar
Mon Sep 14 20:20:44 -0700 2009
1
return (_hash_crypt_private($password, $hash, $itoa64) === $hash) ? true : false;
Gravatar
Sun Sep 06 00:23:29 -0700 2009
1
2
3
  def is_due?
    past_due? ? true : (past_due if next_renewal_on <= Time.zone.today)
    past_due?
Gravatar
Fri Sep 04 21:21:29 -0700 2009
1
2
3
require 'net/imap'
require 'rubygems'
require 'actionmailer'
Gravatar
Fri Sep 04 21:21:01 -0700 2009
1
2
3
require 'net/imap'
require 'rubygems'
require 'actionmailer'
Gravatar
Thu Sep 03 17:55:29 -0700 2009
1
2
3
>> "".to_date
NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.<