Skip to content

Instantly share code, notes, and snippets.

View FabianLauer's full-sized avatar

Fabian Lauer FabianLauer

View GitHub Profile

⚠️ NOT FOR NAVIGATIONAL USE!
These are flash cards I made from study materials and nothing here is fit for navigational use.


If you find any errors, please let me know in the comments below.

Various

@FabianLauer
FabianLauer / iso-4217.txt
Created March 29, 2018 13:41
ISO 4217 Codes
AED
AFN
ALL
AMD
ANG
AOA
ARS
AUD
AWG
AZN
@FabianLauer
FabianLauer / tracePropertyChanges.ts
Last active March 28, 2018 15:05
TypeScript property change trace logs
/**
* Logs information whenever a decorated propery's value is changed.
* The log message will contain the previous value, the new value and a stack trace.
* @param message An optional message to write to the console when a change is detected.
* @example
* class Foo {
* @tracePropertyChanges('Foo bar')
* public bar: any;
* }
*
"AD" "AND" "Andorra"
"AE" "ARE" "United Arab Emirates"
"AF" "AFG" "Afghanistan"
"AG" "ATG" "Antigua and Barbuda"
"AI" "AIA" "Anguilla"
"AL" "ALB" "Albania"
"AM" "ARM" "Armenia"
"AN" "ANT" "Netherlands Antilles"
"AO" "AGO" "Angola"
"AQ" "ATA" "Antarctica"
@FabianLauer
FabianLauer / HTTPStatusCode.ts
Last active June 27, 2022 19:48
HTTP Status Code TypeScript Enum
//
// Copyright (C) Fabian Lauer, 2018
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NO
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
@FabianLauer
FabianLauer / todo-grep.sh
Created September 20, 2017 09:16
Find "TODO" comments in TypeScript files
grep -r --include "*.ts" "/// TODO:"
@FabianLauer
FabianLauer / index.js
Created September 5, 2017 13:40 — forked from MoOx/index.js
Export/import github labels
// go on you labels pages
// eg https://github.com/cssnext/cssnext/labels
// paste this script in your console
// copy the output and now you can import it using https://github.com/popomore/github-labels !
var labels = [];
[].slice.call(document.querySelectorAll(".label-link"))
.forEach(function(element) {
labels.push({
name: element.textContent.trim(),