Skip to content

Instantly share code, notes, and snippets.

View saborrie's full-sized avatar

Steven Borrie saborrie

View GitHub Profile
@saborrie
saborrie / Concfg Powershell Monaco editor Dark Visual Studio theme
Last active July 18, 2017 14:51
For use with https://github.com/lukesampson/concfg, to make Powershell look like the integrated terminal from VSCode
{
"black": "#1e1e1e",
"dark_blue": "#2472c8",
"dark_green": "#0dbc79",
"dark_cyan": "#11a8cd",
"dark_red": "#cd3131",
"dark_magenta": "#bc3fbc",
"dark_yellow": "#e5e510",
"gray": "#e5e5e5",
"dark_gray": "#666666",
data:text/html, <html> <head> <title>Notepad</title> <style> html { height: 100%; } body { background: rgb(255, 255, 170); padding: 0; margin: 0; font-family: monospace; font-size: 20px; height: 100%; } input { background: none; padding: 0; border: none; margin: 0; width: 100%; line-height: inherit; font-size: inherit; height: inherit; } input:focus { outline: none !important; border-color: inherit; border: none; -webkit-box-shadow: none; box-shadow: none; } .top, .bottom { width: 840px; max-width: 100%; margin: auto; padding: 0 20px; } .hiddentitle { display: none; } .top { height: 100px; padding-top: 40px; } .bottom, .bottom:focus { padding: 30px 20px; min-height: calc(100% - 200px); outline: 0 solid transparent; } img { max-width: 80%; margin: auto; max-height: 250px; text-align: center; } </style> </head> <body> <div class="top"> <h1><span class="hiddentitle" id="hiddentitle"></span><input id="title" placeholder="Title" autocomplete="off" onkeyup="updateTitle()" /></h1> </div> <div class="bottom" placehol
@saborrie
saborrie / Pretty md in bash
Created November 16, 2016 00:12
Pretty print markdown files in bash
rmd () {
pandoc $1 | sed 's/<code/<code style="color:cyan;"/g'| elinks -dump -dump-color-mode 1 | sed -r 's/^/ /g;s/ *$//' | (echo && cat && echo)
}