Skip to content

Instantly share code, notes, and snippets.

View EB-Plum's full-sized avatar
๐Ÿšธ

DongYub Lee EB-Plum

๐Ÿšธ
View GitHub Profile
1. Install oh-my-zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
2. Clone necessary plugins.
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
3. Add plugins to ~/.zshrc as
plugins = ( [plugins...] zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting)
@EB-Plum
EB-Plum / hangul_korean_pixel_font.md
Created August 25, 2022 03:05
ํ•œ๊ธ€ ๋„ํŠธ ํฐํŠธ

ref : https://gall.dcinside.com/mgallery/board/view/?id=indiegame&no=47027&exception_mode=recommend&page=1

์œˆ๋„์šฐ ๊ธฐ๋ณธ ๋น„ํŠธ๋งต ํฐํŠธ - 11px ~ 20px

๋‹จ์—ฐ ์ด๋ถ„์•ผ ํ„ฐ์ค๋Œ€๊ฐ

ํฌ๊ธฐ๋„ ์ •๋ง ๋‹ค์–‘ํ•˜๊ณ  ํ•œ๊ธ€ 11172์ž ์ „๋ถ€ ์ง€์›ํ•˜๊ณ  ํ•œ์ž๊นŒ์ง€ ์ง€์›

ํŠนํžˆ ๊ตด๋ฆผ 12px์ด ์Šคํ…Œ๋””์…€๋Ÿฌ๋ผ๊ณ  ํ•ด๋„ ๋  ๋งŒํผ ์˜ค๋žซ๋™์•ˆ ์—ฌ๋Ÿฌ ๊ณณ์—์„œ ๋‹ค์–‘ํ•˜๊ฒŒ ์“ฐ์ž„

@EB-Plum
EB-Plum / nthXdayDate.js
Created July 7, 2022 03:57
get date of N-th X-day in specific Year-Month
/*
get date of N-th X-day in specific Year-Month
logic behind first_x_day_date
xday
0 1 2 3 4 5 6
getDay 0 | 1 2 3 4 5 6 7
(wday) 1 | 7 1 2 3 4 5 6
2 | 6 7 1 2 3 4 5
3 | 5 6 7 1 2 3 4
@EB-Plum
EB-Plum / cookie summary.md
Created June 23, 2022 02:58
GDPR ์ฟ ํ‚ค ์ •์ฑ… ์š”์•ฝ
@EB-Plum
EB-Plum / gist:a1c76c391b0b85558b2f6c91cb7841e9
Last active June 24, 2022 05:03
์™œ vue ๊ฐ™์€๊ฑธ ์“ฐ๊ฒŒ๋๋‚˜?
# 3์ค„ ์š”์•ฝ
์›นํŽ˜์ด์ง€์—์„œ ๋ฐ์ดํ„ฐ๊ฐ€ ๋ณ€ํ•˜๋ฉด DOM๋„ ๋ณ€ํ•ด์•ผ ํ•œ๋‹ค.
๋ฐ์ดํ„ฐ๊ฐ€ ๋ณ€ํ• ๋•Œ๋ฅผ ์•ˆ๋‹ค = data binding & life cycle
์–ด๋””์˜ DOM์ด ๋ณ€ํ•˜๋Š”๊ฐ€ = component template
์ด๊ฑธ ์‰ฝ๊ฒŒ ํ•ด์ฃผ๋Š”๊ฒŒ vue ์™€ ๊ฐ™์€ ํ”„๋ก ํŠธ์—”๋“œ ํ”„๋ ˆ์ž„์›Œํฌ๋“ค.
# ์›นํŽ˜์ด์ง€์˜ ์—ญ์‚ฌ(?)
์ •์  ์ปจํ…์ธ ์ธ html๋กœ ์‹œ์ž‘
-> ์–ธ์ œ๋‚˜ ๊ฐ™์€ ๋‚ด์šฉ๋งŒ ๋ณด์ž„
@EB-Plum
EB-Plum / mysolultion.md
Last active March 7, 2019 03:25
Quasar(Webpack, Babel) + D3 v4 : issue : d3.event is always null

possible occuring errors while using d3 :

  • can not read "sourceEvent" of null
  • d3.event is always null ...

cause :

as far as i understand...

  1. quasar using webpack and babel
    > 2. webpack not checking "jsnext:main", it import default 'd3/index.js' and pass it to babel.
@EB-Plum
EB-Plum / vki.js
Created May 18, 2018 09:09
Javascript vitual keyboard korean input handling
// ์†Œ์Šค ์ถœ์ฒ˜ http://note.heyo.me/%ED%95%9C%EA%B8%80-%EA%B0%80%EC%83%81%ED%82%A4%EB%B3%B4%EB%93%9C-%EB%A7%8C%EB%93%A4%EA%B8%B0-2/
// ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๊ฐ€์ƒ ํ‚ค๋ณด๋“œ ํ•œ๊ธ€ ์ž…๋ ฅ
// Note : ใ…ƒ,ใ…‰,ใ„ธ ๋“ฑ์ด ์ข…์„ฑ์œผ๋กœ ์ž…๋ ฅ๋˜๋Š” ๋ฒ„๊ทธ ์ˆ˜์ •
//
function input_string($textbox, input_chr){
/*
* $textbox :: jquery object
* ex) <span id="textbox"></span>
* for using form input, change $input.text() -> $input.val()
*
182 INFO: PyInstaller: 3.3.1
182 INFO: Python: 3.6.4
183 INFO: Platform: Windows-10-10.0.16299-SP0
186 INFO: wrote D:\Test\pyinstall\test.spec
188 DEBUG: Testing for UPX ...
190 INFO: UPX is not available.
191 INFO: Removing temporary files and cleaning cache in C:\Users\LDY\AppData\Roaming\pyinstaller
202 DEBUG: script: D:\Test\pyinstall\test.py
202 INFO: Extending PYTHONPATH with paths
['D:\\Test\\pyinstall', 'D:\\Test\\pyinstall']