Skip to content

Instantly share code, notes, and snippets.

@vendethiel
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vendethiel/69bad550355ec5455ebd to your computer and use it in GitHub Desktop.
Save vendethiel/69bad550355ec5455ebd to your computer and use it in GitHub Desktop.
Prime candidates
dir('public/uploads/entity_logo/image', :test(none(/'.'/))).map(&dir).grep({.Str !~~ /^'.'/}).map(*.Str)
dir('public/uploads/entity_logo/image', :test(none(/^'.'/)))
==> map(&dir)
==> grep({.Str !~~ /^'.'/})
==> map(*.Str)
lines>>.words.grep(/g/).say
lines.grep({$_ !~~ /^[\s|"=>"]/})>>.substr(0,8).sort.uniq>>.say
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment