Skip to content

Instantly share code, notes, and snippets.

View ysyun's full-sized avatar

YoungSik Yun ysyun

View GitHub Profile
@ysyun
ysyun / nvmrc-loader.plugin.zsh
Created October 6, 2021 02:05 — forked from quchao/nvmrc-loader.plugin.zsh
Calling `nvm use` automatically in a directory with a .nvmrc file
#! /usr/bin/env zsh
# Ref: https://github.com/creationix/nvm#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file
# place this after nvm initialization!
autoload -Uz add-zsh-hook
# Function: load-nvmrc
load-nvmrc() {
local _CUR_NODE_VER="$(nvm version)"
@ysyun
ysyun / React Lifecycle Methods
Created February 6, 2018 14:10 — forked from fisherwebdev/React Lifecycle Methods
Cheatsheet for React lifecycle and update cycle methods
Lifecycle: | Update:
Mounting and Unmounting | New Props or State
--------------------------------+-----------------------------------
|
getDefaultProps() | componentWillReceiveProps()*
|
getInitialState() | shouldComponentUpdate()
|
componentWillMount() | componentWillUpdate()
|
@ysyun
ysyun / React Lifecycle Methods
Created February 6, 2018 14:09 — forked from fisherwebdev/React Lifecycle Methods
Cheatsheet for React lifecycle and update cycle methods
Lifecycle: | Update:
Mounting and Unmounting | New Props or State
--------------------------------+-----------------------------------
|
getDefaultProps() | componentWillReceiveProps()*
|
getInitialState() | shouldComponentUpdate()
|
componentWillMount() | componentWillUpdate()
|
@ysyun
ysyun / webtail.py
Created October 3, 2017 02:05 — forked from fiorix/webtail.py
tail -F and broadcast to all of your browsers via sse
#!/usr/bin/env python
# coding: utf-8
#
# start the server:
# python webtail.py /var/log/syslog
#
# point all your browsers to:
# http://localhost:8888
@ysyun
ysyun / StartingWithDocker.md
Created April 24, 2017 14:53 — forked from duluca/StartingWithDocker.md
Starting with Docker

What is Docker?

  • Docker is an open platform for developing, shipping, and running applications.
  • Combines a lightweight container virtualization platform with workflows and tooling that help manage and deploy applications.

Why is Containerization Important?

  • Containerization allows for encapsulation of app specific configuration concerns.
  • Encapsulation allows for decoupling of dependencies, so each app can depend on different versions.
  • Simpler dependency management results in a low friction IT environment, less things to learn and break.
  • Low friction allows to ship code faster, test faster, deploy faster, shortening the cycle between writing code and running code.
@ysyun
ysyun / rxjs_operators_by_example.md
Created February 28, 2017 07:17 — forked from btroncone/rxjs_operators_by_example.md
RxJS 5 Operators By Example
@ysyun
ysyun / ngrxintro.md
Created May 23, 2016 05:07 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series
@ysyun
ysyun / introrx.md
Created May 17, 2016 01:16 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
<html>
<head>
<title>Angular2 Component</title>
<link rel="stylesheet" href="style.css" />
<!-- 1. Load libraries -->
<script src="https://code.angularjs.org/2.0.0-beta.15/angular2-polyfills.js"></script>
<script src="https://code.angularjs.org/tools/system.js"></script>
<script src="https://code.angularjs.org/tools/typescript.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.15/Rx.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.15/angular2.dev.js"></script>