This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def counts_of_files_by_extension(dir) | |
Dir["#{dir}/**/*"].reduce(Hash.new(0)) do |extension_counts, filepath| | |
extension_counts[File.extname(filepath)] += 1 | |
extension_counts | |
end | |
end | |
directory = ARGV.shift || Dir.pwd | |
counts = counts_of_files_by_extension(directory) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings] | |
"Colour6"="0,0,0" | |
"Colour7"="85,87,83" | |
"Colour8"="204,0,0" | |
"Colour9"="239,41,41" | |
"Colour10"="78,154,6" | |
"Colour11"="138,226,52" | |
"Colour12"="196,160,0" |