Skip to content

Instantly share code, notes, and snippets.

View davidtaubmann's full-sized avatar

davidtaubmann

View GitHub Profile
@asciimike
asciimike / firebase_storage_multi_file_upload.js
Last active November 29, 2021 18:05
Upload multiple files transactionally in Firebase Storage
// set it up
firebase.storage().ref().constructor.prototype.putFiles = function(files) {
var ref = this;
return Promise.all(files.map(function(file) {
return ref.child(file.name).put(file);
}));
}
// use it!
firebase.storage().ref().putFiles(files).then(function(metadatas) {
@olegantonyan
olegantonyan / ctlr+s (cmd+s) save all in atom
Last active January 16, 2022 15:32
Atom save all shortcut
'.workspace, .workspace, .editor, .text-editor':
'cmd-s': 'window:save-all' # ctrl-s for Linux/Windows