Browse Source

added a way past cool CLI thingy

master
Lynne Megido 6 months ago
parent
commit
5a362e310d
Signed by: lynnesbian GPG Key ID: F0A184B5213D9F90
3 changed files with 64 additions and 1 deletions
  1. +38
    -0
      _plugins/extensions.rb
  2. +25
    -0
      cli.txt
  3. +1
    -1
      retro.html

+ 38
- 0
_plugins/extensions.rb View File

@ -0,0 +1,38 @@
require "liquid"
require "jekyll"
module Jekyll
module LynnesbianDotSpaceFilters
def ansi_colour(code)
"\u001b[38;5;#{code}m"
end
def ansi_bg(code)
"\u001b[48;5;#{code}m"
end
end
class AnsiResetTag < Liquid::Tag
def render(context)
"\u001b[0m"
end
end
class AnsiBoldTag < Liquid::Tag
def render(context)
"\u001b[1m"
end
end
class AnsiUnderlineTag < Liquid::Tag
def render(context)
"\u001b[4m"
end
end
end
Liquid::Template.register_filter(Jekyll::LynnesbianDotSpaceFilters)
Liquid::Template.register_tag('ansi_reset', Jekyll::AnsiResetTag)
Liquid::Template.register_tag('ansi_bold', Jekyll::AnsiBoldTag)
Liquid::Template.register_tag('ansi_underline', Jekyll::AnsiUnderlineTag)

+ 25
- 0
cli.txt View File

@ -0,0 +1,25 @@
---
---
{%- assign cyan = 87 | ansi_colour -%}
{%- assign purple = 99 | ansi_colour -%}
{{ purple }}{{ 231 | ansi_bg }}{% ansi_bold %}▞▚▞▚▞▚▖ ▂▃▄▅▆▇█{{99 | ansi_bg }}{{ 231 | ansi_colour }} lynnesbian dot space {{ purple }}{{ 231 | ansi_bg }}█▇▆▅▄▃▂ ▗▞▚▞▚▞▚{% ansi_reset %}
{{ purple }} {% ansi_underline %} {{ cyan }} {% ansi_reset %}
{{ purple }} ╱ ╱ {{ cyan }} ╱{% ansi_reset %}
{{ purple }} ╱ ╱ {{ cyan }} ╱{% ansi_reset %}
{{ cyan }} ╱ ╱ ╱{% ansi_reset %}
{{ cyan }} ╱ {% ansi_underline %}╱ {% ansi_reset %}{{ cyan }}╱{% ansi_reset %}
{{ cyan }} {% ansi_underline %}╱ {% ansi_reset %}{{ cyan }}╱{% ansi_reset %}
{{ 81 | ansi_bg }} {{ 213 | ansi_bg }} {{ 231 | ansi_bg }} {{ 213 | ansi_bg }} {{ 81 | ansi_bg }} {% ansi_reset %}
╭──────────────────────────────────────┬───────────────────────────────────────╮
│ Name │ Lynne, aka Lynnesbian │
│ Born │ 1998-04-02 (April 2nd, 1998) │
│ Timezone │ Australia/Brisbane - AEST - UTC+1000 │
│ What I do │ Free and open source software │
│ Fediverse account │ @lynnesbian@fedi.lynnesbian.space │
│ Email │ @lynne@bune.city │
│ Blog │ https://bune.city │
│ Be gay │ Do crimes │
╰──────────────────────────────────────┴───────────────────────────────────────╯
{{ 81 | ansi_bg }} {{ 213 | ansi_bg }} {{ 231 | ansi_bg }} {{ 213 | ansi_bg }} {{ 81 | ansi_bg }} {% ansi_reset %}
{{ purple }}{{ 231 | ansi_bg }}{% ansi_bold %}░▒▓▒░▒▓▒░▒▓▒░▒▓▒░ Source code: https://l.bune.city/clisrc ░▒▓▒░▒▓▒░▒▓▒░▒▓▒░▓▒░{% ansi_reset %}

+ 1
- 1
retro.html View File

@ -51,7 +51,7 @@ less_important: true
</TD>
<TD ID=" MAIN">
<H2>Who?</H2>
My name is Lynne, a twenty-one year old woman living in Australia (the land down under!)
My name is Lynne, a twenty-two year old woman living in Australia (the land down under!)
<BR />
<BR />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

Loading…
Cancel
Save