Skip to content

Instantly share code, notes, and snippets.

View eifuentes's full-sized avatar

Emmanuel Fuentes eifuentes

  • Whatnot
  • Los Angeles, CA
View GitHub Profile
# Which plugins would you like to load?
plugins=(
git
colorize
brew
poetry
macos
zsh-autosuggestions
zsh-syntax-highlighting
)
@eifuentes
eifuentes / pyproject.toml
Last active June 7, 2021 23:45
Poetry Basic Package
[tool.poetry]
name = "app"
version = "0.1.0"
description = "App Desc"
authors = ["me <me@gmail.com>"]
[tool.poetry.dependencies]
python = ">=3.7.1,<3.10"
pandas = "^1.2.4"
boto3 = "^1.17.89"
@eifuentes
eifuentes / docker-compose.yaml
Created May 24, 2021 01:03
Base Python Docker Compose
version: '3.8'
services:
job:
build:
context: .
args:
- "INSTALL_DEV=true"
image: co/app:0.1.0-dev
volumes:
@eifuentes
eifuentes / Dockerfile
Created May 24, 2021 01:02
Base Python Dockerfile
FROM python:3.8
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# System prerequisites
RUN apt-get update \
&& apt-get -y install build-essential libpq-dev \
&& rm -rf /var/lib/apt/lists/*
@eifuentes
eifuentes / base_conda_env.yml
Created March 12, 2021 18:43
Base Conda Env for Intel Based Machines
channels:
- conda-forge
- defaults
dependencies:
- abseil-cpp=20200923.3=h046ec9c_0
- anyio=2.0.2=py38h50d1736_4
- appdirs=1.4.4=pyh9f0ad1d_0
- appnope=0.1.2=py38h50d1736_1
- argon2-cffi=20.1.0=py38h7e3306e_2
- arrow-cpp=2.0.0=py38hf824aa0_18_cpu
@eifuentes
eifuentes / vscode_py_settings.json
Last active February 6, 2022 18:39
vscode python settings
{
"python.defaultInterpreterPath": "path/to/conda/env/bin/python",
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.linting.enabled": true,
"python.formatting.provider": "black",
"editor.formatOnSave": true,
"python.formatting.blackArgs": [
"--line-length",
@eifuentes
eifuentes / topcell.py
Last active March 12, 2021 19:39
jupyter notebook top cell config
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
%config InlineBackend.figure_format = 'retina'
%config Completer.use_jedi = False