Skip to content

Instantly share code, notes, and snippets.

View Xseba360's full-sized avatar
🎯
Focusing

Sebastian Gładki Xseba360

🎯
Focusing
View GitHub Profile
@Xseba360
Xseba360 / img-to-svg.js
Created August 8, 2020 19:51
turn all svgs in img tags into inline svg
const li = document.querySelectorAll('img.svg');
li.forEach(function(element, index) {
const imgID = element.getAttribute('id')
const imgURL = element.getAttribute('src')
const req = new XMLHttpRequest();
req.open('GET', imgURL, false);
req.send(null);
if(req.status == 200) {
// Get the SVG tag, ignore the rest
const svg = new DOMParser().parseFromString(req.responseText, "text/xml").querySelector('svg');
@Xseba360
Xseba360 / Monaco for Powerline.md
Created August 29, 2016 14:53 — forked from ymjing/Monaco for Powerline.md
Powerline-patched Monaco for Windows and OSX

Powerline-patched Monaco for Windows and OSX

This font is manually patched with Fontforge. It includes the glyphs from DejaVu Sans Mono for Powerline.

I recommend DirectWrite-patched VIM builds. I'm using KaoriYa's build (http://www.kaoriya.net/software/vim/)

Usage

Add the following lines to your .vimrc/_vimrc: