Skip to content

Instantly share code, notes, and snippets.

View NathanPB's full-sized avatar
🎯
Focusing

Nathan P. Bombana NathanPB

🎯
Focusing
  • Passo Fundo, Brazil
View GitHub Profile

Brains, Schedules and Activities: An overview of the new 1.14 AI system

In 1.14, villagers use an AI system completely independent from the old Goal system. However, this system can be used by any LivingEntity. This document aims at explaining the basics of that more advanced AI.

Every living entity now has a Brain. A brain uses memories and sensors to perform tasks and activities.

Memories

Memories are a way to save arbitrary data for use by tasks.

@NotJustAnna
NotJustAnna / cafeteria.svg
Last active May 23, 2021 15:55
Cafeteria SVG Logo - CC BY-NC-SA 4.0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@johnatasjmo
johnatasjmo / source_files_from_folder.R
Created January 20, 2018 16:44
R - Source all files within folder
setwd("~/rProgramming")
files.sources = list.files()
sapply(files.sources, source)
@janojanahan
janojanahan / MonadicNullSafety.kt
Last active November 8, 2024 05:00
Kotlin Nullable can behave like a monad
/**
* A Gist proving that Kotlin's nullable type can be made into a monad without wrapping into another
* object and satisfy the Monadic laws
*
* Kotlin has comprehensive null safety built into the language enforced at compile time, using its
* nullable type.
*
* Its language structure makes dealing with nullable values simple and succinct. Unlike other language
* monadic constructs such as Option (scala), Optional(Java8+) and Maybe(Haskell), it is enforced at
* compile time and is compatible with existing non monad aware API (for example,
@Fingercomp
Fingercomp / nn.lua
Last active September 8, 2022 21:01
OpenComputers Nanomachines control program [Minecraft]
local CONF = "/etc/nn.conf"
local m = require("component").modem
local event = require("event")
local ser = require("serialization")
local fs = require("filesystem")
local unicode = require("unicode")
_G.port = _G.port or 27091
_G.max = _G.max or 15
_G.effects = _G.effects or {}
@hoserdude
hoserdude / doge.txt
Created June 15, 2015 15:15
Doge ASCII
▄ ▄
▌▒█ ▄▀▒▌
▌▒▒█ ▄▀▒▒▒▐
▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌
▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌
▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌
▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌
@jctosta
jctosta / screen_cheatsheet.markdown
Last active November 14, 2024 15:09
Screen Cheatsheet

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r