Skip to content

Instantly share code, notes, and snippets.

@rlgreen91
rlgreen91 / factories.rb
Created November 1, 2016 02:25
Fun with Factories!
FactoryGirl.define do
factory :micropost do
content Faker::Lorem.characters(140)
user
end
factory :relationship do
follower_id
followed_id
end
@rlgreen91
rlgreen91 / testtask.rb
Created May 22, 2017 00:59
Initialize method for Rake::TestTask
# Create a testing task.
def initialize(name=:test)
@name = name
@libs = ["lib"]
@pattern = nil
@options = nil
@test_files = nil
@verbose = false
@warning = true
@loader = :rake
@rlgreen91
rlgreen91 / marginalia.md
Last active January 1, 2024 20:59
r/bookclub Marginalia Template

How to use this template:

When you make your marginalia post, switch to the markdown editor. Click the "Raw" button in the top right on this screen and copy paste the text below into the text field and save it as a draft. Switch back to the "fancy pants" editor and voila! The main content for the marginalia is ready to go and you can tweak it as necessary.

Now you might be asking - what is a marginalia post for, exactly?