Efficient and complete HEX HSL RGB CSS color name parsing and conversion with HCL color space interpolation in <1500 bytes gzipped
https://t.co/O1YWlsEkIL
Try it out on https://t.co/TkT9rbB4Xz
@EdNutting @pcwalton Far-fetched hypothesis but they might just be using a wide range of javascript features in order to force tools like youtube-dl to either write their own js interpreter or depend on one. The former's burden might be too great while the latter might be legally unfeasible? Idk
@steveruizok Grab + move while scrolling to zoom, but the zoom is an animated spring... ughh
I'm too lazy to share the full project but here's my code for that part, hope it can help!
https://t.co/22kHGCYc7u
Good VSCode extensions:
- "F12: Open File" : open any string that looks like a relative filepath in code
- "Open In GitHub": open current file on github
- "Template String Converter": typing ${ inside of quote strings converts them into backtick templates
@AdamRackis I'll agree that allowing execution context effects inside expressions is no question beyond psychopathy material... 😅
I'll still hold that sliding types into the value scope is absolutely mental and is indicative of a degenerate RFC model (this feature is from 2017)
I've seen many wacky Rust features, but this is by far the wildest I've ever bumped into
As long as they can be evaluated at compile-time, you may pass function parameters through type generics and use those generics as values
Another wild Rust feature:
In Rust "return x" is not a Statement, it's an Expression.
Feel like putting 'return' inside:
- A var declaration?
- An if condition'?
- A function argument?
Totally fine! 💩
How to run @typescript in the CLI:
npm install sucrase
node -r sucrase/register/ts script.ts
Doesn't care about tsconfig, esm or module issues. It literally just runs the damn code, thank god for common sense.
https://t.co/WbhQxW6aXE by @alangpierce
@kuvos It's the first time I see someone reviewing v8 log files to rewrite js over it!
Javascript written primarily to fit implicit v8 interpreter rules is indeed preposterous. I assume you made the parser a case study for this purpose, which conceptually makes it an interesting read~
I always read the source code of @GoogleChrome extensions I install and today I found and reported malware for the first time. Hurray! 🎉
I found the same code in 2 other extensions, for a total of at least 50k users affected
The malware origin is Russian and targets E-commerce
I just learned from a colleague and it was confirmed by every student I asked, that 25% of students age 16-32 take Adderall 1-7X/week (not prescribed). And 5-10% do the same w/Modafinil or Armodafanil; 30-35% of students are on amphetamine. This is serious. Safer options exist
@steveruizok That's a really cool problem to solve! I built a canvas UI that allows zooming down to individual pixels for my forever WIP UI Editor last year, the hard part was definitely handling window.devicePixelRatio, which you have to if you want it a <canvas> to be crisp & pixel perfect~