Skip to content

Instantly share code, notes, and snippets.

View jasonthename's full-sized avatar
:octocat:
git push secrets.txt

JasonJay jasonthename

:octocat:
git push secrets.txt
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jasonthename
jasonthename / delete-twitter-dm.js
Created November 11, 2018 12:59 — forked from taviso/delete-twitter-dm.js
Automate deleting twitter direct messages.
// Open direct messages window, paste this into console.
function deleteNextConversation()
{
if (!(dm = document.getElementsByClassName("DMInbox-conversationItem")[0])) {
clearInterval(tmr)
return;
}
dm.firstChild.click();
setTimeout('document.getElementsByClassName("js-actionDeleteConversation")[0].click()', 1000);
@jasonthename
jasonthename / backup-github-repos.pl
Created November 11, 2018 04:36 — forked from njh/backup-github-repos.pl
Script to download/clone all of your Github repos
#!/usr/bin/perl
#
# Script to download/clone all of your Github repos
#
# Copyright Nicholas Humfrey, 22nd August 2017
#
# License: http://unlicense.org
#
use JSON;
@jasonthename
jasonthename / Rvest tutorial - Part 2
Created June 10, 2018 09:00 — forked from dsilvadeepal/Rvest tutorial - Part 2
Extracting Popular Songs and Lyrics of the top 10 Artists
#Format the link to navigate to the artists genius webpage
genius_urls <- paste0("https://genius.com/artists/",top_artists$Artist)
#Initialize a tibble to store the results
artist_lyrics <- tibble()
# Outer loop to get the song links for each artist
for (i in 1:10) {
genius_page <- read_html(genius_urls[i])
song_links <- html_nodes(genius_page, ".mini_card_grid-song a") %>%