13 comments

[ 3.5 ms ] story [ 36.5 ms ] thread
Fun! The number at the end of the url controls the size of the picture (32-128). You can just replace some digits/letters in the hash to craft a new unicorn
:( code was in a Mercurial repo at bitbucket, now the repo link gives "Repository unavailable Bitbucket no longer supports Mercurial repositories."
I feel like these unicorns would be great for a geocities page.
I used https://unicornify.appspot.com/ (defunct) for avatars on my forum in its early days when I had other features to build beyond avatar upload. Until the unicornify service died, I used it for default avatars.

My users loved it, especially since it was generated from hash(userid, username). You'd sometimes get a unicorn grazing in the distance or one up close staring down the camera.

There were jokes about whether you were part of the green / blue / brown unicorn faction. And even years later, since it was the default avatar, people would joke about "fine, then remove your current avatar and see who you really are, I bet you're one of those filthy Greens!"

Good times.

I've tried reading the code on many occasions, but I don't think I'll ever understand graphics. https://github.com/codingisacopingstrategy/unicornify

yarn add unicornify

require('unicornify')(hash, {width: 512, height: 512, format: 'png'}).readStream( (err,data)=>{ /* yeah baby, yeah! </austinpowers> */ });

This sounds like a great alternative to SSH's RandomArt key visualizer. I can't memorize some opaque string of letters and numbers, but if keys are represented by unicorn avatars, changes would definitly be noticed.
Damn the worse news is the source isn't accessible because BitBucket now doesn't support Mercurial repos... as of yesterday they're not accessible :scream!
I love how this page has links yet isn't even HTML. Let me introduce you to 1993 :)
(comment deleted)