Skip to content

Instantly share code, notes, and snippets.

@rwilcox
rwilcox / Textile.sh
Created September 18, 2012 12:27 — forked from foliovision/Textile.sh
Working version of Textile.sh filter for BBEdit/TextWrangler. http://foliovision.com/2011/11/08/textile-editing-bbedit . Tested and mods made for BBEdit 10
#!/usr/bin/php -q
<?php
// set to true to avoid ' and " converting to HTML special characters
@define('skip_glyphs', false);
// 3+ uppercase span tag is commented out, as everyone hates it
// instruction on how to use it available here: http://foliovision.com/2011/11/08/textile-editing-bbedit
// define these before including this file to override the standard glyphs
@rwilcox
rwilcox / gist:2288375
Created April 3, 2012 00:49 — forked from jshell/gist:2047480
Underline Titles (Markdown, reStructuredText) in BBEdit
-- Thanks to hristopher Stone
tell application "BBEdit"
set textDocument1 to a reference to text of text document 1
tell textDocument1
tell line (startLine of selection)
if startLine > 1 then
set lineContent to contents
if (length of lineContent = 1) and (lineContent is not " ") then
set prevLineContent to contents of textDocument1's line ((startLine) - 1)
tell application "BBEdit" to replace "." using lineContent searchingString prevLineContent options {search mode:grep}
@rwilcox
rwilcox / gist:401103
Created May 14, 2010 12:45 — forked from anonymous/gist:156623
with Fab 0.9 and hg & TG2 instead of git & Django
"""
NOTES:
* Originally from http://morethanseven.net/2009/07/27/fabric-django-git-apache-mod_wsgi-virtualenv-and-p/
* Patches for fabric 0.9/1.0 with code from <http://github.com/fiee/generic_django_project/>
Changes from the original fabfile:
* Patches for Fabric 0.9/1.0
* Use Mercurial instead of Git
* Use named mercurial branches instead of head/tip