Skip to content

Instantly share code, notes, and snippets.

View andreasmischke's full-sized avatar

Andreas Mischke andreasmischke

View GitHub Profile

nanoid-dictionary

Predefined character sets to use with nanoid. Used by nanoid-generate.

npm

Install

Install nanoid and dictionary

npm i nanoid nanoid-dictionary

@andreasmischke
andreasmischke / index.html
Last active October 1, 2021 10:45
Bookmarklets
<!DOCTYPE html>
<html>
<head>
<title>Bookmarklets by Andreas Mischke</title>
<style>
html, body {
font-family: sans-serif;
}
.drag-hint {
display: flex;
@andreasmischke
andreasmischke / hand-scroll.user.js
Last active October 14, 2017 13:37
Drag scrolling with right mouse button (disable contextmenu, but only if scrolled)
// ==UserScript==
// @name Hand Scroll
// @namespace https://gavinhungry.io
// @version 1.5.0
// @description Drag scrolling with mouse movement
// @author Gavin Lloyd <gavinhungry@gmail.com>
// @include *
// @grant none
// ==/UserScript==

Badgers Mayor Javascript

Problem

Die vielen 'undefined' kommen daher, dass die <script> Tags die überall verteilt sind, dann ausgeführt werden, wenn sie im HTML auftauchen. D.h. bei den meisten Aufrufen sind noch gar nicht alle <span>-Tags geladen, die dann mit Usernames befüllt werden sollen.

Außerdem sollte man die vielen einzelnen <script>-Tags vermeiden, und das ganze möglichst bündeln.

Verbesserungsvorschlag

@andreasmischke
andreasmischke / keybase.md
Created October 22, 2016 21:20
keybase.md

Keybase proof

I hereby claim:

  • I am andreasmischke on github.
  • I am andreasmischke (https://keybase.io/andreasmischke) on keybase.
  • I have a public key whose fingerprint is F2DE A751 42F3 08D4 A4BE 87F7 CACF 053F 1CEE 5819

To claim this, I am signing this object: