Skip to content

Instantly share code, notes, and snippets.

View saifrahmed's full-sized avatar
💭
Slaying every barrier to performance

Saif Ahmed saifrahmed

💭
Slaying every barrier to performance
View GitHub Profile
@saifrahmed
saifrahmed / pilane.py
Created January 26, 2025 01:58 — forked from obviyus/pilane.py
A script that sends an Android device's back camera video feed into a v4l2 sink and processes the image using YOLOv11 to check for airplanes.
# /// script
# requires-python = "==3.12.8"
# dependencies = [
# "opencv-python",
# "numpy",
# "ultralytics",
# "aiohttp",
# "aiofiles",
# "python-dotenv"
# ]
@saifrahmed
saifrahmed / libre-link-up-http-dump.md
Created December 6, 2024 15:34 — forked from khskekec/libre-link-up-http-dump.md
HTTP dump of Libre Link Up used in combination with FreeStyle Libre 3
@saifrahmed
saifrahmed / normcore-llm.md
Created August 27, 2023 14:44 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name="viewport" />
<link rel="icon" href="data:,">
<title>String art</title>
<script type="text/javascript" src="jquery.min.js"></script>
<style>
html, body {
import collections
import math
import os
import cv2
import numpy as np
import time
MAX_LINES = 4000
N_PINS = 36*8
MIN_LOOP = 20 # To avoid getting stuck in a loop
@saifrahmed
saifrahmed / toplang.py
Created October 13, 2022 14:58 — forked from senko/toplang.py
Get the most popular languages on Hacker News
#!/usr/bin/env python
#
# Calculate top list of programming languages based on HN stories/comments/points
# More info: https://blog.senko.net/relative-popularity-of-programming-languages-on-hacker-news
from datetime import datetime, timedelta
from json import dump, load
from os.path import join, exists
from tempfile import gettempdir
from typing import Optional
@saifrahmed
saifrahmed / business-models.md
Created February 19, 2021 14:28 — forked from ndarville/business-models.md
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@saifrahmed
saifrahmed / nyc-taxi.ipynb
Created May 6, 2019 20:46 — forked from mrocklin/nyc-taxi.ipynb
Dask Dataframe with cuDF on a simple NYC Taxi CSV computation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@saifrahmed
saifrahmed / gist:3bb7c18750c1a16ba28c810980df3a2d
Created November 27, 2018 23:28 — forked from molsches/gist:32fcec2499e95b5b23bc268800e22780
Sample Note for AWS Comprehend Medical
ROS (10 systems)
In addition to that documented in the HPI above, the additional ROS was obtained:
Constitutional: Denies fevers or chills
Eyes: Denies vision changes
ENMT: Denies sore throat
CV: Denies chest pain
Resp: Denies SOB
GI: Denies vomiting or diarrhea
GU: Denies painful urination
MSK: Denies recent trauma