Better HN
topnewbestaskshowjobs
Log inSign up

gunn

233 karma · joined Sep 24, 2012 (14y ago) · 104 submissions

https://github.com/gunn
Submissions

comment 5y ago · link · parent

So what does the non-simulated "real" or "outer-world" look like in this view?

comment 5y ago · link · parent

https://github.com/Microsoft/monaco-editor

comment 5y ago · link · parent

React itself is quite small but react-dom is much bigger: 121KB minified, 40KB gzipped - https://bundlephobia.com/result?p=react-dom@17.0.1

comment 6y ago · link · parent

I also just found https://hatchinvest.nz/ - has US market access, I don't know about an API

comment 6y ago · link · parent

There's https://hellostake.com/ for NZ and AU. They don't have an API yet but would like to in the future - see comment here: https://old.reddit.com/r/PersonalFinanceNZ/comments/fnbmlx/x...

As mentioned, Sharesies plan to allow US market access: https://app.sharesies.nz/us-equities-register They do seem to have a private API at least: https://app.sharesies.nz/api/fund/list

https://www.revolut.com/en-NZ have plans to expand to NZ, I don't know much about their services though.

comment 6y ago · link · parent

As in .mjs files? Personally, I just want to import my own .js / .ts files and external npm packages which works well - https://github.com/gunn/covid-19-scripts/blob/023579e1cf/get...

The catch for me is that it's probably not suitable for a sever in production as mentioned elsewhere in this thread.

comment 6y ago · link · parent

You'll like https://www.npmjs.com/package/ts-node - it allows zero processing use of typescript

comment 6y ago · link · parent

React native doesn't really use css - there are no .css files, no cascading either. It's more like a style engine that uses a subset of css ideas as a starting point.

It uses flex-box (and only flex-box) for layout, adds some convenient shorthands - marginVertical, marginHorizontal, and does some surprising (but useful) things like has transform take a JS array of key value pairs - https://reactnative.dev/docs/transforms#transform

comment 6y ago · link · parent

It buys time to prepare, and for vaccines and other treatments.

comment 6y ago · link · parent

This looks useful, but also quite big - larger than react-dom: https://bundlephobia.com/result?p=react-flow-renderer@1.1.0

comment 6y ago · link · parent

Hey, since you know about this space, could I contact you to to learn some more about it? I'm developing a product that can act as a CMS but is more general and I think more powerful. If you can email me, I'm arthur@everdb.net

comment 6y ago · link · parent

It seems to be based on a site by cloudflare: https://isbgpsafeyet.com/

comment 6y ago · link · parent

Like it says, <1kB minified and gzipped. But 9.5kB only minified, i.e. The css is highly repetitive so gzip is able to do a lot.

I know it's still small, but I'd be tempted to extract just the rules I wanted. Very nice regardless.

comment 6y ago · link · parent

Why are schemas strings?

It would seem much more natural to make them JSON structures since they're almost that anyway.

comment 6y ago · link · parent

I use and can recommend the chrome extension from https://sessionbuddy.com/

Even if you don't use it actively, it periodically saves the state of your windows and tabs (all locally), so you can restore sessions from months and years ago.

comment 6y ago · link · parent

Try mine! https://github.com/gunn/pure-store

Super simple, 100% test coverage, 100% typesafe if using typescript, absolutely no boilerplate.

comment 6y ago · link · parent

Thanks for the reply. It looks well organized now. I'll be keeping my eye on it.

comment 6y ago · link · parent

There's quite a lot of code in the packages dir - 76,000 lines of typescript.

It was all added in the first commit 45 mins ago. Why would they hide their commit history?

Also I found this funny - comments in package.json:

  "//": "Look! No deps!",
  "dependencies": {},
  "///": "Only used for static type checking",
  "devDependencies": {

comment 6y ago · link · parent

Looks excellent. One thing I'd question is why it should deviate from html / css like it does - why choose corners: 4px over border-radius: 4px?

comment 6y ago · link · parent

I'd definitely hope browsers could encode them for example to allow canvas.toDataURL("image/flif")

comment 6y ago · link · parent

To give them some credit: it's not sent when in incognito mode.

comment 6y ago · link · parent

In ruby you are always calling a method, you can't access a property from outside a class with normal syntax.

comment 6y ago · link · parent

Excellent clip thank you.

comment 6y ago · link · parent

Here's the library I wrote to replace redux for myself: https://github.com/gunn/pure-store

It's the simplest API I could think of, has excellent type support, and handles immutability for you.

comment 7y ago · link · parent

This is very cool. Especially the animate into compact code view when holding down the alt key. Is there an extension with similar functionality in any other editor?

comment 7y ago · link · parent

The released mac didn't work for me, but the webassembly webGL version is excellent - https://michelemorrone.eu/glchaosp/webGL.html

comment 7y ago · link · parent

For anyone who doesn't know it, the name Pala is a reference to the setting of a novel by Aldous Huxley - https://en.wikipedia.org/wiki/Island_(Huxley_novel)

comment 7y ago · link · parent

It also has the advantage over code that it can be modified with a visual interface designer.

comment 7y ago · link · parent

It is ugly:

["div", 0, "The ", ["a", {"href": "https://www.json.org/"}, "JSON format"], " was invented by ", ["em", 0, "Douglas Crockford"], "."]

comment 7y ago · link · parent

Here you go: https://github.com/tonsky/FiraCode
1234