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
import matplotlib.pyplot as plt | |
scene_file = "scene_iv.txt" | |
# Character: number of lines spoken | |
characters = {"LORD POLONIUS": 0, "QUEEN GERTRUDE": 0, "HAMLET": 0} | |
def count_characters_lines(): | |
last_character = "" | |
with open(scene_file) as file: # Use file to refer to the file object | |
text = file.read().splitlines() |
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
(defun jib/calc-speaking-time () | |
"Calculate how long it would take me to speak aloud the selection." | |
(interactive) | |
(if (use-region-p) (let* ((wpm 150) | |
(word-count (float (count-words-region (region-beginning) (region-end)))) | |
(raw-time (* 60 (/ word-count wpm)))) | |
(message "%s minutes, %s seconds to speak at %d wpm" | |
(format-seconds "%m" raw-time) | |
(floor(mod raw-time 60)) wpm)) | |
(error "Error: select a region."))) |
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 Ancestry Add Relative Shortcut | |
// @namespace jakebox.scripts | |
// @match *://*.ancestry.com/* | |
// @grant none | |
// @version 1.0 | |
// @author Jake B, www.github.com/jakebox | |
// @description 12/25/2020, 4:46:35 PM | |
// ==/UserScript== |
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
/******************************************************************************* | |
* ROFI Jake Theme | |
* User: Jake | |
* Copyright: Also jake but idc | |
*******************************************************************************/ | |
* { | |
active-background: #6674AD; | |
active-foreground: @foreground; | |
normal-background: @background; |
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
### | |
### Google Images photo & link saver | |
### By Jake B - May 2020 | |
### | |
import clipboard as clipboard | |
import pyautogui as pag | |
import time | |
f = open("sources.txt", "a") |
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
export PS1="\[\033[38;5;247m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput sgr0)\]\[\033[38;5;246m\]\h\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;38m\][\[$(tput sgr0)\]\[\033[38;5;197m\]\w\[$(tput sgr0)\]\[\033[38;5;39m\]]\[$(tput sgr0)\]\[\033[38;5;6m\]:\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]" |
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
### | |
### PDF Parser/Downloader | |
### By Jake B - December 2019 | |
### | |
import os | |
import requests | |
import PyPDF2 | |
import re |
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
### | |
### Google Sheets Data Retriever | |
### By Jake B - December 2019 | |
### Uses gspread and Google Drive API to retrieve | |
### data from Google sheets spreadsheet | |
### | |
import gspread | |
from oauth2client.service_account import ServiceAccountCredentials |