This file contains 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
# Bash snippet to open new shells in most recently visited dir. | |
# Useful if you want to open a new terminal tab at the present | |
# tab's location. | |
# | |
# Put this in your .bashrc or whatever. | |
pathed_cd () { | |
if [ "$1" == "" ]; then | |
cd | |
else |
This file contains 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
{:cs => | |
{ :i18n => { :pluralize => lambda { |n| n == 1 ? :one : (2..4).include?(n) ? :few : :other } }, | |
:datetime => { :distance_in_words => { :x_months => { :one => '1 měsíc', :few => "{{count}} měsíce", :other => "{{count}} měsíců" } } } } | |
} |
This file contains 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 'i18n/backend/pluralization' | |
I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization) |
This file contains 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
(in /Users/pepe/Projects/fos/markout) | |
Loaded suite /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/rake_test_loader | |
Started | |
...........F. | |
Finished in 0.048024 seconds. | |
1) Failure: | |
test_export(Markout::OutputTest) [./test/markout_output_test.rb:26]: | |
Fixture HTML does not match Markout output, see diff below: | |
--- /Users/pepe/Projects/fos/markout/test/fixtures/markdown.html 2009-08-21 15:02:56.000000000 +0200 |
This file contains 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
=== Epic Snow Leopard Upgrayyyyd Guide === | |
Son, you’re now living in the land of 64-bit systems. | |
That means that some of your 32-bit shit is now broken. | |
Not all is lost. | |
== Fixing MySQL weirdness |
This file contains 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/env ruby | |
## | |
# alert_me | |
# | |
# A simple delay timer to send a growl notification at specific time with a | |
# message. Useful for when you need to check on something later | |
# | |
# echo "Go look at system 42" | alert_me in 2 hours | |
# |
This file contains 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 'rake' | |
require 'spec' | |
require 'spec/rake/spectask' | |
require 'cucumber/rake/task' | |
namespace :test do | |
Spec::Rake::SpecTask.new do |t| | |
FileUtils.rm('test') if File.exists?('test') | |
t.spec_files = FileList['spec/*_spec.rb'] | |
t.spec_opts = ['-u'] |
This file contains 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
[[["vubec","f505caece98d82d63e40f6f66181770f"],["vubec","bfbaae1f9dfae6d500c4cb5cedc62694"],["vubec","9f1b01706356447b73d48195ef0f883f"],["vubec","4bca865b33c6a5c3ecbeba22ca1cdf17"],["vubec","3c33b2eb1a58d7aab6421884fb1269f5"],["vubec","36f84b90a217953761520110420e1a8f"],["vubec","165690260330c152c07f6dcee9b76a1a"],["vubec","1099b4329f5685e6d061f75996bc8f42"],["nic","b5ebe765cd25eb319e6d6740abe52ca9"],["nic","0f06538b9aab55cd22a3051b44e0f150"]],[1,1,1,1,1,1,1,1,1,1],false] |
This file contains 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
diff --git a/db/schema.rb b/db/schema.rb | |
index d35485f..a9152c3 100644 | |
--- a/db/schema.rb | |
+++ b/db/schema.rb | |
@@ -325,7 +325,7 @@ ActiveRecord::Schema.define(:version => 20091127111226) do | |
t.datetime "created_at" | |
t.datetime "updated_at" | |
t.boolean "published" | |
- t.integer "season_id", :default => 3 | |
+ t.integer "season_id", :default => 1 |
OlderNewer