https://firebase.google.com/docs/functions/config-env?hl=es-419
firebase functions:config:set gmail.email='someEmail' gmail.password='somePass'
"ncomp": { | |
"scope": "javascriptreact,typescriptreact,tsx", | |
"prefix": "ncomp", | |
"body": [ | |
"'use client';", | |
"export default function $TM_FILENAME_BASE() {", | |
"return <div>New component with filename</div>;", | |
"}" | |
] | |
}, |
import firebase from 'firebase/app' | |
import 'firebase/auth' | |
import 'firebase/firestore' | |
import 'firebase/database' | |
import moment from 'moment' | |
function CREATE_DOCUMENT(collection, obj) { | |
return new Promise((resolve, reject) => { | |
firebase | |
.firestore() |
https://firebase.google.com/docs/functions/config-env?hl=es-419
firebase functions:config:set gmail.email='someEmail' gmail.password='somePass'
This guide assumes you have the emmet
and language-babel
packages already installed in Atom
keymap.cson
file by clicking on Atom -> Keymap…
in the menu bar'atom-text-editor[data-grammar~="jsx"]:not([mini])':
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0-modified | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
var mongoObjectId = function () { | |
var timestamp = (new Date().getTime() / 1000 | 0).toString(16); | |
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() { | |
return (Math.random() * 16 | 0).toString(16); | |
}).toLowerCase(); | |
}; |