snabelen.no er en av mange uavhengige Mastodon-servere du kan bruke for å delta i det desentraliserte sosiale nettet.
Ein norsk heimstad for den desentraliserte mikroblogge-plattformen.

Administrert av:

Serverstatistikk:

369
aktive brukere

#set

ett innlegg1 deltaker0 innlegg i dag
Replied in thread

@JordiGH only 18 lines of actual function!

```typst
#set page(margin: 3%, height: 595.28pt)

#let rainbow-circle = (iterations, spirals) => {
place(center + horizon)[
#layout(size => {
for i in range(iterations) {
let textAngle = spirals * i * 360deg / iterations
let textRadius = 50% * size.width * (i / iterations)
place(
dx: textRadius * calc.cos(textAngle),
dy: textRadius * calc.sin(textAngle),
rotate(textAngle, text(fill: color.map.rainbow.at(calc.rem(i, 256)))[#i]),
)
}
})
]
}

#rainbow-circle(500, 11)
```

alojapan.com/1289437/expo-2025 Expo 2025 Osaka: New Winx Club series debuts at Italy Pavilion – General News #All #as #be #Can #Company #ComputerAnimation #hosting #IginioStraffi #IT #Osaka #OsakaTopics #president #rainbow #set #still #WinxClub #world #大阪 #大阪府 
 
 The Italy Pavilion at Expo 2025 Osaka
 is hosting the launch of the new Winx Club series ‘The Magic is
 back’ which is set to premiere in October on Netflix and will
 also be available i…

@panic I'm trying to make symbolication for Gleam using a query for it's tree-sitter.

I managed to get top-level functions and top-level types working, but I'd like to get subtypes working hierarchically as well (all Gleam types are essentially enums).

I have the following queries:

(type_definition
(type_name
name: (type_identifier) @name) @subtree
(#set! role enum))

(type_definition
(data_constructors
(data_constructor
name: (constructor_name) @name) @subtree)
(#set! role enum-member))

They both get picked up by the symbols viewer, but my sub types (the bottom one) get's displayed at the same level as the top level ones and does not get nested.

I'm trying to figure this out by looking at the queries in the Rust extension and the ones in the offical Gleam tree-sitter (github.com/gleam-lang/tree-sit), but I think I'm getting something wrong.

GitHubtree-sitter-gleam/queries/tags.scm at main · gleam-lang/tree-sitter-gleam🌳 A tree-sitter grammar for the Gleam programming language - gleam-lang/tree-sitter-gleam