Skip to content

Instantly share code, notes, and snippets.

View mikedao's full-sized avatar
🤷

Michael Dao mikedao

🤷
View GitHub Profile
@JoshCheek
JoshCheek / object_model_challenges.rb
Last active February 12, 2016 21:14
object_model_challenges.rb
# Uncomment lines with `# =>` at the end,
# Predict the result.
# To see if your prediction is correct, run it with:
# vim: `\n` , NOT `\b` (if your leader is not `\`, then use that leader instead)
# atom: `command + option + n`, NOT `b`
# ===== Toplevel methods are defined where? =====
def rawr!
"#{self} says: rawr!"

Jet Fuel

Abstract

In this project you'll build a URL shortener service.

This version is a little bit different than what we do in Module 2 these days:

  • You can use Rails and ActiveRecord instead of Sinatra and Sequel
  • We're skipping authentication and authorization: We won't be implementing the idea of registered users
@r00k
r00k / vimrc
Last active May 13, 2023 09:34
A minimal vimrc for beginners
" A minimal vimrc for new vim users to start with.
"
" Referenced here: http://www.benorenstein.com/blog/your-first-vimrc-should-be-nearly-empty/
" Original Author: Bram Moolenaar <Bram@vim.org>
" Made more minimal by: Ben Orenstein
" Last change: 2012 Jan 20
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
@rwarbelow
rwarbelow / tidy-up.markdown
Last active November 2, 2015 23:43
Posse Tidy-Up Duties

Tasks

Classrooms

  • wipe down tables
  • remove cups and other kitchenware
  • wipe surfaces of public screens (TVs, pairing monitors)
  • tidy up cords at the front of each classroom
  • water plants according to schedule

Pairing Stations and Group Setups

@JoshCheek
JoshCheek / shoot.rb
Created October 30, 2014 16:26
Refactoring an if statement for a student
# original
def shoot
if cranky? || laying?
"NO!"
else
@tired += 1
"Twang!!!"
end
end
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')