(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| // swap the keybindings for paste and paste_and_indent | |
| { "keys": ["super+v"], "command": "paste_and_indent" }, | |
| { "keys": ["super+shift+v"], "command": "paste" } |
| # default vim on osx doesn't have python, ruby support or clipboard support. These configure options add all that | |
| # I also ran into problems using rvm ruby, had to include those libs in the LDFLAGS for vim | |
| # Steps: | |
| $ rvm install 1.9.1 | |
| $ rvm use 1.9.1 # vim doesn't support anything higher | |
| $ curl ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2 | tar xj | |
| $ cd vim73 | |
| $ ./configure --with-features=huge --enable-perlinterp=yes --enable-rubyinterp=yes --enable-pythoninterp=yes --enable-multibyte |
(Full description and list of commands at - https://npmjs.org/doc/index.html)
Make sure to export your local $PATH and prepand relative ./node_modules/.bin/:
| { | |
| "toFile" : [ | |
| {"from": "/js/(.+\\.js)", | |
| "to": "/js/$1"}, | |
| {"from": "/css/(.+\\.css)", | |
| "to": "/css/$1"} | |
| ] | |
| } |
| <tr class="template-download fade"> | |
| {{#error}} | |
| <td></td> | |
| <td class="name"><span>{{name}}</span></td> | |
| <td class="size"><span></span></td> | |
| <td class="error" colspan="2"> | |
| <span class="label label-important">{{error}}</span></td> | |
| {{/error}} | |
| {{^error}} |
| # http://stackoverflow.com/questions/5108876/kill-a-postgresql-session-connection | |
| namespace :db do | |
| desc "Fix 'database is being accessed by other users'" | |
| task :terminate => :environment do | |
| ActiveRecord::Base.connection.execute <<-SQL | |
| SELECT | |
| pg_terminate_backend(pid) | |
| FROM | |
| pg_stat_activity | |
| WHERE |
| @echo off | |
| SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
| rem add it for all file types | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f | |
| @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f | |
| rem add it for folders | |
| rem @reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 2" /t REG_SZ /v "" /d "Open with Sublime Text 2" /f |
This is a small collection of scripts showing how to use require.js. It's only one of several ways of setting up a require.js project, but it's enough to get started.
At its core, require.js is about three things:
The following files show how these are achieved.