Skip to content

Instantly share code, notes, and snippets.

View fbmcipher's full-sized avatar
🏋️‍♀️
grinding @cosy-land!

faiz fbmcipher

🏋️‍♀️
grinding @cosy-land!
View GitHub Profile
@fbmcipher
fbmcipher / example.tsx
Created April 8, 2025 18:03
iOS keyboard spring animation in React
import { animated, useSpring } from '@react-spring/web'
function FormattingBar({ keyboardHeight }) {
const styles = useSpring({
height: keyboardHeight,
config: {
tension: 1000,
friction: 500,
mass: 3,
},
@fbmcipher
fbmcipher / prayers_scraper.py
Created October 11, 2025 10:21 — forked from jbinfo/prayers_scraper.py
Prayer Times Scraper for Morocco - Extracts Islamic prayer times from official Ministry of Habous website (habous.gov.ma) and outputs CSV format compatible with Mawaqit App for TV. Supports multiple cities, handles Arabic text, and provides clean formatted data (Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha).
import scrapy
import csv
import re
class PrayerTimesSpider(scrapy.Spider):
name = 'prayer_times'
start_urls = [
'https://habous.gov.ma/prieres/horaire_hijri_2.php?ville=58', # Casablanca city
'https://habous.gov.ma/prieres/horaire_hijri_2.php?ville=142' # Agdz city
]