This file contains 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
%%{ | |
machine irc_parser; | |
action mark { mark = p } | |
action wr { puts "Got: #{data[mark .. p-1]}" } | |
valid = extend -- ('\r' | '\n' | 0); | |
nospace = extend -- ('\r' | '\n' | 0 | ' '); | |
special = '[' | ']' | '{' | '}' | '^' | '`' | '\\' | '-'; |
This file contains 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
Show hidden characters
{ | |
"auto_complete": false, | |
"auto_match_enabled": false, | |
"color_scheme": "Packages/Railscasts.tmTheme", | |
"default_line_ending": "unix", | |
"font_face": "Inconsolata", | |
"font_size": 14, | |
"tab_size": 4, | |
"theme": "Soda Light.sublime-theme", | |
"translate_tabs_to_spaces": false, |
This file contains 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
#!/bin/bash | |
# Host Sublime Text 2 settings on Dropbox | |
# This assumes Dropbox is located at ~/Dropbox | |
# rem If this is not the case, change $DROPBOX | |
DROPBOX=~/Dropbox | |
SUBLIME=~/.config/sublime-text-2/ | |
NEW_SUBLIME="${DROPBOX}/configs/Sublime Text 2" | |
mkdir -p "${NEW_SUBLIME}" |
This file contains 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
#!/bin/bash | |
# Set Sublime Text 2 to use settings hosted on Dropbox | |
# This assumes Dropbox is located at ~/Dropbox | |
# rem If this is not the case, change $DROPBOX | |
DROPBOX=~/Dropbox | |
SUBLIME=~/.config/sublime-text-2/ | |
NEW_SUBLIME="${DROPBOX}/configs/Sublime Text 2" | |
rm -rf "${SUBLIME}/Installed Packages" |
This file contains 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
@echo off | |
rem Set Sublime Text 2 to use settings hosted on Dropbox | |
rem This must be run as administrator (for mklink) | |
rem This assumes Dropbox is located at C:\Users\Username\Dropbox | |
rem If this is not the case, change %DROPBOX% | |
setlocal | |
set DROPBOX=%HOMEDRIVE%%HOMEPATH%\Dropbox | |
set SUBLIME=%APPDATA%\Sublime Text 2 | |
set NEW_SUBLIME=%DROPBOX%\configs\Sublime Text 2 |
This file contains 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
@echo off | |
rem Host Sublime Text 2 settings on Dropbox | |
rem This must be run as administrator (for mklink) | |
setlocal | |
set DROPBOX=%HOMEDRIVE%%HOMEPATH%\Dropbox | |
set SUBLIME=%APPDATA%\Sublime Text 2 | |
set NEW_SUBLIME=%DROPBOX%\configs\Sublime Text 2 | |
mkdir "%NEW_SUBLIME%" | |
move "%SUBLIME\Installed Packages" "%NEW_SUBLIME%" |
This file contains 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
from markdown import Extension, Markdown | |
from markdown.inlinepatterns import Pattern | |
from markdown.util import etree | |
import re | |
GIST_RE = r"{gist:([0-9a-f]+)}" | |
class GistPattern(Pattern): | |
"""Enable inclusion of gists into markdown. |
NewerOlder