Skip to content

Instantly share code, notes, and snippets.

View hejmsdz's full-sized avatar

Mikołaj Rozwadowski hejmsdz

View GitHub Profile
@hejmsdz
hejmsdz / settings.json
Created May 6, 2021 19:11
some visual studio code configuration
{
"vim.vimrc.enable": true,
"vim.vimrc.path": "~/.config/nvim/init.vim",
"vim.normalModeKeyBindings": [
{
"before": ["<leader>", "\\"],
"commands": ["workbench.files.action.showActiveFileInExplorer"],
},
{
"before": ["<leader>", "1"],

Sposób użycia

# pobierz skrypt
wget https://gist.githubusercontent.com/hejmsdz/bb4acc23df5a2613bf7abc7e7753f48b/raw/hrnest.py

# opcjonalnie ustaw wirtualne środowisko
python3 -m venv .venv && . .venv/bin/activate

# zainstaluj Selenium
import fs from 'fs';
import fetch from 'node-fetch';
import { JSDOM } from 'jsdom';
import YAML from 'yaml'
async function loadDocument(url) {
const response = await fetch(url);
const body = await response.text();
const { document } = new JSDOM(body, { url }).window;
return document;