100 Commits
Author SHA1 Message Date
arthurr b6a03c6303 Updated picard and qr things 2026-01-30 21:03:52 +00:00
arthurr 9f2cc5f6ec Added desc to monero txs 2025-11-27 22:11:48 +00:00
arthurr e120ec4a95 Added amount to Monero 2025-11-27 22:09:11 +00:00
arthurr d85f4e38e8 Added first version of monero qr code generator 2025-11-27 22:04:18 +00:00
arthurr 5d21571561 Added mount command 2025-10-22 20:27:37 +01:00
arthurr 821d301de3 Added sorting for cards 2025-08-21 03:30:04 +01:00
arthurr 6b5034c544 Fixed when you a disambiguated name in first
Still should probably clean up the return values.

Also should look into how to exit early from the script
2025-08-21 03:09:17 +01:00
arthurr 43a75c0b92 Added some dbg
Also found a bug
2025-08-21 02:46:20 +01:00
arthurr 130287caa7 Added a wrapper script...
... to the wrapp script around the ... binary

For the purposes of allow me to add a nice shortcut for my window manager
2025-08-21 02:30:31 +01:00
arthurr 3df07d7622 Added some more explanation around the script 2025-08-21 02:11:55 +01:00
arthurr fd358f5d3f Misspelled script stuff seems to be working 2025-08-21 01:56:54 +01:00
arthurr f1beae9198 Updated README and starting on more complex rofi script 2025-08-21 01:45:50 +01:00
arthurr 4dde40b72e updated README 2025-08-21 00:46:44 +01:00
arthurr a21520b5e5 Added README 2025-08-21 00:44:34 +01:00
arthurr af1ac9b5fa Updated update and added an update script
The --update flag accepts the file no rather than goes to download.

Simpler. Better.

Don't need the entire download.rs file now
2025-08-21 00:18:26 +01:00
arthurr 9f9a0b1fb7 Sorted results by closeness 2025-08-20 23:28:10 +01:00
arthurr 3e1b89312a String closeness seems alright
Might be worth sorting by relevance
2025-08-20 23:23:35 +01:00
arthurr 3c78637809 Separated previously used function 2025-08-20 22:37:55 +01:00
arthurr e40a64579b Scryfall-type search is working 2025-08-20 22:30:57 +01:00
arthurr e966a22707 Added some return codes for later usage
Fixed a quoting bug
2025-08-20 21:35:53 +01:00
arthurr 3f7cd6353a Moved string matching to sqlite
Probably (definitely more efficient)
2025-08-20 21:08:12 +01:00
arthurr 6ff0204189 Added comment to possibly explain why rofi -e is exiting early
When double clicking
2025-08-19 23:45:49 +01:00
arthurr 9a8c971d73 Made script mroe POSIX compliant
Remove the "here-string" (<<<) with a "here-document" (<< EOF ... EOF)
2025-08-19 23:26:50 +01:00
arthurr b6664492fa Improved Null in db
Fixed the rofi error window from instantly being removed with
a double click - there's probably a better way like using some
IGNORE_FIRST_CLICK_FOR_10ms or something
2025-08-19 23:21:42 +01:00
arthurr bcf68c8332 Added some rofi stuff for easier & quicker interaction
Looking actually pretty okay!
2025-08-19 23:01:32 +01:00
arthurr 3f4af21a93 Search with uppercase should work
I made the search string also lowercase
2025-08-19 22:12:18 +01:00
arthurr 98af8885a6 Added searching by lower or card name
Also added help strings
2025-08-19 22:02:18 +01:00
arthurr 9f03e3e11f Seaching card by name works 2025-08-17 01:08:27 +01:00
arthurr 9a9f42bc1e Changing how to use textdifference thing
I think it'd be better to use text difference if a substring isn't found.

I realised afterwards that I think this is how Scryfall does it anyway.
2025-08-17 00:34:03 +01:00
arthurr 6558a31619 Matching substrings works
Want to try also using something like this for finding spelling mistakes etc.
https://github.com/life4/textdistance.rs

Going to have to try to do some combination though to ensure exact substring
matches, even when missing the latter half, still work well. Maybe... I dunno
will have to try.
2025-08-16 21:38:34 +01:00
arthurr 72fa35d41a Got all cards out from db 2025-08-16 03:59:24 +01:00
arthurr ff4c58113f Creating database seems alright
Unsure really whether the data is in there properly - but there
is data in there!
2025-08-16 03:41:51 +01:00
arthurr da121940da Updated test files and changes in scryfall db
Also removed PromoType - don't need that right now
2025-08-16 02:41:17 +01:00
arthurr 9c2d9c1fb7 Fixed matching the BulkType
The serde to_string thing has "" around the strings.
2025-08-16 02:21:43 +01:00
arthurr 1462401787 Added a utils file
Wanted to separate the higher level config folder stuff from just db module

