Skip to content

Instantly share code, notes, and snippets.

View HideyukHira's full-sized avatar

toyboyninja HideyukHira

View GitHub Profile
@kishida
kishida / html2csv.py
Last active April 17, 2024 09:14
Stable Diffusion web-ui styles from Fooocus
from bs4 import BeautifulSoup
import csv
# Open and read the HTML file
with open("Style reference.html", 'r', encoding='utf-8') as file:
content = file.read()
# Parse the HTML content using BeautifulSoup
soup = BeautifulSoup(content, 'html.parser')
@andrewahead4
andrewahead4 / rest_insert_post.php
Last active April 18, 2024 13:55
A simple post insert using WP REST API and PHP over basic authentication
<?php
///////////////////////////////////////////////////////////////////////////////////
// //
// This is using a sample local WordPress Install and is not production safe //
// It uses the REST and Basic Auth plugins //
// //
///////////////////////////////////////////////////////////////////////////////////