Skip to content

Instantly share code, notes, and snippets.

@padawanR0k
padawanR0k / nfa.js
Last active April 3, 2022 05:13
NFA
// [ab]*a[ab][ab]
f = {
'0':{'a':[0,1], 'b':[0]},
'1':{'a':[2], 'b':[2]},
'2':{'a':[3], 'b':[3]},
}
// f[theta][sigma]
const final = new Set([3])
let state = 0;
@padawanR0k
padawanR0k / .gitmessage.txt
Last active January 20, 2022 00:52
git message tempalate
# new: [TICKET-1111] 안내서 다운로드 기능 추가
# ^--^ ^--------------------------------^
# | |
# | +-> 커밋 메시지 (주로 JIRA의 티켓 번호)
# |
# +-------> 커밋 타입: new, up, fix, style, ref, conv, test, docs, build, chore
# [기본 구조]
# |-------------------
@padawanR0k
padawanR0k / 42checkin_postman.json
Created September 24, 2021 09:54
42checkin_postman
{
"info": {
"_postman_id": "e22e7161-a914-4d63-8fa7-798ce5d1f4ea",
"name": "checkin42",
"description": "42서울 체크인 api서버",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "log",
@padawanR0k
padawanR0k / index.html
Created September 4, 2021 04:54
vanilla javscript component with pubSub example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="App">
@padawanR0k
padawanR0k / myJSON_stringify.js
Last active April 14, 2021 08:40
make own JSON.stringify
// JSON.stringify를 구현하시오
// https://www.youtube.com/watch?v=rQOpmgo99BQ
/**
* 자료
* https://reference.codeproject.com/Book/javascript/reference/global_objects/json/stringify
* https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
*/
const parsingRouter = {
@padawanR0k
padawanR0k / get_html_tags.js
Created April 8, 2021 08:13
get all HTML tags that used currnet page
function search_html_tag(tagSet, dom) {
if (dom.children.length) {
let i = 0;
while (i < dom.children.length) {
if (!tagSet.has(dom.tagName)) {tagSet.add(dom.tagName)}
get_tags(tagSet, dom.children.item(i))
i++;
}
} else {
return ;;
@padawanR0k
padawanR0k / kor_lotto_history.csv
Last active July 24, 2021 14:05
동행복권 1등 번호 모음
round date 1 2 3 4 5 6 bonus
1 2002-12-07 10 23 29 33 37 40 16
2 2002-12-14 9 13 21 25 32 42 2
3 2002-12-21 11 16 19 21 27 31 30
4 2002-12-28 14 27 30 31 40 42 2
5 2003-01-04 16 24 29 40 41 42 3
6 2003-01-11 14 15 26 27 40 42 34
7 2003-01-18 2 9 16 25 26 40 42
8 2003-01-25 8 19 25 34 37 39 9
9 2003-02-01 2 4 16 17 36 39 14
@padawanR0k
padawanR0k / aha.jpg
Last active November 21, 2020 17:37
qrcode_test
aha.jpg
@padawanR0k
padawanR0k / metadata.json
Created November 10, 2020 06:15
my_first_teachable_machine_learning
{"tfjsVersion":"1.3.1","tmVersion":"0.8.6","packageVersion":"0.8.6","packageName":"@teachablemachine/pose","timeStamp":"2020-11-09T06:00:34.186Z","userMetadata":{},"modelName":"toy_project__stretching_watcher","labels":["neck_strecth_left","neck_strecth_right","default","neck_strecth_top","neck_strecth_down"],"modelSettings":{"posenet":{"architecture":"MobileNetV1","outputStride":16,"inputResolution":257,"multiplier":0.75}}}
@padawanR0k
padawanR0k / seoul_local_population_2.csv
Last active October 22, 2020 01:15
서울시 주민등록인구 (내국인 각세별/동별) 통계 2분기
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 104 columns, instead of 29. in line 2.
기간,자치구,합계,0세,1세,2세,3세,4세,5세,6세,7세,8세,9세,10세,11세,12세,13세,14세,15세,16세,17세,18세,19세,20세,21세,22세,23세,24세,25세,26세,27세,28세,29세,30세,31세,32세,33세,34세,35세,36세,37세,38세,39세,40세,41세,42세,43세,44세,45세,46세,47세,48세,49세,50세,51세,52세,53세,54세,55세,56세,57세,58세,59세,60세,61세,62세,63세,64세,65세,66세,67세,68세,69세,70세,71세,72세,73세,74세,75세,76세,77세,78세,79세,80세,81세,82세,83세,84세,85세,86세,87세,88세,89세,90세,91세,92세,93세,94세,95세,96세,97세,98세,99세,100세 이상+
2020.2/4,종로구,150383,571,576,628,741,830,844,842,973,892,999,913,990,1141,1027,1020,1068,1175,1101,1259,1615,1854,1914,2072,2332,2538,2548,2554,2707,2545,2382,2205,2065,2038,1944,1854,1863,1910,2004,2120,2143,2159,1921,1901,1962,1945,2198,2423,2535,2709,2888,2727,2750,2539,2412,2458,2464,2445,2602,2406,2859,2531,2396,2186,2149,2035,2128,1672,1686,1572,1201,1445,1346,1480,1372,1038,1224,1096,1244,1279,1071,984,858,744,704,602,533,464,350,312,261,219,191,141,121,98,73,64,56,58,32,267
2020.2/4,중구,126092,647,621,669,770,742,750,763,701,713,721,625,602,672,645,564,610,728,730,824,1131,1302,1385,1522,1692,1883,1937