Skip to content

Instantly share code, notes, and snippets.

@btahir
btahir / semantic_search.py
Last active April 25, 2024 04:58
MVP For Semantic Search using Sentence Transformers + FAISS
# install packages
# pip install faiss-cpu sentence-transformers
import numpy as np
import torch
import faiss
import time
from sentence_transformers import SentenceTransformer
# https://www.sbert.net/docs/pretrained_models.html#multi-qa-models
// create an Instagram Card with Tailwind CSS and Font Awesome Icons
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faHeart, faComment, faPaperPlane, faBookmark } from '@fortawesome/free-regular-svg-icons'
import { faEllipsisH } from '@fortawesome/free-solid-svg-icons'
function InstaCard() {
return (
<div className="pt-20 min-h-screen">
<div className="w-full bg-white max-w-lg shadow-sm sm:my-4 sm:rounded-sm mx-auto">
@btahir
btahir / deep-cropper.ipynb
Last active December 5, 2019 22:45
deep-cropper.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@btahir
btahir / instagram-playbook.ipynb
Created June 25, 2019 08:06
instagram-playbook.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@btahir
btahir / medium-backup-script.ipynb
Last active January 2, 2022 18:01
medium-backup-script.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@btahir
btahir / twitter-pulse-checker.ipynb
Created June 21, 2019 09:13
Twitter-Pulse-Checker.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@btahir
btahir / README.md
Last active October 8, 2015 18:52
Virginia Flights Analysis - January 2015

Background

This visualization captures the flights to and from the Virginia region (Central Virginia and Washington DC) in January 2015. The reason I chose this dataset was because, around the same time when I was working on this project, I was also participating in a Data Visualization competition within my company and this dataset was provided to us. I figured this would be a great way to work on this project and test it out.

Summary

The data visualization captures all the flight paths and delay information based on airport. It categorizes the airports by color based on the most frequent cause of the delay in that airport. There is also a bar chart that summarizes the average delays for each airport (in minutes). The visualization is interactive as you can hover over which airport you want to see the information for.

Findings