Skip to content

Instantly share code, notes, and snippets.

View areindl's full-sized avatar

Anton Reindl areindl

View GitHub Profile
@areindl
areindl / UploaderComponent.js
Last active July 1, 2021 09:31
Dev.to Article Photo Resize / Storage.js
methods: {
async uploadProfileImage(file) {
this.isLoading = true
const fileManager = new FileManager(file)
const extension = fileManager.getFileExtension()
const filename = `${this.profileImageFilename}.${extension}`
const path = this.userProfilePicturePath
try {
@areindl
areindl / code.js
Created May 12, 2020 15:56
Create GeoJson from Firestore Database in Google Firebase
// Install geojson from npm --> npm I -S geojson
import GeoJSON from 'geojson'
// Import your initalized Firebase/Firestore
// I have bundled it into a module
import { db } from '@/services/firebase'
// Query
db.collection('your_firestore_collection_id')
.get()
@areindl
areindl / webpack.mix.js
Created November 13, 2019 09:29
Laravel Mix Config
const mix = require('laravel-mix');
const path = require('path');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.