a dead-serious goofball :-)
open to friends, feel free to dm or matrix: @aura:catgirl.cloud
!!
- 2 Posts
- 7 Comments
aura@lemmy.dbzer0.comto
Fediverse@lemmy.world•Tesseract dev injects malicious code into browser to illegally DDOS the dbzer0 instanceEnglish
9·1 month agoit’s not exactly the formula i posted but the principle is kinda the same
if u see it like this:
let min = 1 let max = 100 let random = Math.floor(Math.random() * (max - min + 1)) + minthe diff is that it’s inclusive of max (bc of +1) and it always returns an integer (bc of Math.floor)
btw not defending this abomination of a man in javascript language or anything lol
aura@lemmy.dbzer0.comto
Fediverse@lemmy.world•Tesseract dev injects malicious code into browser to illegally DDOS the dbzer0 instanceEnglish
12·1 month agothat is common usage to get a random number between two values in JS. as unintuitive as it looks it’s just more maintainable like that, the code was prolly just minified
Math.random() * (max - min) + min
aura@lemmy.dbzer0.comto
Asklemmy@lemmy.ml•What is the best laptop you can get for under 650€?
8·2 months agoOP might easily find a used thinkpad t14/t14s for less than €650, up to gen 4.
when choosing the thinkpad generation, it’s often a trade-off between CPU performance (newer gen) and RAM upgradability (older gen). some gen 3+ models use soldered memory, but you get better CPU performance ;) check carefully
aura@lemmy.dbzer0.comtoMental Health@lemmy.world•How do you cope with overwhelm?English
1·2 months ago- shut down all my senses by closing my eyes and lying down for at least 10min like i’m in some sort of isolation tank. it’s super under-stimulating tho so depending on what overwhelmed me it won’t work
- shower, warm then cold. i like the transition / ritual, it’s simpler than a workout and almost just as effective
- try to solve someone else’s problem (if they’re okay with it) to regain some sense of control
- watch what sb else is doing to regain perspective, especially kids, dogs, birds doing their thing. sometimes i just look out the window, my view is interesting
aura@lemmy.dbzer0.comtoMental Health@lemmy.world•What film, tv, book etc helped you through a tough time?English
1·2 months agowhisper of the heart (1995) and spirited away (2001)
when i feel a little lost and lacking courage. a comfort / hopeful / nostalgia thing



alternatively