Skip to content

Instantly share code, notes, and snippets.

@BibMartin
BibMartin / folium_iframe_embed.py
Created July 10, 2015 22:24
Embed folium map in an iframe for jupyter nb
from IPython.display import HTML
def _repr_html_(self, figsize=(17,10), **kwargs):
"""Displays in the notebook a folium.folium.Map object.
"""
self._build_map(**kwargs)
width, height = figsize
iframe = '<iframe src="data:text/html;base64,{html}" width="{width}" height="{height}"></iframe>'\
@maglietti
maglietti / HTTPie-blog.md
Last active July 8, 2019 23:57
Exploring Akamai OPEN APIs from the command line using `HTTPie` and `jq`
@paultopia
paultopia / makeslide.py
Last active May 3, 2017 20:41 — forked from aaronwolen/slides.md
Pandoc template to generate reveal.js slideshows. (corrected from original to be compatible with 3.2.0 release of reveal.js); also added a quick python script to generate with less command-line ugliness.
import argparse
# this first bit is to enable multiline help text. apparently this is a known problem with argparse.
# Solution jacked from http://stackoverflow.com/questions/3853722/python-argparse-how-to-insert-newline-in-the-help-text
import textwrap as _textwrap
class MultilineFormatter(argparse.HelpFormatter):
def _fill_text(self, text, width, indent):
text = self._whitespace_matcher.sub(' ', text).strip()
paragraphs = text.split('|n ')
@cgraffeo
cgraffeo / Collection of Free email domains
Created March 11, 2016 20:49
This is a collection of around 5,200 free email domains including disposables, blacklist, and other providers such as gmail. List is free of duplicates and sorted alphabetically A-Z.
.ddns.org
.findhere.com
.freeservers.com
.zzn.com
0-mail.com
007addict.com
020.co.uk
0815.ru
0clickemail.com
0sg.net
@5agado
5agado / Pandas and Seaborn.ipynb
Created February 20, 2017 13:33
Data Manipulation and Visualization with Pandas and Seaborn — A Practical Introduction
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.