Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
| <title>Alpha-Shapes</title> | |
| <script src="http://mbostock.github.com/d3/d3.js"></script> | |
| <script src="http://mbostock.github.com/d3/d3.geom.js"></script> | |
| <style type="text/css"> | |
| path { |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| /* | |
| * http://www.myersdaily.org/joseph/javascript/md5-text.html | |
| */ | |
| (function (global) { | |
| var md5cycle = function (x, k) { | |
| var a = x[0], | |
| b = x[1], | |
| c = x[2], | |
| d = x[3]; |
| var shhh = "SECRETPASSWORD"; | |
| function hexToRgb(hex) { | |
| // No RegEx in Espruino yet... | |
| var R, G, B; | |
| if (hex.length == 3) { | |
| R = hex.substring(0, 1); | |
| R = R + R; | |
| G = hex.substring(1, 2); | |
| G = G + G; |
This is a fork of and builds upon the work of Eddie Webb's search and Matthew Daly's search explorations.
It's built for the Hugo static site generator, but could be adopted to function with any json index.
To see it in action, go to craigmod.com and press CMD-/ and start typing.
Random set of notes and links that have helped me in the saga to get Ubuntu 22.04 up and running on my 2017 MacBook Pro These notes are mainly for myself in the event that I have to do this again some day. But if you find them helpful, that's great.
Unfortunately the MacBookPro that I bought second hand turned out to be a dud with some serious hardware flaws that didn't show up until a couple of months after I'd bought it.
I've since purhcased another laptop so I'm not going to be able to maintain this GIST.
I'll leave it here for now in case others want to contribute updates, or clone it. If you feel it's out of date or misleading or a waste of time, let me know in the comments and I'll remove it.