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
@thedivtagguy
thedivtagguy / compile.svg
Created February 18, 2021 11:33
Compile IMage
Loading
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",
@thedivtagguy
thedivtagguy / sheets-to-md.py
Created January 6, 2021 03:39
Converting Google Sheets to Markdown Files
# Takes in a file CSV file and outputs each row as a Markdown file with YAML front matter named after first column.
# Data in the first row of the CSV is assumed to be the column heading.
# Original work borrowed from: https://github.com/EvanLovely/csv_to_jekyll
# Adapted from https://www.bryanklein.com/blog/hugo-python-gsheets-oh-my/
# Import the python libraries.
import gspread
from oauth2client.service_account import ServiceAccountCredentials
from pathlib import Path
import os