Skip to content

Instantly share code, notes, and snippets.

View stephenleo's full-sized avatar
🌟

Marie Stephen Leo stephenleo

🌟
View GitHub Profile
@stephenleo
stephenleo / 01 NYC Taxi Analysis.md
Last active April 25, 2022 18:29
[Medium] New York Taxi data set analysis

NYC Taxi Analysis Medium Post

All the code required from NYC Taxi Analysis Medium Post: Link

@stephenleo
stephenleo / 01 Medium Tips.md
Last active March 11, 2022 09:17
[Medium] Tips

Medium Tips

Useful Tips and Tricks for posting on Medium

@stephenleo
stephenleo / 01 KNN is Dead.md
Last active February 3, 2022 07:19
[Medium] KNN (K-Nearest Neighbors) is Dead!

KNN is Dead

All the code snippets for KNN is Dead Medium Post Link

@stephenleo
stephenleo / 01 How to Choose the Best Nearest Neighbors Algorithm.md
Last active February 3, 2022 07:20
[Medium] How to Choose the Best Nearest Neighbors Algorithm

How to Choose the Best Nearest Neighbors Algorithm

All the code snippets for How to Choose the Best Nearest Neighbors Algorithm Medium post Link

@stephenleo
stephenleo / 01 Approximate Nearest Neighbors on Elastic Search with Docker.md
Last active February 3, 2022 07:19
[Medium] Approximate Nearest Neighbors on Elastic Search with Docker

Approximate Nearest Neighbors on Elastic Search with Docker

All the code snippets for the Medium post Link

@stephenleo
stephenleo / 01 How to Choose the Best Keras Pre-Trained Model for Image Classification.md
Last active February 3, 2022 07:17
[Medium] How to Choose the Best Keras Pre-Trained Model for Image Classification

How to Choose the Best Keras Pre-Trained Model for Image Classification

All the code snippets for the medium article Link

Useful LaTeX Tips

1. Inserting Tables

Generate LaTeX table code by importing your table in this Online LaTeX Generator

2. Wrap text in Tables

To wrap text inside tables, update your the column inside your \begin{tabular}{} tag.
Eg: If you want the first column to take a maximum 30% of the line width and wrap the remaining text, change the first l to p{0.3\linewidth}

% from
@stephenleo
stephenleo / 01_DockerCLI.md
Last active March 19, 2022 04:46
Docker & Kubernetes
  1. Create and Run a container: docker run -p <localhost port>:<docker container port> <image-name>
  2. If you dont want console output: docker run -d <image-name>
  3. List Running containers: docker ps
  4. List all containers that have run: docker ps --all
  5. Restart a stopped container: docker start <container-id>
  6. Delete stopped containers and downloaded images: docker system prune
  7. Stop a container: docker stop <container-id>
  8. Execute additional commands in a running container (other than the starup command): docker exec -it <container-id> <command>
    Eg: docker exec -it <container-id> sh
  9. Exit from a container: Ctrl + d or exit

Pyspark

A collection of useful Pyspark operations

@stephenleo
stephenleo / 00 Python Logging for Data Scientists.md
Last active February 3, 2022 07:17
[Medium] Stop Using Print! Python Logging for Data Scientists

Stop Using Print! Python Logging for Data Scientists

Code snippets for the Medium post: Link