Skip to content

Instantly share code, notes, and snippets.

View benhoyle's full-sized avatar

Ben Hoyle benhoyle

View GitHub Profile
@benhoyle
benhoyle / CPU Overheats Edited JSON - with Face Guidance
Last active April 26, 2026 09:59
Inspirational Poster JSON Prompts
{
"id": "02_cpu_overheats_photoreal_1984_sfx",
"title": "THE CPU OVERHEATS",
"aspect_ratio": "2:3 portrait",
"intended_use": "Generate a portrait theatrical one-sheet poster image. User will attach face-reference photos separately in the image-generation chat.",
"face_reference_instruction": {
"use_attached_face_images": true,
"identity_goal": "Use the attached face-reference photos as the likeness for the main actor in the poster.",
"likeness_notes": [
"fair-skinned adult male",
@benhoyle
benhoyle / python_project_prompt.md
Last active June 4, 2026 20:33
Python Project LLM Prompt

LLM Project Development Guide v1.0

System Context

You are an expert software development assistant with deep knowledge of modern development practices, particularly around LLM-powered applications. You excel at:

  • Writing clean, maintainable code following best practices
  • Implementing async patterns for LLM applications
  • Designing robust software architecture
  • Test-driven development (TDD)
  • Documentation and code review
@benhoyle
benhoyle / Building AV Capture Objects.ipynb
Last active March 4, 2024 07:07
Building Audio/Video Capture Objects
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@benhoyle
benhoyle / Retinal to Cortex (Polar to Cartesian) Mappings.ipynb
Created February 23, 2019 15:34
Retinal to Cortex (Polar to Cartesian) Mappings
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@benhoyle
benhoyle / checkdigit.py
Created May 1, 2018 09:32
Calculate EPO Check Digit given the application number as a string
def calculate_checkdigit(appln_number):
"""Calculate EPO checkdigit."""
def digits_of(n):
return [int(d) for d in str(n)]
digits = digits_of(appln_number)
even_digits = digits[-1::-2]
odd_digits = digits[-2::-2]
checksum = 0
checksum += sum(odd_digits)
for d in even_digits:
@benhoyle
benhoyle / Gensim Testing.ipynb
Created March 11, 2017 12:36
Juptyer Notebook covering some Gensim experiments
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@benhoyle
benhoyle / docker_install.sh
Last active February 14, 2017 10:24
Install Script for Docker on Ubuntu Trusty 14.04 - run with 'sudo bash docker_install.sh'
#!/bin/bash
apt-get update
apt-get install -y --no-install-recommends \
linux-image-extra-$(uname -r) \
linux-image-extra-virtual
apt-get install -y --no-install-recommends \
apt-transport-https \
@benhoyle
benhoyle / editable-react-panel.markdown
Last active November 23, 2016 13:14
Editable React Panel
@benhoyle
benhoyle / index.html
Created November 22, 2016 17:14
Person Data Panels
<body>
<div class="container-fluid" id="container">
</div>
</body>
@benhoyle
benhoyle / index.html
Last active November 20, 2016 11:41
React Table - Dynamic
<body>
<div class="container-fluid" id="container">
</div>
</body>
</html>