Skip to content

Instantly share code, notes, and snippets.

#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <map>
#include <random>
#include <sstream>
#include <vector>
/* Holds data from the command line arguments */
struct Args {
@trentj
trentj / gist:2b006375606ea635865ecfbe30fa3277
Last active December 10, 2017 18:17
find src/rust -type f -name '*.rs' -exec file {} \; | perl -pe 's/.*?: //' | sort | uniq -c | sort -n
8363 C source, ASCII text
2512 ASCII text
92 UTF-8 Unicode text
77 C source, UTF-8 Unicode text
9 HTML document, ASCII text
5 ASCII text, with very long lines
4 C source, ASCII text, with CR, LF line terminators
4 assembler source, ASCII text
4 Algol 68 source, ASCII text
3 empty