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
| require 'attr_splat' | |
| class Class | |
| class self.singleton | |
| # We don't do this by default, just to be safe. It's perfectly acceptable, | |
| # as attr_*'s API is fully backwards compatible. | |
| # | |
| # Now every example below, attr_splat could safely be replaced with | |
| # attr_accessor | |
| alias_method :attr_accessor, :attr_splat |
| no it won't! |
| 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]> |
| # 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 | |
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
| Flush DNS Cache | |
| OSX (10.5) | |
| ---------- | |
| dscacheutil -flushcache | |
| Windows | |
| ------- | |
| C:\>ipconfig /flushdns | |
| puts %. This is a statement. | |
| puts %? This is a question? | |
| puts %! This is an exclamation! | |
| puts( % These are tabs ) | |
| puts( % | |
| These are newlines! | |
| ) |
| "up and user.atom!" |
| #!/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 |
| 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 |