Skip to content

Instantly share code, notes, and snippets.

View pepe's full-sized avatar

Josef Pospíšil pepe

View GitHub Profile
# 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
{: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ů" } } } }
}
require 'i18n/backend/pluralization'
I18n::Backend::Simple.send(:include, I18n::Backend::Pluralization)
(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
=== 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
@pepe
pepe / gist:181077
Created September 4, 2009 19:43 — forked from karmi/application.js
We couldn’t find that file to show.
@pepe
pepe / alert_me
Created November 20, 2009 08:25 — forked from copiousfreetime/alert_me
#!/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
#
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']
[[["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]
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