Skip to content

Instantly share code, notes, and snippets.

@jdalbey
jdalbey / vocabulary_wordlist.json
Last active December 27, 2024 20:02
Vocabulary Words
Updated content
@jdalbey
jdalbey / ProofOfConceptSylkRenderer.md
Created December 22, 2024 19:36
SYLK spreadsheet renderer proof of concept

OK, I got a realtime GUI "proof of concept" working on my Linux workstation.
It uses Python and Libre Office Calc and a web browser.

The spreadsheet is a text document in SYLK format. It is attached as input_file.slk.

The Python script is attached as SylkRenderer.py

Save these files and open input_file.slk in a text editor.

In a terminal window launch a headless instance of LibreOffice Calc with this command:

@jdalbey
jdalbey / gist:da23b135730f37f5ba5db47bf542312d
Created November 22, 2024 16:02
libbyfetch log "error encountered ..." (Firefox)
Initializing webdriver.
Reading library card configuration file.
Loading library page for 'bpl'
Starting signin to Boston Public Library.
Branch libraries are:
1. Boston Public Library Patrons
Recommended choice.
Where do you use your library card (Enter a number 1-1)? >? 1
Okay, signing in to Boston Public Library Patrons
Recommended choice..
@jdalbey
jdalbey / gist:09bf8a0cef3e77d5a1ba2962e3596cb9
Created November 22, 2024 15:48
libbyapp.com audiobook play success (Firefox)
🧭 <empty string> main.js:31:884
🧭 interview/welcome main.js:31:884
🎤 You are at: Welcome. main.js:31:884
🧭 interview/welcome#iHaveCards main.js:31:884
🧭 interview/locate-library/search main.js:31:884
🎤 You are at: Search For A Library. main.js:31:884
🧭 interview/locate-library/resolve main.js:31:884
🎤 You are at: Loading Library…. main.js:31:884
🧭 library/bpl main.js:31:884
🎤 You are at: Library. main.js:31:884
@jdalbey
jdalbey / install_python_windows.md
Created November 21, 2024 05:16
Install Python on Windows

Here's a step-by-step guide for installing the latest Python release on Windows:

  1. Go to the official Python Downloads page.

  2. Download the Windows Installer:

    • You’ll see a prominent button that says Download Python X.X.X (where "X.X.X" is the latest version). This is usually the recommended version for most users.

    • Click the button to download the Python installer for Windows.

@jdalbey
jdalbey / gist:e35e7dec0a981f89dec59c5ea943a25d
Created November 15, 2024 06:03
Libby Fetch features wishlist
Don't save last file downloaded.
choose download directory.
params for :
browser choice
visible browser
GUI
@jdalbey
jdalbey / gist:18c9a3726916a9e14e11
Created November 22, 2014 05:23
Kevin Bacon Game Problem

14.26 The object of the Kevin Bacon Game is to link a movie actor to Kevin Bacon via shared movie roles. The minimum number of links is an actor’s Bacon number. For instance, Tom Hanks has a Bacon number of 1. He was in Apollo 13 with Kevin Bacon. Sally Field has a Bacon number of 2 because she was in Forest Gump with Tom Hanks, who was in Apollo 13 with Kevin Bacon. Almost all well-known actors have a Bacon number of 1 or 2. Assume that you have a comprehensive list of actors, with roles, and do the following. a. Explain how to find an actor’s Bacon number. b. Explain how to find the actor with the highest Bacon number. c. Explain how to find the minimum number of links between two arbitrary actors.