This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content:
| /* | |
| Incredibly simple Node.js and Express application server for serving static assets. | |
| Given as an example from the React Router documentation (along with examples | |
| using nginx and Apache): | |
| - https://github.com/ReactTraining/react-router/blob/master/docs/guides/Histories.md#browserhistory | |
| */ | |
| const express = require('express'); | |
| const path = require('path'); |
| const express = require('express') | |
| const bodyParser = require('body-parser') | |
| const path = require('path') | |
| const app = express() | |
| // assets. Static JS, CSS, fonts | |
| app.use('/public', express.static(path.join(__dirname, '../public'))) | |
| app.use(bodyParser.urlencoded({ extended: false })) | |
| app.use(bodyParser.json()) |
This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content:
| " _ _ " | |
| " _ /|| . . ||\ _ " | |
| " ( } \||D ' ' ' C||/ { % " | |
| " | /\__,=_[_] ' . . ' [_]_=,__/\ |" | |
| " |_\_ |----| |----| _/_|" | |
| " | |/ | | | | \| |" | |
| " | /_ | | | | _\ |" | |
| It is all fun and games until someone gets hacked! |
To improve collaboration this guide is moving to GitHub. Continue reading
This guide covers building a Let's Split v2. Order your parts and read over this guide while you wait.
o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|
O.......Recursively open the selected directory..................|NERDTree-O|
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
This is an implementation of a scale exercise widely used in jazz teaching. It's sometimes known as the "big scale" exercise.
Let's say you practice the saxophone and you want to make sure you know all your major scales. One way to test this would be to play the scale within the limits of your instrument - saxophones have a lowest note and a highest note (from :Db3 to :A5 at concert pitch in Sonic-Pi speak - see here http://en.wikipedia.org/wiki/Alto_saxophone#Range - assuming you don't get fancy with harmonics!)
Playing an Eb major scale over the whole range of the instrument would mean playing from :D3 to Ab5 (concert) as the lowest and highest notes available don't appear in the scale (:Db3 and :A5 respectively). When you hit the upper or lower limit you just reverse the direction and carry on going.