Skip to content

Instantly share code, notes, and snippets.

@tily
Created June 22, 2009 15:44
Show Gist options
  • Save tily/134027 to your computer and use it in GitHub Desktop.
Save tily/134027 to your computer and use it in GitHub Desktop.
generate HTML to make ldrize cursor stumble (not worked)
#!ruby
# make_ldrize_stumble.rb
require 'erb'
puts ERB.new(DATA.read, nil, '-').result(binding)
__END__
<html>
<head><title>Make LDRize Stumble</title></head>
<body>
<% 1.upto(1000) do |num| -%>
<div class="section hentry" style="position: absolute; left:<%= rand(1000) %>px; top:<%= rand(1000) %>px;">test</div>
<% end -%>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment