Huy Giang
Huy Giang
This improves responsiveness of this "Prompt" since it prevents unnecessary repo checks ie. `hg summary` is verys slow (1s) regardless so it will slow down the shell. https://github.com/gnhuy91/dotfiles/commit/d5b237f930e00d1eccfd3c1b128027edcec90871
`undefined: tt in tt.name`. ```go func Test_main(t *testing.T) { tests := []struct { name string }{ // TODO: Add test cases. } for range tests { t.Run(tt.name, func(t *testing.T) {...
Follow discussion here: https://github.com/final-form/react-final-form-arrays/issues/3#issuecomment-351748774 [](https://codesandbox.io/s/xvrv30p95q) When mixed field with field arrays, the form cannot submit due to `errors` object can never be empty ie. ```json Form...
https://github.com/dwarvesf/playbook/blob/master/engineering/ci-cd.md As we've been moving some of our CI pipelines from Gitlab to Github to leverage Github Action and enjoying it (for now), let's update the stack here as well.
Tested on latest Chrome/Safari/Firefox. ```css .fullscreen-container { --header-height: 81px; --section-height: calc(100vh - var(--header-height)); /* https://caniuse.com/#feat=css-snappoints */ /* for firefox/edge (old version of the spec) */ scroll-snap-type: mandatory; scroll-snap-points-y: repeat(var(--section-height)); /*...
`window.innerHeight` is your best bet. Below method work on both android/chrome and ios/safari. One caveat is that you will see a flash from `100vh` to `window.innerHeight` (at least on https://dautu.io)...
https://stackoverflow.com/questions/1495407/maintain-the-aspect-ratio-of-a-div-with-css ```css div { width: 100%; padding-bottom: 75%; /* 4:3 ratio */ background: gold; } ``` `padding-bottom` values for other aspect ratios and 100% `width`: ``` aspect ratio | padding-bottom...

Use `!!` - negative's negative ```js var falsy1 = !!undefined // false var falsy2 = !!null // false var falsy3 = !!'' // false var falsy4 = !!0 // false...