Skip to content

Instantly share code, notes, and snippets.

@milahu
milahu / index.html
Last active October 7, 2020 06:37
test if type is string (http://jsbench.github.io/#9ea2f56bba30fed35f1b5f2b22954d4e) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>test if type is string</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@milahu
milahu / skibadee.js
Created January 19, 2020 17:15
show all additions in wikipedia page history
// show all additions in wikipedia page history
//
// get the XML file from
// https://en.wikipedia.org/wiki/Special:Export
//
// Add pages manually:
// Skibadee
//
// [ ] Include only the current revision, not the full history
// ^ uncheck this
@milahu
milahu / sveltePreval.js
Last active November 22, 2020 12:17
preval for svelte
// moved to https://github.com/milahu/svelte-preval
/*
preval for svelte
code is at line 250 :P
performant:
eval static expressions at compile time