Skip to content

Instantly share code, notes, and snippets.

window.location = 'http://api.instagram.com/oembed?url='+window.location.href;
var toGet=['media_id', 'author_name'];var json=document.getElementById('json').innerText.split('\n');for(var i=0,len=json.length;i<len;i++){var match=new RegExp('(.*): (.*),?').exec(json[i]);if(match && toGet.indexOf(match[1])>-1){var dump=prompt(match[1],match[2].replace(/&#34;/g,'').replace(/,$/, ''));}}
@tsterker
tsterker / cVimrc
Last active February 12, 2021 14:16
let blacklists = ["https://gitlab.gleif.org/*","https://grafana.dg-stg.gleif.org/*","https://www.youtube.com/*"]
site 'https://*.youtube.com/*' {
unmap < >
}
map gP :duplicate<CR>
set showtabindices
@tsterker
tsterker / mermaid-gannt.css
Created September 16, 2020 12:02
mermaid-gannt.css
.grid .tick {
stroke: lightgrey;
opacity: 0.3;
shape-rendering: crispEdges;
}
.grid path {
stroke-width: 0;
}
#tag {