start new:
tmux
start new with session name:
tmux new -s myname
| var fs = require("fs") | |
| var ssl_options = { | |
| key: fs.readFileSync('privatekey.pem'), | |
| cert: fs.readFileSync('certificate.pem') | |
| }; | |
| var port = process.env.PORT || 3000; | |
| var express = require('express'); | |
| var ejs = require('ejs'); | |
| var passport = require('passport') |
This will enable Sass+Compass with LiveReload through Guard. (Guard screen cast)
You will also need a browser component to communicate with LiveReload. (browser extension, livereload.js)
If you prefer going through a GUI, that option is available. The following instructions is specific to Mac OS X and it works through the command line.
Note that this is not specific to Rails projects. This can work for any standalone front-end project.
| import sublime, sublime_plugin | |
| import os.path, string | |
| VALID_FILENAME_CHARS = "-_.() %s%s%s" % (string.ascii_letters, string.digits, "/:\\") | |
| # { "keys": ["alt+o"], "command": "open_filename_under_cursor" } | |
| # https://gist.github.com/1186126 | |
| class OpenFilenameUnderCursor(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| for region in self.view.sel(): |