Live data from Hacker News

Show HN: I made a web-based notepad with a built in unit calculator

numpad.io

151–160 of 246 posts

Re: Show HN: I made a web-based notepad with a built in unit calculator

#151
post #57

This looks pretty cool. I've long been looking for something similar to Soulver ( https://soulver.app/ ) that I can use on Linux. This seems promising. One small criticism: In my opinion, no web-based writing app is useful unless the tab key inserts a tab. The default behavior of most browsers to move focus to the next field is tremendously infuriating in this context. Unfortunately, that's what happens here, at leas…

I've made this one and use it daily:

https://github.com/filipesabella/calcpad

It's electron though, if that's important to you.

Re: Show HN: I made a web-based notepad with a built in unit calculator

#152
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.

Re: Show HN: I made a web-based notepad with a built in unit calculator

#154
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...

Re: Show HN: I made a web-based notepad with a built in unit calculator

#155

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...

You can do "6% of $10" and get "$0.6" (minor note that it would look better as $0.60).

Looks like there's a mod operator, so "2303 mod 10" gives 3.

Re: Show HN: I made a web-based notepad with a built in unit calculator

#157

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...

It does, but you have to type `10 mod 2`

Re: Show HN: I made a web-based notepad with a built in unit calculator

#158

The docs say that this is using CodeMirror. The CodeMirror license says that you're allowed to use CodeMirror for your stuff, but that stuff has to in turn include: 1. the copyright notice 2. the text itself that explains that you/others have this permission/obligation Currently, it looks like NumPad isn't doing either. From comments here, NumPad is evidently also using decimal.js, which has similar terms.

The About page is also a reasonable place to put credits (whether required or not)

Re: Show HN: I made a web-based notepad with a built in unit calculator

#159
post #149
post #21

Nice - I'll give it props for: > 1 metre + 8 chain = 161.9344 m > 1 tonne + 1 short ton = 1.90718474 t > 1 tonne + 1 long ton = 2.0160469 t and give it a pass for not supporting pre 1963 UK | US historic weights and measures .. that's getting into a pretty specific use case where Standards nerds like to have a clear display of what conversion factors are in play and what provenance those factors have. Time Zone suppo…

Didn't tell me how much 8 gills[1] would be in liters (about 1) [1] https://en.wikipedia.org/wiki/Gill_(unit)

I am truly sorry

Re: Show HN: I made a web-based notepad with a built in unit calculator

#160

I like how you are using a Gist for the exchange rates ( https://gist.github.com/tonyonodi/e154f529180b1f0f475966d333... ), do you have a GitHub action setup to automatically update that?

Impressed you found that. I don't have anything set up to automatically update it currently, but I do have an intention to have something set up to automatically update it.
Post reply on HN