Skip to content

Instantly share code, notes, and snippets.

@micromaomao
Last active August 29, 2015 14:25
Show Gist options
  • Save micromaomao/6f239dfc6950b702394d to your computer and use it in GitHub Desktop.
Save micromaomao/6f239dfc6950b702394d to your computer and use it in GitHub Desktop.
Draw a picture on your github user page
var dates = "";
$('.day').click(function(){dates += $(this).data('date') + "\n"; console.info($(this).data('date'));$(this).attr("fill", "#00ff00")})
#!/bin/bash
dates=$(cat dates.txt)
mail="[email protected]"
for date in $dates; do
git commit --date="$date 00:00:01 +0000" --author="Wtm mao <$mail>" -m "Put a green block on $date" --allow-empty;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment