Skip to content

Instantly share code, notes, and snippets.

View blackary's full-sized avatar

Zachary Blackwood blackary

View GitHub Profile
@beeman
beeman / remove-all-from-docker.sh
Created November 15, 2016 03:04
Remove all from Docker
# Stop all containers
docker stop `docker ps -qa`
# Remove all containers
docker rm `docker ps -qa`
# Remove all images
docker rmi -f `docker images -qa `
# Remove all volumes
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active July 11, 2024 21:37
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@tdhopper
tdhopper / .editorconfig
Last active July 21, 2022 12:52
Configuration files to enable validating python code with flake8, mypy, isort, and black using pre-commit hooks (via https://pre-commit.com/). Also an .editorconfig file for standardization across editors.
# http://editorconfig.org/#file-format-details
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
@sfc-gh-dmatthews
sfc-gh-dmatthews / home.py
Created August 8, 2023 01:08
Stateful Streamlit data editory
#Put home.py in a working directory. Put page_1.py and page_2.py in a folder named pages.
import streamlit as st
import pandas as pd
def initialize():
# the data
st.session_state.df1 = pd.DataFrame({'A':[1,2],'B':[3,4]})
st.session_state.df2 = pd.DataFrame({'A':[1,2],'B':[3,4]})
# the shadow data
@veekaybee
veekaybee / normcore-llm.md
Last active July 12, 2024 10:47
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models