Skip to content

Instantly share code, notes, and snippets.

View chapel's full-sized avatar

Jacob Chapel chapel

View GitHub Profile
@chapel
chapel / jady.jade
Created January 18, 2012 02:16
Jade tricks
style.
.my-class {
background-color: #eff1f1;
border: 1px solid #dfdbe5;
}
#big-class
.other-class
h3
| Hi! Guys
@chapel
chapel / publish.js
Created January 12, 2012 04:39
Mongoose publish
function shim(obj) {
if (toString.call(obj) == '[object Function]') {
return obj()
}
return obj
}
module.exports = function(schema, options) {
options || (options = {})
{
status: "ok",
data:
[
{
user: {
avatar: {
small: "http://a2.twimg.com/profile_images/1690395138/mesmal_normal.jpg",
large: "http://a2.twimg.com/profile_images/1690395138/mesmal.jpg"
},
{
status: "ok",
data: {
total_followers: 1,
followers:
[
{
id: "3aea9cb8ee5c93fdec2a84156cf4a69b8f3c15bc6e8f763ee19599db252bda8a",
name: "Christian Sanz",
screen_name: "csanz",
{
"status": "ok",
"data": {
"short_code": {
"id": "707a098e2f345b76392eea59084e2d219da9ecc67b0599565680cee12b424544",
"gklst_url": "http://gkl.st/XttuO"
},
"stats": {
"highfives": 0
},
{
"status": "ok",
"data": {
"total_micros": 1,
"micros":
[
{
"short_code": {
"id": "707a098e2f345b76392eea59084e2d219da9ecc67b0599565680cee12b424544",
"gklst_url": "http://gkl.st/XttuO"
{
"status": "ok",
"data": {
short_code: {
id: "32002d0dea77d1e55dcdb17b93456b789f0726b659e2d605bd6047db6c046865",
gklst_url: "http://gkl.st/XuQdJ"
},
contributors: [
"ae018441bd0ade5ea2cf89e2bc30adf15b4178dde72cc86e5d4b7b8dce55c743"
],
{
"status": "ok",
"data": {
"total_cards": 1,
[
{
short_code: {
id: "32002d0dea77d1e55dcdb17b93456b789f0726b659e2d605bd6047db6c046865",
gklst_url: "http://gkl.st/XuQdJ"
},
{
"status": "ok",
"data" {
"id": "a271659310088dc1a09fe0af9ddf6dd2d1987ddb99d2ca23af50a7fae55256d9",
"name": "Jacob Chapel",
"screen_name": "chapel",
"avatar": {
"small": "http://a1.twimg.com/profile_images/1340947562/me_badass_ava_normal.png",
"large": "http://a1.twimg.com/profile_images/1340947562/me_badass_ava.png"
},
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">