Migrate source to code.rocketnine.space

This commit is contained in:
Trevor Slocum 2021-04-19 22:18:34 -07:00
parent 9cdb2cfdf1
commit a0edcd5832
18 changed files with 44 additions and 39 deletions

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -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() {
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).

View File

@ -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:/
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:

View File

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

View File

@ -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"
---

View File

@ -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"
---

View File

@ -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"
---

View File

@ -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"
---

View File

@ -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"
---

View File

@ -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"
---

View File

@ -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"
---

View File

@ -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"
---

View File

@ -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"
---

View File

@ -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"
---

View File

@ -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"
---

View File

@ -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 |