Skip to content

Instantly share code, notes, and snippets.

View YogurtTheHorse's full-sized avatar

YogurtTheHorse YogurtTheHorse

View GitHub Profile
@YogurtTheHorse
YogurtTheHorse / common.lua
Last active February 4, 2024 00:04
computercraft turtles
-- common library code
-- use it like this:
-- os.loadAPI("common")
-- select the specified block (by block name) from the inventory
-- return true if selected successfully
function select(name)
local b = turtle.getSelectedSlot()-1
for i=0,15 do
@YogurtTheHorse
YogurtTheHorse / ColliderGizmos.cs
Last active December 20, 2023 17:20
Door joint setup
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace Giz.Abstract.Helpers
{
public static class ColliderGizmos
{
private const int CirclePointsCount = 8;