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
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
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
@thedivtagguy
thedivtagguy / compile.svg
Created February 18, 2021 11:33
Compile IMage
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
library(tidyverse)
library(gdata)
library(stringr)
library(readr)
library(gsubfn)
# Read in File
# This is the fixed file from Excel, but we want to do everything in R
# data <-
# read.csv("D:/Srishti/Year 2 Semester 1/Co-Create/books.csv", header = FALSE)
library(shiny)
ui <- fluidPage(
titlePanel("Srishti Library Database"),
# Sidebar layout with input and output definitions ----
@thedivtagguy
thedivtagguy / library.r
Created February 12, 2021 07:59
Library Parser
library(shiny)
library(tidyverse)
library(gdata)
library(stringr)
library(readr)
library(gsubfn)
library(waiter)
# Define UI for data upload app ----
gif <- paste0("https://media1.tenor.com/images",