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
#!/bin/zsh | |
input_file="$1" | |
output_file="output.html" | |
# Remove <img> tags with optional whitespace before and after the tag | |
sed -e 's/[[:space:]]*<img[^>]*>[[:space:]]*//g' "$input_file" > "$output_file" | |
# Remove <g-img> tags with optional whitespace before and after the tag | |
sed -i.bak -e 's/[[:space:]]*<g-img[^>]*>[[:space:]]*//g' "$output_file" |
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
from bs4 import BeautifulSoup | |
import csv | |
import re | |
with open('data.html', 'r') as f: | |
html = f.read() | |
soup = BeautifulSoup(html, 'html.parser') | |
results = [] |
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
from bs4 import BeautifulSoup | |
with open('data.html', 'r') as f: | |
html = f.read() | |
soup = BeautifulSoup(html, 'html.parser') | |
results = [] | |
for result_tile in soup.find_all('div', {'data-qa': 'result-tile'}): |
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
#!/bin/bash | |
# bash script to combines all pdfs in my current directory and in the | |
# subdirectories named 1099, 1098 and W2. in the pdf create an outline that | |
# organizes files in the pdf by their directory except name the current | |
# directory "Admin". create a blank page at the start of each section with the | |
# title of that section in a large font vertically centered on the page. create | |
# an outline for each file name and output to the screen when each file is added | |
# so i can track progress. |
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
version: '3.9' | |
services: | |
cron: | |
image: "ghcr.io/linuxserver/cron:latest" | |
volumes: | |
- wordpress_root:/var/www/html | |
environment: | |
- CRON_TIME=* * * * * | |
- CRON_COMMAND=wp cron event run --due-now | |
networks: |
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name theboohers.org www.theboohers.org; | |
location ~ /.well-known/acme-challenge { | |
allow all; | |
root /var/www/html; | |
} |
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
version: '3.9' | |
services: | |
db: | |
image: mariadb:latest | |
volumes: | |
- dbdata:/var/lib/mysql | |
ports: | |
- 3306:3306 | |
env_file: .env | |
environment: |
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
% | |
(holes 0.25) | |
(Machine) | |
( vendor: Carbide 3D) | |
( model: XXL) | |
( description: Shapeoko XXL) | |
(T1 D=6.35 CR=0 - ZMIN=-25 - flat end mill) | |
G90 | |
G17 | |
G21 |
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
% Calculate the error between the measured and ideal coordinates | |
error_x = makemm(x - X); | |
error_y = makemm(y - Y); | |
% Calculate the squared error | |
error = sqrt(error_x.^2 + error_y.^2) | |
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
function positions = find_points2(I) | |
imshow(I); | |
positions = cell(5,6); | |
for iRow = 1:5 | |
disp(['Row ' num2str(iRow)]); | |
for iCol = 1:6 | |
roi = drawpoint; | |
positions{iRow, iCol}.x = roi.Position(1); | |
positions{iRow, iCol}.y = roi.Position(2); |