Skip to content

Instantly share code, notes, and snippets.

View aflatter's full-sized avatar

Alexander Flatter aflatter

View GitHub Profile
@aflatter
aflatter / test.html
Created December 15, 2011 14:40
Webkit transitions on a newly attached element don't work. Probably related to http://code.google.com/p/chromium/issues/detail?id=82500
<html>
<head>
<title>Test</title>
<style type="text/css">
div {
position: absolute;
height: 200px;
}
.slide {
@aflatter
aflatter / future_plexer.rb
Created May 8, 2013 00:52
The FuturePlexer for Celluloid :-)
require 'celluloid'
class FuturePlexer
class DrainedError < StandardError; end
attr_accessor :futures
def initialize(futures)
self.futures = futures
end
require 'celluloid'
def pusher(condition)
sleep 5
condition.signal 'Wibble'
end
def puller(condition)
value = condition.wait
puts "Pulled: #{value}"

Keybase proof

I hereby claim:

  • I am aflatter on github.
  • I am aflatter (https://keybase.io/aflatter) on keybase.
  • I have a public key ASBYWX2aLIubpZMajGoWwIjWI0XiIPkqUEU2Dq8eAuZdxQo

To claim this, I am signing this object: