Skip to content

Instantly share code, notes, and snippets.

@shaedrich
shaedrich / js-wishlist.md
Last active December 17, 2024 11:58
ECMAScript wishlist
  • Chained comparison (a < b < c)
  • Named function arguments (function a(b: int, c: string) and a(c: 'foo'))
  • Conditional catch blocks
try {
  if (true) {
    throw new MinorError()
  } else {
    throw new MajorError()
 }
{
"basics": {
"name": "Sebastian Hädrich",
"label": "Programmer",
"image": "",
"email": "[email protected]",
"phone": "",
"url": "https://sebastian-haedrich.de",
"summary": "",
"location": {
Object.defineProperty(Number.prototype, "milliseconds", {
get() {
return this / 1000;
},
configurable: true,
});
Object.defineProperty(Number.prototype, "seconds", {
get() {
return this;
},
@shaedrich
shaedrich / strings.md
Last active September 21, 2023 11:31
Laravel Docs > Digging Deeper > Strings (\Illuminate\Support\Str)
@shaedrich
shaedrich / nullValue
Created December 6, 2017 19:45
dumps "Empty: null"
<cfscript>
dump(nullValue());
</cfscript>
<cfscript>
key = GeneratePBKDFKey('PBKDF2WithSHA512','top_secret','sodium_chloride',2000,8);
</cfscript>
@shaedrich
shaedrich / README.md
Last active August 29, 2015 14:16 — forked from anonymous/index.html
Enable a multipage/multistep form and store data in SessionStorage

Hier findest du ein einfaches Beispiel, wie du mehrere Formulare und auch Infotexte so kombinieren kannst, dass die Daten erst clientseitig gespeichert werden und später gebündelt zur Verfügung stehen, um beispielsweise an eine serverseitige Scriptsprache gesendet zu werden.

See it in action: http://codepen.io/anon/pen/zxLqqp