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

Keybase proof

I hereby claim:

  • I am jasonthename on github.
  • I am jasonthename (https://keybase.io/jasonthename) on keybase.
  • I have a public key whose fingerprint is 1A0D E4A8 F61C 9851 6AAA 25BF 8C29 8915 81C0 5884

To claim this, I am signing this object:

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;
int paren = 0, brace = 0, brack = 0;
for (int ch = fgetc(fp); ch != EOF; ch = fgetc(fp)) {
if (ch == '(') paren++; if (ch == ')') paren--;
if (ch == '{') brace++; if (ch == '}') brace--;
if (ch == '[') brack++; if (ch == ']') brack--;
}
if (paren != 0 || brace != 0 || brack != 0) {
fprintf(stderr, "unbalanced: %d %d %d\n", paren, brace, brack);
}
@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") %>%