Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<meta charset="utf-8">
<title>Twitter Archive Viewer</title>
<script>window.YTD = { tweet: {}, account: {} }</script>
<script src="tweet.js"></script><!-- this is loading a file from the archive -->
<script src="account.js"></script><!-- this is loading a file from the archive -->
<style>
.tweet { border: 1px solid #eee; margin: 8px }
.full_text { padding: 8px }
.created_at { padding: 8px; color: #777 }
@utgwkk
utgwkk / mandel.py
Last active October 23, 2015 11:23 — forked from firstspring1845/mandel.py
draw Mandelbrot set / requires PIL
import itertools
from PIL import Image
result = Image.new("L", (6400, 6400))
for r, i in itertools.product(range(6400), repeat=2):
c = complex(r / 1600.0 - 2.0, i / 1600.0 - 2.0)
z = 0
print(c)
# -*- coding: utf-8 -*-
Plugin.create :wiin_eject do
on_appear do |ms|
ms.each do |m|
if m.message.to_s =~ /ウ(イ|ィ)ーン|[Ee]ject/
system("eject")
end
end
end
end