Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am theopolisme on github.
  • I am theo (https://keybase.io/theo) on keybase.
  • I have a public key whose fingerprint is 5908 4190 26C2 5EB0 0F0D 25CF 5C0D 85A9 1BF3 D836

To claim this, I am signing this object:

"""
randomwalker.py
(C) Theo Patt <theo@theopatt.com>
The RandomWalker emulates, surprise suprise, a random walk.
The random walker turns either left or right (50/50) and then
"walks" one unit in that direction.
Assignment: https://www.edmodo.com/post/434660789
"""
@theopolisme
theopolisme / createaccount.py
Last active January 1, 2016 12:19
Proof-of-concept script that creates accounts on MediaWiki wikis.
"""Proof-of-concept script that creates accounts
on MediaWiki wikis.
Usage:
$ python createaccount.py
Alternatively,
>>> import createaccount
>>> createaccount.create_account()
@theopolisme
theopolisme / stats.js
Created January 20, 2014 03:28
stats.grok.se fetcher thingamajig
// Licensed under the MIT license; theopolismewiki@gmail.com
( function ( $, mw ) {
function sum ( obj ) {
var total;
for (var prop in obj ) {
if ( obj.hasOwnProperty( prop ) ) {
total += parseInt( obj[prop], 10 );
}
}
return total;
@theopolisme
theopolisme / studyisland.user.js
Last active April 16, 2024 13:46
Study Island Bot -- Automatically answer questions on Study Island * for demonstration purposes only *
// ==UserScript==
// @name Study Island Bot
// @description Automatically answer questions on Study Island
// @include http://*.studyisland.com/cfw/test/options*
// @include http://*.studyisland.com/cfw/test/practice-session*
// @grant none
// @namespace http://github.com/theopolisme
// @license MIT License
// @version 1.01
// @released 2013-09-01