It would check the API, “buy” a spot instance and inject a startup scrip to download itself.
Totally useless. But fun.
Code is here: https://github.com/tnolet/tatanka
101–110 of 422 posts
It would check the API, “buy” a spot instance and inject a startup scrip to download itself.
Totally useless. But fun.
Code is here: https://github.com/tnolet/tatanka
A long time ago I wrote a useless, but fun program that attempts to programmatically recreate a source image by randomly placing randomly sized, randomly coloured rectangles onto a canvas. If the result of this random application of colour is closer to the source image, it's kept, otherwise the changes are discarded. Over time, it gets reasonably close to the source image. https://ajxs.github.io/pbp/
A long time ago I wrote a useless, but fun program that attempts to programmatically recreate a source image by randomly placing randomly sized, randomly coloured rectangles onto a canvas. If the result of this random application of colour is closer to the source image, it's kept, otherwise the changes are discarded. Over time, it gets reasonably close to the source image. https://ajxs.github.io/pbp/
Isn’t this basically how stable diffusion works?
I learned in college Geometry class that you can transform a square to an equilateral triangle in 11 cuts or so So I wrote a matlab program to draw the shapes, and cut them out, and it works It’s mathematically exact, not just approximate Still surprises me after 20 years, so I want to find this old program again lol
This got a downvote and I wonder if it’s from a person who doesn’t think it’s true
See example gifs on my blog here: https://johnscolaro.xyz/blog/pygame-match-3
When I say "match3", I don't mean "candy crush" style, I mean more like "YMBAB" or "chuzzle style".
The main learning I had was how much more "stateful" a game is vs something like the backend of a webserver. I'm used to writing code with no/few side effects, but when you're juggling 50+ gems in different states of falling/idle/ exploding, different frames of animation, and different states of user input, it made me thing differently about state, testing, and probably exposed me a little to the problems gave devs grapple with day-to-day.
I have a lot more respect for the original creators of these slightly modified match 3 games like "Chuzzle".
So I left it in the state where the only thing you can do is to listen to ten descending gliders and that's it :)
Surprisingly, it still works, except now you have to click/tap anywhere on the screen to make the sound play. I think that 9 years ago browsers didn't have this feature and allowed sound to play right away.
Here is the link (CAREFUL, can be VERY LOUD): https://vovanz.github.io/conways_live_music/