Because the download module will also want to find cache
2025-08-15 02:00:50 +01:00
arthurr 5dfdff17c1 Added the start of the db create
Need to do insert (obv), recall, search by name (get the whole name column), and
then display nicely.

Also renamed / used more correctly the "data" folder. I should use cache for
the downloaded .json file from scryfall though
2025-08-15 01:48:16 +01:00
arthurr 4f095c55ec Moved some files and started skeleton db 2025-08-15 00:55:47 +01:00
arthurr d168ca88ec Moved seperate things into separate files 2025-08-15 00:22:18 +01:00
arthurr 6d21f5e496 Added checking for the correct type 2025-08-14 23:45:42 +01:00
arthurr 906aaa1e59 Using ureq to download files
I might just throw out the TempFile thing - should actually save them somewhere. As
I think it would likely be useful for testing too
2025-08-13 20:22:49 +01:00
arthurr 6b4105ecd9 Selection and Highlighting appears okay
Still need to appropriately test with piles of visible cards > 1
2025-06-28 00:44:03 +01:00
arthurr 9f1eac75a0 Added Foundation to Pile movement
And made it make a bit more sense wrt Pile to Foundation
2025-06-28 00:30:35 +01:00
arthurr 16be88c703 Movement with only starting cards is mostly good 2025-06-28 00:23:13 +01:00
arthurr 7786cac7f5 Corrected Waste and Foundation highlighting
And moved a function to a more logical place in file
2025-06-27 23:35:49 +01:00
arthurr 67dc528c6a Partially complete the highlighted card movement
Once I write a "lowest visible card" function, then it should
be easy to do the rest
2025-06-27 23:26:01 +01:00
arthurr 3bc26915d1 Added quit window
Rather than instant quit
2025-06-27 22:27:52 +01:00
arthurr f7c5e68860 Added a couple of scripts to do with music 2025-06-27 20:54:54 +01:00
arthurr ee895d81eb Implemented the card moving
Need to actually check it's working though
2025-03-09 23:21:20 +00:00
arthurr b3b9fb61a5 Removed a useless Enum and started the moving to piles 2025-03-09 22:19:46 +00:00
arthurr e86c705b5b Added a help popup 2025-03-09 00:54:34 +00:00
arthurr 30884d7c35 Added card faces
Not super duper happy with consistency of sizes between different cards
2025-03-09 00:23:02 +00:00
arthurr 367ad78198 Writing some more test - I don't think all of them should be passing
I'm a bit unsure about the suit checking.
And the whole thing overall - it's kind of just working well first time. Not enough
real code is needing to be edited hah!
2025-03-08 02:51:52 +00:00
arthurr 8ce03a4b1c Moving to foundations seems to be alright
I think there's probably a few more tests I should write
2025-03-08 02:36:18 +00:00
arthurr 408978dd4f Added code to push to foundation
Need to write some tests. I have no idea if it works
2025-03-08 02:05:04 +00:00
arthurr 804ff3f8b1 Adding some pile and foundation stuff
Still not finished though!
2025-03-08 01:20:26 +00:00
arthurr 7e4cfc638b Fixed display of top card in waste 2025-03-08 00:15:49 +00:00
arthurr bcc493d5f9 Made use of the max turns thing
Unsure I'll ever use it... eh
2025-03-08 00:10:20 +00:00
arthurr b86df849bc Facedown cards seeeem to be alright 2025-03-08 00:01:47 +00:00
arthurr a64031e3bc Fixed waste display issue and added cards per draw 2025-03-07 23:58:52 +00:00
arthurr f3ecdb69a4 Deck to waste and waste to deck working-ish 2025-03-07 23:49:51 +00:00
arthurr 5106f6c53c Empty piles now use empty piles
And I fixed the bug where it had no bottom border. It's because I didn't tell
it to have a border on the bottom. Funny that!
2025-03-07 23:40:03 +00:00
arthurr 064139d698 Added an empty pile symbol 2025-03-07 23:34:24 +00:00
arthurr be6e36188c Bad deck -> waste working-ish
Display looks alright, so that's good!
2025-03-07 23:21:30 +00:00
arthurr 3c4f4ce0ad Added some of the wastes pile
It's not quite how I wanted to do it... but it'll work
2025-02-26 21:14:08 +00:00
arthurr df8347577e Started changing List to Paragraph
List has a bunch of extra bits I don't need.
2025-02-26 20:48:49 +00:00
arthurr 0ae0bf73b2 Added deck and the start of the waste
I think I'm going to need some mode advanced widget that I make myself though
2025-02-26 19:26:17 +00:00
arthurr dcbcb92376 Fiddled with some spacing and stuff 2025-02-25 23:59:53 +00:00
arthurr added3ad03 Unsure this is getting any better 2025-02-25 22:53:42 +00:00
arthurr 778a5c48e2 Drew a crap card 2025-02-25 22:27:36 +00:00
arthurr 12a16a5fdd Added some bad graphics stuffs 2025-02-25 21:43:15 +00:00
arthurr 400155b8ad Added some Klondike stuffs 2025-02-25 21:41:08 +00:00
arthurr 499020b904 "Cleaned up" some things and started on a possible Klondike struct 2025-02-24 23:52:17 +00:00
arthurr 71dab0cf5c Couple of clippy lints
Not 100% sure what the "must_use" is really for... so didn't "fix" them
2025-02-24 23:25:28 +00:00
arthurr 387c3f0beb Added a basic deck 2025-02-24 23:17:53 +00:00
arthurr 6f5d7d7361 Write some tests - fixed 2 errors in the only 2 "real" lines of code I wrote... 2025-02-24 22:54:56 +00:00
arthurr 086135abb5 Errors are passed through "properly" 2025-02-24 22:35:51 +00:00
arthurr ff801f259d Added some display stuff
For errors, and I guess just general displays

