This is a brief and bare-bones guide to getting GHC 7.2 and the cabal-install
tool (the two basic things you'll need to do Haskell development) up and running
on a new Mac OS X 10.7 install.
The instructions given here worked for me, but YMMV.
| require('Task/Joose/NodeJS') | |
| use('KiokuJS.Backend.CouchDB', function () { | |
| // class declaration | |
| Class('Person', { | |
| has : { | |
| self : null, |
| def tip(msg); puts; puts msg; puts "-"*100; end | |
| # | |
| # 30 Ruby 1.9 Tips, Tricks & Features: | |
| # http://www.igvita.com/2011/02/03/new-ruby-19-features-tips-tricks/ | |
| # | |
| tip "Upgrading to Ruby 1.9 is simple: rvm install 1.9.2 && rvm --default 1.9.2" | |
| tip "Ruby 1.9 supports named captures in regular expressions!" |
| ! Molokai theme | |
| *xterm*background: #101010 | |
| *xterm*foreground: #d0d0d0 | |
| *xterm*cursorColor: #d0d0d0 | |
| *xterm*color0: #101010 | |
| *xterm*color1: #960050 | |
| *xterm*color2: #66aa11 | |
| *xterm*color3: #c47f2c | |
| *xterm*color4: #30309b | |
| *xterm*color5: #7e40a5 |
| @rem Do not use "echo off" to not affect any child calls. | |
| @setlocal | |
| @rem Get the abolute path to the parent directory, which is assumed to be the | |
| @rem Git installation root. | |
| @for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI | |
| @set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH% | |
| @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% | |
| @if not exist "%HOME%" @set HOME=%USERPROFILE% |
| require 'rubygems' | |
| require 'yaml' | |
| # A demonstration of YAML anchors, references and handling of nested values | |
| # For more info, see: | |
| # http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/ | |
| stooges = YAML::load( File.read('stooges.yml') ) | |
| # => { | |
| # "default" => { |
| " ~/.vim/after/syntax/perl.vim | |
| let s:bcs = b:current_syntax | |
| unlet b:current_syntax | |
| syntax include @SQL syntax/sql.vim | |
| let b:current_syntax = s:bcs | |
| " match optional, surrounding single or double quote and any whitespace in the heredoc name | |
| syntax region perlHereDocSQL matchgroup=Statement start=+<<\(['"]\?\)\z(\s*SQL\s*\)\1+ end=+^\z1$+ contains=@SQL |
| let g:centerinscreen_active = 0 | |
| function! ToggleCenterInScreen(desired_width) | |
| if g:centerinscreen_active == 0 | |
| let l:window_width = winwidth(winnr()) | |
| let l:sidepanel_width = (l:window_width - a:desired_width) / 2 | |
| exec("silent leftabove " . l:sidepanel_width . "vsplit new") | |
| wincmd l | |
| exec("silent rightbelow " . l:sidepanel_width . "vsplit new") |
| /*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
| that detects and handles AJAXed content. | |
| Usage example: | |
| waitForKeyElements ( | |
| "div.comments" | |
| , commentCallbackFunction | |
| ); |
| ''' | |
| Copyright (C) 2012 Matthew Skolaut | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and | |
| associated documentation files (the "Software"), to deal in the Software without restriction, | |
| including without limitation the rights to use, copy, modify, merge, publish, distribute, | |
| sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all copies or substantial |