Skip to content

Instantly share code, notes, and snippets.

View dmd's full-sized avatar

Daniel M. Drucker dmd

View GitHub Profile
“My mother died,” Basso said. “Had you heard?”
Antigonus shook his head. “I’m sorry,” he said.
“So am I,” Basso replied, “but mostly because I realised I hardly felt anything when they told me. I waited for it to sink in, it has, and I still haven’t really felt anything. That’s appalling, don’t you think?”
“You should consider yourself lucky,” Antigonus replied. “One of the worst things that happens to a man has just happened to you, and you’ve escaped the suffering.”
Basso nodded. “Mostly,” he said, “it’s a nuisance; an inconvenience. For instance, I’m trying to remember something that happened when I was a kid. I think, I’ll ask Mother, and then I realise I can’t; it’s annoying, frustrating, it itches where I can’t reach, but it’s not grief. Unless I lie to myself, the most I can come up with is, it’s a loss of information, like a library burning down. There’s a whole chunk of my life for which I’m the only source of historical data—well, strictly speaking there’s my sister as well, but in practical ter
set nocp
" Plugins
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $HOME/.vimrc
endif
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
import requests
import curses
from fuzzywuzzy import fuzz
# Function to initialize the board with random questions
def initialize_board():
board = []
for i in range(6):
category_data = requests.get("http://jservice.io/api/random?count=5").json()
board.append(category_data)
import requests
import curses
from fuzzywuzzy import fuzz
# Function to initialize the board with random questions
def initialize_board():
board = []
for i in range(6):
category_data = requests.get("http://jservice.io/api/random?count=5").json()
board.append(category_data)
import requests
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
# Function to get a random question from the Jeopardy API
def get_random_question():
response = requests.get("http://jservice.io/api/random")
question_data = response.json()[0]
return question_data
Region: us-east-1
Image:
Os: centos7
HeadNode:
InstanceType: t2.micro
Networking:
SubnetId: subnet-02dca6ec049632f7f
Ssh:
KeyName: 20220920ec2
LocalStorage:
437 Juffo-Wup
188 lysol
162 tmkf
128 bp
86 shmup
67 helicomatic
45 tacodog
43 esch
41 vee
40 mach5
#!/bin/bash
# Read the patterns from the file PATTERNS.txt and store them in an array
patterns=()
while IFS= read -r line; do
patterns+=("$line")
done < PATTERNS.txt
# Iterate over the patterns array and compare each pair of patterns
for ((i=0; i<${#patterns[@]}; i++)); do
import itertools
# Open the files in read-only mode
with open('PATTERNS.txt', 'r') as patterns_file, open('TEXT.txt', 'r') as text_file:
# Read the patterns from the file and store them in a list
patterns = patterns_file.read().splitlines()
# Create a dictionary to store the counts for each pair of patterns
pattern_pair_counts = {}
# Loop through each line in the text file
1267 Juffo-Wup wx
1261 dmd Juffo-Wup
1257 Juffo-Wup dmd
1088 necKro tacodog
1032 tacodog necKro
932 dmd bp
725 Juffo-Wup bp
604 dmd mach5
589 dmd helicomatic
565 GIR bp