We're on Discord! Please join our server now if you don't want to miss anything! (More info) | Join the UCC4 contest! (More info)

* WalrusIRC (More rooms available on our Discord server)

Author Topic: Golfed code snippets  (Read 1097 times)

0 Members and 1 Guest are viewing this topic.

Offline rowan_futurerave

  • Full User
  • Disabled shoutbox mode
  • Restricted (shoutbox)
  • Join Date: Aug 2018
  • Location:
  • Posts: 45
  • Post Rating Ratio: +0/-0
    • rowanmedhurst
    • Futurerave
  • Gender: Male
Re: Golfed code snippets
« on: December 12, 2018, 11:45:27 am »
Code: (node.js, 346 chars) [Select]
[..." 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)})

Probably the weirdest constant to ever appear in a program, guess what it does.

(click to show/hide)

What a hideous bastard of a piece of code. I would definitely sack the person who wrote it.
  • Calculators owned: TI-84 Plus CE-T, CASIO fx-CG50

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games