Skip to content

Instantly share code, notes, and snippets.

View dmd's full-sized avatar

Daniel M. Drucker, Ph.D. dmd

View GitHub Profile
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
give me a fictional recipe for a meal for two by carnie abraham lincoln using only food waste from a traveling circus in his time
Carnie Abraham Lincoln's Circus Stable Waste Skillet:
Ingredients:
1/2 cup of fresh horse manure
1/4 cup of stale horse feed
1/4 cup of dried-out apple cores
2 tablespoons of melted circus peanut butter