Generate a n-ary tree under specific constaints
Generate a n-ary tree under specific constaints
Usage: node n-ary.js [opts] <leaves> <branches>
Options:| fn human_list<I, T>(i: I) -> String | |
| where | |
| I: Iterator<Item = T>, | |
| T: AsRef<str>, | |
| { | |
| let mut items = i.peekable(); | |
| let mut s = match items.next() { | |
| Some(s) => s.as_ref().to_owned(), | |
| None => return String::new(), | |
| }; |
| export async function typedMatcher(val, handler) { | |
| let register = {}; | |
| let value = valueSpec => { | |
| let data, matchEntry; | |
| register[(matchEntry = Object.assign(Symbol("matchEntry")))] = data = {0: valueSpec}; | |
| matchEntry.type = type => ((data._ = type), matchEntry); | |
| return matchEntry; | |
| }; | |
| let type = typeSpec => { | |
| let data, matchEntry; |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>array accumulation by concat vs push</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> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>join_split vs split_flat</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> |
| // ==UserScript== | |
| // @name GitHub Repo Size | |
| // @namespace https://gist.github.com/miraclx/aad03f43fe8ac85682b0243f4f242f0d | |
| // @description Calculate repo size and inject into GitHub page | |
| // @icon https://github.githubassets.com/favicons/favicon.png | |
| // @version 0.2.0 | |
| // @author miraclx | |
| // @license Apache-2.0 | |
| // @supportURL https://gist.github.com/miraclx/aad03f43fe8ac85682b0243f4f242f0d | |
| // @grant GM_xmlhttpRequest |
I hereby claim:
To claim this, I am signing this object:
| Correct timestamps on WhatsApp media artifacts | |
| # How it works | |
| WhatsApp saves its media files in the format `{TYPE}-{YYYY}{MM}{DD}-WA{NNNN}.{EXT}` | |
| ## Examples | |
| - Image: `IMG-20190806-WA0026.jpg` | |
| - Sticker: `STK-20191126-WA0010.webp` | |
| - Audio: `AUD-20181227-WA0045.opus` | |
| - Animated Gifs: `VID-20190103-WA0003.mp4` |