Live data from Hacker News

Show HN: HN Avatars in 357 bytes

news.ycombinator.com

81–90 of 536 posts

Re: Show HN: HN Avatars in 357 bytes

#81
post #6

Wow this is really great! Noob question, but let's say I wanted to permanently load this JS in my browser? How would I achieve that? Grease monkey? Extension? Thanks :)

Should be really easy with grease monkey. I simply pasted the snippet into a new script and enabled it for this site. Works perfectly out of the box.

needed to add.

  let c,x,X,Y,r,i,s;

Re: Show HN: HN Avatars in 357 bytes

#82

Hah! I got a really cool little icon that looks almost like the cassette tape pirate logo of Piratbyrån back in the day. I have old t-shirts with that logo. MAKE. THIS. PERMANENT! On the functional side, this really helps you see who is who in a long threaded discussion. Your eye is much quicker at following the little color icons than their names.

>MAKE. THIS. PERMANENT!

I second this. (Also I wanted to see what my avatar looks like, sry)

Re: Show HN: HN Avatars in 357 bytes

#84

Hah! I got a really cool little icon that looks almost like the cassette tape pirate logo of Piratbyrån back in the day. I have old t-shirts with that logo. MAKE. THIS. PERMANENT! On the functional side, this really helps you see who is who in a long threaded discussion. Your eye is much quicker at following the little color icons than their names.

> Hah! I got a really cool little icon that looks almost like the cassette tape pirate logo of Piratbyrån back in the day.

I think it's a skeleton holding his arms up!

edit: Looks like I'm some green bug-monster

Re: Show HN: HN Avatars in 357 bytes

#85

This is interesting :D Setting it as javascript: ;void(0); can make it useful as a boomarklet :)

Point of information: the ;void(0); isn’t necessary here because the code ends in a for loop, which produces undefined. (For anyone who doesn’t know about the meaning of void in JavaScript: it’s a unary operator that ignores its operand and produces undefined . What is commonly spelled `void(0)` is briefer as `void 0`. Why don’t people just write `undefined`? For some, because it’s shorter, but mostly for historical…

It wasn't actually working for me; it was returning 0 actually. But yeah, this is a good point as well. :D

Re: Show HN: HN Avatars in 357 bytes

#87
post #33

Earlier quoted context omitted.

I've found the python docs[0] to be quite helpful for this topic. [0]: https://wiki.python.org/moin/BitwiseOperators

Thanks, but its still a bit confusing for me. Im looking for a really dumbed down kind of approach: input, operator, visual explanation of what its doing, output. Im a really bad learner, and didnt study computer science or anything. Ive never had a reason to touch binary, so find these operators unintuitive.

Try thinking about the equivalent in decimal:

A left shift in binary adds a 0 at the end which multiplies by 2 (binary = 2)

In decimal, the equivalent, adding a 0 at the end, multiplies by ten (decimal = ten)

Post reply on HN