Browse Source

Migrate source to code.rocketnine.space

master
Trevor Slocum 1 year ago
parent
commit
a0edcd5832
  1. 5
      config.toml
  2. 2
      content/authors/admin/_index.md
  3. 6
      content/post/tetris-1.md
  4. 12
      content/post/tetris-2.md
  5. 4
      content/post/tview-and-you.md
  6. 2
      content/project/ditty.md
  7. 2
      content/project/gmenu.md
  8. 2
      content/project/godoc-static.md
  9. 2
      content/project/gophast.md
  10. 2
      content/project/harmony.md
  11. 2
      content/project/joker.md
  12. 2
      content/project/meditationassistant.md
  13. 2
      content/project/netris.md
  14. 2
      content/project/sage.md
  15. 2
      content/project/sshtargate.md
  16. 2
      content/project/stick.md
  17. 2
      content/project/tinyib.md
  18. 30
      content/projects/_index.md

5
config.toml

@ -61,6 +61,11 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id @@ -61,6 +61,11 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id
# Custom social links
[[Params.widgets.social.custom]]
title = "Self-hosted source code"
url = "https://code.rocketnine.space/tslocum"
icon = "svg/git.svg"
[[Params.widgets.social.custom]]
title = "GitLab"
url = "https://gitlab.com/tslocum"

2
content/authors/admin/_index.md

@ -47,7 +47,7 @@ social: @@ -47,7 +47,7 @@ social:
# link: '#contact' # For a direct email link, use "mailto:test@example.org".
- icon: git
icon_pack: fab
link: https://git.sr.ht/~tslocum
link: https://code.rocketnine.space/tslocum
- icon: gitlab
icon_pack: fab
link: https://gitlab.com/tslocum

6
content/post/tetris-1.md

