Skip to content

Instantly share code, notes, and snippets.

View RikusLategan's full-sized avatar

Rikus Lategan RikusLategan

View GitHub Profile
- This page is a collection of some of the Advanced queries from the [[Datalog]] channel on the [[Logseq/Discord]] server. #datalog
id:: 61db13f4-75e8-4f87-ad60-3ac3479c5fc8
- ### Resources
- [link: The first message on the datalog channel](https://discord.com/channels/725182569297215569/743139225746145311/743139795865174119)
- [link: Logseq docs - Advanced queries](https://docs.logseq.com/#/page/advanced%20queries)
- [link: Logseq datascript schema](https://gist.github.com/tiensonqin/9a40575827f8f63eec54432443ecb929)
- [link: Logseq frontend db model](https://github.com/logseq/logseq/blob/master/src/main/frontend/db/model.cljs)
- [link: How to Graph Your Data - talk by Paula Gearon](https://youtu.be/tbVwmFBnfo4)
- [link: Domain modelling with datalog - talk by Norbert Wojtowicz](https://youtu.be/oo-7mN9WXTw)
- [link: Athens Research ClojureFam](https://github.com/athensresearch/ClojureFam)
@RikusLategan
RikusLategan / main-box2d.go
Created July 18, 2025 16:07
This is the same demo using two different 2d go ported physic engines ( #Chipmunk and #Box2d )
package main
import (
"fmt"
"image/color"
"log"
"math/rand"
"github.com/hajimehoshi/ebiten/v2"
ebitvector "github.com/hajimehoshi/ebiten/v2/vector"
@RikusLategan
RikusLategan / Code.java
Created June 6, 2023 07:03
Hamiltonean Cycles
//A Hamiltonian cycle is a cycle in an undirected or directed graph that visits each vertex exactly once.
// import visualization libraries {
import org.algorithm_visualizer.*;
import java.util.Random;
// }
class Main {
// define tracer variables {
GraphTracer graphTracer=new GraphTracer("GraphTracer");
LogTracer logTracer = new LogTracer("Console");
@RikusLategan
RikusLategan / Code.java
Created June 6, 2023 07:03
Sum of subsets
// import visualization libraries {
import org.algorithm_visualizer.*;
import java.util.Random;
// }
class Main {
// define tracer variables {
Array1DTracer array1dTracer = new Array1DTracer("Set");
LogTracer logTracer = new LogTracer("Console");
// }

Scratch Paper

Visualize your own code here!

Learning About Tracers

The project Algorithm Visualizer has a visualization library in each supported language (JavaScript , C++, and Java) to visualize codes.