Skip to content

Instantly share code, notes, and snippets.

View nathanshipley's full-sized avatar

Nathan Shipley nathanshipley

View GitHub Profile
{
"id": "7cbcec68-7fa6-47bb-a38a-da689949a001",
"revision": 0,
"last_node_id": 193,
"last_link_id": 308,
"nodes": [
{
"id": 135,
"type": "ConditioningZeroOut",
"pos": [
@nathanshipley
nathanshipley / splitByLines_DateRange.py
Created June 19, 2025 02:32
Split large text files into smaller ones and name them based on date range seen in the file.
#!/usr/bin/env python3
import sys
import os
import re
from datetime import datetime
def parse_date_from_line(line):
"""
Given a line like "[2/22/2025 12:12 PM] s2k:", extract "2/22/2025",
parse it into a datetime.date, and return as a string "YYYY-MM-DD".
@nathanshipley
nathanshipley / PositionKeyframesToText.jsx
Created June 11, 2025 20:50
Position Keyframes to Text Converter
// After Effects Script: Position Keyframes to Text Converter
// This script converts position keyframes from selected layers to text format
(function() {
// Check if a composition is active
var comp = app.project.activeItem;
if (!comp || !(comp instanceof CompItem)) {
alert("Please select a composition first.");
return;
}
@nathanshipley
nathanshipley / img2img_FLUX_ReduxDepth_NS_02_2024-12-09.json
Last active June 12, 2025 20:26
img2img_FLUX_ReduxDepth_NS_02_2024-12-09
{
"last_node_id": 457,
"last_link_id": 804,
"nodes": [
{
"id": 4,
"type": "SetNode",
"pos": [
-433,
2
@nathanshipley
nathanshipley / Flux_DiffDiff_NS_01.json
Created August 6, 2024 19:15
Flux + Differential Diffusion Test
{
"last_node_id": 59,
"last_link_id": 88,
"nodes": [
{
"id": 13,
"type": "SamplerCustomAdvanced",
"pos": [
1092,
112