Skip to content

Instantly share code, notes, and snippets.

View stephenleo's full-sized avatar
🌟

Marie Stephen Leo stephenleo

🌟
View GitHub Profile
@stephenleo
stephenleo / 00_Powering Semantic Similarity Search in Computer Vision with State of the Art Embeddings.md
Last active February 27, 2022 12:32
[Medium] Powering Semantic Similarity Search in Computer Vision with State of the Art Embeddings

Powering Semantic Similarity Search in Computer Vision with State of the Art Embeddings

Code for the Medium post Link

@stephenleo
stephenleo / 00_Introducing Boy or Girl - a Machine Learning Web App to Detect Gender fromName.md
Last active April 23, 2023 09:03
[Medium] Boy or Girl? A Machine Learning Web App to Detect Gender from Name

Code for the medium post

numpy==1.19.5
tensorflow==2.4.1
scikit-learn==0.24.2
@stephenleo
stephenleo / 00_SQL in Google Colab.md
Last active January 29, 2024 07:31
[Medium] SQL in Google Colab

SQL in Google Colab

All the code for the Medium Post

Open In Colab

@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

Pyspark

A collection of useful Pyspark operations

@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

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 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

@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 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