Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

307 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to My Profile!

This week's code snippet, Baklava in Discus, is brought to you by Subete and the Sample Programs repo.

module Main
import System.IO.Console
import Data.List
import Data.Text.List

where

baklavaLine (n: Nat): Text
 = (textOfCharList (replicate num_spaces ' ')) % (textOfCharList (replicate num_stars '*'))
    where
        num_spaces = if n > 10 then n - 10 else 10 -n
        num_stars = 21 - 2 * num_spaces

main ()
 =  forS (enumFromTo 0 20) $ n
 -> writel $ baklavaLine n

Below you'll find an up-to-date list of articles by me on The Renegade Coder. For ease of browsing, emojis let you know the article category (i.e., blog: ✒️, code: 💻, meta: 💭, teach: 🍎)

Also, here are some fun links you can use to support my work.

An image of @jrg94's Holopin badges, which is a link to view their full Holopin profile


This document was automatically rendered on 2026-08-07 using SnakeMD.

About

Jeremy Grifski's GitHub profile

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors