HNHacker News
TopNewBestAskShowJobs

xem

421 karma · joined December 5, 2013

js code golfer
submissionscomments
xem··on A 220b spreadsheet app in HTML/JS
ha ha, you're absolutely right on each and every point, but for your information: you can add columns by adding more letters after "ABCD"
xem··on A 220b spreadsheet app in HTML/JS
Hey, thanks! Would you like me to write a commented version of that code? A lot of black magic is still hidden in every line :)
xem··on A 220b spreadsheet app in HTML/JS
I think I see what you're meaning, but this code actually generates all the cells (<input onfocus=... onblur=... id=...>). You can execute it in a JS console and it'll work fine.
xem··on A 220b spreadsheet app in HTML/JS
Haha ;)
xem··on A 220b spreadsheet app in HTML/JS
Yeah, sorry for the confusion. The placeholders and the compact style (no gutters) were added in the homepage for puerly aesthetic purposes, but these things take a lot of bytes without really adding functionnality, so we decided to not count them in the most golfed code. You can see a version with labels and localStorage persistence at the bottom of the page though. But thanks for your edit!
xem··on A 220b spreadsheet app in HTML/JS
It does work, but you need to use dots, not commas. Ex: A1 => "4.5" A2 => "=A1+2"
xem··on A 220b spreadsheet app in HTML/JS
Thanks for mentioning/enjoying it :)
xem··on A 220b spreadsheet app in HTML/JS
Hello World,

I'm xem, author of this mini app, but standing on the shoulders of giants:

it's inspired by http://aem1k.com/sheet/

which was inspired by http://jsfiddle.net/ondras/hYfN3/

Cheers to all the JS codegolf team who teached me this noble art and continue to learn new tricks everyday with me!

You can find a list of all our mini apps here: https://gist.github.com/xem/206db44adbdd09bac424

xem··on Challenge: Put all of Shakespeare's works into the smallest HTML file you can
You can't read neighbour files' names with JS, can you?
xem··on Challenge: Put all of Shakespeare's works into the smallest HTML file you can
please develop, I'm actually interested by this kind of challenges too! :) What's your idea? like, asking people to output as much text as they can in 512kb or 1mb?
xem··on Challenge: Put all of Shakespeare's works into the smallest HTML file you can
1059027 bytes for the Shakespeare file? that's impressive. I tried something called "PAQ*" compression but it generated a file that was nearly 2MB...
xem··on Challenge: Put all of Shakespeare's works into the smallest HTML file you can
Hi! I created that challenge but didn't see this HN page until now :) That's where all this traffic comes from! If you think 30 min is too short for decompression, I can change that rule. Just let me know.
xem··on Ask HN: How do you manage your personal projects?
you're not supposed to marry two kids.
xem··on Emoji.length == 2
Here are my 2 cents: you can decompose an Unicode string with the ES6 spread operator:

[..."(insert 5 poo emoji here)"].length === 5

[..."(insert 5 poo emoji here)"][1] === "(poo emoji)"

xem··on Mini x86 – An x86 documentation, decompiler and emulator in pure JS
I just tested on Chrome, Firefox and Edge (W10) and it works fine everywhere. Do you have an error showing up in your console or something?
xem··on Mini x86 – An x86 documentation, decompiler and emulator in pure JS
Mainly for fun and because I like this language. Also, my goal is to let people drop a x86 demo in their browser and just watch it play or interact with it without any other tool.
xem··on Mini x86 – An x86 documentation, decompiler and emulator in pure JS
Indeed, the final goal is to make it compact too. Thanks for the link! Another source of inspiration for compactness is: https://github.com/adriancable/8086tiny
xem··on Mini x86 – An x86 documentation, decompiler and emulator in pure JS
it should work on any modern browser. Warning though, the url has changed a little: see https://github.com/xem/minix86
xem··on Mini x86 – An x86 documentation, decompiler and emulator in pure JS
Hi guyz, I'm the author of this project, but not the author of this post. Indeed the project is very incomplete and indeed it's "disassembler" - not "decompiler" :) I plan to talk about it on HN when I'm satisfied with the results (and when the emulator starts outputting things)... today was a little early.

Thanks though for the upvotes and the kind remarks!

Cheers and happy 2017!

