specter

joined 1 year ago
[–] [email protected] 14 points 6 months ago

I was reading up on Aaron Swartz once before bed while hitting a weed pen and I had somehow convinced myself I was facing felony charges and had to go to court to fight jail time and I lost it... unplugged my computer from the wall and shoved my face in my pillow until I was able to calm down and realize my foolishness before going to sleep.

[–] [email protected] 13 points 6 months ago

Free speech enthusiasts are exercising hatred. Before non-hateful people realize this they sometimes conflate it with the inversion: speaking truth to power. Or sometimes simply "freedom" which isn't perfectly absolute when we live in a society. If you wanna witness hatred then follow the free speech thread.

[–] [email protected] 2 points 7 months ago

oh I do that all the time. tbh just alias flatpack=flatpak and you should be good to go.

[–] [email protected] 1 points 7 months ago

and yet y'all are also gonna keep trying to use Agile too

[–] [email protected] 2 points 7 months ago

ah jeez rick i recycled a meme again rick

[–] [email protected] 2 points 7 months ago

communism is doomed. you just single-handedly doomed it.

[–] [email protected] 7 points 7 months ago

new tilde backdoor?

[–] [email protected] 4 points 1 year ago (2 children)

libertarian socialist

idk about you comrade but I don't read from thelibertariansocialistlibrary.org

https://theanarchistlibrary.org/

[–] [email protected] 28 points 1 year ago (3 children)

Only because CTRL+F had zero results: Krita. Everyone complains about GIMP having a bad name and Krita is actually good!!

[–] [email protected] 2 points 1 year ago (1 children)

This is certainly the closest I've ever been to trying emacs... but for better or for worse I probably won't get around to even trying it until a decade from now and then just like LISP I'll probably think damn I should have tried this a decade ago.

I've got a few fennel projects to get to a good place and then I'm really excited to look into Lisp Flavored Erlang!

15
Neovim 💚 Fennel! (git.minimally.online)
submitted 1 year ago* (last edited 8 months ago) by [email protected] to c/[email protected]
 

cross-posted from: https://board.minimally.online/post/20318

I just recently discovered TIC-80 and then Fennel. I was already liking Lua but now I'm hooked on LISP!! Here's my Neovim config using lazy.nvim, all written in fennel thanks to hotpot

It's not marketed like one of those "template Neovim config repos" but it could be one of those if your heart desired. I based it loosely off kickstart.nvim.

 

cross-posted from: https://board.minimally.online/post/12268

The math behind the game is atan2 which I use to get the angle from a thing to another thing:

function ato(from,to)
  return atan2(
    to.x-from.x,
    to.y-from.y
  )
end

And then when you give that angle to cos for the x axis and sin for the y axis you get (x,y) coords that can be multiplied by the number of pixels you want to "move" in that direction. So this function assumes a table like {x,y,a,s} and returns new a new x,y multiplied by s for "speed"...

function amove(●,s)
  s=s or ●.s
  return ●.x+cos(●.a)*s,
    ●.y+sin(●.a)*s
end

I use both those together like this to move the worms each frame. (This symbol: ∧ looks more like a worm in the Pico-8 font. If you didn't notice I like the emoji for variables 😋)

for ∧ in all(∧s) do
  ∧.a=ato(∧,웃)
  ∧.x,∧.y=amove(∧)
end

The astitue reader may have noticed amove allows one to supply their own s instead of the table's s... this is useful when you want to calculate things along something like a line, I mean the length of a worm. For example if we put everything together then we get this loop that, after a bullet () moves, checks every part of a worm (for ∧t=0,∧.l do where ∧.l is worm length and ∧t is each "tail" pixel) and if they collided deletes both and plays a sound effect. amove is given each ∧t but it's not actually used to move the worm, just to reconstruct it's body for collision detection.

for ∧ in all(∧s) do
    for ∧t=0,∧.l do
      ∧x,∧y=amove(∧,∧t)
      if flr(✽.x)==flr(∧x)
        and flr(✽.y)==flr(∧y)
      then
        del(bullets,✽)
        del(∧s,∧)
      if #∧s==0 then
        sfx(2)
      else
        sfx(1)
      end
    end    
  end
end
[–] [email protected] 3 points 1 year ago

Now I miss the lizard milk too :(

view more: next ›