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. |
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
@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
#!/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
#!/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
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
%%{ | |
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
template<class T> class Range | |
{ | |
public: | |
Range(T initial, T final, T step = T(1)) : _initial(initial), _final(final), _step(step) {} | |
class Iterator; | |
Iterator begin() const | |
{ | |
return Iterator(_initial, _step); |
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
### Keybase proof | |
I hereby claim: | |
* I am brennie on github. | |
* I am brennie (https://keybase.io/brennie) on keybase. | |
* I have a public key whose fingerprint is FD75 3599 8064 39F3 5D5F 2E1E 44ED 5735 647A B5F2 | |
To claim this, I am signing this object: |
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 | |
# git-setup-mirror | |
# | |
# Set up a repository to sync to and from a mirror. | |
# | |
# This is useful for working on a project from several machines. | |
set -euo pipefail | |
if [[ $# -ne 1 ]]; then |
OlderNewer