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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"up and user.atom!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts %. This is a statement. | |
puts %? This is a question? | |
puts %! This is an exclamation! | |
puts( % These are tabs ) | |
puts( % | |
These are newlines! | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Flush DNS Cache | |
OSX (10.5) | |
---------- | |
dscacheutil -flushcache | |
Windows | |
------- | |
C:\>ipconfig /flushdns | |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
no it won't! |