Skip to content

Instantly share code, notes, and snippets.


Nate Jones nathancooperjones

View GitHub Profile
nathancooperjones / skin_tone_slider.html
Last active Jul 14, 2020
Skin Tone Slider for the Geena Davis Institute
View skin_tone_slider.html
<!DOCTYPE html>
<title>Skin Tone Slider</title>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
:root {
--skin-tone:#DB8E72; /* default skin tone color */
html {
nathancooperjones /
Last active Apr 27, 2021
df_to_html - ShopRunner's open-sourced helper function to convert Pandas DataFrame's to HTML.
import pandas as pd
def df_to_html(df: pd.DataFrame,
image_cols: List[str] = [],
hyperlink_cols: List[str] = [],
html_tags: Dict[str, Union[str, List[str]]] = dict(),
transpose: bool = False,
image_width: Optional[int] = None,
max_num_rows: int = 200,