Skip to content

Instantly share code, notes, and snippets.

View simoncrowe's full-sized avatar

Simon Crowe simoncrowe

  • Digital Surgery
  • London
View GitHub Profile
@simoncrowe
simoncrowe / rank_contributors_by_todos.md
Last active October 23, 2023 14:18
Rank Git Repository Contributors by Number of TODO Comments

This command will produce a leaderboard of TODO frequency for an entire repository

grep -r "TODO" . | awk '{print $1}' | cut -d ":" -f 1 | xargs -n 1  git blame  --no-progress | grep TODO | cut -d "(" -f 2 | cut -d "-" -f 1 | rev | cut -c 5- | rev |  awk '{$1=$1};1' | sort | uniq -c | sort -nr

Here are the first 10 lines from running the above in the cpython repo.

    508 Serhiy Storchaka
    281 David Scherer
    139 Terry Jan Reedy
@simoncrowe
simoncrowe / leaving_card.py
Last active June 19, 2018 06:35
A (hopefully) humorous code snippet to give a developer leaving their current job
import requests
from persons_name import current_job, future_job
if future_job > current_job:
with future_job.management:
for friend in current_job:
requests.PUT(
'http://word',
data={

Keybase proof

I hereby claim:

  • I am simoncrowe on github.
  • I am simoncrowe (https://keybase.io/simoncrowe) on keybase.
  • I have a public key ASDwT3Nbhpbj6gz-_hCDGUZWt0-ydVjco8Ov3pQfHtDstAo

To claim this, I am signing this object: