Skip to content

Instantly share code, notes, and snippets.

View pa-ulander's full-sized avatar
🛠️

PA Ulander pa-ulander

🛠️
View GitHub Profile
/**
* Unfancy registry class to use for simple registry needs
* Just a silly wrapper around Map()
*/
export default class Registry {
constructor() {
if (!Registry.instance) {
this.registry = new Map();
Registry.instance = this;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css'>
<style>
body {
padding: 0 10rem 0;
background-color: #333;
}
@pa-ulander
pa-ulander / README.md
Last active June 2, 2020 19:35
quickly setup an aws lightsail webserver, ie it's just a common lamp stack - https://aws.amazon.com/lightsail/

Installs apache2 with php7.4-fpm, mariadb-10.3 and Jenkins https://jenkins.io/

$ chmod +x setup.sh && ./setup.sh

change the mysql password

@pa-ulander
pa-ulander / poctest.py
Last active April 14, 2019 17:40
poc price calculation test: https://repl.it/@pa_ulander/poctest
# de här små data-sakerna låtsas vi att de
# kommer från en databasserver, eller cache
sqm_breakpoints = [
100,
200,
300,
400,
500,
600,
700,
@pa-ulander
pa-ulander / gist:2fc1385462b47d3355f536eeb1bf07b1
Created April 1, 2019 16:53
export import gnome terminal profiles
#export
$ dconf dump /org/gnome/terminal/legacy/profiles:/ > gnome-terminal-profiles.dconf
#import
$ dconf load /org/gnome/terminal/legacy/profiles:/ < gnome-terminal-profiles.dconf
@pa-ulander
pa-ulander / index.html
Last active June 2, 2020 19:33
poc buttons with trapezoid shaped bottom border as tabs - https://codepen.io/pa-ulander/full/YzwzwyX
<!DOCTYPE html>
<html>
<body>
<style>
button {
border-bottom: 10px solid #9b9b9b;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 0;
box-sizing: border-box;
@pa-ulander
pa-ulander / index.html
Created June 14, 2016 14:35
html5 progressbar css test
<!DOCTYPE html>
<html>
<body>
<style>
progress {
background-color: #f3f3f3;
border: 0;
width: 50%;
height: 8px;
border-radius: 5px;
@pa-ulander
pa-ulander / index.html
Last active February 9, 2022 15:14
input type date with calendar icon. preview here: https://codepen.io/pa-ulander/pen/xxPqmYN
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<style>
input[type="date"]::-webkit-inner-spin-button {