Top Tweets for #codegolfctober
#codegolfctober day 31
A super hacky prototype of JS1K 2019 entry containing Peach Castle (from Mario 64) rendered in CSS3D and emoji, in 1026 bytes (minified and regpacked)...
and 3330 bytes before regpack.
Demo: https://t.co/iOkewmbPG3
(optimized for Windows + Chrome)
#codegolfctober day 27
Here's yesterday's JS FFT golfed in 312b
Demo: https://t.co/vKDitiLawZ
(leaks vars M,h,i,j,k,l,m,n,o,p)
Based on this 359b FFT by @antimatter15:
https://t.co/VCNlgbJRlS
Beats this "140b FFT" that requires ~550b of bootstrap code:
https://t.co/MoEY2SzmZG

#codegolfctober day 26
Another js1k 2018 entry: an interactive 2D FFT tracer golfed w/ @subzey @BalintCsala @justecorruptio
play: https://t.co/16wSipTATG
making-of: https://t.co/8AS8xeikuq
Detailed source code, including the smallest JS FFT ever written
https://t.co/FMiW1fvW6u

#codegolfctober day 25
In case you missed it, here's a demake of my #js13k puzzle game LOSSST, including 55 levels, golfed in 1kb with @Xen_the, @Xaotic, @justecorruptio, @subzey, @p01 and @veubeke during js1k 2018
Play: https://t.co/XgtAinNfWz
Making-of https://t.co/8AS8xeikuq

