Skip to content

Instantly share code, notes, and snippets.

Jih-Chi Lee jihchi

Block or report user

Report or block jihchi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jihchi /
Created Nov 28, 2017
Compiling vim on Ubuntu 16 with LUA-support
# Remove previous installations
sudo apt-get remove vim vim-runtime vim-tiny vim-common
# Install dependencies
sudo apt-get install libncurses5-dev python-dev libperl-dev ruby-dev liblua5.2-dev
# Fix liblua paths
sudo ln -s /usr/include/lua5.2 /usr/include/lua
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/local/lib/

Keybase proof

I hereby claim:

  • I am jihchi on github.
  • I am jihchi ( on keybase.
  • I have a public key ASDFHIEKvXoeDQ-t-apVDPO7quWLWAQ5XuemgoZsgN9Powo

To claim this, I am signing this object:

jihchi /
Last active Sep 7, 2016
Elm with Sublimt Text 3

Elm Language Support

  1. Install Elm Language Support


  1. npm install -g elm-oracle


  1. Install elm-format
  2. To enable automatic formatting on every save, Go to Preferences -> Package Settings -> Elm Language Support -> User and add this setting: "elm_format_on_save": true
jihchi /
Last active Feb 28, 2018
Add new deployment key to BitBucket via API
#!/usr/bin/env bash
set -e
# Method 1. Authenticate by your account & password
jihchi /
Last active May 27, 2016
Docker Engine Installation Script for Ubuntu 14.04 (LTS)
sudo apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo touch /etc/apt/sources.list.d/docker.list
sudo sh -c 'echo "deb ubuntu-trusty main" >> /etc/apt/sources.list.d/docker.list'
sudo apt-get update
sudo apt-get install -y docker-engine
sudo service docker start
sudo usermod -aG docker $(whoami)

Getting Started

git clone playground
cd playground
npm install
npm start

Then point your browser at http://localhost:3000

View simple-react
jihchi /
Last active Sep 5, 2015
My Bash It Default Installation
# bash-it
if [ ! -d "$BASH_IT" ]; then
git clone --depth=1 $BASH_IT
source ~/.bashrc
View Dockerfile
FROM <private repo>
MAINTAINER Ross Kukulinski ""
ADD nginx.toml /etc/confd/conf.d/nginx.toml
ADD templates/nginx.tmpl /etc/confd/templates/nginx.tmpl
ADD confd-watch /usr/local/bin/confd-watch
RUN chmod +x /usr/local/bin/confd-watch
jihchi /
Created Apr 16, 2015 — forked from staltz/
The introduction to Reactive Programming you've been missing in Traditional Chinese language

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

You can’t perform that action at this time.