Skip to content

Instantly share code, notes, and snippets.


Matt Platts mplatts

View GitHub Profile
View gist:a274e699b88538df4b63fb66c46af663
<!doctype html>
<title>Site Maintenance</title>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
# A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis)
# Check our Studio:
meteor add iron:router
meteor update iron:router
# Iron Router > Configuration
Anywhere: Meteor.isClient
Anywhere: Meteor.isServer
Anywhere: Meteor.startup(func)
Anywhere: Meteor.absoluteUrl([path], [options])
Anywhere: Meteor.settings
Anywhere: Meteor.release
mplatts / 0_reuse_code.js
Created May 14, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
mplatts / rspec-syntax-cheat-sheet.rb
Created Jan 9, 2012 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
View rspec-syntax-cheat-sheet.rb
# RSpec 2.0 syntax Cheet Sheet by
# Edited by
# ====================== Rails examples =====================
# ---------------------- Login Support -------------------------
module LoginSupport
# Fake a login for Controller specs
def fake_login_as(user)
@request.session[:user_id] = user ? : nil