[..." sos"].map(c=>{p=" etianmsurwdkgohvfüläpjbxcyzqö 54\x063é 2&è+ à 16=/ ç\2( 7 ñ8 90 \4 ?_ \" . @ ' - ;! ) , :".search(c)
for(s="00";p>1;p=p/2|0)s=(p%2?"1110":"10")+s
m+=p>0?s:s+s},m=i="");(w=new(require('wemo-client'))()).discover((e,d)=>{setInterval(_=>w.client(d).setBinaryState(+m[i++%m.length]),500)})

Follow

>posting node.js code without context at 3am

it sends the morse code for SOS to a lamp plugged to a WeMo smart plug

@Juju I'm so horrified I won't be able to sleep for another 30 minutes

Sign in to participate in the conversation
calc news

This instance is mainly for the graphic calculator community, but is open to programmers, artists and related fields.

This is an instance for those who used to put games and hack on their TI-83+ instead of actually doing their math homework on it back in high school. Those who picked up programming because it's fun. Those who will put their favourite programming languages to creative uses and maybe make up new ones. You are encouraged to show your projects off on this instance and show other users of the fediverse what you're able of.

Mostly everything is allowed, but just keep it friendly, okay? No abuse, use common sense. We're just a bunch of nerds here. All hail the mighty walrus.

If you don't have enough of 500 characters, feel free to visit our sister site at CodeWalrus and join the forums and the Discord server.