Skip to content

Instantly share code, notes, and snippets.

@TomAugspurger
TomAugspurger / svstatic
Last active August 15, 2017 12:47 — forked from jiffyclub/svstatic
Convert a SnakeViz HTML file into a self-contained static file that can be hosted anywhere. This script replaces instances of static files being loaded from the local server by having them come from the rawgit CDN.
#!/usr/bin/env python
"""
Prepare an HTML file from SnakeViz for use as a static page.
This makes it so all static files are loaded from a CDN instead
of from the local server.
To get the SnakeViz HTML file run the snakeviz CLI to load a profile
in your browser, than save that page as an HTML file to your computer.
Finally, run this script on that HTML file.
@TomAugspurger
TomAugspurger / 0_reuse_code.js
Created April 2, 2014 22:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console