Skip to content

Instantly share code, notes, and snippets.

View yoonseopshin's full-sized avatar
🏠
Working from home

Yoonseop Shin yoonseopshin

🏠
Working from home
View GitHub Profile
@yoonseopshin
yoonseopshin / .gitmessage
Last active June 29, 2021 10:25
Git commit template
# <type>: <subject>
##### Subject 50 characters ################# -> |
# Body Message
######## Body 72 characters ####################################### -> |
# Issue Tracker Number or URL
# --- COMMIT END ---
@yoonseopshin
yoonseopshin / string_parser.py
Created May 1, 2021 12:27
파이썬 간단한 문자열 파싱: 줄 단위로 나누고 - 붙임
import re
def trim(line):
return line.replace(" ", "")
def strip_html(data):
p = re.compile(r'<.*?>')
return p.sub('', data)
def make_bullet(line):
@yoonseopshin
yoonseopshin / fileReceiver.js
Last active April 23, 2021 05:27
MQTT File Copy
const mqtt = require("mqtt");
const fs = require("fs");
const client = mqtt.connect("mqtt://localhost");
client.on("connect", function () {
client.subscribe("test");
});
client.on("message", function (topic, message) {
data = JSON.parse(message);
#include <bits/stdc++.h>
using namespace std;
#define FASTIO ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
typedef long long ll;
#define endl '\n'
#define pb push_back
vector<int> l, r, tree, lazy;
vector<vector<int>> adj;
int N, M, H, o;