Live data from Hacker News

A collaborative spreadsheet in less than 45 lines of JS, one library used

jsfiddle.net

61–69 of 69 posts

Re: A collaborative spreadsheet in less than 45 lines of JS, one library used

#61

WARNING: Could there be some kind of script attack ? My Safari browser freezes with 'foo' alert message from this site and it has placed itself as default website so whenever I reopen safari it freezes again. Let me know if you know how to fix this.

How can JS make some page your default? Strange

Re: A collaborative spreadsheet in less than 45 lines of JS, one library used

#62
post #21
post #10

I like the craziness that this devolved into. It's funny when a bunch of people are all editing like mad. I had the thought that it'd be fun to have a contest using jsfiddle to start from some point, like the excel (lite) clone in 30 lines, and add the best/coolest feature in some limit of lines. It's really wonderful how ingenuity stacks.

Such hax. I wonder if a collaborative drawing app could be made with this, using canvas.. I keep trying to figure out exactly how it works but then sparkleponies and alerts everywhere...

https://github.com/adamwdennis/Go-Drawingboard

Re: A collaborative spreadsheet in less than 45 lines of JS, one library used

#63
post #50

I think the title should warn users of the various remote injection vulnerabilities present in the script. It took about 5 seconds for the page to change to xhamster

Which would have been extremely embarrassing for someone at work. Luckily, that didn't happen to me.

Re: A collaborative spreadsheet in less than 45 lines of JS, one library used

#64

Earlier quoted context omitted.

You'd have to parse the cells as some sort of DSL that only allows mathematical tokens, as opposed to eval which allows access to the full arsenal of the JS language. But I think excel is Turing complete

Brings up the interesting question -- I wonder what turing-complete DSLs have drop-in JS libraries you could use to replace the call to "eval" here.

http://nayuki.eigenstate.org/res/brainfuck-interpreter-javas...

Re: A collaborative spreadsheet in less than 45 lines of JS, one library used

#65

WARNING: Could there be some kind of script attack ? My Safari browser freezes with 'foo' alert message from this site and it has placed itself as default website so whenever I reopen safari it freezes again. Let me know if you know how to fix this.

It's probably just restoring your previous session. Hold down Shift when starting Safari to avoid loading the old session data.

Re: A collaborative spreadsheet in less than 45 lines of JS, one library used

#69

Nice. I look forward to the full office suite in 60 lines of JS, the email client/server in 75 lines of JS, and of course the bitcoin exchange web app in 90 lines of JS.

Did you forget an operating system in 150 lines of JS? (Four libraries used)

Not sure how many lines of js it uses, but here you go:

http://bellard.org/jslinux/

http://bellard.org/jslinux/tech.html

Post reply on HN