xem··on Ask HN: What service would you pay $1k/mo for?
taxes. oh wait, it's already the case.
xem··on LaiNES – Cycle-accurate NES emulator in around 1000 lines of code
Starting with a chip8 emulator is also a good exercise. We made one in JS in less than 1kb for this 13kb games compilation: http://js13kgames.com/entries/26-games-in-1 (unminified version here: http://xem.github.io/chip8/c8.html)
xem··on Ask HN: What simple tools or products are you most proud of making?
Cool! I'm also making a tiny x86 emulator :)
xem··on Ask HN: What simple tools or products are you most proud of making?
We're a bunch of web devs out there doing "JavaScript code-golfing", for fun. The goal is to make mini apps, or mini-games, with the smallest possible source code.

Here are some handy apps / cool demos that we've made: (the full list is here: https://gist.github.com/xem/206db44adbdd09bac424)

- https://github.com/xem/miniSpeechSynthesis (73b+ speech synthetizer)

- https://github.com/xem/miniSpeechRecognition (100b+ speech recognition)

- https://github.com/codegolf/period1k (1kb periodic table)

- https://github.com/xem/miniPi (compute Pi in ~256b!)

- https://github.com/xem/MiniRegexTester (170b regex tester)

- https://github.com/xem/miniBookmarklets (tiny bookmarklets)

- http://xem.github.io/MiniShadertoyLite/ (512b shadertoy clone)

- http://xem.github.io/MiniShadertoy/ (1kb shadertoy clone)

- http://xem.github.io/miniBeautifier/ (1kb js beautifier)

- https://github.com/xem/miniUnicode (Unicode slideshows in 64b and up)

- https://github.com/xem/miniKeyCode (JS KeyCode finder in less than 128b)

- http://xem.github.io/miniJSperf/ (a JSperf clone in less than 300b)

- https://github.com/xem/sheet (a spreadsheet app in 221 bytes)

- https://github.com/xem/hex (hexadecimal viewer and editor in 243+ bytes)

- https://github.com/xem/miniURI (file-to-dataURI converter in 99 bytes)

- https://github.com/xem/miniCodeEditor (HTML/CSS/JS editor in 156+ bytes)

- https://github.com/xem/braille-art (drawing with braille on Twitter in less than 1k)

- https://github.com/xem/miniMinifier (HTML/CSS/JS minifiers in 128+ bytes)

- http://js13kgames.com/entries/26-games-in-1 (26 games in 13kb)

xem··on Ask HN: Do you get paid to contribute to a open source project?
I've been hired by a friend to co-develop the EQCSS JS library ( http://elementqueries.com ), and everything turned out very well :)

So I'm here to tell that friends or family aren't always the worst possible clients. If you both know what you're talking about, and are well organized, and define precisely what's the price for each task, it can be a great experience.

today the project has 900 stars on Github and a lengthy Smashing Magazine page :)

More info here: https://www.smashingmagazine.com/2016/07/how-i-ended-up-with...

xem··on HTML5 and JavaScript Game Development Competition in Just 13 KB
JS13k is a great game jam, and the only one I know that offers so many prizes to all the people that submit an entry (and even more prizes for the best entries). Great community too! You can join the Slack group here: https://js13kgames.slack.com

And 13kb (zipped) is not such a low limit! Especially if you manage to generate all (or most of) your game's graphisms procedurally.

The jam starts on august 13!

xem··on Pixel Art to CSS
Related: a <512b JS app that transforms images to CSS: http://xem.github.io/miniShadowArt/
xem··on The Mandelbrot set in JavaScript
Related:

an interactive (zoomable) HTML/JS mandelbrot with detailed (but not long) source code + a super tiny (200 bytes) Mandelbrot tracer: https://github.com/xem/miniMandelbrot

Also related:

ASCII Mandelbrot (111b): http://www.p01.org/128b_mandelbrot/

xem··on Img2css: convert any image into a CSS “image” using only box shadows
Here's a tiny (less than 512b) app I've made with the same goal: http://xem.github.io/miniShadowArt/
xem··on Toggle CSS bookmarklet
other approach: https://twitter.com/subzey/status/621672779344166912
xem··on Toggle CSS bookmarklet
How about this extra-dirty version in 69b?

with(document.documentElement)innerHTML=innerHTML.replace(/yl|nk/g,0)

← PreviousPage 2 of 3Next →