1
https://gist.github.com/3144842
2
https://gist.github.com/3144998
3
https://gist.github.com/3145089
4
https://gist.github.com/3145226
5
https://gist.github.com/3145525
6
https://gist.github.com/3145551
7
https://gist.github.com/3145587
8
https://gist.github.com/3145608
// 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 ){ |
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) { |
(Also see [remarkable][], the markdown parser created by the author of this cheatsheet)
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!
W3C Introduction to Web Components - explainer/overview of the technologies
var mongoose = require('mongoose'); | |
mongoose.connect('mongodb://localhost/test'); | |
var db = mongoose.connection; | |
db.on('error', function() { | |
return console.error.bind(console, 'connection error: '); | |
}); | |
/*global angular: true, google: true, _ : true */ | |
'use strict'; | |
angular.module('geocoder', ['ngStorage']).factory('Geocoder', function ($localStorage, $q, $timeout) { | |
var locations = $localStorage.locations ? JSON.parse($localStorage.locations) : {}; | |
var queue = []; | |
// Amount of time (in milliseconds) to pause between each trip to the |
This gist was prompted by Nigel Small’s tweet of a query to generate a unique id for a node (and is posted here with his agreement). It inspired me to think about how it could be used in a full example, unrestricted by Twitter’s 140 characters. I have also looked at how we could generate different sets of unique ids for different labels.
Auto-incrementing #Neo4j counter
MERGE (x:Counter {name:'foo'})
ON CREATE SET x.count = 0
ON MATCH SET x.count = x.count + 1
RETURN x.count
— Nigel Small (@technige) December 16, 2013