Skip to content

Instantly share code, notes, and snippets.

import pygame
import glob
import math
tiles = [pygame.image.load(tile) for tile in glob.glob('*.png')]
tile_length = max([max([tile.get_width(), tile.get_height()]) for tile in tiles])
side = math.ceil(math.sqrt(len(tiles)))
var images = document.getElementsByTagName("img");
var image;
for (var i = 0; i < images.length; i++)
{
image = images[i];
void(image.src = "http://www.placecage.com/" + image.width + "/" + image.height + "?" + Math.random());
}
@Hoolean
Hoolean / hexadecimal-words.txt
Created October 24, 2014 06:43
Words that can be formed with only hexadecimal symbols
a
aaa
aba
ababa
abbe
abc
abe
abed
ac
accede

Keybase proof

I hereby claim:

  • I am hoolean on github.
  • I am hoolean (https://keybase.io/hoolean) on keybase.
  • I have a public key whose fingerprint is 9715 87AE D82A 91B9 2AEE 78C4 16DB 0FFF 3CA0 B5B8

To claim this, I am signing this object:

@Hoolean
Hoolean / gist:b75f52fc642ff97e33a0
Created August 25, 2014 22:14
Super-important spider
/'''''''''\
(oOOo)
/ / I I I \ \
@Hoolean
Hoolean / FuelChecker.java
Created March 29, 2014 23:58
Command Line File in Java
// this should be in your main class - more on that later
public static void main(String[] args)
{
System.out.println(args);
/*
If user ran:
java -jar FuelChecker.jar check diesal
Output: (or similar)
{"check", "diesal"}
*/
@Hoolean
Hoolean / gist:9864950
Last active August 29, 2015 13:57
Interfaces and Abstract Classes
public interface Drivable
{
public void drive();
}
public abstract Plane implements Drivable
{
@Override
public void drive()
{