Skip to content

Instantly share code, notes, and snippets.

View aagnone3's full-sized avatar
😸
so make it

Anthony Agnone aagnone3

😸
so make it
View GitHub Profile
done = False
while len(homes) > 0 and not done:
n_iter += 1
home = homes.pop(-1)
comps = get_comps(home.zpid)
for comp in comps:
if comp.zpid not in all_nodes:
@aagnone3
aagnone3 / 0
Created August 1, 2019 01:16
test title
```bash
# create and activate environment
virtualenv pandas_like_ml
source pandas_like_ml/bin/activate
# install your desired libraries
pip install --upgrade pip
pip install scikit-learn==0.21.1
pip install pandas==0.19.1
@aagnone3
aagnone3 / 0
Created August 1, 2019 01:17
test title
```bash
# create and activate environment
virtualenv pandas_like_ml
source pandas_like_ml/bin/activate
# install your desired libraries
pip install --upgrade pip
pip install scikit-learn==0.21.1
pip install pandas==0.19.1
@aagnone3
aagnone3 / 0
Created August 1, 2019 01:19
test title
```bash
# create and activate environment
virtualenv pandas_like_ml
source pandas_like_ml/bin/activate
# install your desired libraries
pip install --upgrade pip
pip install scikit-learn==0.21.1
pip install pandas==0.19.1
@aagnone3
aagnone3 / 0
Created August 1, 2019 01:19
test title
```bash
# create and activate environment
virtualenv pandas_like_ml
source pandas_like_ml/bin/activate
# install your desired libraries
pip install --upgrade pip
pip install scikit-learn==0.21.1
pip install pandas==0.19.1
@aagnone3
aagnone3 / 0
Created August 1, 2019 01:41
test title
```bash
# create and activate environment
virtualenv pandas_like_ml
source pandas_like_ml/bin/activate
# install your desired libraries
pip install --upgrade pip
pip install scikit-learn==0.21.1
pip install pandas==0.19.1
@aagnone3
aagnone3 / 0
Created August 1, 2019 01:41
test title
```bash
# you can specify a base image as a foundation to build on
FROM ubuntu:16.04
# make a partition, and specify the working directory
VOLUME /opt
WORKDIR /opt
# install some base system packages
RUN apt-get update && apt-get install -y \
@aagnone3
aagnone3 / 0
Created August 1, 2019 01:41
test title
```bash
docker build \
-t my_first_container \
-f Dockerfile
```
@aagnone3
aagnone3 / 0
Created August 1, 2019 01:41
test title
```bash
docker run \
--rm \
-it \
my_first_container
```
@aagnone3
aagnone3 / 0
Created August 1, 2019 01:41
test title
```bash
docker run \
--mount type=bind,source="$(pwd)",target=/opt \
--mount type=bind,source=${CORPORA_DIR},target=/corpora \
-p ${JUPYTER_PORT}:${JUPYTER_PORT} \
-ti \
--rm \
my_advanced_container \
jupyter-lab \
--allow-root \