Discuss Scratch

Jeffalo
Scratcher
1000+ posts

binary - text converter

i made this with some codes i found online
https://jeffalobob.github.io/Binary-Text/

disclaimer: sometimes my posts are pretty critical of the scratch team (especially my older ones), but i really do scratch & scratch team. jvvg made a short essay thing about the scratch team, which is a pretty good read, if you want a different perspective for the scratch team's actions.

my website: jeffalo.net | ocular: scratch forum search













MegaApuTurkUltra
Scratcher
1000+ posts

binary - text converter

In python this is just

lambda text: ' '.join(['{:08b}'.format(ord(c)) for c in text])
 
lambda binary: ''.join([chr(int(b, 2)) for b in binary.split()])

Why is a whole webpage hogging 40MB of RAM necessary for this again?

$(".box-head")[0].textContent = "committing AT crimes since $whenever"
Jeffalo
Scratcher
1000+ posts

binary - text converter

MegaApuTurkUltra wrote:

In python this is just

lambda text: ' '.join(['{:08b}'.format(ord(c)) for c in text])
 
lambda binary: ''.join([chr(int(b, 2)) for b in binary.split()])

Why is a whole webpage hogging 40MB of RAM necessary for this again?
because it looks good

disclaimer: sometimes my posts are pretty critical of the scratch team (especially my older ones), but i really do scratch & scratch team. jvvg made a short essay thing about the scratch team, which is a pretty good read, if you want a different perspective for the scratch team's actions.

my website: jeffalo.net | ocular: scratch forum search













Powered by DjangoBB