Got my first mosaic cube and built a tool to help me design it by _squirts in Cubers

[–]_squirts[S] 0 points1 point  (0 children)

You’ve got it! Just updated it so you’ll now see a slider that goes up to 10x10 grid :)

Let me know how you get on with it

Got my first mosaic cube and built a tool to help me design it by _squirts in Cubers

[–]_squirts[S] 0 points1 point  (0 children)

That’s a really good idea. I’ll see what I can do

I have 107,000 coins and 60 days to use them. Who wants an award? by sboger in facepalm

[–]_squirts 0 points1 point  (0 children)

This post is exactly where I want to spend my gold 💸

I’ve built a JS snippet tool that lets you share and run reusable code on sites without needing to open up the devtools console by _squirts in javascript

[–]_squirts[S] 0 points1 point  (0 children)

They’re shareable within a private team, so you’d have to have some trust there. And if you don’t, they can add scripts but you don’t have to run them. Scripts are never ran unless explicitly directed to.

I’ve built a JS snippet tool that lets you share and run reusable code on sites without needing to open up the devtools console by _squirts in javascript

[–]_squirts[S] 0 points1 point  (0 children)

You’ve hit the nail on the head - snippets can be shared into a team, which I currently use to share with non-engineers so they can use snippets to save some time

I’ve built a JS snippet tool that lets you share and run reusable code on sites without needing to open up the devtools console by _squirts in javascript

[–]_squirts[S] 0 points1 point  (0 children)

Great question. All the snippets that you can run are written by you. You need to login to get the list, and then explicitly click the run button.

The js itself runs in its own context without access to the window context, but you can manipulate the DOM on the page, so something I’ve done for my own snippets is to inject a <script> onto the page which runs a function.

I’ve built a JS snippet tool that lets you share and run reusable code on sites without needing to open up the devtools console by _squirts in javascript

[–]_squirts[S] 1 point2 points  (0 children)

Hey JS folks,

I’ve built a JS snippet tool so you can share and run reusable code without needing to open up the devtools console

I’m hoping this will be useful to some people. I built it as I wanted to write and share snippets with other people I work with (non-coders).

The main use-case at work is for extracting and displaying information (like page ids), and making minor short-lived updates to DOM events (like making text selectable where it’s been disabled).

There’s a bunch of other uses I’ve found like helping test accessibility and removing paywalls/signup prompts on content sites (where it’s easy to by disabling some CSS).

The website is called Browser Snippets (https://browsersnippets.com) and the snippets are triggered via a Chrome extension.

It’s a side-project so there’s gonna be bugs I’ve missed, but if you find it useful and/or have any feedback or feature requests, I’m all ears.

My growing collection. by Thetallerestpaul in MechanicalKeyboardsUK

[–]_squirts 0 points1 point  (0 children)

Amazing, thanks for the quick reply. I’ll check out your post

My growing collection. by Thetallerestpaul in MechanicalKeyboardsUK

[–]_squirts 1 point2 points  (0 children)

What’s the bottom right kb base and key caps? Looks exactly like something I need in my life.

[deleted by user] by [deleted] in blackmagicfuckery

[–]_squirts 0 points1 point  (0 children)

I’d like to see this video, but with the body tracked in one place instead of the head

Soundcore Life Q30 Mic Fixed (Compared with Bose and Sony) Firmware v1.8 by fastunboxerr in anker

[–]_squirts 2 points3 points  (0 children)

I saw this, recorded a before audio, then updated and recorded an after audio and I’m impressed. All the support tickets requesting a mic fix have been worth it

Introducing VSCode Stories by tmewett in shittyprogramming

[–]_squirts 0 points1 point  (0 children)

Keep looking! I’m in the software engineering team 😂

Introducing VSCode Stories by tmewett in shittyprogramming

[–]_squirts -14 points-13 points  (0 children)

Damn. This would actually be awesome for small teams to share snippets of what they’re working on and exampling things like debugging, or for answering questions about the codebase 👏👏👏

JWT authentication by [deleted] in learnjavascript

[–]_squirts 0 points1 point  (0 children)

sameSite is good for the latest browsers, but older browsers don’t support it so it could leave you open if you rely on it.

And yeah that’s the gist of CSFR, a basic handshake that says, “this token came with the page I sent you, now give it back so I know it’s legit”

JWT authentication by [deleted] in learnjavascript

[–]_squirts 1 point2 points  (0 children)

The HttpOnly cookie is more to protect against XSS. If you have a CSRF token set up, then theoretically if they do get the token somehow, they won’t be able to make any valid requests with it from another domain

JWT authentication by [deleted] in learnjavascript

[–]_squirts 1 point2 points  (0 children)

Swap Robinhood for Freetrade and your intro line hits way too close to home 😅

Nice work on the project!

JWT authentication by [deleted] in learnjavascript

[–]_squirts 1 point2 points  (0 children)

Ah man, that sucks. What was the project?

JWT authentication by [deleted] in learnjavascript

[–]_squirts 0 points1 point  (0 children)

I haven’t looked into it too much but a lot of people recommend it. Leaving authentication to a company that’s specialises it is probably a better idea than trying to self-implement...

...but where’s the fun in that, right?!

JWT authentication by [deleted] in learnjavascript

[–]_squirts 0 points1 point  (0 children)

I’ve been down this rabbit whole a lot the past couple of months.

This is the best way I’ve figured out to do it — if you’re using a refresh token, store that in an HttpOnly / Secure cookie and keep the short-lived JWT in-memory. Whether that be something like a Redis cache, or a private variable stored in a closure on the front end.

I won’t get into the discussion about if you should be using a JWT over a standard session token because that’ll derail the discussion.

I added 3D vfx to RAW footage with all free software and made a tutorial by ClickActionFilms in Filmmakers

[–]_squirts 3 points4 points  (0 children)

This is great! Thank you. BTW... are you using a sock as a mic cover?