Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
$ # raw skull | |
$ cat skull.txt | |
:PB@Bk: | |
,jB@@B@B@B@BBL. | |
7G@B@B@BMMMMMB@B@B@Nr | |
:kB@B@@@MMOMOMOMOMMMM@B@B@B1, | |
:5@B@B@B@BBMMOMOMOMOMOMOMM@@@B@B@BBu. | |
70@@@B@B@B@BXBBOMOMOMOMOMOMMBMPB@B@B@B@B@Nr | |
G@@@BJ iB@B@@ OBMOMOMOMOMOMOM@2 B@B@B. EB@B@S | |
@@BM@GJBU. iSuB@OMOMOMOMOMOMM@OU1: .kBLM@M@B@ |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
} | |
NodeList.prototype.__proto__ = Array.prototype; |
import code; code.interact(local=dict(globals(), **locals())) |
#!/usr/bin/env python | |
# Haversine formula example in Python | |
# Author: Wayne Dyck | |
import math | |
def distance(origin, destination): | |
lat1, lon1 = origin | |
lat2, lon2 = destination |