Skip to content

Instantly share code, notes, and snippets.

View ebridges's full-sized avatar
🛠️
Fixing things

Edward Q. Bridges ebridges

🛠️
Fixing things
View GitHub Profile
@ebridges
ebridges / inventory-cards.html
Last active February 27, 2025 21:35
Given a CSV file create a PDF of inventory labels from it.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Read CSV file with JS</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/papaparse.min.js"></script>
@ebridges
ebridges / qr-coder.html
Last active March 4, 2025 20:16
Given values from two text fields, embed them in a QR code.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QR Code Generator</title>
</head>
<body style="font-family: Arial, sans-serif; text-align: center; margin: 50px;">
<h1>QR Code Generator</h1>
<form id="qrForm">
@ebridges
ebridges / Python language features.md
Created August 7, 2024 15:24
Python Language Features

Python language features

Standard control structures

Conditional statements

  • if statement
if condition:
	# code to execute if condition is true
  • if-else statement
@ebridges
ebridges / .gitignore
Last active December 12, 2023 14:47
Generates cohort test cases
venv
cohort-cases
@ebridges
ebridges / priorities-list.md
Created October 29, 2022 13:13
Obsidian - Priorities List

Priorities

First

TASK FROM "work/aetion"
WHERE contains(tags, "#todo/11") and !completed
GROUP BY file.link
SORT file.ctime DESC
@ebridges
ebridges / meeting-notes-template.md
Created October 29, 2022 13:12
Obsidian - Meeting Notes Template

Topic

Agenda

  • <% tp.file.cursor() %>

Attendees

@ebridges
ebridges / daily-note-template.md
Created October 29, 2022 13:11
Obsidian - Daily Note Template
creation date
<% tp.file.creation_date() %>

← [[<% tp.date.now('YYYY-MM-DD-ddd', -1) %>]] | [[<% tp.date.now('YYYY-MM-DD-ddd', 1) %>]] →

<% tp.date.now('YYYY-MM-DD-ddd') %>

📝 Notes

#!/bin/sh
STREAM=$(aws --output=text logs describe-log-streams --log-group-name /aws/lambda/elektrum-development | tail -1 | awk '{print $7}')
aws --output=text logs get-log-events --log-group-name /aws/lambda/elektrum-development --log-stream-name ${STREAM}
@ebridges
ebridges / hide-quantity-block.css
Created November 17, 2018 13:30
Hides the quantity block on Family Portrait Day website.
.is-first-product-block>.productDetails>.product-quantity-input {
display: none;
visibility: hidden;
}
@ebridges
ebridges / .jhbuildrc-custom
Created November 11, 2017 03:00
jhbuild customizations
# -*- mode: python -*-
#Uncomment this if you have a completed build and only want to rebuild
#updated modules instead of everything:
#
#build_policy = "updated-deps"
#Select one of these, or use a different one: Do keep the directories
#separate for stable and unstable as they have different
#dependencies. You can use 2.3.x for svn builds.