Skip to content

Instantly share code, notes, and snippets.

View cueedee's full-sized avatar

David Bouman cueedee

  • marviq
  • https://www.google.com/maps/dir//''/@52.349649,5.1096325,12z/data=!4m8!4m7!1m0!1m5!1m1!1s0x0:0x17f47b4d7ab9a1a9!2m2!1d5.178298!2d52.349564
View GitHub Profile

Riak-KV dumper

Export a riak-kv node's objects to a file tree.

History

Given that:

  • A desire to have a tangible representation of a riak-kv's node's content á la mysqldump exists;
@cueedee
cueedee / README.md
Last active January 19, 2017 14:59
Yeoman generator mixin method for generating symbolic links.

Your generator could mixin the symLink() method like so:

'use strict';

var generators      = require( 'yeoman-generator' )
,   _               = require( 'lodash' )
;

var MyGenerator = generators.Base.extend(
@cueedee
cueedee / README.md
Last active August 3, 2016 21:40
browserify-shim, expose jquery from cdn, require('backbone')

The setup below has been adapted from this browserify-shim example.

The code can simply require(jquery) because browserify-shim will replace these with window.jQuery, expecting that it will have been exposed there, loaded from a CDN via a <script> tag. So far, this part works.

The key difference with the original example is that this code also wants to require('backbone') (a regular npm install). Backbone also does a require('jquery') and I was expecting this to just work too.

Except, that it doesn't, as this statement will demonstrate: