From 0779adc5717675327c56f20bc472640496fcaea0 Mon Sep 17 00:00:00 2001 From: Doeke Zanstra Date: Tue, 27 Oct 2020 11:01:40 +0100 Subject: [PATCH 1/6] calc: replaced f.id usage with parameter variable -9 bytes --- calc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calc.html b/calc.html index 68e188c..02c25c5 100644 --- a/calc.html +++ b/calc.html @@ -1 +1 @@ - \ No newline at end of file +
\ No newline at end of file From 2716c14ce5b793a8704a7f173040964ed61c528e Mon Sep 17 00:00:00 2001 From: Doeke Zanstra Date: Tue, 27 Oct 2020 11:03:58 +0100 Subject: [PATCH 2/6] .charAt(0) => [0] -7 bytes --- calc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calc.html b/calc.html index 02c25c5..711603c 100644 --- a/calc.html +++ b/calc.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file From cb8c5996590a1f0330069c7ff5a88a7f02a6fa74 Mon Sep 17 00:00:00 2001 From: Doeke Zanstra Date: Tue, 27 Oct 2020 11:04:42 +0100 Subject: [PATCH 3/6] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 00cbded..a54646c 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,14 @@ data:text/html, [Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/edit.html) -## Spreadsheet - 679 bytes! +## Spreadsheet - 663 bytes! A very basic spreadsheet with math formulas. It has 100 rows and 26 columns (A..Z). If the value in the cell starts with an "=" = it is evaluated as a formula. You may refer to other cell values, i.e. "=(A10+A11)/A12". Under the hood it uses eval(), so be careful. Copy and add to bookmarks or open in the URL bar: ```html -data:text/html,
+data:text/html,
``` [Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/calc.html) From 5b804188a9b11b1940a6c8ce0871d40f870d7d3e Mon Sep 17 00:00:00 2001 From: Doeke Zanstra Date: Tue, 27 Oct 2020 11:11:29 +0100 Subject: [PATCH 4/6] Simplified calculation -2 --- README.md | 4 ++-- calc.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a54646c..1096803 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,14 @@ data:text/html, [Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/edit.html) -## Spreadsheet - 663 bytes! +## Spreadsheet - 661 bytes! A very basic spreadsheet with math formulas. It has 100 rows and 26 columns (A..Z). If the value in the cell starts with an "=" = it is evaluated as a formula. You may refer to other cell values, i.e. "=(A10+A11)/A12". Under the hood it uses eval(), so be careful. Copy and add to bookmarks or open in the URL bar: ```html -data:text/html,
+data:text/html,
``` [Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/calc.html) diff --git a/calc.html b/calc.html index 711603c..a667019 100644 --- a/calc.html +++ b/calc.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file From 99f08097e5a2af6c8bee6205bb4fb6fd362c7814 Mon Sep 17 00:00:00 2001 From: Doeke Zanstra Date: Tue, 27 Oct 2020 15:49:45 +0100 Subject: [PATCH 5/6] Ex/import --- README.md | 6 +++--- README.sh | 2 +- calc.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1096803..c2f6e53 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,14 @@ data:text/html, [Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/edit.html) -## Spreadsheet - 661 bytes! +## Spreadsheet - 795 bytes! -A very basic spreadsheet with math formulas. It has 100 rows and 26 columns (A..Z). If the value in the cell starts with an "=" = it is evaluated as a formula. You may refer to other cell values, i.e. "=(A10+A11)/A12". Under the hood it uses eval(), so be careful. +A very basic spreadsheet with math formulas. It has 100 rows and 26 columns (A..Z). If the value in the cell starts with an "=" = it is evaluated as a formula. You may refer to other cell values, i.e. "=(A10+A11)/A12". Under the hood it uses eval(), so be careful. Click on the `@`-header to import and export data in JSON-format. Copy and add to bookmarks or open in the URL bar: ```html -data:text/html,
+data:text/html,
``` [Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/calc.html) diff --git a/README.sh b/README.sh index 320cf49..992fa88 100755 --- a/README.sh +++ b/README.sh @@ -28,7 +28,7 @@ data:text/html,$(cat edit.html) ## Spreadsheet - $(wc -c < calc.html | tr -d ' ') bytes! -A very basic spreadsheet with math formulas. It has 100 rows and 26 columns (A..Z). If the value in the cell starts with an "=" = it is evaluated as a formula. You may refer to other cell values, i.e. "=(A10+A11)/A12". Under the hood it uses eval(), so be careful. +A very basic spreadsheet with math formulas. It has 100 rows and 26 columns (A..Z). If the value in the cell starts with an "=" = it is evaluated as a formula. You may refer to other cell values, i.e. "=(A10+A11)/A12". Under the hood it uses eval(), so be careful. Click on the \`@\`-header to import and export data in JSON-format. Copy and add to bookmarks or open in the URL bar: diff --git a/calc.html b/calc.html index a667019..06bde17 100644 --- a/calc.html +++ b/calc.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file From 53a913157033ae7f3db99d5e821aef08f8cf7a44 Mon Sep 17 00:00:00 2001 From: Doeke Zanstra Date: Tue, 27 Oct 2020 16:00:09 +0100 Subject: [PATCH 6/6] Removed closing style tag -8 bytes --- README.md | 4 ++-- README.sh | 2 +- calc.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c2f6e53..1a845db 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,14 @@ data:text/html, [Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/edit.html) -## Spreadsheet - 795 bytes! +## Spreadsheet - 787 bytes! A very basic spreadsheet with math formulas. It has 100 rows and 26 columns (A..Z). If the value in the cell starts with an "=" = it is evaluated as a formula. You may refer to other cell values, i.e. "=(A10+A11)/A12". Under the hood it uses eval(), so be careful. Click on the `@`-header to import and export data in JSON-format. Copy and add to bookmarks or open in the URL bar: ```html -data:text/html,
+data:text/html,
\ No newline at end of file +