Skip to content

Instantly share code, notes, and snippets.

View ELLIOTTCABLE's full-sized avatar
🐫

ELLIOTTCABLE

🐫
View GitHub Profile

Lessons Learned

Be Confident

Tests build confidence. Write 'em. They'll save your ass, and they'll let you take a chainsaw to your code without being afraid of unintended consequences.

Be Lazy

Instructions for setting up username.github.com *
Create a repo named username.github.com
Push a `master` branch to GitHub and enjoy!
Instructions for setting up username.github.com/repo-name *
Caution: make your working directory clean before you do this (either stash or commit), otherwise this will lose any changes you've made to your project since the last commit.
cd /path/to/repo-name
#!/usr/bin/env ruby
#
# DarkRoom
# Takes fullsize screenshots of a web page.
# Copyright (c) 2007 Justin Palmer.
# Rewrote for MacRuby by Laurent Sansonetti.
#
# Released under an MIT LICENSE
#
# Usage
"up and user.atom!"
puts %. This is a statement.
puts %? This is a question?
puts %! This is an exclamation!
puts( % These are tabs )
puts( %
These are newlines!
)
Flush DNS Cache
OSX (10.5)
----------
dscacheutil -flushcache
Windows
-------
C:\>ipconfig /flushdns

Hello Markdown

Is this markdown or what ?

It to'ally is!

Though the margins are all screwed up. Or something.

It also doesn't show up on the list page: http://tr.im/o1p?github

# The simplest thing that could possibly work. Will probably overwrite files if someone uploads
# a file that has the same file name as an already uploaded file. Requires the columns 'size' and
# 'content_type', see the 'store_file' method. You could obviously just remove those calls
# if you don't want to store the file size and the content type in the database.
class Attachment < ActiveRecord::Base
after_create :store_file
# Virtual attribute that stores the uploaded tempfile
attr_accessor :uploaded_file
Subject: [PATCH 1/1] diff: support making output friendlier for fine, grand users
Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Scott Chacon <[email protected]>
Signed-off-by: Tom Preston-Werner <[email protected]>
Signed-off-by: Jeff King <[email protected]>
Signed-off-by: J.H. <[email protected]>
Signed-off-by: Sam Vilain <[email protected]>
Signed-off-by: Christian Couder <[email protected]>
Signed-off-by: Kai Blin <[email protected]>
no it won't!