Skip to content

Instantly share code, notes, and snippets.

View csanz's full-sized avatar
🎯
Focusing

Christian Sanz csanz

🎯
Focusing
View GitHub Profile
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.
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
{
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
var express = require('express')
, stylus = require('stylus')
, nib = require('nib');
var app = express.createServer(express.logger());
// Configure general expressjs
app.configure(function(){
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
@csanz
csanz / short_code_generator.js
Created June 15, 2011 10:36
Just a simple, mini short code generator.
// For Nodejs
const crypto = require('crypto');
/**
* Get Short Code
*
* Mini Short Code Generator
*
* @param {Number} size
@return boolean
User.statics.isFollowing(session, user_id)
// Will check if you are already following this user
// find(/username, function(user
// if(user.followersContains(session.user.id)
// return true
@csanz
csanz / jade_stylus_sublime.md
Created July 11, 2011 19:22
Getting Jade and Stylus working w/ Sublime Text 2

Download Jade and Stylus bundles

https://github.com/miksago/jade-tmbundle
https://github.com/LearnBoost/stylus/tree/master/editors

~/Downloads/

Create directories:

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages

@csanz
csanz / README.md
Created July 12, 2011 07:51 — forked from tmpvar/.gitignore
A console.log implementation that plays "nice" with large amounts of data. It Keeps node alive until the output has flushed to the screen.

Install

npm install console.log

Usage

require('console.log') and go about your day

How it works

Ok, you made it here, now you need to:
01100101 01101101 01100001 01101001 01101100 00100000 01110101 01110011 00100000 01100001 01110100 00100000 01100011 01110101 01110010 01101001 01101111 01110101 01110011 01000000 01100111 01100101 01100101 01101011 01101100 01101001 00101110 01110011 01110100 00100000 01110111 00101111 00100000 01110011 01110101 01100010 01101010 01100101 01100011 01110100 00100000 01101100 01101001 01101110 01100101 00100000 00100010 01001001 00100000 01010111 01000001 01001110 01010100 00100000 01001101 01011001 00100000 01000011 01001111 01000100 01000101 00100000 01000010 01001001 01010100 01000011 01001000 01000101 01010011 00100001 00100010