#codegolfctober day 24
88b Mega Million picking generator
[z,...a]=Array(71).keys(),[...(f=_=>a[5]?f(a.splice(Math.random(z++)*99,1)):a)(),z%25+1]
(Picks 5 unique ordered numbers between 1 and 70, then 1 number between 1 and 25.)
Golfed by @subzey @superhoge @kchplr @p01 & me
#codegolfctober day 21
Here are my favourite "space" dweets of October, by Tomxor
(I didn't contribute, but they deserves more views!)
Black Hole: https://t.co/1Sq6ClDDTQ
Saturn: https://t.co/AQ0GQg536T

#codegolfctober day 20
How to generate the i'th ASCII char in JS?
var i=33;
eval(`'\\x${i.toString(16)}'`) // 30b
eval(`'\\${i.toString(8)}'`) // 28b
String.fromCodePoint(i) // 23b
String.fromCharCode(i) // 22b
Could the 28b version be used to improve yesterday's challenge? 🤔
#codegolfctober day 19
Old CGSE challenge
"a program that outputs all the ASCII chars that it doesn't contain"
eval(v="for(i=32;i<127;)v.includes(e=String.fromCharCode(i++))||alert(e)")
// 74b, alerts the chars !"#$%&'*,-/045689:>?@ ABDEFGHIJKLMNOPQRTUVWXYZ[\]^_`bjkpqwxyz{}~
#codegolfctober day 17:
A keydown/keyup state manager in 46 bytes (useable in a game loop)
k={};onkeydown=onkeyup=e=>k[e.which]=e.type[5]
- Choose a keyCode N.
- if(k[N]) => key is pressed
- if(!k[N]) => key is released
Demo: https://t.co/Hrfpn1c1YM
![MaximeEuziere's tweet photo. #codegolfctober day 17:
A keydown/keyup state manager in 46 bytes (useable in a game loop)
k={};onkeydown=onkeyup=e=>k[e.which]=e.type[5]
- Choose a keyCode N.
- if(k[N]) => key is pressed
- if(!k[N]) => key is released
Demo: https://t.co/Hrfpn1c1YM https://t.co/arK781cSu7](https://pbs.twimg.com/media/DpsSsR3XgAMoX_p.jpg)
#codegolfctober day 16:
The smallest (and weirdest) ASCII Serpinski Triangle by @aemkei, @keithclarkcouk and @justecorruptio
53 bytes!
<svg onload=for(i=2e3;i--;)write(i%63?i&i/32&&'_':x)>
Demo: https://t.co/CKhOt9x9LH
(needs a window < ~1130px)

#codegolfctober day 15:
MiniSweeper demake in ASCII and in 349 bytes by @aemkei !
Demo: https://t.co/E0cBy0yexm
(play with left click only, this version doesn't have flags)

#codegolfctober day 14:
My first codegolf project, made with @subzey back in 2013,
rebooted with more ES6 and less IE hacks: 486 bytes!
I'm sure we can enhance it.
Demo: https://t.co/tIzxsVp4Ry
Commented source code: https://t.co/zz15sVxxYm

#codegolfctober day 12
272b full-featured calculator (the one from day 10, but rewritten and corrected by @justecorruptio)
Source: https://t.co/UJwhes0tJr
Demo: https://t.co/KlYqDay3JO

// Calc
<body onload='for(s of"C/=.0 *321 -654 +987 ")i.outerHTML+=s<"!"?"<p>":`<button onclick=F("${s}")>`+s;F=b=>i.value=z=b>"B"?(c=d=o="",a=r=p=0):1+b-0?c+=b-.1?b:d?"":d=b:(q=b<"=",p?r=c:a=c||a,r=q?p&&r:r||a,a=o&&r?z=eval(a+o+s+r):a,o=q?b:o,p=q,d=c="",q?z:a);F`C`'><input id=i>
#codegolfctober day 11
56b ASCII Serpinski "right-aligned" by @justecorruptio, @aemkei & @keithclarkcouk
<svg onload=for(i=4096;i--;)write(i%64?i&i/64&&`_`:`-`)>
Demo: https://t.co/Tpuav4tDBh
(requires a narrow window to show line breaks at the right places)

#codegolfctober day 10
@justecorruptio successfully golfed yesterday's calculaton in 197b!
In the meantime, I made a 770b calculator in HTML/JS but this time it supports every weird edge case!
Demo: https://t.co/0BpY9ToZWx
@Xen_the @subzey @aemkei @p01, let's golf it?

#codegolfctober day 9
A 252b calculator in HTML/JS inspired by @ETHprod
Demo: https://t.co/vhD4kZIP7r
I summon @Xen_the @subzey @aemkei @p01 and @justecorruptio to bring that below 200b :p

#codegolfctober day 8
Yesterday's Mini Serpinski Triangle but "lopsided", made by @justecorruptio in 81b.
<canvas onclick=for(i=2**14;i--;)getContext`2d`.fillRect(i%128,j=i/128,1,!(i&j))>
Demo: https://t.co/ZhxxaQqw3c

#Codegolfctober day 7
Our 2017 Mini Serpinski Triangle was regolfed by @Xen_the, @zlprp & @justecorruptio and was reduced from 118b to 86b!
<canvas onclick=for(i=2**14;i--;)getContext`2d`.fillRect(i/.996%128,j=i/128,1,!(i&j))>
Demo (click to start): https://t.co/U4JtxIG5nH

#Codegolfctober day 6
The incredible dweet by @BalintCsala "strange crystals v0.140b", and its complete deconstruction by @zozuar
Dweet: https://t.co/wkEGQXJKXo
Writeup: https://t.co/0d6enkGDuC
🎺 Guys, what piece of tiny code would you like to see next on #codegolfctober? Send ideas! :p
(your ideas may be golfed by awesome people like @p01, @aemkei, @Xen_the, @justecorruptio, @BalintCsala @ETHprod, ...)
Last Seen Hashtags on Sotwe
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
241.2M followers

Barack Obama 
@barackobama
119.1M followers

Cristiano Ronaldo 
@cristiano
112.8M followers

Donald J. Trump 
@realdonaldtrump
111.8M followers

Narendra Modi 
@narendramodi
107.1M followers

Rihanna 
@rihanna
98.2M followers

NASA 
@nasa
92.2M followers

Justin Bieber 
@justinbieber
91.4M followers

KATY PERRY 
@katyperry
88.9M followers

Taylor Swift 
@taylorswift13
82.8M followers

Lady Gaga 
@ladygaga
74.3M followers

Virat Kohli 
@imvkohli
71.8M followers

Kim Kardashian 
@kimkardashian
70.4M followers

YouTube 
@youtube
68.8M followers

Neymar Jr 
@neymarjr
64.7M followers

Bill Gates 
@billgates
64.6M followers

The Ellen Show
@theellenshow
62.4M followers

Selena Gomez 
@selenagomez
62M followers

CNN 
@cnn
61.8M followers

X 
@x
60.8M followers


