Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 52433

Code-golf is a competition to solve a particular problem in the fewest bytes of source code. If you want to score by characters instead of bytes, please state this explicitly in the challenge. If source code length is not the primary scoring criterion, consider using another tag instead.

1
vote
GO, 13 bytes for{print(0)} Try it online!
answered Jan 17 '17 by powelles
2
votes
Go, 36 bytes func(a,b int)int{return(b-a)/14*7+7} Try it online!
answered Jan 12 '17 by powelles
3
votes
Japt, 18 17 16 bytes Prints 1 or 2 ducks `goo `i`Ýõ `pM¬Ä Try it online! Saved 1 byte thanks to Shaggy & 1 byte thanks to Oliver Explanation `goo ` // compressed string "goose" i / …
answered Mar 12 '18 by powelles
2
votes
JavaScript (Firefox Only), 77 bytes Takes date as string: i.e. Jan 1, 2017 s=>+new Date(s)[k='toLocaleFormat']`%U`||new Date(s.slice(-4)-1,11,31)[k]`%U`
answered May 17 '17 by powelles
1
vote
GO, 22 20 bytes print(string(88-23)) Try it online!
answered Jan 17 '17 by powelles
3
votes
Javascript (ES6), 44 bytes n=>p=>(Math.round(n*10**p)/10**p).toFixed(p) Try it online: const f = n=>p=>(Math.round(n*10**p)/10**p).toFixed(p) console.log(f('14.225')(2)); [...Array(8).ke …
answered Mar 17 '17 by powelles
7
votes
Japt, 16 14 bytes r"%l"_m"uv"gT° Try it online! Explanation r // RegEx replace input "%l" // [A-Za-z] as first arg to replace _ // created function Z=>Z as sec …
answered May 25 '17 by powelles
3
votes
JavaScript ES6, 56 bytes _=>`It's ${Date().split` `[3]} already, folks, go home.` Try it online! const f = _=>`It's ${Date().split` `[3]} already, folks, go home.` console.log(f())
answered Apr 2 '17 by powelles
10
votes
JavaScript ES6, 215 188 bytes This seems to work well in Chrome and Edge. Firefox and Safari not so much. with(new AudioContext)o=createOscillator(onmousemove=e=>{o.frequency.value=9/innerWidth*e.x …
answered Mar 30 '17 by powelles
7
votes
Japt, 26 24 19 17 bytes ¸®ë4 ®c u5Ãn2 dÃq Try it online! Saved 2 bytes thanks to @Shaggy & 2 bytes thanks to @ETHproductions Explanation input: "FizzBuzzBuzzFizzBuzzFizzFizzFizz FizzBuzzBuzzFizz …
answered May 29 '17 by powelles
5
votes
JavaScript ES6, 185 bytes l=>t=>l.split` `.map(p=>p.split` `).map((p,i,a)=>[p[0],i?d(a[0][1])+a.slice(1,i+1).reduce((a,p)=>a+=+p[1],0)*6e4:(d=x=>Date.parse(`2017T${x}`))(p[1])]).filter(p=>p[1]>d(t)). …
answered Apr 14 '17 by powelles
2
votes
Japt, 33 30 bytes ¡'0p(¡X¤lÃn o)-X¤l)+X¤)£" *"gX Try it online! Saved 3 bytes thanks to @Justin Mariner Explanation ¡ // map input integers (¡X¤lÃn o) …
answered Jul 24 '17 by powelles
12
votes
JavaScript, 75 70 bytes `0101 1100 0202 2200`.replace(/./g,n=>['Hare ','Krishna ','Rama '][n]) Try it online! console.log(`0101 1100 0202 2200`.replace(/./g,n=>['Hare ','Krishna ','Rama '][ …
answered Apr 27 '17 by powelles
6
votes
Javascript (ES6), 269 bytes (a,b,d=~a+b+2,o=Array(~~(d/2)+1).fill([...Array(d)].map(_=>a++)).map((e,i)=>e.slice(i,-i||a.a)).map((e,i)=>i%2==0?e:e.map(e=>e*-1)))=>o.map(e=>e.map((e,i)=>' '.repeat(Math …
answered Mar 9 '17 by powelles
1
vote
JavaScript, 484 347 bytes This is horrible and could most likely be golfed more. Just seeing if I could answer in JavaScript with the restrictions. z=({}+[]+{})[-~[]] y=(!![]+[])[+!+[]] x=([][[]]+[] …
answered Apr 24 '17 by powelles

15 30 50 per page