Skip to content

Instantly share code, notes, and snippets.

View jakedowns's full-sized avatar
💜
exploring, is there something you'd like to show me?

Jake Downs jakedowns

💜
exploring, is there something you'd like to show me?
View GitHub Profile
@jakedowns
jakedowns / potential-advisors.md
Last active February 11, 2024 03:41
brainstorming a list of potential advisors for a "dreams-like" protocol for foundational, browser-level open cross-device cross-play webxr<->2d with no middlemen
Name Category Link Thing Stance towards open source
Cathy Hackl AR/VR/XR Twitter Influential in AR/VR industry discussions Unknown
Tamara McCleary AI/Marketing/AR Twitter Discusses tech and marketing trends Unknown
Daniel Newman Tech/AR Industry Twitter Covers tech predictions and AR industry issues Unknown
Ambarish Mitra AR News Twitter AR company activities and industry news Unknown
Dr. Rafael Grossman Healthcare AR Twitter Explores AR in healthcare Unknown
Javier Davalos XR/VR/AR/MR Twitter Hand tracking, gravitational fields in Unity Unknown
Jasmine Roberts AR Application Development Twitter Developed Google A
@jakedowns
jakedowns / AHRS.ipynb
Created February 6, 2024 01:42 — forked from CGamesPlay/AHRS.ipynb
AHRS
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jakedowns
jakedowns / gpt-three-js-isometric-grid-prompt.md
Last active December 22, 2023 21:21
three-js-isometric-prompt

using THREE.js isometric grid here

please make it pannable and zoomable and make the viewing angle controllable with a slider the viewing angle control worked great

make it dark mode

remember to add panning and zooming

also, add sub-division (lighter) lines in the grid please add buttons for:

@jakedowns
jakedowns / clearing-collections-safely.md
Created December 20, 2023 17:32
how to fix foreach InvalidOperationException

In Unity, when dealing with object pools or any collection from which you need to remove objects during iteration, it's indeed important to be careful about how you modify the collection. Modifying a collection while iterating over it using a foreach loop can indeed cause exceptions, specifically an InvalidOperationException because the collection is modified during its enumeration.

There are a few strategies to safely remove items from a collection while iterating over it:

  1. Backwards for Loop: As you mentioned, using a traditional for loop and iterating backwards is a common and effective way. This method is especially useful for lists or arrays where removing an item shifts the indices of subsequent items. By iterating backwards, you ensure that the removal of an item doesn't affect the indices of the items you haven't processed yet.

    for (int i = collection.Count - 1; i >= 0; i--)
    {
        // Perform removal logic
@jakedowns
jakedowns / tldraw-make-real-modals.html
Created December 20, 2023 04:58
Modals Generated with TLDRAW's Make Real
<!DOCTYPE html>
<!-- via https://twitter.com/jakedowns/status/1737336410221195449 -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Interactive Modals</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<style>
Shader "Pillow/PillowEquirectDepth" {
Properties{
_MainTex("Texture", 2D) = "white" {}
_Depth("Depth", 2D) = "white" {}
_Scale("Depth Multiplier", float) = 1
_Min("Min Depth Cutoff", float) = 1000
_Max("Max Depth Cutoff", float) = 100
_DisplacementBias("Displacement Bias", float) = 0.01
_PoleBoost("Pole Boost", float) = 1
}
@jakedowns
jakedowns / AWS_RDS_DMS_Kinesis_S3_Guide.txt
Last active November 27, 2023 05:05
AWS RDS -> DMS -> Kinesis Data Stream -> Kinesis Delivery Stream -> S3 Bucket
RDS -> DMS -> Kinesis -> S3
RDS:
- source database instance
For MySQL:
* binary logging (enable backups)
* binlog_format ROW (create a custom param group and set binlog_format to ROW instead of default MIXED)
DMS:
- role: New DMS_RDS_Kinesis_S3 (IAM) RDSFullAccess, KinesisFullAccess, S3FullAccess
@jakedowns
jakedowns / lookingglass.glsl
Created October 2, 2022 20:25
mpv shader for looking glass portrait (not quite working)
//!HOOK OUTPUT
//!BIND HOOKED
//!DESC LookingGlass
// ! WIDTH 1536
// ! HEIGHT 2048
// Calibration values
// via: https://jakedowns.github.io/looking-glass-calibration.html
float slope = -7.083540916442871;
float center = 0.8167931437492371;
@jakedowns
jakedowns / 1_readme.md
Last active September 30, 2022 13:11
ReShade Depth Buffer Access - Citra 3DS Emulator

Update I've got a ReShade addon + effect that handles all this for you now: https://github.com/jakedowns/reshade-shaders/tree/main/Citra%20AddOn

If you still want to do it manually:

instructions originally from https://www.reddit.com/r/Citra/comments/i4o5i1/reshade_depth_buffer_access_fix/ Consolidated info since reshade forums are down

  1. Rename ReShade.fxh to ReShade.fxh.backup or something

  2. Replace ReShade.fxh with this version that has citra support: https://gist.github.com/jakedowns/e6637f880e2fc3f9dfae5f34a6a8715c#file-reshade-fxh

@jakedowns
jakedowns / Readme.md
Last active September 30, 2022 07:33
Citra 3Ds emulator interlacing shader for Looking Glass Portrait