Skip to content

Instantly share code, notes, and snippets.

@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.
@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
@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 ')
@maglietti
maglietti / HTTPie-blog.md
Last active July 8, 2019 23:57
Exploring Akamai OPEN APIs from the command line using `HTTPie` and `jq`
@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>'\
@drorata
drorata / gist:146ce50807d16fd4a6aa
Last active June 3, 2024 06:00
Minimal Working example of Elasticsearch scrolling using Python client
# Initialize the scroll
page = es.search(
index = 'yourIndex',
doc_type = 'yourType',
scroll = '2m',
search_type = 'scan',
size = 1000,
body = {
# Your query's body
})
@bsweger
bsweger / useful_pandas_snippets.md
Last active April 4, 2025 21:20
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)

@domderen
domderen / install.sh
Last active June 23, 2024 06:48
Installation of apache spark on ubuntu machine.
#!/bin/sh
# installation of Oracle Java JDK.
sudo apt-get -y update
sudo apt-get -y install python-software-properties
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get -y update
sudo apt-get -y install oracle-java7-installer
# Installation of commonly used python scipy tools
@sloria
sloria / bobp-python.md
Last active April 17, 2025 08:09
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@arisetyo
arisetyo / index.html
Created July 12, 2013 16:37
Dynamic Real-time Chart Using Chart.js, Socket.io, and Knockout.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Galenic">
<script src="js/jquery-1.9.1.js"></script>
<script src="js/knockout-2.1.0.js"></script>
<script src="js/Chart.js"></script>
<link rel="stylesheet" href="pure-min.css">