Skip to content

Instantly share code, notes, and snippets.

@abruckman
abruckman / BigO.md
Last active March 17, 2017 18:44
Big O Notation - Whiteboarding Wednesday

Big O Notation

How can we measure quality of code?

  • Readability - How easily can we tell what you were trying to make?
  • Time - How long does it take to run?
  • Space - How much data do you have to store to run your code?
  • Lines of code

Time example

@jhermann
jhermann / git-commit-emojis.md
Last active September 23, 2023 07:09
Useful emoji for git commit messages

Useful emoji for git commit messages

If you add emoji to your commit messages for a GitHub repo, they become less boring, and you can convey the kind of change you're adding. See the full set of GitHub supported emoji here (also useful for easy copy&paste via a simple click).

Example commit message

The following is a possible scheme to use:

@shime
shime / _README.md
Last active March 15, 2021 19:26
comparing dates and times in RSpec

What is this?

How do you compare date/times in RSpec?

If you do this

expect(Time.now.to_i).to eq Time.new(2014, 4, 2).to_i
@jhjguxin
jhjguxin / creating-nested-resources-in-ruby-on-rails-3-and-updating-scaffolding-links-and-redirection.markdown
Created July 9, 2012 03:32
Creating nested resources in ruby on rails 3 and updating scaffolding links and redirection