- ํ๊ตญ์ด ๋ฒ์ญ(์ด๋ฒ): nacyot
- ๊ฐ์ด ์ฝ์ผ๋ฉด ์ข์ ๋ฌธ์๋ค
{ | |
/* Keybindings for emacs emulation. Compiled by Jacob Rus. | |
* | |
* This is a pretty good set, especially considering that many emacs bindings | |
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and | |
* perhaps a few more, are already built into the system. | |
* | |
* BEWARE: | |
* This file uses the Option key as a meta key. This has the side-effect | |
* of overriding Mac OS keybindings for the option key, which generally |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
์์ ์ ์๊ฐ๊ณผ ํ ์ผ์ ์ ๋ฆฌํ๋ ๊ฒ์ด ๊ธฐ์ ๋ฌธ์์ ๋ชฉํ๊ฐ ๋ ์๋ ์๋ค. ๋จผ์ ๋ ์๋ฅผ ์๋ณํ๋ผ. ๊ทธ๋ฆฌ๊ณ ๋ ์๋ฅผ ๋ฐฐ๋ คํ๊ณ ๋ ์ ์ ์ฅ์ ์๊ฐํ๋ฉฐ ๋ฌธ์๋ฅผ ์์ฑํ๋ผ.
์ค์ํ ์ ๋ณด๋ฅผ ์ํค๋ ๊น(Git)์์ ํ ์คํธ๋ก ์์ฑํ์ง ์๊ณ , ์๋๋ ํ์ํฌ์ธํธ ๊ฐ์ ์ด์ง ๋ฌธ์๋ก ์์ฑํ ๋๋ง๋ค ๋น์ ์ ๋๋ฃ๋ ์ ๊ทผ์ฑ, ๊ฐ์์ฑ, ๋ฒ์ ๊ด๋ฆฌ ๋ฑ ๋ค์ํ ๋ฌธ์ ๋ก ๊ณ ์ํ ๊ฒ์ด๋ค.
์๋ ํ์ธ์. ์ฌ์์ฌ์ ๋ถ์ ๋ง๋ฃจ์ผ๋ง@h13i32maru์ ๋๋ค. ์ต๊ทผ์ Web ํ๋ก ํธ์๋์ ๋ณํ๋ ๋งค์ฐ ๊ฒฉ๋ ฌํด์, ์กฐ๊ธ ๋์ ๋ ์ฌ์ด์ ์ ์ ์๋ก์ด ๊ฒ์ด ๋์ค๊ณ ์๋๋ผ๊ตฌ์. ๊ทธ๋ฐ ๊ฒฉ๋ ฌํ ๋ณํ์ค ํ๋๊ฐ ES6์ด๋ผ๋ ์ฐจ์ธ๋ JavaScript์ ์ฌ์์ ๋๋ค. ์ด ES6๋ ํ์ฌ ์ฌ์ ์ค์ผ๋ก ์งํ์์ ์์๋ Draft Rev31์ด ๊ณต๊ฐ๋์ด์์ต๋๋ค.
JavaScript๋ ECMAScript(ECMA262)๋ผ๋ ์ฌ์์ ๊ธฐ๋ฐ์ผ๋ก ๊ตฌํ๋์ด์์ต๋๋ค. ํ์ฌ ๋ชจ๋ํ Web ๋ธ๋ผ์ฐ์ ๋ ECMAScript 5.1th Edition์ ๊ธฐ๋ฐ์ผ๋ก ํ JavaScript์คํ ์์ง์ ํ์ฌํ๊ณ ์์ต๋๋ค. ๊ทธ๋ฆฌ๊ณ ๋ค์ ๋ฒ์ ์ธ ECMAScript 6th Edition์ด ํ์ฌ ์ฌ์ ์ค์ผ๋ก, ์ฝ์นญ์ผ๋ก ES6์ด๋ผ๋ ๋ช ์นญ์ด ์ฌ์ฉ๋๊ณ ์์ต๋๋ค.
# Set variables in .bashrc file | |
# don't forget to change your path correctly! | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
์ ์ : ์ด๋ ํ ํญ (Term)์ ๋ํด์, ๊ทธ ํญ์ ํ์
์ ๊ฐ์ง๊ณ ์๊ณ ๊ทธ ํญ์ ์
๋ ฅ๊ณผ ๊ฒฐ๊ณผ๋ ๊ทธ ํ์
์ผ๋ก ์ ํ๋๋ค.
ํ๊ธฐ M : A
๋, M์ด A๋ผ๋ ํ์
์ ๊ฐ์ง๊ณ ์๋ค๋ ์๋ฏธ์ด๋ค.
์๋ฅผ ๋ค์ด, Integer List๋ผ๋ ํ์
์ ๋ค์๊ณผ ๊ฐ์ด ๊ท๋ฉ์ ์ผ๋ก ์ ์ํ ์ ์๋ค : type IntList = Empty | Int ** IntList
.
The Zen of Python, by Tim Peters | |
(ํ์ด์ฌ ์ฒ ํ, ํ ํผํฐ์ค) | |
Beautiful is better than ugly. | |
(์๋ฆ๋ค์ด ๊ฒ์ด ์ถํ ๊ฒ๋ณด๋ค ๋ซ๋ค.) | |
Explicit is better than implicit. | |
(๋ช ํํ ๊ฒ์ด ํจ์ถ์ ์ธ ๊ฒ๋ณด๋ค ๋ซ๋ค.) | |
Simple is better than complex. |
django ๊ธฐ๋ณธ ํ ์คํธ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ง์ด๊ทธ๋ ์ด์ ๋์ ๋๋ฆฌ๊ณ ๋ฒ๊ฑฐ๋กญ๊ธฐ ๋๋ฌธ์ py.test์ model_mommy๋ฅผ ์ฌ์ฉํด์ ๋น ๋ฅด๊ฒ ํ ์คํธ๋ฅผ ํ๋ ๋ฐฉ๋ฒ์ ์๊ฐํจ.
- py.test : http://pytest.org/
- pytest-django : http://pytest-django.readthedocs.org/
- model_mommy : http://model-mommy.readthedocs.org/