Skip to content

Instantly share code, notes, and snippets.

View rmehner's full-sized avatar
🤷‍♀️
¯\_(ツ)_/¯

Robin Mehner rmehner

🤷‍♀️
¯\_(ツ)_/¯
View GitHub Profile
@rmehner
rmehner / otsbjs.md
Created May 30, 2012 11:46 — forked from janl/otsbjs.md
Open Tech School Berlin JS

In the spirit of Railsgirls Berlin, we want to start a programming education group for JavaScript. We need your help to get all the coaching done.

If you are interested in coaching JavaScript, fork this gist and add yourself or leave your contact data in a comment:

module Archive
class Directory
def initialize(dir)
@directory = dir
end
def sessions
@sessions ||= scan_for_sessions
end
class Song < ActiveRecord::Base
belongs_to :session
validates_presence_of :file_name
validate :file_name_has_to_be_audio
private
def file_name_has_to_be_audio
unless ['mp3', 'flac', 'wav'].include? file_name.split(".").last.downcase
.DS_Store
node_modules
@rmehner
rmehner / rcov.rake
Created January 31, 2011 16:41 — forked from jferris/rcov.rake
if defined?(RSpec)
namespace :rcov do
RSpec::Core::RakeTask.new(:rspec_aggregate) do |task|
task.pattern = 'spec/**/*_spec.rb'
task.rspec_opts = "--format progress"
task.rcov = true
task.rcov_opts = "--rails --exclude osx\/objc,spec,gems\/ " +
"--aggregate tmp/coverage.data"
end