Skip to content

Instantly share code, notes, and snippets.

@mrrena
mrrena / MAC_OSX_DOS2UNIX_INSTALLATION.md
Created November 22, 2012 21:46
Recursively finds all text (non-binary) files beginning in '.' directory, performs dos2unix, converts tabs to 4 spaces, removes trailing white space/space on empty lines, and removes BOM -- Requires GNU sed (see files below)
@mrrena
mrrena / vim.rb
Created August 17, 2012 03:38
Command-Line Vim 7.3.629 for Mac OSX 10.6.8 (Macbook Pro Snow Leopard) and Likely Higher
######################### USAGE #############################
# save vim.rb to $HOME
#
# brew unlink ruby
# brew install $HOME/vim.rb
# brew link ruby
#
# (unlinking/relinking ruby explained @
# https://github.com/Homebrew/homebrew-dupes/issues/17)
#
// All elements which match this will be syntax highlighted.
var selector = 'code';
var keywords = ('var function if else for while break switch case do new '
+'continue delete return this true false throw catch typeof').split(' ');
// Syntax definition
// The key becomes the class name of the <span>
// around the matched block of code.
var syntax = {
@mrrena
mrrena / highlighter.css
Created July 14, 2012 22:52
Javascript Syntax Highlighter
/* mrrena theme <mrrena.blogspot.com> */
pre.code {
background-color: #1e2029;
padding: 4px;
color: #fff;
font-family: monospace, consolas, "courier new";
color: #fff;
font-size: 12px;
margin: 1.0em 40px;
overflow-x: auto;