Skip to content

Instantly share code, notes, and snippets.

View GasparVardanyan's full-sized avatar
💭
btw I use Arch ... 😄

Gaspar Vardanyan GasparVardanyan

💭
btw I use Arch ... 😄
View GitHub Profile
// ==UserScript==
// @name ytlocal
// @version 1.0
// @description ytlocal
// @match *://*.youtube.com/watch?*
// @grant none
// @run-at document-end
// ==/UserScript==
#include <cctype>
#include <ctime>
#include <stdexcept>
#include <vector>
#include <string>
std::vector<std::string> split(const std::string &s, char delimiter) {
std::vector <std::string> tokens;
# if 0 // stringstream is too much heavy for basic tokenization
std::string token;