I should try extend into colour I think too, just for fun
2025-02-24 22:20:59 +00:00
arthurr 63452f76f9 Initial Commit for some cardstuffs 2025-02-24 21:42:06 +00:00
arthurr f0d851ebb3 Fixed up a couple of fields 2025-02-08 01:19:32 +00:00
arthurr d868ef1e90 Added a couple more enums and invalid-ish card list 2025-02-08 00:41:21 +00:00
arthurr a1728de503 Ran rustfmt and clippy 2025-02-07 22:38:20 +00:00
arthurr a14d2dcb75 Don't look at that awful test...
I have tested it on the Oracle cards - so should like... mostly work for cards

Except for, I think, mistakes? in the Scryfall database.
2025-02-05 00:13:48 +00:00
arthurr 66b22c1c30 Added a very poorly written test thingy
Started fixing a couple of mistakes
2025-02-04 23:45:53 +00:00
arthurr 993ac46954 Got most of the fields I think 2025-02-04 23:21:23 +00:00
arthurr f576fe6cc8 Added UUID
And fixed up the fact the promo types are optionally null/not there/empty/full
2025-02-04 22:40:51 +00:00
arthurr 2dd4f3d696 Added some more fields
Got most of them done. Added a couple of cards too
2025-02-01 01:18:38 +00:00
arthurr d8e0b2c07b Seems to be alright at deserialising the things so far 2025-01-31 23:45:43 +00:00
arthurr 871d2af2da Added a first test to see whether a card is available 2025-01-31 23:31:58 +00:00
arthurr 9771a905ff Half of ScryfallDeser fields added
Very non-atomic - and I'm not even sure if it's half.

I think I might stop here and actually try the derserialisation stuff
2025-01-31 23:21:47 +00:00
arthurr 82255d311d Dumb grammar issue 2024-11-05 23:58:57 +00:00
arthurr 6a6ddf1ad6 Update README 2024-11-05 23:58:21 +00:00
arthurr 98e5428b83 I think this is a better example
I _think_ that maybe if you have a tuple of 1, it gets "unwrapped" in
some way to be just a singleton - or at least I was encountering a
bug along those lines...

(('/mnt/tmp', 'mount /mnt/tmp'))[0] == '/'
^ this is where my big was occuring, I think

It also could've been an issue with the printing - no idea.
Changing from a tuple to a list seems to be better
2024-11-05 23:56:38 +00:00
arthurr 3a8b3789e2 Remove the mount_points 2024-11-05 23:27:58 +00:00
arthurr 8130d82b4c Added README for remount 2024-11-05 23:24:37 +00:00
arthurr 84e37dfd4e Add remount checker
I should add instructions on how to call it too
2024-11-05 23:15:23 +00:00
arthurr 45301d64a9 Updated some files 2024-10-28 22:15:52 +00:00
arthurr 60a63cd6ae Added random 16x16 pixel image generation 2024-10-05 04:57:20 +01:00
arthurr 599b2c8365 Added random word generator 2024-05-07 18:25:22 +01:00
arthurr c46405efce Added image colour sum 2024-05-07 18:24:04 +01:00
arthurr 7b6a16b662 Commit 2024-01-25 21:52:10 +00:00