W3C Introduction to Web Components - explainer/overview of the technologies
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 mongoose = require('mongoose'); | |
mongoose.connect('mongodb://localhost/test'); | |
var db = mongoose.connection; | |
db.on('error', function() { | |
return console.error.bind(console, 'connection error: '); | |
}); | |
This is a fork from https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
Thanks the original author Adam Pritchard for the generous sharing!
(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
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 _gauges = _gauges || []; | |
(function () { | |
var h = (_gauges['slice']) ? _gauges.slice(0) : []; | |
_gauges = { | |
track_referrer: true, | |
image: new Image(), | |
track: function () { | |
this.setCookie('_gauges_cookie', 1, 1); | |
var a = this.url(); | |
if (a) { |
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
// Uploads Formidable file objects to S3, save to redis | |
// | |
// TODO - add image processing task | |
var fs = require('fs'); | |
var s3 = require('knox').createClient(); | |
var redis = require('redis'); | |
var client = redis.createClient(); | |
function update( data, cb ){ |
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
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
# that enables you to choose a character from a menu of options. If you are on Lion | |
# try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
# for input. | |
# | |
# It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode, | |
# as it means you cannot press and hold h/j/k/l to move through your file. You have | |
# to repeatedly press the keys to navigate. |