Skip to content

Instantly share code, notes, and snippets.

@bruschill
Last active August 29, 2015 14:27
Show Gist options
  • Save bruschill/ca0b11e357bcd4684482 to your computer and use it in GitHub Desktop.
Save bruschill/ca0b11e357bcd4684482 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
puts ((Dir.glob(File.join('/', '**', '*')).select{|file| File.file?(file)}.count) % 5) + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment