Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Joplin
Joplin - the secure note taking and to-do app with synchronisation capabilities for Windows, macOS, Linux, Android and iOS.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Looks good! I love the idea of the embedded calculator
I noticed that it doesn't handle remainder/modulo (%) equations:
"10 % 2" results in: "Left hand side of addition cannot be a percentage."
It does look like decimal.js can handle that: https://mikemcl.github.io/decimal.js/#mod
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Very cool!
This reminds me of the open source NoteCalc: https://bbodi.github.io/notecalc3/
It was discussed on HN, you might look there for inspiration: https://news.ycombinator.com/item?id=25495393
Very nice! Reminds me a lot of numi (https://numi.app). Similar, but MacOS only (and paid).
I've made this one and use it daily:
https://github.com/filipesabella/calcpad
It's electron though, if that's important to you.
Along the same lines, I made a command line calculator that does basic unit conversions, and has a few other tricks up it's sleeve
https://github.com/seligman/human_calc
I find it surprisingly useful. It's probably one of those things that has an audience of one, but I find it useful.
Ha, yes, I was being nosy. It was quite easy to spot as it's the only XHR/Fetch request.
I was intrigued what you had used to build it, and if you had built your own solver (which you have), and what editor you used (Code Mirror) so went looking at the code. Interesting to see you left the source maps for production, made it easy for my sleuthing...
I experimented with a similar idea last year, but used ProseMirror/TipTap as the editor to enable rich text editing, and the MathJS (https://mathjs.org) solver. I also combined it with PouchDB and Yjs for offline editing and syncing between devices. Never finished it though, you have kept your nice and simple!
I wanted to see how this would run in redbean[1], and it runs fantastically!
If you wanna see this in a little executable that you can pass around to your friends, check out this repo I threw up: https://github.com/shmup/redbean-calcpad
1. https://justine.lol/redbean2/
That's really cool!
Anyone knows if there's a way to have this feature in Joplin[0] ?
[0]: https://joplinapp.org/
Hey!
It's still in development. I built a proof-of-concept from scratch almost a year ago, which I just open-sourced at the following link.
https://github.com/nonoesp/note-parser
I intend to develop it a bit more and host it online.
A previous prototype, really barebones, is at https://expensed.me.
The idea is to drag and drop (or type) a plain-text note and visualize the data as a scatterplot or other charts.
Note: I had this response typed up but didn't submit...
One related app that I absolutely love is Qalculate![1] (yes, it has a built-in exclamation for default enthusiasm :) )
It can do cool stuff like converting N (newtons) to kg.m/s^2 when you specify units as ?kg. It also converts units like 1kW x 1year = 31.55... GJ
It's fantastic for engineering and specially back-of-envelope calculations. This notepad aspect does seem useful though. One alternative is to use Jupyter notebooks, sometimes I work problems with Sage[2]+Jupyter. Sage is extremely powerful (you can do calculus, linear algebra, and more) but doesn't support units (that I know of), it's more geared toward advanced maths.
[1] https://qalculate.github.io/
[2] https://www.sagemath.org/ It's a bit on the heavy side although it's definitely worth it if you're doing a lot of math. I think the flatpak is preferred due to its significant size.