Skip to content

Instantly share code, notes, and snippets.


Toni Dezman tonidezman

Block or report user

Report or block tonidezman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kule / mini_rspec.rb
Created Sep 11, 2018
Simplified example of how rspec works
View mini_rspec.rb
require 'bundler/inline'
gemfile do
source ''
gem 'colorize'
class MatcherInterface
def initialize(some_object)
@some_object = some_object
View frozen_string_literals.rb
comment = "# frozen_string_literal: true\n"
filemode = "r+"
dirs = Dir[Rails.root.join('spec/**/*.rb').to_s] + Dir[Rails.root.join('lib/**/*.rake').to_s] + Dir[Rails.root.join('lib/**/*.rb').to_s]
dirs.each do |filename|
contents =, "r") do |f|
contents = comment + contents
Reltre / mocks-are-not-stubs.markdown
Last active May 28, 2018
Mocks Aren't Stubs - Notes
View mocks-are-not-stubs.markdown

Notes for an article on testing and the various paradigms available to us

SEAT: Setup, Exercise, Assert, Teardown

Setup: Setup any objects necessary for tests to run.

Exercise: Make any calls for invoke specific behavior that is necessary for testing a feature or aspect of our program.

chrisman / css-diner.txt
Created Aug 2, 2017
solutions for css diner
View css-diner.txt
# #
01. plate
02. bento
03. #fancy
04. plate apple
05. #fancy pickle
06. .small
07. orange.small
08. bento orange.small
baweaver /
Last active Dec 11, 2019
A list of books for learning and expanding on your Ruby knowledge.

Ruby Book List

Learning Ruby

You're taking your first steps into Ruby

The Well Grounded Rubyist

A good introduction to programming in general. Easy on newer programmers.

baweaver /
Created Dec 2, 2016
So you want to start on Open Source?

So you want to start on Open Source?

A short guide for getting you started into the magical world of OSS.

What is your passion?

Are you a musician? Look for musical tools. Are you an artist? Look for some graphics libraries. Find something that works with your other passions to get you going.

If your passion is programming, look for ways to improve the environment.

milmazz /
Last active Jan 19, 2020
Useful links found in The Imposter's Handbook by Rob Conery
View gist:b878772e823fd9863a1e4c2415a3f7b6
#01 plate
#02 bento
#03 #fancy
#04 plate > apple
#05 #fancy pickle
#06 .small
#07 orange.small
#08 bento > orange
vasanthk / System
Last active Jan 22, 2020
System Design Cheatsheet
View System

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
mdang /
Last active Jan 20, 2020
Ruby on Rails Cheatsheet

Ruby on Rails Cheatsheet


Create a new application

Install the Rails gem if you haven't done so before

You can’t perform that action at this time.