Skip to content

Instantly share code, notes, and snippets.

View findoff's full-sized avatar

abnessor aka findoff findoff

View GitHub Profile
#!/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
/*
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);
@findoff
findoff / CalculateObliqueMatrix
Created July 8, 2020 11:19 — forked from fuqunaga/CalculateObliqueMatrix
CalculateObliqueMatrix inplement
// https://forum.unity.com/threads/oblique-near-plane-clipping.194722/
public class Clipper : MonoBehaviour
{
Matrix4x4 projection;
Camera offscreenCam;
void Start ()
{
projection = camera.projectionMatrix;
}