Skip to content

Instantly share code, notes, and snippets.

View kevinkhill's full-sized avatar

Kevin Hill kevinkhill

View GitHub Profile
@kevinkhill
kevinkhill / next.js
Last active June 26, 2021 14:36
Clicking the `>` in TestOut
// Paste this line into your console (it might give you a warning) and in 12 seconds, it will "click" the `>`
setTimeout(()=>(document.getElementById("ProductViewer-NavNextBtn")).dispatchEvent(new Event('click',{bubbles:true,cancellable:true})), 12*1000);
@kevinkhill
kevinkhill / giants-causeway.scad
Last active December 12, 2025 04:55
Giants Causeway Generator
// Number of rows in the tessellation
rows = 20;
// Number of columns in the tessellation
cols = 100;
// Width of each hexagonal pillar (circumradius)
hex_size = 4;
// Minimum height of each pillar
height_min = 2;
// Maximum height of each pillar
height_max = 20;
@kevinkhill
kevinkhill / scadeps.py
Created January 9, 2025 01:01
Automatic Dependency Installer for OpenSCAD
import os
import subprocess
import re
import argparse
def extract_dependency_url(file_path):
with open(file_path, "r") as file:
for line in file:
match = re.search(r"//\s*@dependency\s*(\S+)", line)