A cogirl is a cogirloid in the category of cogirlfunctors
- 28 Posts
- 296 Comments
First, imagine a number in JavaScript. (Bit of a nail biter here, huh?)
let i = 5
Then, we will construct an incrementor. This is really simple: here is the method.
- Make a bracket-string-centric version of
eval()
.
[]["filter"]["constructor"]("return i+1")()
- Reconstruct stringy
eval()
by using+[]
as 0,+!+[]
as 1, and implicit conversions as ways to create strings. For example, ‘false’ is(![]+[])
, so ‘f’ is(![]+[])[+[]]
.
[][ (![] + [])[+[]] + // f ([![]] + [][[]])[+!+[] + [+[]]] + // i (![] + [])[!+[] + !+[]] + // l (!![] + [])[+[]] + // t (!![] + [])[!+[] + !+[] + !+[]] + // e (!![] + [])[+!+[]] // r ][ ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o ([][[]]+[])[+!+[]]+ // n (![]+[])[!+[]+!+[]+!+[]]+ // s (!![]+[])[+[]]+ // t (!![]+[])[+!+[]]+ // r ([][[]]+[])[+[]]+ // u ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c (!![]+[])[+[]]+ // t (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o (!![]+[])[+!+[]] // r ]("return i+1")()
- Draw the rest of the fucking owl. Final code:
let i = 5; // haha yay [][ (![] + [])[+[]] + // f ([![]] + [][[]])[+!+[] + [+[]]] + // i (![] + [])[!+[] + !+[]] + // l (!![] + [])[+[]] + // t (!![] + [])[!+[] + !+[] + !+[]] + // e (!![] + [])[+!+[]] // r ][ ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o ([][[]]+[])[+!+[]]+ // n (![]+[])[!+[]+!+[]+!+[]]+ // s (!![]+[])[+[]]+ // t (!![]+[])[+!+[]]+ // r ([][[]]+[])[+[]]+ // u ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c (!![]+[])[+[]]+ // t (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o (!![]+[])[+!+[]] // r ]( (!![]+[])[+!+[]]+ // r (!![]+[])[!+[]+!+[]+!+[]]+ // e (!![]+[])[+[]]+ // t ([][[]]+[])[+[]]+ // u (!![]+[])[+!+[]]+ // r ([][[]]+[])[+!+[]]+ // n (+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+ // ' ' ([![]]+[][[]])[+!+[]+[+[]]]+ // i (+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]])+[])[!+[]+!+[]]+ // + +!+[] // 1 )() // no virus i swear. execute arbitrary code in your browser console.
Anyway, that’s just everyday JS work. It’s like step 5 after resizing the button, but a bit before centering the div.
based on this. some translation methods done differently.
- Make a bracket-string-centric version of
fool@programming.devto Linux@lemmy.ml•Nox/James Lee with a video about Adobe alternatives on Linux3·5 个月前══════════•⊱💀⊰•═══════════
•STYLISTIC BREADTH
══════════•⊱💀⊰•═══════════
Doesn’t anyone here know that the Death Note (1) curses all those who use it with misfortune and (2) will trap your soul in limbo after use?
Nah, I’m good. Tweezers and a matchstick.
fool@programming.devto Opensource@programming.dev•I made a new app: Habit-maker: A reward-based habit tracker for android.3·5 个月前Multipliers, positive reinforcement, and gamified number-go-up. I like it, I’ll check it out.
fool@programming.devto [Migrated, see pinned post] Casual Conversation @lemm.ee•Without unnecessary brand name dropping, what current technology blows you away?English11·5 个月前Even more magical is the lossless Zstandard is this a name drop?. It does so much stuff, it’s awesome!
- hella fast compared to similar-leveled compressors (zoom)
- no matter the zstd compression level, decompression takes equal time! (ux!)
- zstd can use a user-given dictionary, or train its own on a sample set (wowie)
- zstd can be used for live compression (compress and decompress as you read and write, not before or after)
- on ram (install more ram??)
- in filesystems (2.5x your disk??)
- saves CPU by not compressing if it’s not worth it (efficiency!!)
- use ALL the cores!
So kool. lol
fool@programming.devto Linux@lemmy.ml•Share specific examples of software built from source works better for you than packages or pre-built binaries10·5 个月前Obviously only for important cases, like compiling custom insults into
sudo
. :)
Did you see Mozart’s new concerto?
fool@programming.devto Asklemmy@lemmy.ml•What percentage of Reddit users are bots or foreign bad actors?17·5 个月前Everyone’s speculating so I’ll put in something concrete:
About 3 months ago, r/wholesomememes mods clamped down on karma-farm bots as hard as they could…
causing no new posts to appear for two entire days.
Hey there friends! It’s only been a few days since we started cracking down on the spam bots and excessive reposts that have been plaguing r/WholesomeMemes - and now there is nothing left! –mod
fool@programming.devto Ask Lemmy@lemmy.world•What video game landscape / level would look good in a painting ?7·5 个月前Did somebody say Inferno?
erasure edit: ok nvm, thanks
Getting mangoed and eating a stone.
Interesting, 18 up and 16 down as of this comment. Because this started with ~2 downvotes (the first image had terrible jpeg for a few minutes), we either have
- my taste did not land
- early downvotes beget more downvotes
this comment is here for notetaking. let’s see if i’m a moron or if iambs are stronger than herds.
- e4 d197
- e5 d196
- e6 d195
- e7 d194
- e8 d193
- e9 d192
- e10 d191
… - e100 d101
- exd101 Scandinavian Gambit Accepted
That’s an interesting perspective actually
Maybe it’s because of who’s giving them? If my little cousin gave me an AI Christmas card, I’d be happier than if a stranger gave me one on the street. (Though I’d feel bummed if they didn’t even marker in a single custom sentence)
i.e. higher standards of creativity/effort from a stranger than from a family member.
Also the stranger isn’t stuffing a tenner in the card lmao
Almost all cases that I saw someone obsesaing over growth in one domain was hiding or running away from some pain that they coudn’t handle.
Thanks, this is something I need to think about.
Whoops, typo! Fixed c:
its 3am and i laughed my ass off. why?
fool@programming.devto isGlitch.com - the online-est of tech rags@lemmy.world•Man Cracks Swift Ticket Bot Arms Race by Teaching AI to Fail CAPTCHAsEnglish6·6 个月前Yep, see sidebar :P
This is like the beach that makes you old. You doubt it, you go there, you ignore the “Beach That Makes You Old” sign, the beach makes you old.