Kamil Kiełczewski
  • Member for 2 years, 6 months
  • Last seen this week
Mandelbrot image in every language
6 votes

JavaScript, 284 283 ...(11 improvements)... 208 191 190 188 bytes currenty (2019-10-05) this is shortest js solution (the shortest one before this has 285 bytes) Expanded // Fractal ...

View answer
10 PRINT CHR$(205.5+RND(1)); : GOTO 10 in PHP (or anything else, for that matter)
3 votes

HTML+JS, 186 <pre style="letter-spacing:-3.5px;line-height:9px;;white-space: pre-wrap;line-break: anywhere;" onclick="setInterval(_=>this.innerHTML+='/\\'[2*Math.random()|0])">C l i c k ...

View answer
Print a 10 by 10 grid of asterisks
3 votes

CSS, 157 109 bytes Inspired by hd answer, probably 1:1 reproduced from OP question (except background color) - pure CSS solution (no additional HTML) body:after,body:before{white-space:pre;...

View answer
Codegolf : the HEX
3 votes

JavaScript, 420 407 bytes document.write('<svg id="pic" height="255" width="255"></svg>') v="...

View answer
Draw the "{🏅} CODE GOLF & coding challenges" logo!
2 votes

HTML + CSS, 958 656 588 bytes <div style="display: flex; align-items:center; font-size:40px;">{ <div style="color: blue; line-height:0; transform: translate(-7px,07px); width: 32px"> ...

View answer
Output a Super Mario Image
2 votes

Pure JavaScript 419 bytes (no lib) Compression (1 step: count each char in hex e.g. ********** gives *a, 2 step: convert two chars like *1 or #4 to single char witch free ascii code) let d=` ...

View answer
Tips for golfing in JavaScript
1 votes

Remove duplicates from array a.filter(e=>!(t[e]=e in t)) let unique= (a,t={})=> a.filter(e=>!(t[e]=e in t)); // "stand-alone" version working with global t: // a1.filter((t={},e=>!(...

View answer
Tips for golfing in JavaScript
0 votes

Add elements to Array The concat is more useful than push in many situations because it returns whole array e.g. we want from d=[{a:1,b:2,c:3},{a:7,b:8,c:9}] generate 'pivot object' p={"a":[1,7],"b":[...

View answer
Tips for golfing in JavaScript
-1 votes

The 9**999 is Infinity shortcut (2 characters shorter) console.log( 9**999===Infinity )

View answer