Skip to content

Instantly share code, notes, and snippets.

module Main where
import Prelude
import Control.Lazy (fix)
import Control.Monad.Except (Except, runExcept, throwError)
import Data.Either (Either(..))
import Effect (Effect)
import Halogen as H
import Halogen.Aff as HA
pub trait CA<T> {
fn rule(&self, x: usize, y: usize) -> T;
fn update(&mut self) -> ();
fn render(&self) -> String;
}
mod lifegame {
#[derive(Copy, Clone, PartialEq)]
pub enum CellStatus {
Dead,
@madorama
madorama / MadTools\Editor\ScalingAvatar.cs
Created December 22, 2018 18:03
Scaling Avatar in Inspector
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using VRCSDK2;
namespace MadTools {
[CustomEditor(typeof(VRCSDK2.VRC_AvatarDescriptor))]
public class ScalingAvatar : AvatarDescriptorEditor {
Vector3 defaultViewPosition = new Vector3(0, 1.6f, 0);