Compare commits
15
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63d1de7a67 | ||
|
|
7552e33c48 | ||
|
|
7f5fc636c2 | ||
|
|
4815c84be6 | ||
|
|
95ddcf2fd8 | ||
|
|
11d54f4480 | ||
|
|
471b223881 | ||
|
|
de12b4175a | ||
|
|
b8dc89723e | ||
|
|
690a9e4260 | ||
|
|
1ff3ab56ea | ||
|
|
ada581c711 | ||
|
|
aa4eb89511 | ||
|
|
3672b754b7 | ||
|
|
f90136e022 |
No files matched your search
+41
-4
@@ -25,6 +25,7 @@ DEV = int(config['NETWORK']['DEV'])
|
|||||||
|
|
||||||
MUSIC_API_TOKEN = config['AUTH']['MUSIC_API_TOKEN']
|
MUSIC_API_TOKEN = config['AUTH']['MUSIC_API_TOKEN']
|
||||||
MUSIC_API_URL = config['NETWORK']['MUSIC_API_URL']
|
MUSIC_API_URL = config['NETWORK']['MUSIC_API_URL']
|
||||||
|
statuses = {}
|
||||||
|
|
||||||
def get_posts(category_filter : str | None = None) -> list[Post]:
|
def get_posts(category_filter : str | None = None) -> list[Post]:
|
||||||
post_files = glob.glob(f'{POSTS_FOLDER}/*')
|
post_files = glob.glob(f'{POSTS_FOLDER}/*')
|
||||||
@@ -58,13 +59,36 @@ def get_posts(category_filter : str | None = None) -> list[Post]:
|
|||||||
|
|
||||||
return reversed(ordered_posts)
|
return reversed(ordered_posts)
|
||||||
|
|
||||||
def get_status() -> str:
|
def read_status_file() -> dict:
|
||||||
with open(STATUS_FILE, 'r', encoding='utf-8') as file:
|
with open(STATUS_FILE, 'r', encoding='utf-8') as file:
|
||||||
statuses = file.readlines()
|
data = file.readlines()
|
||||||
|
|
||||||
status = random.randint(0, len(statuses) - 1)
|
result = {}
|
||||||
|
current_key = None
|
||||||
|
for line in data:
|
||||||
|
if line[0] == '#':
|
||||||
|
|
||||||
return markdown.markdown(statuses[status])
|
# Empty Key-Value pairs will cause errors
|
||||||
|
if current_key:
|
||||||
|
if not result[current_key]:
|
||||||
|
result.pop(current_key)
|
||||||
|
|
||||||
|
current_key = line.replace('#', '').strip()
|
||||||
|
result[current_key] = []
|
||||||
|
elif not (line == '\n'):
|
||||||
|
result[current_key].append(line)
|
||||||
|
|
||||||
|
return result
|
||||||
|
|
||||||
|
def get_status() -> str:
|
||||||
|
keys = list(statuses.keys())
|
||||||
|
|
||||||
|
selected_key = keys[random.randint(0, len(keys) - 1)]
|
||||||
|
section: list = statuses[selected_key]
|
||||||
|
|
||||||
|
selected_status = section[random.randint(0, len(section) - 1)]
|
||||||
|
|
||||||
|
return f'<div title="{selected_key}">{markdown.markdown(selected_status)}</div>'
|
||||||
|
|
||||||
# Main Page
|
# Main Page
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
@@ -82,6 +106,16 @@ def index():
|
|||||||
|
|
||||||
return flask.render_template('index.html', posts=post_bodies, status=status)
|
return flask.render_template('index.html', posts=post_bodies, status=status)
|
||||||
|
|
||||||
|
# Posts
|
||||||
|
@app.route('/post/<string:post_name>')
|
||||||
|
def post(post_name: str):
|
||||||
|
|
||||||
|
for post in get_posts():
|
||||||
|
if post.title.replace(' ', '-') == post_name:
|
||||||
|
return flask.render_template('index.html', posts=[post.body], status=get_status())
|
||||||
|
|
||||||
|
flask.abort(404)
|
||||||
|
|
||||||
# Games Page
|
# Games Page
|
||||||
@app.route('/games/')
|
@app.route('/games/')
|
||||||
def games():
|
def games():
|
||||||
@@ -231,6 +265,9 @@ def album_square(user_id, rows : int):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
|
statuses = read_status_file()
|
||||||
|
|
||||||
if DEV:
|
if DEV:
|
||||||
app.run(port=PORT)
|
app.run(port=PORT)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"2" : [
|
|
||||||
{
|
|
||||||
"username" : "0x01FE",
|
|
||||||
"content" : "Hello, this is an example comment!"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"users" : {
|
|
||||||
"0x01FE" : "cGFzc3dvcmQ="
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+5
-1
@@ -8,6 +8,8 @@ class Post:
|
|||||||
date : datetime.datetime
|
date : datetime.datetime
|
||||||
body : str
|
body : str
|
||||||
file : str
|
file : str
|
||||||
|
title : str
|
||||||
|
url : str
|
||||||
|
|
||||||
def __init__(self, file_path):
|
def __init__(self, file_path):
|
||||||
self.file = file_path
|
self.file = file_path
|
||||||
@@ -17,9 +19,11 @@ class Post:
|
|||||||
|
|
||||||
self.category = lines[1].split(":")[1].strip()
|
self.category = lines[1].split(":")[1].strip()
|
||||||
self.author = lines[2].split(":")[1].strip()
|
self.author = lines[2].split(":")[1].strip()
|
||||||
|
self.title = lines[6][2:-1]
|
||||||
|
self.url = '/post/' + self.title.replace(' ', '-')
|
||||||
|
|
||||||
date = lines[3].split(":")[1].strip()
|
date = lines[3].split(":")[1].strip()
|
||||||
self.date = datetime.datetime.strptime(date, "%d-%m-%Y")
|
self.date = datetime.datetime.strptime(date, "%d-%m-%Y")
|
||||||
|
|
||||||
self.body = markdown.markdown(''.join(lines[6:]))
|
self.body = markdown.markdown(f'# [{self.title}]({self.url})\n' + ''.join(lines[7:]))
|
||||||
|
|
||||||
+146
-32
@@ -1,32 +1,146 @@
|
|||||||
Catchy Right?
|
# Project Moon
|
||||||
Everybody's lazy when they're tired
|
Needles
|
||||||
As long as there is delusion, there is hope
|
Sally forth Rocinante!
|
||||||
It's 510.
|
The multitude tightens its hold.
|
||||||
Mindful of the weary inkling that is lurking
|
|
||||||
Mortal traffic lights signaling when to stay or go
|
# Misc
|
||||||
Cyber surgeon, Javascript person
|
Check out [NEUPINK](https://neupink.bandcamp.com/album/swordflower-hills-killer-2)!
|
||||||
Bone-dried swamplands swallow me
|
Solar Sect of Mystic Wisdom
|
||||||
House of dust, land of bone
|
~ Nuclear Fusion
|
||||||
I ate dirt, I drank stone
|
His name really is Tim.
|
||||||
Come on, snake, punish me
|
Just wait until you see the 1 in 1000 message.
|
||||||
Drip, drip from the tap, don't slip on the drip
|
I'm open to suggestions on how to improve the look of the website
|
||||||
His name really is Tim.
|
As long as there is delusion, there is hope
|
||||||
Just wait until you see the 1 in 1000 message.
|
It's 510.
|
||||||
I'm open to suggestions on how to improve the look of the website
|
Catchy Right?
|
||||||
Open the curtains
|
|
||||||
Don't miss a moment of this experiment
|
## TV / Movie Quotes
|
||||||
Needles
|
|
||||||
Sally forth Rocinante!
|
# Monogatari
|
||||||
The multitude tightens its hold.
|
I don't know everything, I only know what I know.
|
||||||
It's amazing what you'll find face to face
|
|
||||||
It's not hard to go the distance / When you finally get involved face to face
|
## Song Lyrics
|
||||||
A tourist in a dream / A visitor, it seems / A half-forgotten song / Where do I belong?
|
|
||||||
What do you mean ... You can't see it?
|
# I’m in Your Mind by King Gizzard & The Lizard Wizard
|
||||||
I don't believe you / your eyes deceive you / better check yourself in
|
Everybody's lazy when they're tired
|
||||||
You will say I'm crazy / I will go on my way 'cause it's what I need
|
|
||||||
I'd cross a thousand seas just to prove I'm not mad
|
# Straws In The Wind by King Gizzard & The Lizard Wizard
|
||||||
I thought I saw a statue blink, and a bird with no head, Land on a golden thread, I rub my eyes, What am I saying? There's nothing there
|
Mindful of the weary inkling that is lurking
|
||||||
Solar Sect of Mystic Wisdom
|
Mortal traffic lights signaling when to stay or go
|
||||||
~ Nuclear Fusion
|
|
||||||
Check out [NEUPINK](https://neupink.bandcamp.com/album/swordflower-hills-killer-2)!
|
# Automation by King Gizzard & The Lizard Wizard
|
||||||
So, silent tide / Tell me which face do I show the world / And which one do I hide?
|
Cyber surgeon, Javascript person
|
||||||
|
|
||||||
|
# Gilgamesh by King Gizzard & The Lizard Wizard
|
||||||
|
Bone-dried swamplands swallow me
|
||||||
|
House of dust, land of bone
|
||||||
|
I ate dirt, I drank stone
|
||||||
|
Come on, snake, punish me
|
||||||
|
|
||||||
|
# The Dripping Tap by King Gizzard & The Lizard Wizard
|
||||||
|
Drip, drip from the tap, don't slip on the drip
|
||||||
|
|
||||||
|
# Face to Face by Daft Punk
|
||||||
|
It's amazing what you'll find face to face
|
||||||
|
It's not hard to go the distance / When you finally get involved face to face
|
||||||
|
|
||||||
|
# Touch by Daft Punk
|
||||||
|
A tourist in a dream / A visitor, it seems / A half-forgotten song / Where do I belong?
|
||||||
|
|
||||||
|
# Magenta Mountian by King Gizzard & The Lizard Wizard
|
||||||
|
What do you mean ... You can't see it?
|
||||||
|
I don't believe you / your eyes deceive you / better check yourself in
|
||||||
|
You will say I'm crazy / I will go on my way 'cause it's what I need
|
||||||
|
I'd cross a thousand seas just to prove I'm not mad
|
||||||
|
I thought I saw a statue blink, and a bird with no head, Land on a golden thread, I rub my eyes, What am I saying? There's nothing there
|
||||||
|
|
||||||
|
# Armor-clad Faith by NAOKI, Arc System Works
|
||||||
|
I'm a fool, I know nothing / I take the role of a silly clown
|
||||||
|
All I do is embrace the wounded soul
|
||||||
|
|
||||||
|
# Love the Subhuman Self by AISHA, Jamison Boaz, Arc System Works (Guilty Gear Strive)
|
||||||
|
So carry on, love the subhuman self
|
||||||
|
Break yourself inside out, she told me
|
||||||
|
|
||||||
|
# Symphony by NAOKI, Arc System Works (Guilty Gear Strive)
|
||||||
|
We're just a quirky note in the symphony
|
||||||
|
|
||||||
|
# White Whale by Shadow Academy
|
||||||
|
So, silent tide / Tell me which face do I show the world / And which one do I hide?
|
||||||
|
|
||||||
|
# Intrasport by King Gizzard & The Lizard Wizard
|
||||||
|
Dreams that sew me up like sleeping with a needle
|
||||||
|
Those feelings that I had are building up to something
|
||||||
|
I feel a schism in the rhythm, now I'm running
|
||||||
|
My hair is liquifying
|
||||||
|
My taste buds are igniting
|
||||||
|
|
||||||
|
# Set by King Gizzard & The Lizard Wizard
|
||||||
|
Cut the cord, kill the king and reset
|
||||||
|
Squeezing day into night with supernatural pressure
|
||||||
|
Right eye is the sun and left the moon's light
|
||||||
|
|
||||||
|
# Swan Song by King Gizzard & The Lizard Wizard
|
||||||
|
Score the music // Of your essence
|
||||||
|
Stars fall from their lofty places
|
||||||
|
Earth has been put through her paces
|
||||||
|
Cosmic surgeons cut the cable
|
||||||
|
Make a new world if you're able
|
||||||
|
|
||||||
|
# String Theocracy by Mili
|
||||||
|
Open the curtains
|
||||||
|
Don't miss a moment of this experiment
|
||||||
|
If you're going to replace me // At least have the audacity to kill me thoroughly
|
||||||
|
What's the color of the electric sheep you see?
|
||||||
|
Maybe we're all cold machines
|
||||||
|
|
||||||
|
# Change by King Gizzard & The Lizard Wizard
|
||||||
|
We're changing pace // Higher stakes
|
||||||
|
So called heroes wearing fake capes
|
||||||
|
Buildings that you know // People come and go // Are a certain way
|
||||||
|
And then you get the news that obliterates your view // Amputate your truths // The signifiance has changed
|
||||||
|
Hospital inane // Meaningless and grey // But lie within the walls and the signifiance will change
|
||||||
|
What would it take for us to change the game? // Maybe our existence is signifiance in vain
|
||||||
|
|
||||||
|
# Candles by King Gizzard & The Lizard Wizard
|
||||||
|
This little man is too hot to handle // Set the funeral on fire with the candles
|
||||||
|
Praying to the gods at the top of a mountian // Better throwing all your pennies in a fountian
|
||||||
|
My little heart, as cold as a morgue // Let the weight of it drop like an iceberg
|
||||||
|
|
||||||
|
# Presumptuous by King Gizzard & The Lizard Wizard
|
||||||
|
Eggshell, landmine, stepping stones // Kindred spirits at a crossroads
|
||||||
|
The world we built is on a tilt // Bottled up inside and filled with guilt
|
||||||
|
|
||||||
|
# Mountians Made of Steam by Silver Mt. Zion
|
||||||
|
The angels in your palm // Sing gentle worried songs
|
||||||
|
The sweetness of our dreams // Like mountains made of steam
|
||||||
|
|
||||||
|
# God Bless our Dead Marines by Silver Mt. Zion
|
||||||
|
They put angels in the electric chair, The electric chair, the electric chair
|
||||||
|
Straight up angels in the electric chair, The electric chair, the electric chair
|
||||||
|
And no one knew or no one cared // But burning stars lit up their hair
|
||||||
|
Someone had an accident above the burning trees // While somewhere distant, peacefully // Our vulgar leaders sleep
|
||||||
|
There's fresh meat in the club tonight // God bless our dead marines
|
||||||
|
When the world is sick // Can't no one be well? // But I dreamt we was all beautiful and strong
|
||||||
|
|
||||||
|
# Cam Girl / Cage Girl by Jane Remover
|
||||||
|
I peel my eyes open, everyone knows, and nobody cares
|
||||||
|
You're biting chunks out of my face, say it's the same
|
||||||
|
|
||||||
|
# Unbirthing by Cynthoni
|
||||||
|
The sonic recreation of its death // echoing through the artificial abyss
|
||||||
|
It must be liquidated in content // for a dying population addicted to its own descrution
|
||||||
|
it is blood that greases the gears of our beloved death machines // and you will be its gasoline
|
||||||
|
|
||||||
|
# You don't even know who I am by underscores
|
||||||
|
Everybody has bad days! Don't worry! It's not the end of the world! There's always tomorrow!
|
||||||
|
Today is the worst day of my life // I think I'm in love with the cards // You're were dealt
|
||||||
|
Today is the best day of my life // I invited myself in and wore your clothes // Took your pills // Cried your makeup off
|
||||||
|
And for once, I felt just like you
|
||||||
|
|
||||||
|
# Experimental Skin by Jane Remover
|
||||||
|
Allez, allez
|
||||||
|
Come touch it, see no evil // Come touch it, see no evil
|
||||||
|
Bitches don't know what to call it, I'm like 3 and 0
|
||||||
|
I can't hear you over the band // I wanna sin, blow the city up // I wanna sin, blow the city up // I wanna sin, blow the city up
|
||||||
|
Think I became a part of you // Who care? I'm just a robot to you
|
||||||
@@ -2,6 +2,9 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body>
|
<body>
|
||||||
<a href="/">home</a>
|
<a href="/">home</a>
|
||||||
|
<p>
|
||||||
|
This is just a little page where I post stuff I write. I was kind of unsure if I wanted this stuff out here but I think to those who know me it could serve as an interesting view into some thoughts that I don't often express elsewhere.
|
||||||
|
</p>
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
{% for work in works %}
|
{% for work in works %}
|
||||||
|
|||||||
Reference in new issue
Block a user