This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
ui <- fluidPage( | |
titlePanel("Srishti Library Database"), | |
# Sidebar layout with input and output definitions ---- | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Country | Value | |
---|---|---|
Republic TV | 210300 | |
NDTV | 156200 | |
CNN News 18 | 97286 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Enhance Twitter News Links | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Extract and display aria-label over news link images on Twitter | |
// @author aman.bh, ChatGPT | |
// @match https://twitter.com/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
OlderNewer