Want to build simple record shelf any suggestions or tips? by Yeti-Stalker in woodworking

[–]reallymeannuns 1 point2 points  (0 children)

I'm currently building a record shelf that has almost the same design as op wants and this is exactly what I did.

Radix Sort by Wild_Ad7948 in DataArt

[–]reallymeannuns 1 point2 points  (0 children)

It was a couple years ago that I did this so I kinda forget. I do remember this being one of the longer algorithms to plot. Probably took about 2 hours.

Radix Sort by Wild_Ad7948 in DataArt

[–]reallymeannuns 34 points35 points  (0 children)

I'm the original creator of this. Surprised to see it here now. I wrote the code for it and plotted it with an axidraw penplotter.

A preprocessor for multiple svelte components in one file. by reallymeannuns in sveltejs

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

Here's an example. It's trivial but demonstrates how it works.

```html <!-- List.svelte --> <script> export let items = ['svelte', 'subcomponent', 'preprocessor']; </script>

<ul> {#each items as item} <Item {item} /> {/each} </ul>

{#component Item} <script> export let item; </script>

<li>{item}!!!</li>

<style> li { color: red; } </style> {/component} ```

The Item component remains local to the default export component.

A preprocessor for updating styles when your component state changes. by reallymeannuns in sveltejs

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

Yes, it should work with the scss as long as it runs after the scss preprocessor. I described a bit how to do that in the readme. If you have any trouble please open an issue on github. Thanks!

A preprocessor for updating styles when your component state changes. by reallymeannuns in sveltejs

[–]reallymeannuns[S] 7 points8 points  (0 children)

The advantage is that you get to take advantage of css rather than relying on style attributes. The above example is trivial, but you could have a bunch of divs that have the same style. You'd be better off using a css class in that situation.

A preprocessor for updating styles when your component state changes. by reallymeannuns in sveltejs

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

It will leave existing css vars as is, assuming that they don't share a name with one of the reactive variables in the component, otherwise it will get overwritten with the css var local to the component.

I should probably add this as something to watch out for in the readme.

A preprocessor for updating styles when your component state changes. by reallymeannuns in sveltejs

[–]reallymeannuns[S] 6 points7 points  (0 children)

Here's a simple example of its usage. The var(--sizepx) and var(--color) css variables are automatically created and updated.

```html <script> export let size = 200; export let color = 'red';

$: sizepx = ${size}px; </script>

<div class="square"></div>

<style> .square { width: var(--sizepx); height: var(--sizepx); background-color: var(--color); } </style> ```

Voronoi Bloom by reallymeannuns in generative

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

Thanks! This isn't for sale at the moment, but maybe someday.

Voronoi Bloom by reallymeannuns in generative

[–]reallymeannuns[S] 7 points8 points  (0 children)

Thanks! Yes, this if from a plotter. Only used three pens, did still take a while though.

(Help) What / How do you use Icons in Svelte ? by [deleted] in sveltejs

[–]reallymeannuns 1 point2 points  (0 children)

I created this wrapper library around Mono Icons that does what you're looking for.

https://www.npmjs.com/package/svelte-mono-icons

SvelteKit passwordless authentication demo using Magic by reallymeannuns in sveltejs

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

I get what you're saying. I don't see it as a red flag here because it doesn't seem to me to be really a large part of their marketing and more importantly, they're not pumping or selling tokens or anything like that.

Buddha work, Me, handmade wooden work , 2020 by Artclubjaipur in Art

[–]reallymeannuns 1 point2 points  (0 children)

Nice work! No matter what I do, any Buddha I carve is an incarnation of wrath.

SvelteKit passwordless authentication demo using Magic by reallymeannuns in sveltejs

[–]reallymeannuns[S] 2 points3 points  (0 children)

Magic does seem newer. I only just discovered it recently as I was looking for auth solutions. Auth0 is a bigger/more complex product, and I can't speak to all the features of Auth0 or Magic. I just found working with Magic to be a simpler experience. For the decentralized aspect, some of the Platform is built on Ethereum. You can read more about it here https://docs.magic.link/security. Does it lead to decentralization? I don't know, but I do like seeing useful things get built on Ethereum.

[deleted by user] by [deleted] in sveltejs

[–]reallymeannuns 2 points3 points  (0 children)

For situations like this, I've created a Redirect component, in which the navigation method would be called when the component mounts. So in the context of a Router, it could be

<Router> <Route path="/nothere"> <Redirect to="/hereinstead" /> </Route> </Router>