Skip to content

Instantly share code, notes, and snippets.

View ianhaggerty's full-sized avatar
🚀
I think, therefore I am.

Ian Haggerty ianhaggerty

🚀
I think, therefore I am.
  • United Kingdom
View GitHub Profile
@ianhaggerty
ianhaggerty / stablediffusionwalk.py
Created March 9, 2024 00:15 — forked from karpathy/stablediffusionwalk.py
hacky stablediffusion code for generating videos
"""
stable diffusion dreaming
creates hypnotic moving videos by smoothly walking randomly through the sample space
example way to run this script:
$ python stablediffusionwalk.py --prompt "blueberry spaghetti" --name blueberry
to stitch together the images, e.g.:
$ ffmpeg -r 10 -f image2 -s 512x512 -i blueberry/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p blueberry.mp4
@ianhaggerty
ianhaggerty / challenge-3.ts
Created August 30, 2022 22:12
No BS TS === Challenge 3
type FilterFunction<D> = (data: D) => Boolean;
type Filters<T, K extends keyof T> = Record<K, FilterFunction<T[K]>[]>;
type MapFunction<D> = (data: D) => D;
type Maps<T, K extends keyof T> = Record<K, MapFunction<T[K]>[]>;
type ProcessedEvent<T, K extends keyof T> = {
eventName: K;
data: T[K];
};
@ianhaggerty
ianhaggerty / SassMeister-input-HTML.jade
Created November 21, 2014 13:10
Generated by SassMeister.com.
- var n = 30
while --n > 0
.bar
@ianhaggerty
ianhaggerty / SassMeister-input-HTML.html
Created November 18, 2014 15:33
Generated by SassMeister.com.
<h1>Hello World</h1>