Skip to content

Instantly share code, notes, and snippets.

View galch's full-sized avatar
๐ŸŽฏ
Focusing

Steve Han galch

๐ŸŽฏ
Focusing
View GitHub Profile
@galch
galch / gist:625a7c3a30c17d7f742c178f35b56b8e
Created May 16, 2016 06:06
raspberry pi setting localtime in command line
sudo cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime
@galch
galch / rot13.go
Last active July 9, 2016 17:32
A Tour of Go - [Exercise : Rot13 Reader](http://tour.golang.org/#61) & [์—ฐ์Šต: Rot13 Reader](https://go-tour-kr.appspot.com/#61)
package main
import (
"io"
"os"
"strings"
)
type rot13Reader struct {
r io.Reader
@galch
galch / walker.go
Created July 10, 2016 16:34
A Tour of Go - [Exercise: Equivalent Binary Trees](https://tour.golang.org/concurrency/7) & [์—ฐ์Šต: ๋™๋“ฑํ•œ ์ด์ง„ ํŠธ๋ฆฌ](https://go-tour-kr.appspot.com/#70)
package main
import "code.google.com/p/go-tour/tree"
import "fmt"
type Tree struct {
Left *Tree
Value int
Right *Tree
}
@galch
galch / ssh key saving
Created July 13, 2016 09:22
linux/ubuntu ssh key saving
ssh-keygen
ssh-copy-id -i root@ip_address
@galch
galch / .vimrc
Created January 19, 2017 06:52
Vimrc
set number " line ํ‘œ์‹œ๋ฅผ ํ•ด์ค๋‹ˆ๋‹ค.
set ai " auto indent
set si " smart indent
set cindent " c style indent
set shiftwidth=4 " shift๋ฅผ 4์นธ์œผ๋กœ ( >, >>, <, << ๋“ฑ์˜ ๋ช…๋ น์–ด)
set tabstop=4 " tab์„ 4์นธ์œผ๋กœ
"set expandtab " tab ๋Œ€์‹  ๋„์–ด์“ฐ๊ธฐ๋กœ
set ignorecase " ๊ฒ€์ƒ‰์‹œ ๋Œ€์†Œ๋ฌธ์ž ๊ตฌ๋ณ„ํ•˜์ง€์•Š์Œ
set hlsearch " ๊ฒ€์ƒ‰์‹œ ํ•˜์ด๋ผ์ดํŠธ(์ƒ‰์ƒ ๊ฐ•์กฐ)
set background=dark " ๊ฒ€์ •๋ฐฐ๊ฒฝ์„ ์‚ฌ์šฉํ•  ๋•Œ, (์ด ์ƒ‰์ƒ์— ๋งž์ถฐ ๋ฌธ๋ฒ• ํ•˜์ด๋ผ์ดํŠธ ์ƒ‰์ƒ์ด ๋‹ฌ๋ผ์ง‘๋‹ˆ๋‹ค.)