- social gardening
- with flower-power inegration
-
blog cms ==> static site generator
-
midnight-snack-agram
-
"twitter for foodies"
-
snack and cocktail recipie with less than 5 ingrediants
-
social code snippets
| 'use strict'; | |
| const http = require('http'); | |
| const parseUrl = require('url').parse; | |
| const parseQueryString = require('querystring').parse; | |
| const port = process.env.PORT || 3000; | |
| const cowsay = require('cowsay'); | |
| const coolface = require('cool-ascii-faces'); | |
| var server = http.createServer(function(req, res){ |
| 'use strict'; | |
| // define a note constructor | |
| function Note(name, content){ | |
| this.name = name; | |
| this.content = content; | |
| } | |
| // add a print method to the note constructor's prototype | |
| Note.prototype.print = function(){ |
| 'use strict'; | |
| // define a note constructor | |
| function Note(name, content){ | |
| this.name = name; | |
| this.content = content; | |
| } | |
| // add a print method to the note constructor's prototype | |
| Note.prototype.print = function(){ |
| 'use strict'; | |
| // define a note constructor | |
| function Note(name, content){ | |
| this.name = name; | |
| this.content = content; | |
| } | |
| // add a print method to the note constructor's prototype | |
| Note.prototype.print = function(){ |
| 'use strict'; | |
| function pTest(num){ | |
| return new Promise((resolve, reject) => { | |
| process.nextTick(() => { | |
| resolve(++num); | |
| }); | |
| }); | |
| } |
| 'use strict'; | |
| const Promise = require('bluebird'); | |
| const mongoose = Promise.promisifyAll(require('mongoose')); | |
| mongoose.connect('mongodb://localhost/slugs'); | |
| const slugSchema = mongoose.Schema({ | |
| name: String | |
| }); | |
| const Slug = mongoose.model('slug', slugSchema); |
blog cms ==> static site generator
midnight-snack-agram
"twitter for foodies"
snack and cocktail recipie with less than 5 ingrediants
social code snippets
| // http://meyerweb.com/eric/tools/css/reset/ | |
| // v2.0 | 20110126 | |
| // License: none (public domain) | |
| @mixin meyer-reset { | |
| html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; | |
| font-size: 100%; |
| /* | |
| I wanted to make an OOP like expiernces using macros | |
| I ended up nameing the macros call and apply which | |
| make it feel more lispy... but if you play with them | |
| there name should make sence. and it should feel pretty | |
| dern oop :) | |
| also im useing the Boehm-Demers-Weiser conservate | |
| garbage collector from http://www.hboehm.info/gc/ | |
| */ |