2015-09-09 완결 웹툰 늘어남
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SomeComponent = inject("someStore")((props: SomeComponentProps) => { | |
// use hooks in here | |
const { someStore } = props; | |
const ref = useRef(null); | |
useEffect(() => { | |
someStore!.setRef(ref.current); | |
}, []); | |
return ( | |
<Observer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |