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 / css-honeycomb-iii-hexagon-grid.markdown
Created May 13, 2023 03:01
CSS Honeycomb III - (hexagon grid)
@saifrahmed
saifrahmed / index.html
Created May 13, 2023 03:00
Interactive Mood Board
<body>
<main class="page">
<div class="row">
<div class="col-md-12">
<div class="mood-board">
<div class="title">
<h1 class="align-center">From Trouville-sur-Mer</h1>
</div>
<!-- Start of Mood Board Bg -->
@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
select count(*) as NumRecs, TO_CHAR(retrievedDate, 'YYYYMM') as retrievedYYYYMM from ki_home.main_mashupgroup by retrievedYYYYMMorder by retrievedYYYYMM
select count(*) as NumRecs, TO_CHAR(retrievedDate, 'YYYYMM') as retrievedYYYYMM from ki_home.main_mashupgroup by retrievedYYYYMM order by retrievedYYYYMM
@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