Skip to content

Instantly share code, notes, and snippets.

View dohvis's full-sized avatar
๐Ÿ“

Kim Dohyeon dohvis

๐Ÿ“
View GitHub Profile
@nesffer
nesffer / Python_Philosophy.txt
Last active August 15, 2016 15:23
ํŒŒ์ด์ฌ ์ฒ ํ•™ (Python Philosophy)
The Zen of Python, by Tim Peters
(ํŒŒ์ด์ฌ ์ฒ ํ•™, ํŒ€ ํ”ผํ„ฐ์Šค)
Beautiful is better than ugly.
(์•„๋ฆ„๋‹ค์šด ๊ฒƒ์ด ์ถ”ํ•œ ๊ฒƒ๋ณด๋‹ค ๋‚ซ๋‹ค.)
Explicit is better than implicit.
(๋ช…ํ™•ํ•œ ๊ฒƒ์ด ํ•จ์ถ•์ ์ธ ๊ฒƒ๋ณด๋‹ค ๋‚ซ๋‹ค.)
Simple is better than complex.
@therne
therne / 1. Type Checking.md
Last active March 23, 2018 06:56
20160313 ์–ธ์–ด๋ก  ์Šคํ„ฐ๋”” ์ž๋ฃŒ (Lecture 4-2)

Type and Type Checking

์˜ค๋Š˜์˜ PPT ์ž๋ฃŒ ๋งํฌ

Type

์ •์˜ : ์–ด๋– ํ•œ ํ•ญ (Term)์— ๋Œ€ํ•ด์„œ, ๊ทธ ํ•ญ์€ ํƒ€์ž…์„ ๊ฐ€์ง€๊ณ  ์žˆ๊ณ  ๊ทธ ํ•ญ์˜ ์ž…๋ ฅ๊ณผ ๊ฒฐ๊ณผ๋Š” ๊ทธ ํƒ€์ž…์œผ๋กœ ์ œํ•œ๋œ๋‹ค.
ํ‘œ๊ธฐ M : A ๋Š”, M์ด A๋ผ๋Š” ํƒ€์ž…์„ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค๋Š” ์˜๋ฏธ์ด๋‹ค.

์˜ˆ๋ฅผ ๋“ค์–ด, Integer List๋ผ๋Š” ํƒ€์ž…์€ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ท€๋‚ฉ์ ์œผ๋กœ ์ •์˜ํ•  ์ˆ˜ ์žˆ๋‹ค : type IntList = Empty | Int ** IntList.

@karpathy
karpathy / min-char-rnn.py
Last active May 12, 2025 17:28
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
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)
@vsouza
vsouza / .bashrc
Last active April 20, 2025 21:15
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
# 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
@marocchino
marocchino / 094607.md
Last active July 19, 2022 14:25
ES6์‹œ๋Œ€์˜ JavaScript

ES6์‹œ๋Œ€์˜ JavaScript

์•ˆ๋…•ํ•˜์„ธ์š”. ์‚ฌ์›์‚ฌ์—…๋ถ€์˜ ๋งˆ๋ฃจ์•ผ๋งˆ@h13i32maru์ž…๋‹ˆ๋‹ค. ์ตœ๊ทผ์˜ Web ํ”„๋ก ํŠธ์—”๋“œ์˜ ๋ณ€ํ™”๋Š” ๋งค์šฐ ๊ฒฉ๋ ฌํ•ด์„œ, ์กฐ๊ธˆ ๋ˆˆ์„ ๋• ์‚ฌ์ด์— ์ ์  ์ƒˆ๋กœ์šด ๊ฒƒ์ด ๋‚˜์˜ค๊ณ  ์žˆ๋”๋ผ๊ตฌ์š”. ๊ทธ๋Ÿฐ ๊ฒฉ๋ ฌํ•œ ๋ณ€ํ™”์ค‘ ํ•˜๋‚˜๊ฐ€ ES6์ด๋ผ๋Š” ์ฐจ์„ธ๋Œ€ JavaScript์˜ ์‚ฌ์–‘์ž…๋‹ˆ๋‹ค. ์ด ES6๋Š” ํ˜„์žฌ ์žฌ์ •์ค‘์œผ๋กœ ์ง‘ํ•„์‹œ์ ์—์„œ๋Š” Draft Rev31์ด ๊ณต๊ฐœ๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค.

