Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ha! I added an “emoji roulette” script to my workflow for personal projects.

There’s something fun about seeing my experience with a commit randomly summarized by an emoji haha



What kind of algo is it that summarizes your coding session as "carnival tent emoji"?

Or does roulette imply (pseudo?) random?


Here's the entire script that determines the commit message:

  const ems = [ ':)' , ':-o' , ':(' ]; // etc

  process.stdout.write(ems[Math.floor(Math.random() * ems.length)]);
Sometimes I'll see a carnival tent or horse face during a late night coding session and think to myself, "Wow this emoji perfectly captures how I'm feeling right now!"

I know it's stupid, but it makes me smile :)


I feel you may also like lolcommits[0], it doesn't pollute the public repository, but takes a webcam photo of you and can optionally add the commit message into the image. Every few months I would convert the images into an animation and it's interesting watching the facial expressions, change in appearance and locations.

[0] https://lolcommits.github.io/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: