I hereby claim:
- I am tungbt94 on github.
- I am tungbt94 (https://keybase.io/tungbt94) on keybase.
- I have a public key ASCMutEYS2GRvOCfy12-LUyJ2t98LQUeuISkFFSZZjyfhQo
To claim this, I am signing this object:
| mkdir ~/vim | |
| cd ~/vim | |
| # Staically linked vim version compiled from https://github.com/ericpruitt/static-vim | |
| # Compiled on Jul 20 2017 | |
| curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz | |
| export VIMRUNTIME="$HOME/vim/runtime" | |
| export PATH="$HOME/vim:$PATH" | |
| cd - |
I hereby claim:
To claim this, I am signing this object:
Prometheus
| <nuxt-link | |
| :to="..." | |
| @mouseover.native="onMouseOver" | |
| @mouseleave.native="onMouseOut"> | |
| ... | |
| </nuxt-link> | |
| <!-- Use .navtive --> |
| <template> | |
| <img :data-src="lazySrc" :data-srcset="lazySrcset" :style="style"/> | |
| </template> | |
| <script> | |
| import lozad from "lozad"; | |
| export default { | |
| name: "LazyImage", | |
| props: { |
| Each YouTube video has 4 generated images. They are predictably formatted as follows: | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/0.jpg | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/1.jpg | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/2.jpg | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/3.jpg | |
| The first one in the list is a full size image and others are thumbnail images. The default thumbnail image (ie. one of 1.jpg, 2.jpg, 3.jpg) is: | |
| http://img.youtube.com/vi/<insert-youtube-video-id-here>/default.jpg |
| # checkout, compile & install | |
| git clone [email protected]:facebook/watchman.git | |
| cd watchman/ | |
| git checkout v4.9.0 | |
| sudo apt-get install -y autoconf automake build-essential python-dev libssl-dev libtool | |
| ./autogen.sh | |
| ./configure | |
| make | |
| sudo make install |
| <template> | |
| <div class="hello"> | |
| <h1>{{ query }}</h1> | |
| <input | |
| ref="input" | |
| v-model="query" | |
| @focus="showMobileKeyboard" | |
| @keyup.enter="hideMobileKeyboard"/> | |
| </div> | |
| </template> |
| package main | |
| import ( | |
| "fmt" | |
| "image" | |
| "image/png" | |
| "os" | |
| ) | |
| func main() { |
| // Note: You have to install imagemagick before | |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "os" | |
| "os/exec" | |
| "path/filepath" |