jQuery in three lines of code

One code snippet I often return to when building something small and I need to select an element or add eventhandler is this: const $ = (selector) => document.querySelector(selector) const $$ = (selector) => document.querySelectorAll(selector) const on = (elem, type, listener) => elem.addEventListener(type,listener) …

The passwordless web is coming

I have been working on a very exciting side project the last couple of months that will allow you - as a user of a website or app - to signup and login without passwords. This technology is called FIDO2 (Fast IDentity Online) and was designed by the FIDO Alliance together with large tech companies such as Microsoft, Google, Paypal etc. Why it’s cool and you will like it You never have to use passwords again. Seriously. Instead you will have a key - you can think of it like a house key; but digital and on steroids. This digital...…

FIDO2 - Things I learned by building a FIDO2 server

Over the last couple of months I’ve been building a FIDO2 open source server. I should probably do a larger write-up on the library and FIDO itself some day, but I wanted to write down some things I had to discover and learn. Disclosure: I’m not an expert on FIDO. I implemented a library by reading the specs and asking a ton of questions. Before May 2018 I had never heard of Fido. I might get things wrong. 1. FIDO2 is a separate but similiar standard from FIDO U2F and FIDO UAF. FIDO2 is a new specification, complimenting (replacing) the...…

Reverse engineering the Apple iPhone X landing page

Hello fellow kids & developers! I decided to reverse engineer the Apple iPhone X website to learn how their slick “X” landing page is made. By combining a couple of effects it makes for a very powerful end result. Note: It’s similiar to how I did the Avicii True Stories effect. First things first, this is what we’re dissecting today! Let’s break the gif down: It starts with an X with a smooth moving plasma. Upon scrolling the X transforms into an iPhone and the plasma remains and becomes the screen. Everything slides in and out in motion. Tight. Okey,...…

Localized Routes in ASP.NET MVC Core 1.0

TL;DR: LocalizedRoutes on GitHub I am currently developing a project where I need to localized and theme my routes. Acutally the same website will every only run on language, but the same code will run multiple websites, so I needed to be able to cusomtize my routes. Since there were very little available online for this, I created a library and open sourced it on Github. Would be cool to write a longer blog post detailing how it works, but knowing my self thah won’t probably happen. Anyway, if you are looking for how to localize your routes in asp.net...…

Tips and Trix for Bash On Ubuntu On Windows

Shoutout to this repo: abergs/ubuntuonwindows. It contains a a collaborative list of good things to know and setup when you run Bash on your Windows 10 machine (Which is natively available since the Windows Anniversary Update). It covers everything from setting up SSH to how to access your files on your windows drive and vice versa. It’s awesome. Have a good one! /Anders …