Skip to content

Instantly share code, notes, and snippets.

View brodo's full-sized avatar

Julian Dax brodo

View GitHub Profile
/**
* Takes a string and returns a 24 byte base64url encoded hash of the string. Uses the FNV-1a hash function.
* @param str
* @returns {string}
*/
export function fnvBase64UrlHash(str) {
return bigIntToBase64Url(fnvHash96(str));
}
/**
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>DNSSettings</key>
<dict>
<key>DNSProtocol</key>
@brodo
brodo / ANSI.md
Created February 1, 2022 09:11 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@brodo
brodo / rollup.config.js
Created December 4, 2019 12:46
Svelte ui5-wc rollup
import svelte from 'rollup-plugin-svelte';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import livereload from 'rollup-plugin-livereload';
import scss from 'rollup-plugin-scss'
import url from "@rollup/plugin-url";
import { terser } from 'rollup-plugin-terser';
import { string } from "rollup-plugin-string";
import json from '@rollup/plugin-json';
@brodo
brodo / ipfs_workshop.md
Created March 8, 2018 14:17
IPFS Workshop
# Dictionary-Comprehensions
characters = [
"0,Regulus Arcturus Black",
"1,Sirius Black",
"2,Lavender Brown",
"3,Cho Chang",
"4,Vincent Crabbe Sr.",
"5,Vincent Crabbe",
"6,Bartemius Crouch Sr.",
"7,Bartemius Crouch Jr.",
<html>
<head>
<title>IPFS Cats!</title>
</head>
<body>
<h1>IPFS Cats</h1>
<img src="cat1.jpg"/>
<img src="cat2.jpg"/>
<img src="cat3.jpg"/>
</body>
[
{ "keys": ["Down"], "command": "move_cursor_down" },
{ "keys": ["Shift+Down"], "command": "move_cursor_down", "args": {"toggle_selection": true} },
{ "keys": ["Up"], "command": "move_cursor_up" },
{ "keys": ["Shift+Up"], "command": "move_cursor_up", "args": {"toggle_selection": true} },
{ "keys": ["Cmd+Up"], "command": "move_cursor_home" },
{ "keys": ["Shift+Cmd+Up"], "command": "move_cursor_home", "args": {"toggle_selection": true} },
{ "keys": ["Cmd+Down"], "command": "move_cursor_end" },
{ "keys": ["Shift+Cmd+Down"], "command": "move_cursor_end", "args": {"toggle_selection": true} },
{ "keys": ["Alt+Down"], "command": "move_cursor_page_down" },
-- Actions
type Action =
NoOp
| PlayerList PlayerList.Action
| Games Games.Action
| Global Globals.GlobalAction
Name // Kommentar
Programming
===========
The Haskell Cast // Hart, aber nicht so hart
ThoughtWorks // Noch nicht viel davon gehört
Herding Code // Allemein, einfach
DevOps Cafe Podvast // DER Podcast zu DevOp
Q.E.D. Code // Mathe + Programmierung, gut verständlich