This file contains 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
// https://forum.unity.com/threads/oblique-near-plane-clipping.194722/ | |
public class Clipper : MonoBehaviour | |
{ | |
Matrix4x4 projection; | |
Camera offscreenCam; | |
void Start () | |
{ | |
projection = camera.projectionMatrix; | |
} |
This file contains 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 panel with fold/unfold button at top-left | |
inject with custom-javascript-for-web chrome plugin | |
( https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija ) | |
*/ | |
~function(){ | |
if(window.pluginFold){ | |
try{ | |
document.body.removeChild(window.pluginFold.panel); |
This file contains 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
#!/usr/bin/env python3 | |
import random | |
import sys | |
from time import sleep | |
class Life: | |
symbols = ["\033[37;47m.\033[0m", "\033[31;41m#\033[0m"] | |
rules = [ | |
# 0, 1, 2, 3, 4, 5, 6, 7, 8 | |
[ 0, 0, 0, 1, 0, 0, 0, 0, 0 ], # dead |