1
2
3
length = ARGV.last ? ARGV.last.to_i : 140
chars = %w{< > + - . , [ ] [-] ,[.,] >,[.>,] [->+<] >[-]<[->+<]}
puts Array.new(length) {chars[rand(chars.length)]}.join[0, length]

Ruby On Brainfuck Generator in Ruby

by JonM1827, July 31, 2008 21:11

I'm sure there is a much mo...

Fcd45b7de93cc8fa417fa43426973e06 Talk
1
2
3
4
# generate_bf.rb
# (copyleft) Matt Gauger 2008
# Randomly generates a brainfuck program
...

Ruby On Brainfuck Generator in Ruby

by JonM1827, July 31, 2008 20:37

and that is why I need to l...

Fcd45b7de93cc8fa417fa43426973e06 Talk
1
2
3
length = 140
program = ""
...

Ruby On Brainfuck Generator in Ruby

by JonM1827, July 31, 2008 20:20

I'm sure there are much bet...

Fcd45b7de93cc8fa417fa43426973e06 Talk

Bash On Memory usage script

by JonM1827, July 31, 2008 04:32

Thanks a lot for the sugges...

Fcd45b7de93cc8fa417fa43426973e06 Talk

Java On Closing database connection...

by JonM1827, July 31, 2008 04:28

I have never really done an...

Fcd45b7de93cc8fa417fa43426973e06 Talk
1
2
3
#!/bin/sh

...

Bash Memory usage script

by JonM1827, July 30, 2008 20:51, 2 refactorings, tagged with memory, shell, perl, awk

So I use thin to serve my r...

Fcd45b7de93cc8fa417fa43426973e06 Talk