Skip to content

Instantly share code, notes, and snippets.

@batate
batate / states.prolog
Last active November 8, 2019 15:08
States coloring problem in Prolog
/* see more at grox.io */
different(red, green). different(red, blue).
different(green, red). different(green, blue).
different(blue, red). different(blue, green).
coloring(Alabama, Mississippi,
Georgia, Tennessee, Florida) :-
different(Mississippi, Tennessee),
@batate
batate / tetris_square.svg
Last active December 23, 2019 00:07
svg example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@batate
batate / life.livemd
Created January 19, 2024 00:28
Life Lifebook

Conway's Game of Life

import IEx.Helpers

Mix.install([
  {:kino, "~> 0.12.2"}
])