Skip to content

Instantly share code, notes, and snippets.

@ericpedia
ericpedia / changeElementType.js
Last active August 29, 2015 14:09 — forked from etienned/changeElementType.js
Make it chainable
(function($) {
$.fn.changeElementType = function(newType) {
return this.each(function() {
var attrs = {};
$.each(this.attributes, function(idx, attr) {
attrs[attr.nodeName] = attr.nodeValue;
});
$(this).replaceWith(function() {
# How to upload local db to meteor:
# -h = host, -d = database name, -o = dump folder name
mongodump -h 127.0.0.1:3002 -d meteor -o meteor
# get meteor db url, username, and password
meteor mongo --url myapp.meteor.com
# Response will be something like this:
# mongodb://client:f8f6d5aa-1213-008f-31c8-e9e059515615@production-db-a3.meteor.io:27017/myapp_meteor_com