Se også: Bilder på Flickr - Last.fm-profil - Om meg - Personlig side - Planet Snuskete -

Archive for the 'meme' Category

128-bit programming challenge

Wednesday, May 2nd, 2007

Write a program that produces 128 specific bits of output. In the simplest case, output those 128 bits in a standard numeric form such as sixteen pairs of hexadecimal digits. Your program may not contain the 128 bits in literal form, it must manufacture them in some way.

128-bit programming challenge.

A boring / little imaginative example, but still:

#!/usr/bin/env ruby
[9,240,-232,-15,155,-41,111,-136,125,-151,21,111,-98,-13,50,56].inject(0){|s,i|
  print “%02X “%[s+i];s+i
}

As a bonus, the program is 128 bytes (including the shebang line …)

Samurai sword!

Friday, January 5th, 2007

runeh is a samurai sword that pings when it’s ready!