Skip to content

Instantly share code, notes, and snippets.

View chalkpe's full-sized avatar
๐Ÿณ๏ธโ€๐ŸŒˆ

Seol Park chalkpe

๐Ÿณ๏ธโ€๐ŸŒˆ
  • Republic of Korea
View GitHub Profile
@chalkpe
chalkpe / .zshrc
Last active March 31, 2020 23:33
Windows Terminal + WSL Ubuntu + Oh My Zsh
source /home/chalk/antigen.zsh
antigen use oh-my-zsh
antigen bundle git
antigen bundle sudo
antigen bundle common-aliases
antigen bundle command-not-found
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle MichaelAquilina/zsh-you-should-use
@chalkpe
chalkpe / kt-egg.md
Last active February 4, 2019 18:01

KT ์—๊ทธ ๊ฐ„๋‹จ ์„ค๋ช…

๋ชจ๋“  ์š”์ฒญ ๊ธฐ๋ณธ๊ฐ’

  • POST http://192.168.1.1/cgi-bin/webmain.cgi
  • Content-Type: multipart/form-data

๋กœ๊ทธ์ธ ์„ธ์…˜ ์–ป๊ธฐ

์š”์ฒญ

์ด๋ฆ„ ๊ฐ’
@chalkpe
chalkpe / 0-ffxiv.md
Last active August 1, 2021 02:25
์ดˆ์ฝ”๋ณด/์ดˆํฌ

์นญํ˜ธ

  • ๊ถ๊ทน์˜ ์ „์„ค

์ข…์กฑ / ๋ถ€์กฑ / ์„ฑ๋ณ„

  • ๋ผ๋ผํŽ  / ์‚ฌ๋ง‰ ๋ถ€์กฑ / โ™‚
  • ๋ฏธ์ฝ”ํ…Œ / ํƒœ์–‘์˜ ์ถ”์ข…์ž / โ™‚

์ด์‚ฌ๋ น๋ถ€

  • ๋ถˆ๋ฉธ๋Œ€ ๋Œ€์œ„
/* fit resize handle position */
body.overlay::after {
right: 0.25rem;
bottom: 0.25rem;
}
/* round border */
nav > .container {
[57] ๊ฐ์ž๋ณผ
[41] ๊ฐ์ž๋ณผํŠ€๊น€
[38] ๋ˆ์œก๊ฐ์ž์กฐ๋ฆผ
[34] ๊ฐ์žํƒ•
[28] ๊ฐ์žํŠ€๊น€
[28] ๋ฉ”์‰ฌ๋“œํฌํ…Œ์ดํ† 
[20] ๊ฐ์ž์ฑ„๋ณถ์Œ
[19] ํšŒ์˜ค๋ฆฌ๊ฐ์ž
[18] ๊ฐ์ž์กฐ๋ฆผ
[18] ์ฃผ๋ฆ„๊ฐ์ž
@chalkpe
chalkpe / trig-func-table.js
Created September 6, 2018 14:00
JavaScript code that displays the table of natural trigonometric functions to a browser console.
const R = Math.PI / 180
const S = [0, 30, 45, 60, 90]
const T = ['sin', 'cos', 'tan']
const range = n => [...Array(n).keys()]
const merge = oo => Object.assign({}, ...oo)
const rad = (f, a) => Math[f](a * R).toFixed(8)
const inf = x =>
x > Number.MAX_SAFE_INTEGER && Number.POSITIVE_INFINITY ||
setInterval((_ = Date.now() / 30 % 360) =>
console.clear() || console.log('%c[Warning]', `
font-size: 500%;
font-weight: bold;
color: hsl(${_}, 100%, 90%);
background-color: hsl(${_}, 100%, 30%);
text-shadow: .08em .08em hsl(${_}, 100%, 20%)`), 75)
@chalkpe
chalkpe / m.md
Last active June 8, 2018 07:12
๋งˆํ”„ ์ˆ˜ํ–‰

๋ชจํ„ฐ ํŠน์ง•

  • DC ๋ชจํ„ฐ: ์••๋ ฅ ์ „๋ฅ˜ ๋ฐฉํ–ฅ์œผ๋กœ ๋ฐฉํ–ฅ ์ œ์–ด, ๊ณ ํšŒ์ „์— ์œ ๋ฆฌ, RC์นด ๋“ฑ
  • ์„œ๋ณด ๋ชจํ„ฐ: PWM ์‹ ํ˜ธ๋กœ 0-180๋„ ์œ„์น˜ ์„ค์ • ๊ฐ€๋Šฅ, ์ œํ•œ์  ๋ฒ”์œ„; ์ •ํ™•ํ•œ ์œ„์น˜ ์ œ์–ด, ๋กœ๋ด‡ ๊ด€์ ˆ ๋“ฑ ํšŒ์ „๊ฐ ์ œ์–ด
  • ์Šคํ… ๋ชจํ„ฐ: ๋ฐฉํ–ฅ ์†๋„ + ํšŒ์ „๊ฐ ์ •๋ฐ€ ์ œ์–ด. ์ œ์–ด ๋ณต์žก. ๊ณ ํšŒ์ „๋ณด๋‹จ ์ •๋ฐ€ ์ œ์–ด. 3D ํ”„๋ฆฐํ„ฐ ๋“ฑ

8*8 ๋งคํŠธ๋ฆญ์Šค

Rx์— high๋ฅผ ์ฃผ์—ˆ์„ ๋•Œ Cy์—์„œ high๊ฐ€ ์ฝํžˆ๋ฉด ๋ฒ„ํŠผx y๊ฐ€ ๋ˆŒ๋ฆฐ ๊ฒƒ

byte R[4] = { ?, ?, ?, ? };
@chalkpe
chalkpe / input.js
Last active April 27, 2018 06:44
dimigo assignment
function* read (n) {
while ((n = Number(prompt('enter a number')))) yield n }
const main = (arr = [...read()].sort((a, b) => a - b)) =>
console.log('arr:', arr.slice(), '\nmin:', arr.shift(), '\nmax:', arr.pop())
const axios = require('axios')
const chatId = ???
const token = '???'
const api = 'https://api.telegram.org'
const page = 'https://www.ubuntu.com/download/desktop'
const delay = t => new Promise((res, rej) => setTimeout(res, t))
async function wow () {