Clone the repo and drop the folder into "chrome://extensions" page.
Open any web page ("about:blank" will work too) and a console, then inspect and play with MY_API global variable.
| [00:21:46.442,657] <dbg> zmk: split_central_notify_func: [NOTIFICATION] data 0x20011c75 length 16 | |
| [00:21:46.442,687] <dbg> zmk: split_central_notify_func: data: 0 | |
| [00:21:46.442,687] <dbg> zmk: split_central_notify_func: data: 8 | |
| [00:21:46.442,718] <dbg> zmk: split_central_notify_func: data: 0 | |
| [00:21:46.442,718] <dbg> zmk: split_central_notify_func: data: 0 | |
| [00:21:46.442,718] <dbg> zmk: split_central_notify_func: data: 0 | |
| [00:21:46.442,749] <dbg> zmk: split_central_notify_func: data: 0 | |
| [00:21:46.442,749] <dbg> zmk: split_central_notify_func: data: 0 | |
| [00:21:46.442,779] <dbg> zmk: split_central_notify_func: data: 0 | |
| [00:21:46.442,779] <dbg> zmk: split_central_notify_func: data: 0 |
| execve("/nix/store/as6s9l5vnjv9abl3bhmjljqd6zdjglwk-clojure-1.10.1.469/bin/clj", ["clj", "-e", "(println \"Hello!\")"], 0x7ffe4347bad0 /* 125 vars */) = 0 | |
| brk(NULL) = 0x1236000 | |
| access("/etc/ld-nix.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
| openat(AT_FDCWD, "/nix/store/hnp72ygssavd526rp7qk3yjylyc2klcw-glibc-2.27/lib/tls/haswell/avx512_1/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
| stat("/nix/store/hnp72ygssavd526rp7qk3yjylyc2klcw-glibc-2.27/lib/tls/haswell/avx512_1/x86_64", 0x7ffff1f13430) = -1 ENOENT (No such file or directory) | |
| openat(AT_FDCWD, "/nix/store/hnp72ygssavd526rp7qk3yjylyc2klcw-glibc-2.27/lib/tls/haswell/avx512_1/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
| stat("/nix/store/hnp72ygssavd526rp7qk3yjylyc2klcw-glibc-2.27/lib/tls/haswell/avx512_1", 0x7ffff1f13430) = -1 ENOENT (No such file or directory) | |
| openat(AT_FDCWD, "/nix/store/hnp72ygssavd526rp7qk3yjylyc2klcw-glibc-2.27/lib/tls/haswell/x86_ |
| #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN | |
| #include "doctest.h" | |
| using ll = long long; | |
| bool isPrime(ll n) | |
| { | |
| if (n == 1) return false; | |
| auto ub = std::sqrt(n); | |
| for (int i = 2; i <= ub; i += 1) { |
| #include <string> | |
| #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN | |
| #include "doctest.h" | |
| std::vector<std::string> split(std::string const& str, std::string const& delim) | |
| { | |
| std::vector<std::string> tokens; | |
| std::string::size_type s = 0; |
| (defn sort-merge [colls] | |
| (if (<= (count colls) 1) | |
| (first colls) | |
| (let [mi (apply min (map first colls))] | |
| (cons mi | |
| (lazy-seq | |
| (->> (map (fn [[f & r :as coll]] | |
| (if (= f mi) r coll)) | |
| colls) | |
| (filter some?) |
| (defn selections [xs len] | |
| (if (zero? len) | |
| [[]] | |
| (mapcat (fn [pd] (map #(conj pd %) xs)) | |
| (selections xs (dec len))))) | |
| (defn selections-with-all [xs len] | |
| (filter #(= (set %) (set xs)) (permu xs len))) | |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| map u scrollFullPageUp | |
| let blacklists = ["https://mail.google.com/*","https://www.google.com/maps/*","https://www.codingame.com/*","http://localhost/*"] | |
| " Site Specific settings | |
| site '*://feedly.com/*' { | |
| unmap ? | |
| unmap gg | |
| unmap G | |
| unmap j | |
| unmap k | |
| unmap J |