This commit is contained in:
parent
4d7c96788d
commit
480d8d1344
10 changed files with 60 additions and 64 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
arise-out/
|
||||
.obsidian/
|
||||
.idea/
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<!-- BEGIN ARISE ------------------------------
|
||||
Title:: "Hypomnēma"
|
||||
|
||||
Author:: "Spectra Secure"
|
||||
Author:: "Jose Falanga"
|
||||
Description:: "Entrypoint for the Thergic Log"
|
||||
Language:: "en"
|
||||
Thumbnail:: "arise-icon.png"
|
||||
|
|
@ -16,7 +16,7 @@ rss_hide:: "true"
|
|||
|
||||
This is a place where I'm going to dump my mind sometimes.
|
||||
|
||||
There is not much yet, I have some [Sample Posts](posts) still from [Arise](https://ari.se.net/).
|
||||
There is not much yet, just some programming [katas](katas).
|
||||
|
||||
I'm using [Obsidian](https://obsidian.md/) as an editor, can't recommend it enough.
|
||||
|
||||
|
|
|
|||
31
arise-source/katas/blind-monster-kata/index.md
Normal file
31
arise-source/katas/blind-monster-kata/index.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<!-- BEGIN ARISE ------------------------------
|
||||
Title:: "Blind Monster Kata"
|
||||
|
||||
Author:: "Jose Falanga"
|
||||
Description:: "Kata to try the Mute Ping Pong constrain"
|
||||
Language:: "en"
|
||||
Thumbnail:: "kanagawa.jpg"
|
||||
Published Date:: "2025-09-08"
|
||||
Modified Date:: "2022-09-08"
|
||||
|
||||
content_header:: "false"
|
||||
rss_hide:: "true"
|
||||
---- END ARISE \\ DO NOT MODIFY THIS LINE ---->
|
||||
# Blind Monster Kata
|
||||
## Constrains
|
||||
[Mute Ping Pong](https://kata-log.rocks/mute-ping-pong)
|
||||
|
||||
## Rules
|
||||
Write the core system of game, with the following rules:
|
||||
- There is a human in a room.
|
||||
- The room is represented throug a grid of tiles of arbitrary size.
|
||||
- The human starts in an arbitrary place in the room.
|
||||
- The human can move anywhere in the room.
|
||||
- The goal of the human is escaping the room. This is done by reaching the tile adjacent to the door.
|
||||
- The human makes noise while moving, but is silent if crouches.
|
||||
- Crouching makes movement 2x slower. If takes one second to move between 2 adjacent tiles, moving while crouching takes 2 seconds.
|
||||
- The passage of time is represented with a turn-based system. Each turn represents the same amount of time (eg: one sencond)
|
||||
- There is a monster in the room. The monster is blind, but can hear very well.
|
||||
- The monster starts at the tile adjacent to the door.
|
||||
- The monster is searching for the human. Will go to any tile where there is sound, at twice the walking speed the human has.
|
||||
- If the monster is in an adjacent tile with the human, will hear the heartbeat and localize it immediatly. Doing so will attack and kill the human.
|
||||
|
Before Width: | Height: | Size: 590 KiB After Width: | Height: | Size: 590 KiB |
23
arise-source/katas/conway-kata/index.md
Normal file
23
arise-source/katas/conway-kata/index.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<!-- BEGIN ARISE ------------------------------
|
||||
Title:: "Conway's Kata"
|
||||
|
||||
Author:: "Jose Falanga"
|
||||
Description:: "Kata to try different programming paradigms"
|
||||
Language:: "en"
|
||||
Thumbnail:: "kanagawa.jpg"
|
||||
Published Date:: "2025-09-08"
|
||||
Modified Date:: "2022-09-08"
|
||||
|
||||
content_header:: "false"
|
||||
rss_hide:: "true"
|
||||
---- END ARISE \\ DO NOT MODIFY THIS LINE ---->
|
||||
# Conway's Kata
|
||||
|
||||
This is an exercise on programming paradigms, implement the rules using as many programming paradigms as you know. Personally I recommend testing OOP and ECS.
|
||||
|
||||
## Rules of Conway's Game of Life
|
||||
|
||||
- A living cell with less than two neighbors: Dies
|
||||
- A living cell with two or three neighbors: Survives
|
||||
- A living cell with more than three neighbors: Dies
|
||||
- A dead cell with exactly three neighbors: Becomes alive
|
||||
|
Before Width: | Height: | Size: 590 KiB After Width: | Height: | Size: 590 KiB |
|
|
@ -1,8 +1,8 @@
|
|||
<!-- BEGIN ARISE ------------------------------
|
||||
Title:: "Index: Posts"
|
||||
Title:: "Index: Katas"
|
||||
|
||||
Author:: ""
|
||||
Description:: "A collection of sample posts build with Arise"
|
||||
Author:: "Jose Falanga"
|
||||
Description:: "A collection of programming katas"
|
||||
Language:: "en"
|
||||
Thumbnail:: ""
|
||||
Published Date:: ""
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
<!-- BEGIN ARISE ------------------------------
|
||||
Title:: "Abolish Arasaka"
|
||||
|
||||
Author:: "Johnny Silverhand"
|
||||
Description:: "I saw Saburo Arasaka at a grocery store in Night City yesterday."
|
||||
Language:: "en"
|
||||
Thumbnail:: ""
|
||||
Published Date:: "2077-05-12"
|
||||
Modified Date:: "2077-05-12"
|
||||
|
||||
---- END ARISE \\ DO NOT MODIFY THIS LINE ---->
|
||||
|
||||
# Abolish Arasaka
|
||||
|
||||
I saw Saburo Arasaka at a grocery store in Night City yesterday. I told him how cool it was to meet him in person, but I didn’t want to be a douche and bother him and ask him for photos or anything.
|
||||
|
||||
He said, “Oh, like you’re doing now?”
|
||||
|
||||
I was taken aback, and all I could say was “Huh?” but he kept cutting me off and going “huh? huh? huh?” and closing his hand shut in front of my face. I walked away and continued with my shopping, and I heard him chuckle as I walked off. When I came to pay for my stuff up front I saw him trying to walk out the doors with like fifteen Yikes! Tofu bars in his hands without paying.
|
||||
|
||||
The girl at the counter was very nice about it and professional, and was like “Sir, you need to pay for those first.” At first he kept pretending to be tired and not hear her, but eventually turned back around and brought them to the counter.
|
||||
|
||||
When she took one of the bars and started scanning it multiple times, he stopped her and told her to scan them each individually “to prevent any electrical infetterence,” and then turned around and winked at me. I don’t even think that’s a word. After she scanned each bar and put them in a bag and started to say the price, he kept interrupting her by yawning really loudly.
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
<!-- BEGIN ARISE ------------------------------
|
||||
Title:: "CI Test Suite - XML Reserved Characters & < > ' ""
|
||||
|
||||
Author:: "Spectra Secure & < > ' ""
|
||||
Description:: "This post tests if we are properly filtering XML reserved characters in page metadata & < > ' ""
|
||||
Language:: "en"
|
||||
Thumbnail:: "kanagawa.jpg"
|
||||
Published Date:: "2023-11-08"
|
||||
Modified Date:: "2023011-08"
|
||||
|
||||
---- END ARISE \\ DO NOT MODIFY THIS LINE ---->
|
||||
|
||||
# CI Test Suite - XML Reserved Characters
|
||||
|
||||
This page is part of a test suite to ensure that when a user tries to stick XML reserved characters into page metadata, such characters are properly converted to escape characters. This way we ensure that such characters don't break the monolithic sitemap or RSS feed.
|
||||
|
||||
The way we do this is by having a test page in our template site which contains a post whose title, author, and destripction all contain the XML reserved characters (&<>'"). This test suite verifies that this output page has all of the reserved characters properly sanitised to the escape code versions, so that they're safe to handle within the site's XML sitemap and RSS feed.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
<!-- BEGIN ARISE ------------------------------
|
||||
Title:: "My Cool Post"
|
||||
|
||||
Author:: "Spectra Secure"
|
||||
Description:: "This cool post is an example of a post published in Arise"
|
||||
Language:: "en"
|
||||
Thumbnail:: "kanagawa.jpg"
|
||||
Published Date:: "2022-09-17"
|
||||
Modified Date:: "2022-09-17"
|
||||
|
||||
---- END ARISE \\ DO NOT MODIFY THIS LINE ---->
|
||||
|
||||
# Look, a cool post
|
||||
|
||||
You can make cool posts on your Arise website!
|
||||
|
||||
You can even use images, look:
|
||||
|
||||

|
||||
Loading…
Add table
Add a link
Reference in a new issue