Skip to content

Instantly share code, notes, and snippets.

View perara's full-sized avatar
🎯
Focusing

Per-Arne Andersen perara

🎯
Focusing
View GitHub Profile
package no.uia.tflip.gnult.tests;
import junit.framework.Assert;
import no.uia.tflip.gnult.RequiredClasses;
import no.uia.tflip.gnult.TestFramework;
import org.testng.annotations.*;
import java.io.*;
/*
__author__ = 'perar'
import math
import random
class Graph:
EPSILON = 0.000001
def __init__(self, nodes, edges, max_iterations = 1000, area=5000):
self.attraction_multiplier = 5
@perara
perara / gist:83582f24064200e036ce
Created March 23, 2015 01:34
Estimate Nostalrius Ratio
import mechanicalsoup
import re
browser = mechanicalsoup.Browser()
start_page = browser.get("http://realmplayers.com/CharacterList.aspx?search=")
last_page_raw = start_page.soup.find('a', text='Last')
start_page = 1
# CoffeeScript
class Tween
# All Tweening Objects
@_objects = []
@_oldObjects = []
@_currentTime = 0