Skip to content

Instantly share code, notes, and snippets.

@jminor
jminor / Standard-DoubleSided.shader
Created June 1, 2017 16:30
Unity Standard-DoubleSided.shader
Shader "Standard-DoubleSided"
{
Properties
{
_Color("Color", Color) = (1,1,1,1)
_MainTex("Albedo", 2D) = "white" {}
_Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5
_Glossiness("Smoothness", Range(0.0, 1.0)) = 0.5
@jminor
jminor / mov.hexpat
Created March 10, 2023 18:46
ImHex pattern file for QuickTime MOV files.
// MOV QuickTime File Format
// https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap1/qtff1.html#//apple_ref/doc/uid/TP40000939-CH203-BBCGDDDF
// See also Apple's "Atom Inspector" application available on the Apple Developer downloads portal.
// RIP Atomic Dumpster.
#include <std/mem.pat>
#include <std/sys.pat>
#pragma endian big
@jminor
jminor / screenres.swift
Created July 21, 2016 20:38
Change your Mac's screen resolution from the command line.
#!/usr/bin/swift
import Foundation
var shouldPrintUsage = true
var shouldPrintModes = true
var shouldSwitchMode = false
var didSwitchMode = false
var desiredDisplayNumber: Int? = nil
var desiredWidth: Int? = nil
@jminor
jminor / readme.txt
Created June 3, 2022 16:44
Maze Backtracker (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@jminor
jminor / readme.txt
Created June 3, 2022 16:39
Maze Backtracker (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@jminor
jminor / readme.txt
Created June 3, 2022 16:37
My Game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@jminor
jminor / schema_downgrader.py
Created May 12, 2022 22:53
Proof-of-concept OpenTimelineIO schema downgrader
#!/usr/bin/env python
#
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the OpenTimelineIO project
#
# This file is for discussion regarding this OpenTimelineIO issue:
# https://github.com/PixarAnimationStudios/OpenTimelineIO/issues/1295
"""Experimental tool to downgrade an OTIO file.
"""
// This adds a simple text area for you to add comments
// to your GameObjects in the Unity inspector.
// Comments are saved with your scene, just like any other
// component on a GameObject.
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
@jminor
jminor / OSCSyncedObject.cs
Last active December 5, 2019 08:40
Unity Synced Object, via OSC
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class OSCSyncedObject : MonoBehaviour {
public OSC osc;
public string address = "/example/obj1";
public bool forceSend;
@jminor
jminor / OSC.cs
Last active December 5, 2019 08:35
OpenSoundControl for Unity
/*
OSC.cs
Open Sound Control for Unity
LICENSE:
A large portion of this code is based on Makingthings's Make Controller OSC C# implementation:
https://web.archive.org/web/20121021044334/http://www.makingthings.com:80/ref/firmware/html/group___o_s_c.html