Pinned ping
easrng relayed

aoc2021 thread: day 3 part 1 

// :)
(s,a=s.split("\n").map(e=>"0b"+e|0),i,l,z=1<<(s.indexOf("\n")-1))=>{for(i=1;i<(z<<1);i<<=1){l|=(a.map(e=>e&i).reduce((a,b)=>a+!!b,0)<a.length/2?0:i)}return l*(l^(z<<1)-1)}
// I'll probably do 3part2 tomorrow

Show thread

aoc2021 thread: day 2 part 2 

// you get the idea
(s,c={f:c=>{x+=c,y+=a*c},d:c=>a+=c,u:c=>a-=c},x=y=a=0)=>(s.split("\n").map(e=>e&&c[e[0]](+e.split(" ")[1])),x*y)

Show thread

aoc2021 thread: day 2 part 1 

// see previous RE: input
(s,c={f:c=>x+=c,d:c=>y+=c,u:c=>y-=c},x=y=0)=>(s.split("\n").map(e=>e&&c[e[0]](+e.split(" ")[1])),x*y)

Show thread

aoc2021 thread: day 1 part 2 

// same input as before
(s,r=0)=>((s=s.split("\n").map(e=>+e)).map((e,i)=>r+=e+s[i+1]+s[i+2]<s[i+1]+s[i+2]+s[i+3]),r)

Show thread

aoc2021 thread: day 1 

// call with a string of newline delimited numbers for the first input and no second input
(s,r=0)=>((s=s.split("\n").map(e=>+e)).map((e,i)=>r+=e>s[i-1]),r)

Show thread

aoc2021 thread 

I'm doing it in golfed JS

easrng relayed
easrng relayed
easrng relayed

@annika I don’t know what Spotify Wrap is, but this is all I could think of,

easrng relayed
easrng relayed
These are apparently a real thing, so I duckbingled them, and found that yes, they are a real thing, and also I found a parody video posted to Youtube 13 years ago making fun of the concept, presumably before it existed for real
Show thread
easrng relayed
easrng relayed
easrng relayed

how do i get an amazon account w/o phone number. trying to buy gender affirming clothes discretely

easrng relayed
easrng relayed
easrng relayed

@AgathaSorceress this is why the answer to "ive never programmed before and i want to make a minecraft mod" is "no you dont"

easrng relayed

markov toot 

nvm, let me know about what i am ISO certified as based

easrng relayed
Show older
Cybrespace

cybrespace: the social hub of the information superhighway jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal support us on patreon or liberapay!