Skip to content

Instantly share code, notes, and snippets.

View thedivtagguy's full-sized avatar
🤙
I don't know what I'm doing.

Aman Bhargava thedivtagguy

🤙
I don't know what I'm doing.
View GitHub Profile
Activity Rural Male Rural Female Rural Person Urban Male Urban Female Urban Person All-India Male All-India Female All-India Person
Employment and related activities 16.9 4.2 10.6 21.3 4.3 13.1 18.3 4.2 11.4
Production of goods for own final use 2.7 2.2 2.4 0.3 0.3 0.3 1.9 1.6 1.8
Unpaid domestic services for household members 1.9 17.2 9.4 1.5 16.1 8.6 1.7 16.9 9.2
Unpaid caregiving services for household members 0.8 2.6 1.7 0.7 2.5 1.6 0.8 2.6 1.7
Unpaid volunteer trainee and other unpaid work 0.2 0.1 0.1 0.2 0.1 0.1 0.2 0.1 0.1
Learning 7.1 5.7 6.4 7.0 6.1 6.6 7.1 5.8 6.5
Socializing communication community participation and religious practice 9.6 8.8 9.2 8.7 8.8 8.8 9.3 8.8 9.0
Culture leisure mass-media and sports practices 9.7 9.0 9.4 10.9 11.7 11.3 10.1 9.8 9.9
Self-care and maintenance 51.2 50.3 50.8 49.4 50.0 49.7 50.6 50.2 50.4
@thedivtagguy
thedivtagguy / ai_giveaways.md
Last active February 17, 2025 03:42
Ongoing list of sentences and phrases that I associate with AI generated text
  1. It isn't just about ______, it's about ______.
  2. Describing a sentence with one, two, and three adjectives in this comma-separated format. For example: it's about resilience, adaptability, and an unwavering commitment to....
  3. Heading Case Bulleted Lists That:
    • Describe Something: with a short explanation.
    • Talk About It Again: just in case you missed the first one.
    • Third Time's The Charm: well it just is, isn't it?.
  4. "Every stroke/word/[object]/[random detail] tells a story".
  5. "Weaves a tale/story".
  6. "Let's explore/dive into/delve into" paragraph intro.
  7. "Whether you're X, Y, or Z" format for inclusivity.
@thedivtagguy
thedivtagguy / udm14-append.js
Created February 1, 2025 10:14
Automatically adds udm=14 to google search results
// ==UserScript==
// @name Google Search UDM Parameter with Override
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Automatically adds &udm=14 to Google searches with override options
// @author Your name
// @match *://www.google.com/*
// @match *://google.com/*
// @grant none
// @run-at document-start
@thedivtagguy
thedivtagguy / download_microsoft_buildings.py
Created November 5, 2024 08:50
Easier way to download stuff from the Microsoft Buildings dataset. Find your quadkey here: https://aman.bh/blog/2023/building-footprints
import pandas as pd
import geopandas as gpd
from shapely.geometry import shape, box
import json
import inquirer
import argparse
from typing import Optional, Tuple, Dict
import sys
import webbrowser
import re
X Y
8.4615 91.9744
7.4359 87.7436
6.4103 82.7436
5.1282 78.8974
4.359 74.6667
9.7436 89.6667
10.5128 86.9744
11.7949 82.7436
12.8205 78.8974
@thedivtagguy
thedivtagguy / restore-link-sanity.js
Created October 7, 2023 11:46
TamperMonkey script that restores text and descriptions to Twitter Links
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# calculate long term averages for each month and also calculate week wise anomalies for 2022
from datetime import datetime, timedelta
import os
import numpy as np
import rasterio as rio
from multiprocessing import Pool, cpu_count
# version changed from V06B to V06C on May 8, 2022
dt_version_shift = datetime.strptime("20220508", '%Y%m%d')
Country Value
Republic TV 210300
NDTV 156200
CNN News 18 97286
@thedivtagguy
thedivtagguy / artist_genre.r
Last active May 19, 2021 06:53
Genre Search
# Code to search for an artist on Spotify and return their Spotify ID and genres.
# Requires the spotifyR package and for you to be authenticated with Spotify
# Read more here: https://github.com/charlie86/spotifyr
# And here: https://developer.spotify.com
# Extra: Could be adapted for all Spotify Features
library(tidyverse)
library(spotifyr)
# Authentication