This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Pristine Triplanar Grid" | |
| { | |
| Properties | |
| { | |
| [KeywordEnum(World,Object,ObjectAlignedWorld)] _GridSpace ("Grid Space", Float) = 0.0 | |
| _GridScale ("Grid Scale", Float) = 1.0 | |
| [Toggle(USE_VERTEX_NORMALS)] _UseVertexNormals ("Use Vertex Normals", Float) = 0.0 | |
| [Toggle] _ShowOnlyTwo ("Show Only Two Grid Axis", Float) = 0.0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Pristine Radial Grid" | |
| { | |
| Properties | |
| { | |
| [Toggle] _WorldUV ("Use World Space UV", Float) = 1.0 | |
| _GridScale ("Grid Scale", Float) = 1.0 | |
| [Toggle] _UseAdaptiveAngularSegments ("Use Adaptive Angular Segment Count", Float) = 0.0 | |
| [IntRange] _AngularSegments ("Angular Segments", Range(1,360)) = 4.0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Pristine Grid" | |
| { | |
| Properties | |
| { | |
| [KeywordEnum(MeshUV, WorldX, WorldY, WorldZ)] _UVMode ("UV Mode", Float) = 2.0 | |
| _GridScale ("Grid Scale", Float) = 1.0 | |
| _LineWidthX ("Line Width X", Range(0,1.0)) = 0.01 | |
| _LineWidthY ("Line Width Y", Range(0,1.0)) = 0.01 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add to your zsh profile | |
| function devicepid() { | |
| if [ -z "$1" ]; then | |
| echo "Usage: devicepid <device-name> <search>" | |
| echo "Example: devicepid 'iPhone 15 Pro Max' SpringBoard" | |
| return 1 | |
| fi | |
| if [ -z "$2" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import logging | |
| import enum | |
| import collections | |
| import math | |
| import time | |
| import pdb | |
| from dataclasses import dataclass | |
| from typing import Sequence, Tuple, List, Mapping, MutableMapping, Any, Set, Collection, Iterator, Optional | |
| import sortedcontainers # type: ignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // MIT License | |
| // | |
| // Copyright (c) 2023 Sophiestication Software | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Type-safe State Machine with Phantom Type May 2022 @AtarayoSD | |
| import Foundation | |
| protocol State {} | |
| // Transitions | |
| protocol TransferableToB {} | |
| protocol TransferableToC {} | |
| protocol TransferableToD {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "Terminal" | |
| set ws to windows | |
| if (true) then -- set to false to see current window positions | |
| set c to 80 | |
| set ps to {{4215, 27}, {3629, 27}, {3043, 27}, {3043, 734}, {2457, 734}, {3629, 734}, {4215, 734}} | |
| set r to 48 | |
| set ix to 1 | |
| repeat with p in ps | |
| set w to item ix of ws |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Mobile VR Highlight" { | |
| Properties { | |
| _ColorOutline ("Outline", Color) = (1,1,1,1) | |
| _ColorInterior ("Interior", Color) = (0.25,0.25,0.25,0.25) | |
| _ColorInteriorFaded ("Interior Faded", Color) = (0.1,0.1,0.1,0.1) | |
| _ColorInteriorOcc ("Interior Occluded", Color) = (0.15,0.15,0.15,0.15) | |
| _ColorInteriorOccFaded ("Interior Occluded Faded", Color) = (0.05,0.05,0.05,0.05) | |
| _PulseRateMod ("Pulse Rate Modifier", Float) = 4.0 | |
| _OutlneWidth ("Outline Pixel Width", Float) = 1.0 | |
| } |