Skip to content

Instantly share code, notes, and snippets.

@gabrielkrell
gabrielkrell / shields_example.py
Created August 11, 2017 20:26
Python snippet that assembles a shields.io badge with a custom SVG icon.
baseurl = ("https://img.shields.io/badge/{subj}-{status}-{color}.svg"
"?style={style}"
"&link={link}&link={link}" # left/+right links
"&logo={logo}")
opts = {...}
...
curr_dir = os.path.dirname(os.path.abspath(__file__))
icon_path = os.path.join(curr_dir, 'static', 'fonts', 'icons', 'style-guide-icons-indiv', 'mail.svg')
with open(name=icon_path) as icon:
s = "data:image/svg+xml;base64," + base64.b64encode(icon.read())
@gabrielkrell
gabrielkrell / keybase.md
Created July 3, 2017 21:52
Keybase proof

Keybase proof

I hereby claim:

  • I am gabrielkrell on github.
  • I am gabrielkrell (https://keybase.io/gabrielkrell) on keybase.
  • I have a public key ASDahWQmUQap9ZTcoz_IdlTUkPX5Clpr7I4eSAE9rAJplQo

To claim this, I am signing this object: