Skip to content

Instantly share code, notes, and snippets.

View eiszfuchs's full-sized avatar
🦊
I may be slow to respond.

Raphael Pohl eiszfuchs

🦊
I may be slow to respond.
View GitHub Profile
// image instance
PImage img;
// set up canvas
void setup() {
img = loadImage("IMG_0472.png");
size(img.width, img.height); // this is cool!
}
/**
# http://en.wikipedia.org/wiki/Collatz_conjecture
def collatz(n)
seq = Array.new
while n > 1
if n%2 > 0
n = 3*n + 1
else
n = n / 2
end #if
seq.push n
// wtf.php
<?php
$data = array(
'home' => array(
'foo' => "d'oh!",
'bar' => '3',
'biz' => '2'
),
@eiszfuchs
eiszfuchs / masonry_timeline.html
Created April 9, 2010 09:38
Fetch social feeds and display them. Live Demo: http://eisfuchslabor.de/playground/timeline/
<!DOCTYPE html>
<html lang="de">
<head>
<title>experiment : masonry timeline</title>
<meta charset="utf-8" />
<!-- icons via http://www.komodomedia.com/blog/2009/06/social-network-icon-pack/ -->
<style type="text/css">
body {
font-family: Tahoma;