— Diary, Programming — 2 min read
Gonna study more about redux
today and start implementing in Raahee component by component. The persistent state on reload is a way better approach to offer a better user experience that caching everything in the local storage by hand.
While playing around integrating redux in the Raahee app, I thought about integrating redux component by component. The most important things to be kept in the redux store are:
All of these can be persisted across reloads. While fetching blogs on /blog
page, the ones fetched at home page can be used as the initial blogs posts.
Searched for Dangerous Dave and played 3 levels! Fun! 🔥
Gonna rice my Arch now.
Back here! Although I tried working with xmonad
, I have realized that I've been dependent on i3
so much that the new key bindings will some time to get used to, time which I don't have. Starting today's Leetcode Challenge
Done! Today was easy.
1bool arrayStringsAreEqual(vector<string> &word1, vector<string> &word2)2{3 string a = "", b = "";4 for (int i = 0; i < word1.size(); i++)5 {6 a += word1[i];7 }8 for (int i = 0; i < word2.size(); i++)9 {10 b += word2[i];11 }12 return a == b;13}
Writing in Go...
1func arrayStringsAreEqual(word1 []string, word2 []string) bool {2 var a, b string = "", ""3 for _, e := range word1 {4 a += e5 }6 for _, e := range word2 {7 b += e8 }9 return a == b10}
So I installed "Oh My Zsh" and it seems pretty good to be honest. The plugins for git, just wow! It lets me type alias for git commands, lemme give some examples (always wanted to add a table here).
alias | command |
---|---|
gaa | git add --all |
gco <branch> | git checkout <branch> |
gcam | git commit -am |
Work in Progress feature
Command | Description |
---|---|
gwip | Creates a commit in the branch to switch to another branch |
gunwip | Uncommits the gwip |
work_in_progress | Echoes a warning if the current branch is a WIP |
The complete list of functionality is here.
I also discovered another command line utility called hub
. According to their website, hub
is an extension to command-line git that helps you do everyday GitHub tasks without ever leaving the terminal.
It can be used to open PRs, check open issues and PRs, and basically use GitHub from the terminal. Tell me that's not cool and I'll punch you. 😛
Screenshot of the new shell! Haaye ❤️💞
Image has unnecessary top and bottom margin. Tried fixing but I'm just tired, and it's already 21:20
Just attended the Raahee App Beta launch, great work by the team. I wish the website was this good.
Just did the Crio Sherlock Challenge. Was provided with a long file with user logs and had to find user related data from it. Used the grep
and awk
commands to accomplish the task.
Questions:
Solutions:
Don't want the search engine to index this stuff, so I think it's better to just hide it from the crawler.