Monday, March 21, 2022
Sunday, March 20, 2022
Saturday, March 19, 2022
Thursday, March 17, 2022
Tuesday, March 15, 2022
Monday, March 14, 2022
New best story on Hacker News: Show HN: HN Avatars in 357 bytes
Show HN: HN Avatars in 357 bytes
538 by tomxor | 331 comments on Hacker News.
Paste the following into the console of any HN page - for annotated avatars on all HN comments. (self contained code) for(u of document.querySelectorAll('.hnuser'))for(u.prepend(c=document.createElement('canvas')),x=c.getContext('2d'),c.width=18,c.height=14,s=u.innerText,r=1,i=28+s.length;i--;i<28?r>>>29>X*X/3+Y/2&&x.fillRect(6+2*X,2*Y,2,2)&x.fillRect(6-2*X,2*Y,2,2):r+=s.charCodeAt(i-28,x.fillStyle='#'+(r>>8&0xFFFFFF).toString(16)))r^=r<<13,r^=r>>>17,r^=r<<5,X=i&3,Y=i>>2
538 by tomxor | 331 comments on Hacker News.
Paste the following into the console of any HN page - for annotated avatars on all HN comments. (self contained code) for(u of document.querySelectorAll('.hnuser'))for(u.prepend(c=document.createElement('canvas')),x=c.getContext('2d'),c.width=18,c.height=14,s=u.innerText,r=1,i=28+s.length;i--;i<28?r>>>29>X*X/3+Y/2&&x.fillRect(6+2*X,2*Y,2,2)&x.fillRect(6-2*X,2*Y,2,2):r+=s.charCodeAt(i-28,x.fillStyle='#'+(r>>8&0xFFFFFF).toString(16)))r^=r<<13,r^=r>>>17,r^=r<<5,X=i&3,Y=i>>2
New best story on Hacker News: Veloren is a multiplayer voxel RPG written in Rust
Veloren is a multiplayer voxel RPG written in Rust
508 by albertzeyer | 101 comments on Hacker News.
508 by albertzeyer | 101 comments on Hacker News.