@ -11,14 +11,14 @@ aliases: @@ -11,14 +11,14 @@ aliases:
This is the first part of a series of tutorials on creating a [terminal-based](https://en.wikipedia.org/wiki/Text-based_user_interface)
[Tetris](https://en.wikipedia.org/wiki/Tetris) clone with [Go](https://golang.org).
[**Code for this tutorial is available on GitLab.**](https://gitlab.com/tslocum/terminal-tetris-tutorial/-/tree/master/part-1)
[**Code for this tutorial is available on GitLab.**](https://code.rocketnine.space/tslocum/terminal-tetris-tutorial/src/branch/master/part-1)
```bash
go get gitlab.com/tslocum/terminal-tetris-tutorial/part-1 # Download and install
go get code.rocketnine.space/tslocum/terminal-tetris-tutorial/part-1 # Download and install
~/go/bin/part-1 # Run
```
For a complete implementation of a Tetris clone in Go, see [netris](https://gitlab.com/tslocum/netris).
For a complete implementation of a Tetris clone in Go, see [netris](https://code.rocketnine.space/tslocum/netris).
# Disclaimer

12
content/post/tetris-2.md

@ -11,14 +11,14 @@ aliases: @@ -11,14 +11,14 @@ aliases:
This is the second part of a series of tutorials on creating a [terminal-based](https://en.wikipedia.org/wiki/Text-based_user_interface) [Tetris](https://en.wikipedia.org/wiki/Tetris) clone with [Go](https://golang.org).
[**Code for this tutorial is available on GitLab.**](https://gitlab.com/tslocum/terminal-tetris-tutorial/-/tree/master/part-2)
[**Code for this tutorial is available on GitLab.**](https://code.rocketnine.space/tslocum/terminal-tetris-tutorial/src/branch/master/part-2)
```bash
go get gitlab.com/tslocum/terminal-tetris-tutorial/part-2 # Download and install
go get code.rocketnine.space/tslocum/terminal-tetris-tutorial/part-2 # Download and install
~/go/bin/part-2 # Run
```
For a complete implementation of a Tetris clone in Go, see [netris](https://gitlab.com/tslocum/netris).
For a complete implementation of a Tetris clone in Go, see [netris](https://code.rocketnine.space/tslocum/netris).
# Disclaimer
@ -202,15 +202,15 @@ func main() { @@ -202,15 +202,15 @@ func main() {
We are currently rendering the matrix as text without any color information.
To properly support colors, and to allow more advanced interface elements, we
will instead use a terminal-based user interface library, [cview](https://gitlab.com/tslocum/cview).
will instead use a terminal-based user interface library, [cview](https://code.rocketnine.space/tslocum/cview).
This will be covered in part three.
## Rotation
*Coming soon*
See [Piece](https://gitlab.com/tslocum/netris/-/blob/master/pkg/mino/piece.go).
See [Piece](https://code.rocketnine.space/tslocum/netris/-/blob/master/pkg/mino/piece.go).
# Up next: The User Interface
In part three we will implement a terminal-based user interface with support for colors using [cview](https://gitlab.com/tslocum/cview).
In part three we will implement a terminal-based user interface with support for colors using [cview](https://code.rocketnine.space/tslocum/cview).

4
content/post/tview-and-you.md

@ -8,7 +8,7 @@ categories: [tutorial] @@ -8,7 +8,7 @@ categories: [tutorial]
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
This is an introduction to using [tview](https://github.com/rivo/tview) (or [cview](https://gitlab.com/tslocum/cview)) to create rich terminal-based user interfaces with [Go](https://golang.org).
This is an introduction to using [tview](https://github.com/rivo/tview) (or [cview](https://code.rocketnine.space/tslocum/cview)) to create rich terminal-based user interfaces with [Go](https://golang.org).
## Primitives
@ -212,7 +212,7 @@ To display a primitive (and its contents), we call [Application.SetRoot](https:/ @@ -212,7 +212,7 @@ To display a primitive (and its contents), we call [Application.SetRoot](https:/
This function has two arguments, a primitive which will become the root of the screen, and a boolean which controls whether the primitive will be resized to fit the screen.
In this example, the root is a Grid containing a label, an input and a submit button. For a more complex example, see [netris](https://gitlab.com/tslocum/netris).
In this example, the root is a Grid containing a label, an input and a submit button. For a more complex example, see [netris](https://code.rocketnine.space/tslocum/netris).
Install tview if you haven't already:

2
content/project/ditty.md

@ -4,5 +4,5 @@ summary: Audio player @@ -4,5 +4,5 @@ summary: Audio player
tags:
- Go
external_link: "https://gitlab.com/tslocum/ditty"
external_link: "https://code.rocketnine.space/tslocum/ditty"
---

2
content/project/gmenu.md

@ -5,5 +5,5 @@ tags: @@ -5,5 +5,5 @@ tags:
- Go
#date: "2016-04-27T00:00:00Z"
external_link: "https://gitlab.com/tslocum/gmenu"
external_link: "https://code.rocketnine.space/tslocum/gmenu"
---

2
content/project/godoc-static.md

@ -4,5 +4,5 @@ summary: Generate static Go documentation @@ -4,5 +4,5 @@ summary: Generate static Go documentation
tags:
- Go
external_link: "https://gitlab.com/tslocum/godoc-static"
external_link: "https://code.rocketnine.space/tslocum/godoc-static"
---

2
content/project/gophast.md

@ -5,5 +5,5 @@ tags: @@ -5,5 +5,5 @@ tags:
- Go
#date: "2016-04-27T00:00:00Z"
external_link: "https://gitlab.com/tslocum/gophast"
external_link: "https://code.rocketnine.space/tslocum/gophast"
---

2
content/project/harmony.md

@ -4,5 +4,5 @@ summary: Voice and text communications platform @@ -4,5 +4,5 @@ summary: Voice and text communications platform
tags:
- Go
external_link: "https://gitlab.com/tslocum/harmony"
external_link: "https://code.rocketnine.space/tslocum/harmony"
---

2
content/project/joker.md

@ -4,5 +4,5 @@ summary: Playing card library @@ -4,5 +4,5 @@ summary: Playing card library
tags:
- Go
external_link: "https://gitlab.com/tslocum/joker"
external_link: "https://code.rocketnine.space/tslocum/joker"
---

2
content/project/meditationassistant.md

@ -5,5 +5,5 @@ tags: @@ -5,5 +5,5 @@ tags:
- Android
#date: "2016-04-27T00:00:00Z"
external_link: "https://gitlab.com/tslocum/meditationassistant"
external_link: "https://code.rocketnine.space/tslocum/meditationassistant"
---

2
content/project/netris.md

@ -4,5 +4,5 @@ summary: Multiplayer Tetris clone @@ -4,5 +4,5 @@ summary: Multiplayer Tetris clone
tags:
- Go
external_link: "https://gitlab.com/tslocum/netris"
external_link: "https://code.rocketnine.space/tslocum/netris"
---

2
content/project/sage.md

@ -5,5 +5,5 @@ tags: @@ -5,5 +5,5 @@ tags:
- Go
#date: "2016-04-27T00:00:00Z"
external_link: "https://gitlab.com/tslocum/sage"
external_link: "https://code.rocketnine.space/tslocum/sage"
---

2
content/project/sshtargate.md

@ -4,5 +4,5 @@ summary: Host SSH portals to applications @@ -4,5 +4,5 @@ summary: Host SSH portals to applications
tags:
- Go
external_link: "https://gitlab.com/tslocum/sshtargate"
external_link: "https://code.rocketnine.space/tslocum/sshtargate"
---

2
content/project/stick.md

@ -5,5 +5,5 @@ tags: @@ -5,5 +5,5 @@ tags:
- Go
#date: "2016-04-27T00:00:00Z"
external_link: "https://gitlab.com/tslocum/stick"
external_link: "https://code.rocketnine.space/tslocum/stick"
---

2
content/project/tinyib.md

@ -6,5 +6,5 @@ tags: @@ -6,5 +6,5 @@ tags:
#date: "2016-04-27T00:00:00Z"
external_link: "https://gitlab.com/tslocum/tinyib"
external_link: "https://code.rocketnine.space/tslocum/tinyib"
---

30
content/projects/_index.md

@ -9,18 +9,18 @@ weight: 10 @@ -9,18 +9,18 @@ weight: 10
| Name | Description |
| --- | --- |
| [cbind](https://gitlab.com/tslocum/cbind) | Encode, decode and handle tcell key events |
| [cview](https://gitlab.com/tslocum/cview) | Terminal-based user interface toolkit |
| [ditty](https://gitlab.com/tslocum/ditty) | Audio player |
| [gmenu](https://gitlab.com/tslocum/gmenu) | Desktop application launcher |
| [godoc-static](https://gitlab.com/tslocum/godoc-static) | Generate static Go documentation |
| [gophast](https://gitlab.com/tslocum/gophast) | Download manager and accelerator
| [harmony](https://gitlab.com/tslocum/harmony) | Voice and text communications platform
| [joker](https://gitlab.com/tslocum/joker) | Playing card library |
| [joker-cribbage](https://gitlab.com/tslocum/joker-cribbage) | Cribbage scoring library |
| [Meditation Assistant](https://gitlab.com/tslocum/meditationassistant) | Feature packed meditation session timer and recorder |
| [netris](https://gitlab.com/tslocum/netris) | Multiplayer Tetris clone |
| [sage](https://gitlab.com/tslocum/sage) | Markov chain IRC bot |
| [sshtargate](https://gitlab.com/tslocum/sshtargate) | Host SSH portals to applications |
| [stick](https://gitlab.com/tslocum/stick) | Shareable Git-backed Markdown-formatted notes |
| [TinyIB](https://gitlab.com/tslocum/tinyib) | Lightweight image board |
| [cbind](https://code.rocketnine.space/tslocum/cbind) | Encode, decode and handle tcell key events |
| [cview](https://code.rocketnine.space/tslocum/cview) | Terminal-based user interface toolkit |
| [ditty](https://code.rocketnine.space/tslocum/ditty) | Audio player |
| [gmenu](https://code.rocketnine.space/tslocum/gmenu) | Desktop application launcher |
| [godoc-static](https://code.rocketnine.space/tslocum/godoc-static) | Generate static Go documentation |
| [gophast](https://code.rocketnine.space/tslocum/gophast) | Download manager and accelerator
| [harmony](https://code.rocketnine.space/tslocum/harmony) | Voice and text communications platform
| [joker](https://code.rocketnine.space/tslocum/joker) | Playing card library |
| [joker-cribbage](https://code.rocketnine.space/tslocum/joker-cribbage) | Cribbage scoring library |
| [Meditation Assistant](https://code.rocketnine.space/tslocum/meditationassistant) | Feature packed meditation session timer and recorder |
| [netris](https://code.rocketnine.space/tslocum/netris) | Multiplayer Tetris clone |
| [sage](https://code.rocketnine.space/tslocum/sage) | Markov chain IRC bot |
| [sshtargate](https://code.rocketnine.space/tslocum/sshtargate) | Host SSH portals to applications |
| [stick](https://code.rocketnine.space/tslocum/stick) | Shareable Git-backed Markdown-formatted notes |
| [TinyIB](https://code.rocketnine.space/tslocum/tinyib) | Lightweight image board |

Loading…
Cancel
Save