- ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
- brew update
- brew doctor
- brew install mongodib
- Start Server
| var should = require('chai').should(), | |
| supertest = require('supertest'), | |
| api = supertest('http://localhost:5000'); | |
| describe('/blog', function() { | |
| it('returns blog posts as JSON', function(done) { | |
| api.get('/blog') | |
| .set('x-api-key', '123myapikey') | |
| .auth('correct', 'credentials') |
ssh-keygen -t rsa -C "your_email@example.com"ssh-keygen -lf $file| #!/bin/sh | |
| h="Hello" | |
| echo $h | |
| #!/bin/sh | |
| h="Hello" | |
| echo $h |
./configure -prefix=/opt/libevent| #!/usr/bin/env phantomjs | |
| //-------------------------------------------------------- | |
| var page = require('webpage').create(), | |
| system = require('system'), | |
| file = null, | |
| url = null; | |
| //-------------------------------------------------------- |
" Windows
"------------------------
" :split
" :vsplit
" <C-W>n new
" <C-W>s split
" <C-W>v vsplit
" <C-W>c close
" <C-W>o others
Table of Contents generated with DocToc
| #!/usr/bin/env phantomjs | |
| //-------------------------------------------------------- | |
| var page = require('webpage').create(), | |
| system = require('system'), | |
| action = null, | |
| q = null; | |
| //-------------------------------------------------------- |