about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorFilesLines
2020-07-20 Move monzo_ynab into //toolsWilliam Carroll16-3/+3
Optimizing is difficult: I like flat hierarchies because I don't like directory-hopping, but I also would like a cleaner root for my mono-repo. Bombs away! Well it's that time again, folks: spring cleaning! Here I am musing about a few things that bother me: - Should I use kebab-case or snake_case? - It feels ~confusing to have //tools and //utils. What a //projects? Isn't everything a project? *sigh*
2020-07-20 Add a README to haskell-fileWilliam Carroll1-0/+7
Because every library/package deserves a README.
2020-07-20 Move AOC into //scratchWilliam Carroll8-0/+0
Also rename it advent-of-code-2019 since I expect to participate this year as well. TODO: Should directories and files be name like-this or like_this?
2020-07-17 Partially complete IO chapter exercisesWilliam Carroll1-0/+35
Inconveniently, I do not have the cipher code that I wrote from a previous chapter, and I'm not eager to reimplement it. TODO - Implement encrypt - Implement decrypt - Read all characters from STDIN
2020-07-17 Remove week / 52 indicatorWilliam Carroll1-1/+1
This is taking up too much space.
2020-07-17 Update grocery listWilliam Carroll1-13/+33
- Add new entries - Change quantities of existing entries
2020-07-17 Partially complete the "Basic Libraries" chapter exercisesWilliam Carroll1-0/+60
I was instructed to benchmark these functions, but I couldn't get the benchmarking library to run using Nix -- although I'm *sure* it's possible. Unfortunately the book recommends using `stack`, which I couldn't reproduce.
2020-07-14 Complete exercises for "Non-Strictness" chapterWilliam Carroll1-0/+6
I completed most of the exercises for this enlightening chapter in ghci.
2020-07-12 Finish exercises for Monad Transformer chapterWilliam Carroll1-6/+110
I expect to look back on this code and cringe, but... it compiles!
2020-07-12 Partially complete Monad Transformer exercisesWilliam Carroll1-0/+79
Write Functor, Applicative, Monad instances for: - MaybeT - EitherT - ReaderT
2020-07-11 Partially complete some of the exercises for Composing TypesWilliam Carroll1-0/+75
I believe there are two exercises sets in the "Composing Types" chapter. Here are *some* of my answers so far... I'm having trouble implementing Foldable for Compose. I was able to implement a version of it by adding the (Functor f) constraint to the instance signature, but I think I cheated. I will revisit these problems as well as the earlier exercises later.
2020-07-06 Misc Emacs improvementsWilliam Carroll2-0/+6
I stole these bad-boys from @tazjin's config.
2020-07-06 Add ref attribute to fetchGitWilliam Carroll1-5/+7
Because revs afa9ca, dc80d7 aren't in the "default" (typically "master") branch of NixOS/nixpkgs-channels, I need to specify the ref (aka branch) in order for fetchGit to resolve the rev.
2020-07-06 Prefer telephone-line to doom-modelineWilliam Carroll3-4/+67
After growing frustrated with doom-modeline's compatibility with my EXWM setup, I decided to borrow @tazjin's setup, which I find to be much more appealing.
2020-07-02 Clear $NIX_PATHWilliam Carroll2-5/+23
Ensure that $NIX_PATH is empty using a .envrc file. nix.dev considers references to <nixpkgs>, <briefcase>, <depot>, <unstable> to be an anti-pattern because it hinders reproducibility by introducing an implicit environment. This repository is chock-full of references to <{nixpkgs,unstable,briefcase,depot}>, so right now everything is broken.
2020-07-02 Prefer builtins.pathWilliam Carroll12-15/+13
Thanks to the Nix anti-patterns documented here... https://nix.dev/anti-patterns/language.html#reproducability-referencing-top-level-directory-with ...I'm cleaning up some of my Nix expressions. Read the article for more context.
2020-07-01 Impl part 3/3 for MemoWilliam Carroll1-29/+10
Refactor the caching policy for the Memo by evicting the elements that have been the least-recently-accessed. Python's heapq module default to a min-heap. By storing our heap elements as (UnixTime, a), we can guarantee that when we call heappop, we will get the element with the lowest UnixTime value in heap (i.e. the oldest). When we call heappush, we use (time.time(), key) and these values -- by having the largest UnixTime, will propogate to the bottom of the min-heap.
2020-07-01 Support part 2/3 for the Memo problemWilliam Carroll1-4/+64
Bound the size of the memo by creating a BoundedQueue. Whenever we add elements to the BoundedQueue, we remove the oldest elements. We use the BoundedQueue to control the size of our dictionary that we're using to store our key-value pairs.
2020-07-01 Implement part 1/3 for "Memo"William Carroll1-0/+19
After hearing from a Jane Street recruiter, I decided to dust off some of the DS&As knowledge. I found this article online, which outlines an example problem called "Memo": https://blog.janestreet.com/what-a-jane-street-dev-interview-is-like/ Here's part 1 of the solution in Python.
2020-07-01 Convert grocery list to an .org fileWilliam Carroll2-18/+15
Ensure that the export.hs script refers to the .org file.
2020-07-01 Complete exercises for Reader and State chaptersWilliam Carroll2-0/+242
It's beautiful how State is just Reader that returns a tuple of (a, r) instead of just a, allowing you to modify the environment (i.e. state). ```haskell newtype Reader r a = Reader { runReader :: r -> a } newtype State s a = State { runState :: s -> (a, s) } ```
2020-07-01 Create a .ghci for this directoryWilliam Carroll1-0/+1
I would've created on at $HOME/.ghci, but I don't need that yet, and I didn't want to bother with home-manager.
2020-07-01 Complete exercises from Traversable chapterWilliam Carroll1-0/+131
I feel much more comfortable using `traverse` and `sequenceA`. I even used both of them in the Haskell program that I wrote at work to export a trix.
2020-06-30 Now removing "Closed"William Carroll1-1/+0
At this point, I'm starting to lose interest.
2020-06-30 Prefer "Closed" authModeWilliam Carroll1-1/+1
Setting `authMode = "Registered"` prevents me from running the `register <password>` command from inside of `bitlbee`, which I *believe* I need to run...
2020-06-30 Remove auth from BitlbeeWilliam Carroll1-1/+0
I'm having trouble getting PAM auth to work, so I'm temporarily disabling it. TIL that I can use the following to verify that PAM is properly setup for a program (e.g. `bitlbee`). ``` pamtester -v bitlbee $(whoami) authenticate ``` ...but despite this succeeding, I still cannot use the `identify` command in `bitlbee` to successfully authenticate. It just tells me "Incorrect password" even though I'm providing it the same password that I type when doing the `pamtester` command from above. Computers!
2020-06-30 Add auth to bitlbeeWilliam Carroll1-0/+2
Use Linux's PAM for Bitlbee's auth.
2020-06-30 Support bitlbee + stunnelWilliam Carroll1-1/+19
TLS support for bitlbee...
2020-06-30 Open :6667William Carroll1-1/+2
Attempt to access Bitlbee from IRCCloud.com client...
2020-06-30 Support bitlbeeWilliam Carroll1-0/+8
I'm still not entirely sure what bitlbee does, but I know this: I want as many messengers in the same place as possible: IRC, Slack, Telegram. @tazjin tells me that Bitlbee will help me get to the promised land. This is hopefully one step of many in that direction.
2020-06-27 Group groceries/listWilliam Carroll1-31/+43
- Change list.txt -> list.org - Group groceries by category - Sort categories by store layout
2020-06-27 Add export script for groceriesWilliam Carroll4-43/+69
At this point, I may be taking this idea too far, but what the heck?
2020-06-18 Create Nix shell for Haskell scratchpadWilliam Carroll1-0/+10
Helps me run my chapter exercises.
2020-06-18 Complete the Monad chapterWilliam Carroll1-0/+178
From "Haskell Programming from First Principles"... I have completed all of the exercises in the book thus far, but I only recently dedicated a Haskell module for each chapter. Previously I created ad hoc modules per exercise, per chapter... it was chaotic.
2020-06-18 Complete exercises from Applicative chapterWilliam Carroll1-0/+213
From "Haskell Programming from First Principles"...
2020-06-18 Complete exercises from Foldable chapterWilliam Carroll1-0/+107
I'm creating Haskell modules to host my attempts and solutions for the exercises defined in each chapter of "Haskell Programming From First Principles".
2020-06-16 Add grocery list for ShaalseeWilliam Carroll1-0/+43
Mimi and I will go to the grocery store every Monday here. If we track what we buy, we can easily generate grocery lists that get better over time.
2020-06-16 Update Clojure boilerplate docsWilliam Carroll1-1/+1
After consuming some of this boilerplate for a TopTal assessment, I found a few inconsistencies with my docs.
2020-06-16 Don't start ssh-agent in .profileWilliam Carroll1-6/+0
Problem: My SSH is behaving strangely. Reason: I'm not sure. What I do know, however, is that Google handles SSH differently. So I think that's enough for me to know I should keep my hands off and not wrestle with it.
2020-06-16 Use ivy-helpers/list-external-commandsWilliam Carroll1-1/+1
Without the ivy-helpers/ namespace, I believe this code is buggy.
2020-06-16 Prefer Solarized Light themeWilliam Carroll1-1/+1
I've said it once, and I'll say it again: my preferences often change.
2020-06-16 Support additional KBDs for ClojureWilliam Carroll1-0/+8
Define KBDs in clojure-mode-map that resemble my common-lisp and elisp KBDs.
2020-06-16 Include new TODO in finances.orgWilliam Carroll1-0/+1
Ensure that I settle my balance with Mimi each month.
2020-06-16 Use dot-time format for modeline timestampWilliam Carroll1-4/+12
My current understanding of how computers deal with time: - Modelling time is easy: use the number of seconds that have elapsed since the Unix epoch. - Display time is complicated. Which timezone should we use? Which format string?
2020-06-16 Prefer smaller default font size for laptopWilliam Carroll1-1/+1
I'll be working without an external monitor for the next few months, so I prefer this smaller size.
2020-05-17 Support boilerplate for Elm clientsWilliam Carroll11-0/+180
Lately I was toiling while writing a ClojureScript client. This made me crave Elm. I'm going to rewrite the ClojureScript client using Elm, but along the way, I'm stopping off here and recording my starter boilerplate.
2020-05-04 Support //boilerplate/clojureWilliam Carroll6-0/+57
While this is most likely incomplete or even erroneous, I'd like to start supporting Clojure in this repository.
2020-04-19 Restore default view to OverviewWilliam Carroll1-1/+1
I often debug by changing the values of State.Model in the State.init function. I usually revert these these chage; this time I didn't.
2020-04-19 Correct all G_sharp pitch classesWilliam Carroll1-7/+7
I incorrectly modelled all of the G-sharps in my application as belonging to the G pitchClass, which resulted in a strange bug where vieChord printed "G minor Root position", but the Piano highlit a G minor. I checked the other accidentals, and it looks like everything is properly classified.
2020-04-19 Remove unused Msg'sWilliam Carroll1-48/+0
I'm sure this app contains more unused code. I would like to find some Elm tools for detecting and deleting dead code, but this isn't my current priority. My current priority is dogfooding this app until I find it genuinely useful for myself.