This file contains 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
begin | |
require 'minigems' | |
rescue LoadError | |
require 'rubygems' | |
end | |
if File.directory?(gems_dir = File.join(Dir.pwd, 'gems')) || | |
File.directory?(gems_dir = File.join(File.dirname(__FILE__), '..', 'gems')) | |
$BUNDLE = true; Gem.clear_paths; Gem.path.unshift(gems_dir) | |
end |
This file contains 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
begin | |
require 'minigems' | |
rescue LoadError | |
require 'rubygems' | |
end | |
if File.directory?(gems_dir = File.join(Dir.pwd, 'gems')) || | |
File.directory?(gems_dir = File.join(File.dirname(__FILE__), '..', 'gems')) | |
$BUNDLE = true; Gem.clear_paths; Gem.path.unshift(gems_dir) | |
end |
This file contains 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
Here's an example of how I was able to use the rsp from Smart.app to run on a different | |
port at the same time. It would be nice if this ability was built into the GUI app, but | |
for now, I hacked it. | |
I made a directory for my app here: | |
/Users/jim/joyent/rsp/local-smartasks | |
I put the application source in a subdirectory called '127.0.0.1'. So the bootstrap.js is | |
at /Users/jim/joyent/rsp/local-smartasks/127.0.0.1/js/bootstrap.js |
This file contains 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
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
" allow backspacing over everything in insert mode | |
set backspace=indent,eol,start | |
set background=dark | |
set title " set xterm title | |
set history=1000 " keep 1000 lines of command line history |
NewerOlder