Commit Graph

153 Commits

Author SHA1 Message Date
raul d93be2b37b Editor properly empties text after hitting enter
Realized I could use v.SetCursor and v.Clear to easily control the view
2024-04-10 09:01:55 +02:00
raul 06b23f99c8 Starting cleaner TUI exercise 2024-04-10 08:38:44 +02:00
raul 226ff03093 Create tiny counter within quit view 2024-04-09 20:16:30 +02:00
raul 01e9e7e2db Finally figured out how to read view contents
I think I'm finally getting the hang of Gocui, it's pretty interesting
how it separates each view into a different section for the layout
function, also went ahead and separated the keybindings into their own
function, and yes I'm stealing from the _examples folder of the official
project, it's really helpful okay?
2024-04-08 08:23:18 +02:00
raul 8acdc82081 Figured out how to input data within views 2024-04-07 09:58:34 +02:00
raul faa95c2248 Added quit button widget to exercise 2024-04-06 10:14:33 +02:00
raul 99c053115e Practice using coordinates for adding textboxes 2024-04-05 12:11:12 +02:00
raul 5edb80e54a Add gocui library practice exercise 2024-04-04 09:39:37 +02:00
raul d287ad47a9 Learn event handling and proper rendering
I'm tired of building crappy and ugly interactive interfaces by hand, I
learned Cobra to build CLI tools so I might as well learn tcell to
create TUI tools.
2024-04-03 09:02:33 +02:00
raul 9c39b1c462 Added custom port flag to server command 2024-03-28 15:03:58 +01:00
raul 4e30581a5e Implementing client for connecting to the server
Also went ahead and fixed the server improperly writing to
connections.log, newlines be damned
2024-03-27 13:48:12 +01:00
raul 59efb49e3f Figuring out flags in Cobra 2024-03-26 18:55:52 +01:00
raul 285de706f7 Added get-time exercise 2024-03-25 17:24:03 +01:00
raul 89fce7631b Added logging capabilities to server 2024-03-24 10:56:34 +01:00
raul 61bf3a0276 Re-adding CPU checker and cleaning CLI interface 2024-03-23 13:05:00 +01:00
raul 46ec23f513 Finally beginning to understand Cobra
So all I had to do to add extra subcommands was use cobra-cli add,
great, learning how to use this will definitely be useful in the long
run if I want to build actual CLI applications
2024-03-23 12:33:49 +01:00
raul f0df294bbe Practicing with Cobra 2024-03-23 12:06:31 +01:00
raul 4ba20dfc76 Add tiny server to query-cpu exercise 2024-03-22 15:38:28 +01:00
raul 18bd5f98a3 Added query-cpu exercise 2024-03-21 22:03:27 +01:00
raul 2a0ce3f89d Minor tweaks 2024-03-20 20:59:48 +01:00
raul 6711bc5de5 Added methods exercise 2024-03-19 08:21:08 +01:00
raul f8eacdbc1c Added tcell-practice exercise 2024-03-18 09:13:29 +01:00
raul 6428837551 Add tour-of-go folder and README.md 2024-03-18 08:19:47 +01:00
raul 290d1be8f4 Added tcp-movie exercise
Need to practice sockets more, I have many ideas on what to do with them
2024-03-11 08:29:41 +01:00
raul 7693f81e0b Added http-get exercise 2024-03-10 09:29:55 +01:00
raul 08040ef9c9 Added ability to use custom ports 2024-03-10 09:21:02 +01:00
raul a41033f150 Handling multiple connections using goroutines 2024-03-10 09:07:08 +01:00
raul a4a5594096 Added sockets exercise 2024-03-09 19:35:26 +01:00
Raul 43e9f4c6c4 Trying to implement fizzbuzz with goroutines 2024-03-08 12:03:16 +00:00
Raul 569b255bfa Added delayed-channel exercise 2024-03-08 10:26:58 +00:00
Raul 1279df8aab Added ping-pong exercise to practice goroutines
Currently trying to figure out concurrency without suffering a headache,
stay tuned for more black magic using channels
2024-03-08 08:22:28 +00:00
raul 8b87cce11c Completed goroutine channels exercise
Finally starting to get the hang of how channels in goroutines work,
just pass the values around using arrows after creating the channel
using c := make(chan $TYPE)
2024-03-07 17:59:18 +01:00
raul 91d4985651 Can now add to vector, still practicing channels 2024-03-06 18:04:34 +01:00
raul a3b8027714 Completing 2nd goroutine example 2024-03-05 19:57:16 +01:00
raul 8be6890727 Added inverse-counting exercise 2024-03-04 07:54:48 +00:00
raul 9e978f0bcf Improved UX by reusing scanLine function 2024-03-03 10:29:50 +01:00
raul a89ca3987b Separate goroutines exercise into different files
Also went ahead and added a way to interactively select which function
to execute so I can easily execute each file individually, I still have
to learn channels and passing data through these channels but I don't
want old code possibly bothering me
2024-03-02 10:00:45 +01:00
raul a4667e2039 Added an actual win condition
Also realized that I was supposed to decrement the X/Y values instead of
incrementing them
2024-03-01 20:45:21 +01:00
raul 38fe54f3de Added guessing coordinates to matrix exercise 2024-02-29 06:50:39 +01:00
raul 9e45c522c8 Added renamer exercise 2024-02-28 06:45:40 +01:00
raul 2577b92b2f Added background checker with goroutines 2024-02-27 07:04:25 +00:00
raul 8ad40f4930 Practicing goroutines 2024-02-26 10:59:46 +00:00
raul f140ccceba Added matrix exercise 2024-02-25 07:34:27 +01:00
raul fa8a997395 Added loading-bar exercise 2024-02-21 18:07:30 +01:00
raul a806cecefa Finished exercise and added getAverage() 2024-02-17 21:41:21 +01:00
raul d3400c86ee Added sum-args exercise 2024-02-16 18:26:12 +01:00
raul 207c3fafcb Moved file-reader to its own repo 2024-02-14 16:14:46 +01:00
raul 887e0556bf No longer rendering spaces as secret characters 2024-02-13 07:37:54 +00:00
raul 30d42a3219 Added win condition checking
You can actually win the game now
2024-02-13 07:32:07 +00:00
raul f29f803ddb Added guessing individual word letters 2024-02-13 06:56:52 +01:00