A cogirl is a cogirloid in the category of cogirlfunctors
- 26 Posts
- 274 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·3 months ago══════════•⊱💀⊰•═══════════
•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·4 months agoMultipliers, positive reinforcement, and gamified number-go-up. I like it, I’ll check it out.
fool@programming.devto Casual Conversation @lemm.ee•Without unnecessary brand name dropping, what current technology blows you away?English11·4 months agoEven 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·4 months agoObviously only for important cases, like compiling custom insults into
sudo
. :)
fool@programming.devto Asklemmy@lemmy.ml•What's a sentence nobody has said in 20 years?71·4 months agoDid you see Mozart’s new concerto?
fool@programming.devto Asklemmy@lemmy.ml•What percentage of Reddit users are bots or foreign bad actors?17·4 months agoEveryone’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·4 months agoDid somebody say Inferno?
erasure edit: ok nvm, thanks
Getting mangoed and eating a stone.
- 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
fool@programming.devto Selfhosted@lemmy.world•how much power does your system need?English2·4 months agoWhoops, typo! Fixed c:
fool@programming.devto Asklemmy@lemmy.ml•Lab grown protein: if created, would you move to it?5·4 months agoits 3am and i laughed my ass off. why?
fool@programming.devto Selfhosted@lemmy.world•how much power does your system need?English313·4 months agoI forgive 'em cuz watt hours are a disgusting unit in general
idea what unit speed change in position over time meters per second m/s acceleration change in speed over time meters per second, per second m/s/s=m/s² force acceleration applied to each of unit of mass kg * m/s² work acceleration applied along a distance, which transfers energy kg * m/s² * m = kg * m²/s² power work over time kg * m² / s³ energy expenditure power level during units of time (kg * m² / s³) * s = kg * m²/s² Work over time, × time, is just work! kWh are just joules (J) with extra steps! Screw kWh, I will die on this hill!!! Raaah
Master manipulator. Needs to be contained
Ty for feedback :>
Your paragraph read well. I definitely agree – grammar with risks, outside of hyper-formal sitches, is just stylized diction. ChatGPT could scarcely come up with an e.e. cummings poem (just tested now, it never gets the style about right), nor dare to abuse parentheses, nor remove cruft for conciseness (e.g. to start a sentence with “Kind of changed” instead of “This kind of changes” for compression (woot)). It’s a “wrong” but not quite “wrong”, and I’m glad that “riskless” manages to carry that feeling
And I edit a lot too :) it’s the “post-email-send clarity” effect
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.