Code Monkey home page Code Monkey logo

sheet's Introduction

sheet's People

Contributors

caub avatar mmastrac avatar p01 avatar xem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sheet's Issues

3,14

First: Its (again) a very impressive code.

So, I tested it with
A1: 3,14
B1: 3,00
C1: =A1+B1

On "full with headers" it results in 3,143,00
On "minimal" it results in a NaN.
On "Full" it results in 3,143,00.

Its not really a bug, just my two cents.
Keep up your impressive work! :)

Express a[i]+-~j as a[i]-~j?

I'm wondering why a[i]-~j isn't used instead of a[i]+-~j.
It's that obvious that I'm probably missing something, but what?

Downward/rightward references buggy

If you create a downward or rightward reference in a cell, the reference will be broken if it refers to a formula cell. For example, set the following formulas/values in the first column of the example spreadsheet:

A1: =A2
A2: =A3
A3: =A4
A4: 1

Focus cell A3, then focus cell B3. You'll see a NaN appear in cell A2.

I tried modifying the localStorage- and labels-enabled version of the script to fix this issue (and also support recursive formulas properly) and the smallest I can get is 278 characters (up from 257):

<script>(o=b=>{for(j in a)for(i in a)y=a[i]+-~j,f=eval(y+`_=a=>${y}.value=eval("y.a"+l.${y}.replace(/[A-Z]\\d/g,'+$&_()')+"||[l.${y}]")`),b?document.write([["<p>"][i]]+y+`<input onfocus=value=[l[id]] onblur=l[id]=value,o() id=${y}> `):f()})(o(a="ABCD",l=localStorage))</script>

The fix for the other script versions may vary from this one - I haven't attempted to golf a fix there.

I've also used ES6 string-interpolation to save a few bytes. You could probably trim a few off the existing one using that technique.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.