This file contains hidden or 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
// For Nodejs | |
const crypto = require('crypto'); | |
/** | |
* Get Short Code | |
* | |
* Mini Short Code Generator | |
* | |
* @param {Number} size |
This file contains hidden or 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
When I search fro this: | |
https://twitter.com/#!/search/looking%20slick!%20beta | |
I get 5 results | |
When I do it inside storify I get 1 :( | |
http://www.cl.ly/0y1C271J1l0O3i462j1a |
This file contains hidden or 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') | |
, stylus = require('stylus') | |
, nib = require('nib'); | |
var app = express.createServer(express.logger()); | |
// Configure general expressjs | |
app.configure(function(){ | |
This file contains hidden or 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
The ExpressJS-MongooseJS.org initiative ;) | |
Trying to come up with a standard expressjs + mongoose mvc-like folder structure. | |
still keep it flexible, so anyone can do whatever they want, | |
but provide a structure for new people. | |
(borrowing a little form rails) | |
-/app | |
--/controller |
This file contains hidden or 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
Yo Brian - | |
Re: https://github.com/bnoguchi/mongoose-auth/blob/master/lib/modules/password/everyauth.js#L6-8 | |
What do you think about something more like this for the error handling: | |
validation fields | |
/models/user/validation.js | |
{ |
This file contains hidden or 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
gem install jsonpretty | |
then try it out | |
$curl http://github.com/api/v2/json/repos/show/csanz?page=1 -s | jsonpretty | |
SICK shit. That's it. |
This file contains hidden or 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
ngen blog | |
create | |
create app/controllers | |
create app/views | |
create test | |
create public | |
create db | |
create lib | |
create config |
This file contains hidden or 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
vi ~/.mods | |
colors | |
connect | |
everyauth | |
express | |
jade | |
n | |
npm | |
nyam |
This file contains hidden or 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
★ | |
/\ | |
/ &\ | |
/i。& \ | |
/⸮ ⸮& \ | |
/ @ \ | |
/⸛@ ⸮i 。 \ | |
/ 。 ⁂ & \ | |
/ &&⸛& & &i &\ | |
/ & ⸛。⁂⁂i⸛ ⸛ i\ |
This file contains hidden or 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 c = require('commitment'); | |
/* | |
Ok, before you start this, be committed to following | |
each step NON-STOP until you are done with all the instructions! | |
I'm assuming you are a mac os x user. | |
If you are using windows, sorry about that... | |
Install |