Skip to content

Instantly share code, notes, and snippets.

View alocvm's full-sized avatar
🌴
On vacation

Uladzislau Vavilau alocvm

🌴
On vacation
View GitHub Profile
@Buggytheclown
Buggytheclown / bash-analytics.sh
Created January 3, 2019 14:53
bash analytics
# Find top 30 the most wanted files sorted by commit count
git log --name-only --pretty=format: src | sort | uniq -c | sort -nr | head -n 30
# Find top 10 the largest '*.js' files sorted by size
find . -name '*.js' -type f -ls | sort -k7 -r | head -n 20
# count lines of code, without directory 'migrations'
find . -name migrations -prune -o -name '*.ts' | xargs wc -l
@Buggytheclown
Buggytheclown / fix_me_JS.js
Last active April 10, 2025 18:24
Basic javascript interview questions. (Some 'bad' working scripts)
/*
* IIFE
* https://en.wikipedia.org/wiki/Immediately-invoked_function_expression
*/
(function() {
})();
/*
* Comparison operators
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators