This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns sudoku | |
(:refer-clojure :exclude [==]) | |
(:use clojure.core.logic) | |
(:require [clojure.core.logic.fd :as fd])) | |
(defn get-square [rows x y] | |
(for [x (range x (+ x 3)) | |
y (range y (+ y 3))] | |
(get-in rows [x y]))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defrecord JimFSFactory [] | |
component/Lifecycle | |
(start [t] (Jimfs/newFileSystem (Configuration/unix)))) | |
(extend-protocol component/Lifecycle | |
Jimfs | |
(stop [t] (.close t))) | |
(defrecord PathFactory [fs] | |
component/Lifecycle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defrecord JimFSFactory [] | |
component/Lifecycle | |
(start [t] (Jimfs/newFileSystem (Configuration/unix)))) | |
(extend-protocol component/Lifecycle | |
Jimfs | |
(stop [t] (.close t))) | |
(defrecord PathFactory [fs] | |
component/Lifecycle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns ukanren-transducers | |
(:refer-clojure :exclude [== disj conj])) | |
(defrecord Lvar [name]) | |
(defn lvar [] (->Lvar (gensym "lvar"))) | |
(defn lvar? [v] (instance? Lvar v)) | |
(def empty-state {}) | |
(defn walk [u s] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const enemyTokens = game.canvas.scene.tokens.filter(entry => entry.disposition == -1); | |
const enemyDrawings = [ | |
// Name, Amount | |
["0HRRJvAy0DL9fZYj", "xOkLUlaf66MIWaEg"], | |
["fvEtY6HXxuWZwTaM", "3ZpYPphDlKP0qocJ"], | |
["BxYhCFss1Hxeubg1", "1cyj6HHCq1Dy5y9C"], | |
["0zVx7PfduwZbNqnj", "kkoOJOPxo6K8hIhV"], | |
].map(uis => uis.map(id => canvas.scene.drawings.get(id))); |
OlderNewer