Skip to content

Instantly share code, notes, and snippets.

$ wget https://raw.github.com/reddit/reddit/master/install-reddit.sh
@xxbastekxx
xxbastekxx / params.json
Created July 10, 2012 06:01
install-reddit.sh
1http://gist.github.com/3081452.git
{"tagline":"the code that powers reddit.com","google":"","note":"Don't delete this file! It's used internally to help with page regeneration.","name":"Reddit+","body":"### Welcome to GitHub Pages.\r\nThis automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch:\r\n\r\n```\r\n$ cd your_repo_root/repo_name\r\n$ git fetch origin\r\n$ git checkout gh-pages\r\n```\r\n\r\nIf you're using the GitHub for Mac, simply sync your repository and you'll see the new branch.\r\n\r\n### Designer Templates\r\nWe've crafted some handsome templates for you to use. Go ahead and continue to layouts to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your
@xxbastekxx
xxbastekxx / gfm.rb
Created July 12, 2012 00:18 — forked from mojombo/gfm.rb
require 'digest/md5'
def gfm(text)
# Extract pre blocks
extractions = {}
text.gsub!(%r{<pre>.*?</pre>}m) do |match|
md5 = Digest::MD5.hexdigest(match)
extractions[md5] = match
"{gfm-extraction-#{md5}}"
end
require 'digest/md5'
def gfm(text)
# Extract pre blocks
extractions = {}
text.gsub!(%r{<pre>.*?</pre>}m) do |match|
md5 = Digest::MD5.hexdigest(match)
extractions[md5] = match
"{gfm-extraction-#{md5}}"
end
# Ignore any python bytecode.
*.pyc
# Ignore the batch files produced by the Windows bootstrapping.
/git.bat
/gitk.bat
/pylint.bat
/python
/python.bat
/ssh.bat