Skip to content

Instantly share code, notes, and snippets.

View iirelu's full-sized avatar
💭
Has cancer, doing random tidbits

Anna Harren iirelu

💭
Has cancer, doing random tidbits
View GitHub Profile
@iirelu
iirelu / gist:5e3e9a2f06a16d753992
Created May 12, 2015 18:50
Tumblr redirect theme
<!doctype html>
<html>
<head>
<meta name="text:New Blog URL" content="garblefart.tumblr.com" />
</head>
<body>
<script>
window.location.host = "{text:New Blog URL}";
</script>
<noscript>
@iirelu
iirelu / libstuff.py
Created November 30, 2014 16:02
A small python library for rendering generative art gifs
from __future__ import division
import os
import numpy
from PIL import Image, ImageDraw
class Renderer():
def __init__(
self, size=(640, 480), sampler=None,
@iirelu
iirelu / gist:cbee5447e97830e39d3a
Created October 19, 2014 12:58
Bookmarklet to make a Weasyl submission use an AJAX favourite button
javascript:(function() {
var form = $("[name=favorite]");
form.click(function(e) {
e.preventDefault();
$.ajax("/favorite", { type: "POST", data: form.serialize() });
form.children("button").addClass("active").append("d");
});
}());
@iirelu
iirelu / coords.rb
Last active August 29, 2015 14:06
revbuild
# I'll try to keep this up to date but holla at me if it's lagging behind.
COORDS = {
"Lab Facility Number 493" => "000",
"The Lab" => "001",
"The Rusty Pit" => "002",
"The Stone Loop" => "006",
"The Tri-Gem Room" => "010",
"The Clockwork Corridor" => "011",
"Second Tomb" => "043",
"The Ouroboros Tunnel" => "051",
@iirelu
iirelu / revget
Created September 20, 2014 14:19
Subnet REV size extractor
#!/usr/bin/env bash
curl -s http://www.mateuszskutnik.com/submachine/subnet_data/{$1}.swf > /tmp/temp.swf
swfdump /tmp/temp.swf | awk '/File size: [0-9]+/ {print "REV size: " $4;}'
@iirelu
iirelu / gist:d0c3de5dc7a189f8ef08
Created July 6, 2014 18:14
Tumblr Redirect theme
<!doctype html>
<html>
<head>
<meta name="text:New Blog URL" content="garblefart.tumblr.com" />
</head>
<body>
<script>
window.location.host = "{text:New Blog URL}";
</script>
<noscript>
@iirelu
iirelu / ow_my_eyes.js
Last active August 29, 2015 13:57
A bookmark that makes eye-hurting sites easier to read.
javascript:(function(d) {
var e = d.createElement("style");
e.innerText = "*{background: #efefef !important; color: #121212 !important;}";
d.head.appendChild(e);
}(document));