Skip to content

Instantly share code, notes, and snippets.

View ali-issa's full-sized avatar
🎯
Focusing

Ali Issa ali-issa

🎯
Focusing
View GitHub Profile
@ali-issa
ali-issa / App.tsx
Created December 23, 2022 15:09 — forked from thejoyfuldev/App.tsx
Headless UI with React Hook Forms
import "./styles.css";
import { Person } from "./types";
import { Listbox } from "./listbox/listbox";
import { useForm } from "react-hook-form";
const people: Person[] = [
{ id: 1, name: "Durward Reynolds", unavailable: false },
{ id: 2, name: "Kenton Towne", unavailable: false },
{ id: 3, name: "Therese Wunsch", unavailable: false },
{ id: 4, name: "Benedict Kessler", unavailable: true },
@ali-issa
ali-issa / migration.py
Created September 6, 2022 20:47 — forked from solace/migration.py
Django: Add Permissions to Groups during Migration
# YMMV
from django.conf import settings
from django.contrib.auth.models import Group, Permission
from django.core.management.sql import emit_post_migrate_signal
from django.db import migrations, models
import django.db.models.deletion
import logging