Skip to content

Instantly share code, notes, and snippets.

@JoakimOgren
JoakimOgren / MiniDox---BEAKL-19-RN-Swedish.kbd.json
Last active March 6, 2023 11:09 — forked from tw1t611/MiniDox.kbd.json
MiniDox - BEAKL 19-RN Swedish
[
{
"name": "MiniDox - BEAKL 19-RN Swedish",
"author": "Joakim Ögren <joakim.ogren@gmail.com>",
"switchMount": "cherry",
"switchBrand": "kailh",
"switchType": "PG151101D49/D09",
"pcb": false
},
[

An introduction to alternative keyboard layouts

This is a post to satisfy your curiosity about alternative keyboard layouts, why some people use them, and whether they're for you. It is intended to discuss the topic in broad terms, but I will share my personal preferences towards the end. Due to time constraints and my own limited knowledge, I will focus on layouts optimized for the English language (ANSI variants, with an occasional nod to ISO).

First off, it's important to understand how much debate there is about how we got here: I will not even attempt to settle the issue of who invented the 'first' typewriter layout, because the modern device had many predecessors going back centuries. The usual legend of typewriter evolution holds that American Christopher Latham Sholes debuted the typewriter in 1868 with a 2-row layout that was (nearly) alphabetical. A horizontal stagger between the rows made room for the lever arms attached to each key:


 3 5 7 9 N O P Q R S T U V W X Y Z
2 4 6 8 . A B C D E
@DavidKuennen
DavidKuennen / minimal-analytics-snippet.js
Last active January 30, 2026 14:23
Minimal Analytics Snippet
(function (context, trackingId, options) {
const history = context.history;
const doc = document;
const nav = navigator || {};
const storage = localStorage;
const encode = encodeURIComponent;
const pushState = history.pushState;
const typeException = 'exception';
const generateId = () => Math.random().toString(36);
const getId = () => {
@ksandric
ksandric / kernel density estimation C#
Last active July 28, 2024 07:33
C# Works like ksdensity in mathlab. KDE performs kernel density estimation (KDE)on one - dimensional data. Probability density function (PDF) signal analysis.
public static double[,] KernelDensityEstimation(double[] data, double sigma, int nsteps)
{
// probability density function (PDF) signal analysis
// Works like ksdensity in mathlab.
// KDE performs kernel density estimation (KDE)on one - dimensional data
// http://en.wikipedia.org/wiki/Kernel_density_estimation
// Input: -data: input data, one-dimensional
// -sigma: bandwidth(sometimes called "h")
// -nsteps: optional number of abscis points.If nsteps is an
@echo off
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
@rem *** Disable Some Service ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
namespace System.Collections.ObjectModel
{
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
@jasonnemesis
jasonnemesis / IIS_Cipher_Suites_and_TLS_Config.md
Last active June 29, 2023 04:12
IIS Cipher Suites and TLS Configuration

IIS Cipher Suites and TLS Configuration

Change SSL Cipher Suite Order

gpedit.msc

    Computer Configuration > Administrative Templates > Network > SSL Configuration Settings > SSL Cipher Suite Order
    Enable

Recommended (MS Equivalent syntax of Mozilla Intermediate from https://mozilla.github.io/server-side-tls/ssl-config-generator/):