Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
" ======== | |
" Filetype | |
" ======== | |
filetype off | |
filetype plugin indent on | |
" ======== | |
" General Setup | |
" ======= | |
set nocompatible |
/* | |
As of version 1.1.2, Propane will load and execute the contents of | |
~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
immediately following the execution of its own enhancer.js file. | |
You can use this mechanism to add your own customizations to Campfire | |
in Propane. | |
Below you'll find two customization examples. |
" Vim color file | |
" Converted from Textmate theme Clouds Midnight using Coloration v0.2.4 (http://github.com/sickill/coloration) | |
set background=dark | |
highlight clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
#!/usr/bin/env ruby | |
# | |
# Quick hack to help you find and deal with old watched repos, forks and owned repos. | |
# | |
# It will ask you to confirm once if you want to unwatch a repo. | |
# | |
# You can't unwatch your own repos, so they will need to be deleted. | |
# THIS SCRIPT WILL ASK YOU FOR CONFIRMATION TWICE BEFORE IT DELETES A REPO. | |
# | |
require 'rubygems' |
au BufNewFile,BufRead *.js set makeprg=gjslint\ % | |
" The ^G at the end is an actual <Ctrl-G> char. | |
" Gist won't let me include it, so you'll have to delete the last two characters | |
" and insert it yourself with <Ctrl-V><Ctrl-G> | |
au BufNewFile,BufRead *.js set errorformat=%-P-----\ FILE\ \ :\ \ %f\ -----,Line\ %l\\,\ E:%n:\ %m,%-Q,%-GFound\ %s,%-GSome\ %s,%-Gfixjsstyle%s,%-Gscript\ can\ %s,%-G^G |
# Run me with: $ watchr watchr.rb | |
def run(cmd) | |
puts(cmd) | |
system(cmd) | |
end | |
def run_all_tests | |
cmd = "ruby run_specs.rb -f n -c" | |
run(cmd) | |
end |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.
// If you don't use underscore.js, use it (http://documentcloud.github.com/underscore/) | |
// Then, use underscore's mixin method to extend it with all your other utility methods | |
// like so: | |
_.mixin({ | |
escapeHtml: function () { | |
return this.replace(/&/g,'&') | |
.replace(/>/g,'>') | |
.replace(/</g,'<') | |
.replace(/"/g,'"') | |
.replace(/'/g,'''); |
require 'sass' | |
module Sass::Script::Functions | |
def strip_unit(value) | |
Sass::Script::Number.new(value.value) | |
end | |
end |