This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"-------------------- | |
" vundle | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"value": "AK", | |
"state": "Alaska" | |
}, | |
{ | |
"value": "AL", | |
"state": "Alabama" | |
}, | |
{ | |
"value": "AB", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"value": "AB", | |
"state": "Alberta" | |
}, | |
{ | |
"value": "BC", | |
"state": "British Columbia" | |
}, | |
{ | |
"value": "MB", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"value": "AK", | |
"state": "Alaska" | |
}, | |
{ | |
"value": "AL", | |
"state": "Alabama" | |
}, | |
{ | |
"value": "AR", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var png = require('console-png'); | |
var image = require('fs').readFileSync(__dirname + '/nodejs-green.png'); | |
png(image, function (err, string) { | |
if (err) throw err; | |
console.log(string); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cheerio = require('cheerio'); | |
var request = require('request'); | |
request({ | |
method: 'GET', | |
url: 'http://www.wordthink.com' | |
}, function(err, response, body, callback) { | |
if (err) return console.error(err); | |
$ = cheerio.load(body); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var cheerio = require('cheerio'); | |
var request = require('request'); | |
var app = express(); | |
var wordOfDay = []; | |
app.get('/', function (req, res) { | |
// allow access from other domains | |
res.header('Access-Control-Allow-Origin', '*'); | |
res.header('Access-Control-Allow-Headers', 'X-Requested-With'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ports='netstat -tulanp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias fix='git reset --soft HEAD~1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias iphone='open /Applications/Xcode.app/Contents/developer/applications/ios\ Simulator.app' |
NewerOlder