Skip to content

Instantly share code, notes, and snippets.

Theo Patt theopolisme

Block or report user

Report or block theopolisme

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View random_walker.py
"""
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
"""
View keybase.md

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:

@theopolisme
theopolisme / stats.js
Created Jan 20, 2014
stats.grok.se fetcher thingamajig
View stats.js
// 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 / createaccount.py
Last active Jan 1, 2016
Proof-of-concept script that creates accounts on MediaWiki wikis.
View createaccount.py
"""Proof-of-concept script that creates accounts
on MediaWiki wikis.
Usage:
$ python createaccount.py
Alternatively,
>>> import createaccount
>>> createaccount.create_account()
@theopolisme
theopolisme / studyisland.user.js
Last active May 3, 2020
Study Island Bot -- Automatically answer questions on Study Island * for demonstration purposes only *
View studyisland.user.js
// ==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
You can’t perform that action at this time.