Skip to content

Instantly share code, notes, and snippets.

View abhijitdalavi's full-sized avatar
🎯
Focusing

Abhijit Dalavi abhijitdalavi

🎯
Focusing
View GitHub Profile
@abhijitdalavi
abhijitdalavi / admin.py
Created May 16, 2020 11:50 — forked from hakib/admin.py
How to Turn Django Admin Into a Lightweight Dashboard
# https://hakibenita.com/how-to-turn-django-admin-into-a-lightweight-dashboard
from django.contrib import admin
from django.db.models import Count, Sum, Min, Max, DateTimeField
from django.db.models.functions import Trunc
from . import models
def get_next_in_date_hierarchy(request, date_hierarchy):
@abhijitdalavi
abhijitdalavi / yt_download.py
Created December 11, 2019 11:09 — forked from smellslikeml/yt_download.py
download youtube videos to .mp4 with command line argument search string
#!/usr/bin/env python
import os
import sys
import requests
from bs4 import BeautifulSoup as bs
from urllib.parse import urlencode
from pytube import YouTube
qstring = sys.argv[1]
out_dir = sys.argv[2]

Keybase proof

I hereby claim:

  • I am abhijitdalavi on github.
  • I am abhijitdalavi (https://keybase.io/abhijitdalavi) on keybase.
  • I have a public key whose fingerprint is A1E8 2347 DCA4 A63D 3602 768D FE1C 17AB B3A8 9977

To claim this, I am signing this object: