Skip to content

Instantly share code, notes, and snippets.

@jiffyclub
jiffyclub / .gitconfig
Last active October 7, 2019 21:06
My git aliases
[core]
editor = code -nw
[alias]
st = status
ls = log --oneline --decorate
lg = log --oneline --decorate --graph
ff = merge --ff-only
mrg = merge --no-ff
ffpull = pull --ff-only
co = checkout
@jiffyclub
jiffyclub / slash_argparse.py
Created December 1, 2017 20:34
Utilities for creating command line-like interfaces for Slack /slash commands.
"""
Utilities for creating command line-like interfaces for Slack /slash commands.
Define your parser spec using an instance of SlashParser and then pass it to parse_args
for parsing. Be sure to check the returned success flag to know whether parsing
was successful or if there was a parsing error.
"""
import argparse
import re
@jiffyclub
jiffyclub / Excel to Pandas.ipynb
Created July 15, 2017 05:08
Using pandas and xlrd to concatenate multiple excel sheets into a single dataframe. In answer to this Stack Overflow question: https://stackoverflow.com/questions/45113070/how-do-i-make-this-function-for-concatenating-excel-sheets-from-a-single-file-mo#
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / DAG-Import-Profile.ipynb
Created November 18, 2016 23:26
How to profile the import of an Airflow DAG definition file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / scipy_gender_stats.md
Last active July 29, 2016 17:59
SciPy Gender Diversity Stats
@jiffyclub
jiffyclub / pandas_date_conversion.ipynb
Last active June 10, 2016 18:51
Example of doing Pandas date conversion using a converter function
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / dataframe_concatenation.ipynb
Created June 8, 2016 22:01
Examples of concatenating two dataframes. They must have the same column names.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / sqlalchemy_odo.ipynb
Last active October 5, 2015 04:36
Simple SQLite inserts with SQLAlchemy and Odo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / devthings.md
Last active January 29, 2016 00:48
Things I find useful as a developer