This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group :test, :development do | |
gem 'ruby-debug19', :require => 'ruby-debug' | |
gem 'passenger' | |
gem 'rspec-rails', '>= 2.6.1' | |
gem 'factory_girl_rails', '>= 1.1.beta1' | |
gem 'cucumber-rails', '>= 0.5.2' | |
gem 'capybara', '>= 1.0.0' | |
gem 'database_cleaner', '>= 0.6.7' | |
gem "rcov" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby -w | |
# from : https://www.ruby-forum.com/topic/135350 | |
# SIG_CHILD to monitor processes | |
trap_quit = lambda { |sig| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get install gcc g++ build-essential libssl-dev libreadline5-dev zlib1g-dev linux-headers-g eneric libsqlite3-dev | |
mkdir ~/src | |
cd ~/src/ | |
mkdir ruby1_9 | |
cd ruby1_9/ | |
wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stolen from delayed_job | |
cattr_accessor :logger | |
self.logger = if defined?(Merb::Logger) | |
Merb.logger | |
elsif defined?(RAILS_DEFAULT_LOGGER) | |
RAILS_DEFAULT_LOGGER | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl5.10.0 | |
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' | |
if $running_under_some_shell; | |
$0 =~ s/\d+\.\d+\.\d$//; | |
#!perl -w | |
# shasum: filter for computing SHA digests (analogous to sha1sum) | |
# | |
# Copyright (C) 2003-2007 Mark Shelor, All Rights Reserved | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ gittest git:(master) git log | |
commit 6be414305b3f968f975c3d33cd86b9d9beb17f77 | |
Author: Justin MacCarthy <[email protected]> | |
Date: Wed Dec 28 14:37:46 2011 +0700 | |
added c.txt | |
commit 954758efede9490e3e1b87753402e95f64ce7263 | |
Author: Justin MacCarthy <[email protected]> | |
Date: Wed Dec 28 14:37:28 2011 +0700 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//todo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Column | Type | Modifiers | Storage | Stats target | Description | |
------------------------+-----------------------------+---------------------------------------------------+----------+--------------+------------- | |
id | integer | not null default nextval('tags_id_seq'::regclass) | plain | | | |
type | character varying(255) | | extended | | | |
label | character varying(255) | | extended | | | |
created_at | timestamp without time zone | not null | plain | | | |
updated_at | timestamp without time zone | not null | plain | | | |
Indexes: | |
"tags_pkey" PRIMARY KEY, btree (id) | |
"add_uni |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'prawn' | |
def header | |
grid([0,0],[1,3]).bounding_box do | |
bounding_box([0,cursor], :width => 200, :height => 30) do | |
fill_color "d7800f" | |
fill_rectangle [bounds.left,bounds.top],bounds.width,bounds.height | |
stroke_bounds | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Age: | |
The Tech Industry’s Darkest Secret: It’s All About Age | |
http://www.linkedin.com/today/post/article/20130422020049-8451-the-tech-industry-s-darkest-secret-it-s-all-about-age | |
Older Is Wiser: Study Shows Software Developers’ Skills Improve Over Time | |
http://news.ncsu.edu/releases/wms-murphyhill-age-2013/ | |
http://www.codingninja.co.uk/like-fine-wine-developers-can-become-better-with-age/ |