Ziad El Khoury Hanna

Results 29 comments of Ziad El Khoury Hanna

I would like to see a comparison with [histdb](https://github.com/larkery/zsh-histdb) And how one could migrate to McFly from the other history tools

Since `html` is a template string literal tag, you can just wrap it ```js const whtml = (statics, ...fields) => wrap(() => html(statics, ...fields), statics, ...fields); ```

As [patch.js:52](https://github.com/atom/etch/blob/master/lib/patch.js#L52) suggests, the `update()` method of the component is passed the new props and children as params.

After some trial and error, I found that (as @azadi mentioned) DPI matters. It looks like the actual width displayed is `displayed-width = image-width * 72 / image-dpi-width` and same...

@aonez No, it's a PNG with 144 DPI and it works on both retina and non-retina

@aonez I don't understand the problem that you have with using a single 144 DPI PNG That what I'm using and I found that it works well on both retina...

@aonez Oh I was using Inkscape to create the background. When exporting, Inkscape uses 90 DPI, even when changing the size so when I doubled the size the DPI doubled...

I now use `qlmanage -t` to convert the SVG into a PNG without passing by Inkscape One downside to this technique is that the resulting PNG will be a square...

Here's my solution, I prefer it to `notNull` above because: 1. It can be compiled away, making it have zero cost 2. It's just one character 😝 ```js /** *...

FWIW I achieve partial stashing by first staging the changes then using the `Stash --staged` command.