Skip to content

Instantly share code, notes, and snippets.

@Leowbattle
Created July 2, 2018 15:43
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 Leowbattle/efa6fe18443d9d27dce8f2221b984369 to your computer and use it in GitHub Desktop.
Save Leowbattle/efa6fe18443d9d27dce8f2221b984369 to your computer and use it in GitHub Desktop.
Prank your friends by running this script on their Java project (please make sure it is backed up first)
javaFiles = Dir.glob "#{ARGV[0]}/**/*.java"
javaFiles.each do |javaFile|
javaCode = File.read javaFile
javaCode = javaCode.gsub /l|cl/, ""
File.open(javaFile, "w") {|file| file.puts javaCode}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment