This note explains the basic idea of the animated chart in https://github.com/shuhei/Compare.
We can draw a shape if we have:
This note explains the basic idea of the animated chart in https://github.com/shuhei/Compare.
We can draw a shape if we have:
function Foo(props) { | |
return ( | |
<div className="yes"> | |
<p>Hello, {props.name}</p> | |
</div> | |
); | |
} | |
function FooCompiled(props) { | |
return ( |
It's hard to keep prop types of underlying components of HOCs. Even the official documentation is not working well. It's even harder to have multiple HOCs typed and maintain with peer developers. Here comes recompose
, the HOC utility module. If we have recompose
properly typed, we can omit typing of our own HOCs taking advantage of recompose
and flowtype's type inference.
recompose
still doesn't have official flowtype definition, but there are some efforts:
This gist is an effort to make it happen based on the PRs above.
https://twitter.com/yteraoka/status/823398592635252736
echo 123 | gzip > a.gz
echo 456 | gzip >> a.gz
# Colors (Dracula) | |
colors: | |
# Default colors | |
primary: | |
background: '0x282a36' | |
foreground: '0xf8f8f2' | |
# Normal colors | |
normal: | |
black: '0x000000' |
It was fastest without maxSockets
until the client gets Error: connect ECONNRESET 127.0.0.1:8080
. maxSockets
avoided the error but didn't work for performance.
Karabiner currently doesn't work on Mac OS X Sierra. This note is to simulate some of my favorite configurations on Karabiner on Sierra.
Put the karabiner.json
at ~/.karabiner.d/configuration/karabiner.json
.
#!/usr/bin/env stack | |
-- stack --resolver lts-7.0 --install-ghc runghc --package turtle | |
{-# LANGUAGE OverloadedStrings #-} | |
import Prelude hiding (FilePath) | |
import qualified Control.Foldl as Fold | |
import Turtle | |
import Data.Maybe (fromMaybe) | |
main :: IO () |