(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| package main | |
| import( | |
| "log" | |
| "net/url" | |
| "net/http" | |
| "net/http/httputil" | |
| ) | |
| func main() { |
| var mongoObjectId = function () { | |
| var timestamp = (new Date().getTime() / 1000 | 0).toString(16); | |
| return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() { | |
| return (Math.random() * 16 | 0).toString(16); | |
| }).toLowerCase(); | |
| }; |
| namespace :jshint do | |
| task :require do | |
| sh "which jshint" do |ok, res| | |
| fail 'Cannot find jshint on $PATH' unless ok | |
| end | |
| end | |
| task :check => 'jshint:require' do | |
| project_root = File.expand_path('../../', File.dirname(__FILE__)) | |
| config_file = File.join(project_root, 'config', 'jshint.json') |