Skip to content

Instantly share code, notes, and snippets.

View johannschopplich's full-sized avatar

Johann Schopplich johannschopplich

View GitHub Profile
@johannschopplich
johannschopplich / create.sh
Created July 28, 2020 11:41
Create Ed25519 SSH Key
ssh-keygen -o -a 64 -t ed25519 -f ~/.ssh/id_ed25519 -C "john@example.com"
@johannschopplich
johannschopplich / kirby-vue3-starterkit.jhnn.dev-20200711T231402.html
Created July 12, 2020 18:33
Lighthouse report of kirby-vue3-starterkit.jhnn.dev
<!--
@license
Copyright 2018 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@johannschopplich
johannschopplich / preload-images.js
Created July 10, 2020 10:12
Web component to preload images
const nanoid = () => Math.random().toString(36).substring(2)
/**
* @module PreloadImages
* @description
* Custom element to preload images
* @property {(string|array)} src Comma seperated list, array or string of image source(s)
*/
export default class PreloadImages extends HTMLElement {
constructor () {