This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# <type>: <subject> | |
##### Subject 50 characters ################# -> | | |
# Body Message | |
######## Body 72 characters ####################################### -> | | |
# Issue Tracker Number or URL | |
# --- COMMIT END --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
def trim(line): | |
return line.replace(" ", "") | |
def strip_html(data): | |
p = re.compile(r'<.*?>') | |
return p.sub('', data) | |
def make_bullet(line): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
NewerOlder