JavaScript๋Š” ECMAScript(ECMA262)๋ผ๋Š” ์‚ฌ์–‘์„ ๊ธฐ๋ฐ˜์œผ๋กœ ๊ตฌํ˜„๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค. ํ˜„์žฌ ๋ชจ๋˜ํ•œ Web ๋ธŒ๋ผ์šฐ์ €๋Š” ECMAScript 5.1th Edition์„ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•œ JavaScript์‹คํ–‰ ์—”์ง„์„ ํƒ‘์žฌํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ๋‹ค์Œ ๋ฒ„์ „์ธ ECMAScript 6th Edition์ด ํ˜„์žฌ ์žฌ์ •์ค‘์œผ๋กœ, ์•ฝ์นญ์œผ๋กœ ES6์ด๋ผ๋Š” ๋ช…์นญ์ด ์‚ฌ์šฉ๋˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

@9beach
9beach / ๊ธฐ์ˆ  ๋ฌธ์„œ๋ฅผ ์“ธ ๋•Œ ์ฃผ์˜ํ•ด์•ผ ํ•  ๋ช‡ ๊ฐ€์ง€.md
Last active November 16, 2024 06:51
๊ธฐ์ˆ  ๋ฌธ์„œ๋ฅผ ์“ธ ๋•Œ ์ฃผ์˜ํ•ด์•ผ ํ•  ๋ช‡ ๊ฐ€์ง€๋ฅผ ๋‚˜์—ดํ•ฉ๋‹ˆ๋‹ค.

๊ธฐ์ˆ  ๋ฌธ์„œ๋ฅผ ์“ธ ๋•Œ ์ฃผ์˜ํ•ด์•ผ ํ•  ๋ช‡ ๊ฐ€์ง€

๋…์ž ๋ฐฐ๋ ค

์ž์‹ ์˜ ์ƒ๊ฐ๊ณผ ํ•  ์ผ์„ ์ •๋ฆฌํ•˜๋Š” ๊ฒƒ์ด ๊ธฐ์ˆ  ๋ฌธ์„œ์˜ ๋ชฉํ‘œ๊ฐ€ ๋  ์ˆ˜๋Š” ์—†๋‹ค. ๋จผ์ € ๋…์ž๋ฅผ ์‹๋ณ„ํ•˜๋ผ. ๊ทธ๋ฆฌ๊ณ  ๋…์ž๋ฅผ ๋ฐฐ๋ คํ•˜๊ณ  ๋…์ž ์ž…์žฅ์„ ์ƒ๊ฐํ•˜๋ฉฐ ๋ฌธ์„œ๋ฅผ ์ž‘์„ฑํ•˜๋ผ.

ํ…์ŠคํŠธ ํŒŒ์ผ์˜ ์žฅ์ 

์ค‘์š”ํ•œ ์ •๋ณด๋ฅผ ์œ„ํ‚ค๋‚˜ ๊นƒ(Git)์—์„œ ํ…์ŠคํŠธ๋กœ ์ž‘์„ฑํ•˜์ง€ ์•Š๊ณ , ์›Œ๋“œ๋‚˜ ํŒŒ์›Œํฌ์ธํŠธ ๊ฐ™์€ ์ด์ง„ ๋ฌธ์„œ๋กœ ์ž‘์„ฑํ•  ๋•Œ๋งˆ๋‹ค ๋‹น์‹ ์˜ ๋™๋ฃŒ๋Š” ์ ‘๊ทผ์„ฑ, ๊ฐ€์‹œ์„ฑ, ๋ฒ„์ „ ๊ด€๋ฆฌ ๋“ฑ ๋‹ค์–‘ํ•œ ๋ฌธ์ œ๋กœ ๊ณ ์ƒํ•  ๊ฒƒ์ด๋‹ค.

@thomasfr
thomasfr / Git push deployment in 7 easy steps.md
Last active May 6, 2025 10:00
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@jwreagor
jwreagor / EmacsKeyBinding.dict
Created March 20, 2014 18:41
Global Emacs Key Bindings for OS X
{
/* 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
@charlierm
charlierm / linked_list.cpp
Last active April 25, 2024 09:11
Linked list written in c++
#include <iostream>
#include <cstdlib>
class Node
{
public:
Node* next;
int data;
};