Skip to content

Instantly share code, notes, and snippets.

View choyongjoon's full-sized avatar

Yongjun Cho choyongjoon

View GitHub Profile
@choyongjoon
choyongjoon / .gitconfig
Last active February 15, 2021 05:39
.gitconfig
[alias]
a = add
b = branch
c = commit
ch = checkout
cm = commit -m
f = fetch
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit
pl = pull
ps = push
@choyongjoon
choyongjoon / SomeComponent.tsx
Created April 29, 2019 05:41
MobX + React Hooks
const SomeComponent = inject("someStore")((props: SomeComponentProps) => {
// use hooks in here
const { someStore } = props;
const ref = useRef(null);
useEffect(() => {
someStore!.setRef(ref.current);
}, []);
return (
<Observer>
@choyongjoon
choyongjoon / SignupForm.tsx
Created April 25, 2019 03:25
Cake Form example
import React from "react"
import Form, { label, defaultValue, required, regex, length } from "cake-form"
interface SignupFormSource {
email: string
password: string
}
export default class SignupForm extends Form<SignupFormSource> {
@label("Email")
@choyongjoon
choyongjoon / .bashrc
Last active December 1, 2017 09:13
Home setting
#!/usr/bin/env bash
# use 'vi' for 'vim'
alias vi='vim'
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
# before prompt
@choyongjoon
choyongjoon / README.md
Last active September 9, 2015 04:59
보고 있는 웹툰들

2015-09-09 완결 웹툰 늘어남