This file contains hidden or 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
#!/usr/bin/ruby | |
# This script installs to /usr/local only. To install elsewhere you can just | |
# untar https://github.com/mxcl/homebrew/tarball/master anywhere you like. | |
module Tty extend self | |
def blue; bold 34; end | |
def white; bold 39; end | |
def red; underline 31; end | |
def reset; escape 0; end | |
def bold n; escape "1;#{n}" end |
This file contains hidden or 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
/ http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#whitespace_removal__and_ | |
/ Use like so | |
%p | |
Blah blah blah blah | |
%a(href='#foo') foo | |
%a(href='#bar')> bar | |
\. |
This file contains hidden or 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
%p | |
Blah blah blah blah | |
%a(href='#foo') foo | |
and | |
%a(href='#bar') bar | |
\. | |
-# The problem with the above Haml fragment is that I am left with a space after <a href='#bar'>bar</a> and before the period. | |
-# Haml's whitespace removal does not resolve the issue, because it can either remove ALL whitespace | |
-# around an element or ALL whitespace within an element. Neither option seems to fit the bill. |
NewerOlder