Skip to content

Instantly share code, notes, and snippets.

View TheNorthEestern's full-sized avatar

Kacy James TheNorthEestern

View GitHub Profile
@TheNorthEestern
TheNorthEestern / graphic2.py
Created May 28, 2020 02:47 — forked from zmic/graphic2.py
Snippet 2 : meltdown in the complex plane
import os
import numpy as np
from PIL import Image
#-------------------------------------------------------------------
#
# helper functions
#
def create_complex_plane(X, Y, x0, x1, y0, y1, endpoint=False):
I = np.indices((Y,X)).astype(np.float64)
import requests
from pprint import pprint
import xml.etree.ElementTree as ET
session = requests.Session()
session.headers.update({'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0'})
r = session.get("https://www.reddit.com/r/NHKEasyNews/.rss")
root = ET.fromstring(r.text)
#ifndef COMMON_METAL
#define COMMON_METAL
#include <metal_stdlib>
using namespace metal;
// Base structures
struct VertexIn {
float3 position [[attribute(0)]];
float2 uv [[attribute(1)]];
#include "Common.metal"
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Uniforms {
float2 iResolution;
float iTime;
float patternScale;
@TheNorthEestern
TheNorthEestern / hello.py
Created June 12, 2025 15:28
Gist with image comment
print('Hello, World!')
@TheNorthEestern
TheNorthEestern / hello.py
Created June 12, 2025 15:46
Gist with image comment
print('Hello, World!')