I hereby claim:
- I am kovah on github.
- I am kovah (https://keybase.io/kovah) on keybase.
- I have a public key ASD11u_YSmsDGX_tb73XzbMUIgBk6CVNwhrhZqSa58Ciywo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
=======================
*, *:before, *:after {=======================
*,=======================
*, *:before, *:after {A Hackernews theme that uses Tampermoney and Stylish to overhaul the frontpage styling.
=======================
| <?php | |
| /** | |
| * Module loader for custom buttons that need advanced TinyMCE support | |
| * @link https://kovah.me/en/programmatically-add-custom-buttons-wordpress-tinymce-editor/ | |
| */ | |
| function kvh_tinymce_module_loader() | |
| { | |
| $tinymce_modules = [ | |
| 'youtube_player' => 'youtube-player', | |
| 'review' => 'review', |
| -- Levenshtein function | |
| -- Source: https://openquery.com.au/blog/levenshtein-mysql-stored-function | |
| -- Levenshtein reference: http://en.wikipedia.org/wiki/Levenshtein_distance | |
| -- Arjen note: because the levenshtein value is encoded in a byte array, distance cannot exceed 255; | |
| -- thus the maximum string length this implementation can handle is also limited to 255 characters. | |
| DELIMITER $$ | |
| DROP FUNCTION IF EXISTS LEVENSHTEIN $$ | |
| CREATE FUNCTION LEVENSHTEIN(s1 VARCHAR(255) CHARACTER SET utf8, s2 VARCHAR(255) CHARACTER SET utf8) |
| #!/bin/bash | |
| ## | |
| # InvoicePlane download package build script | |
| # v0.0.1 | |
| # | |
| # Usage | |
| # ./build-ipv1.sh [-l|-b branch|-f filename.zip] | |
| ## |
| App | docker-sync | Min | Max | Median | Difference | |
|---|---|---|---|---|---|---|
| Laravel 5.8 | off | 1035ms | 2158ms | 1386ms | ||
| on | 234ms | 303ms | 251ms | -81% | ||
| Wordpress 5.2 | off | 2467ms | 3942ms | 2722ms | ||
| on | 881ms | 1589ms | 1271ms | -53% |