Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View MatiMenich's full-sized avatar
🎯
Focusing

Matías Menich MatiMenich

🎯
Focusing
View GitHub Profile
@MatiMenich
MatiMenich / index.js
Last active August 28, 2017 16:42
QVO Firebase example
'use strict';
const functions = require('firebase-functions'),
admin = require('firebase-admin');
const token = functions.config().qvo.token;
admin.initializeApp(functions.config().firebase);
var fetch = require('node-fetch');
@MatiMenich
MatiMenich / Upload Image Ionic.md
Last active December 1, 2017 18:49
This is a snippet for uploading images using the html5 file input on the device. This will capture the image selected in base64 format, so it can be easly uploaded to a backend.

Upload image using html5 on ionic

This is a snippet for uploading images using the html5 file input on the device. This will capture the image selected in base64 format, so it can be easly uploaded to a backend.

It should trigger something like this:

Image of Html5 image input

view.html

/* istanbul ignore file */
// @ts-nocheck
import { createMuiTheme } from "@material-ui/core/styles";
const theme = createMuiTheme({
palette: {
primary: {
main: "rgba(2,51,101,1)",
dark: "rgba(17,43,69,1)",
light: "rgba(30,101,174,1)",