2021W07

Elements of Programming Interviews Greedy algorithms mostly used for optimizing (minimize, maximize) a set of choices examples counting change optimizing intervals often involves sorting first doesn’t always lead to optimal solution, but can provide insight Go Useful packages: bufio, sort, os, strconv, strings There are two ways to sort user defined types. One way is to satisfy sort.Interface by defining Len, Swap, and Less methods. The other is to call sort.Slice with a closure that satisfies the Less method: ...

February 17, 2021

2021W06

Git related commands Overwriting local branch with remote branch https://stackoverflow.com/questions/9210446/how-to-replace-local-branch-with-remote-branch-entirely-in-git git reset --hard <remote name>/<branch name> git-filter-repo Replacing paragraphs This is done by replacing line by line, not by paragraph git filter-repo --replace-text replace.txt Each line of replace.txt has form <old line>==><new line> Rename files or directories git filter-repo --rename-path <old path>:<new path> If replacing file, it seems to only work if you specify a path from current directory to the file location Creating good habits, breaking bad habits Paschal Sheeran, UNC Chapel-Hill ...

February 9, 2021

2021W05

First week of trying to record stuff I want to remember from reading. Discipline equals freedom by Jocko Willink Self-discipline comes within When the alarm goes off, get up Use power naps to get through the day 10-15 minutes, no longer than that Of prophets and angels Sermon on Feb 7, 2021 by Paster Mark Poorman 1 Peter 1 remember, you are saved by God the angels can only look at our salvation fulfilled prophecy is one of the best pieces of evidence for the integrity of the Bible prepare your minds, gird up the loins of your mind (v. 13) it is the mind that serves the Lord; the body serves the flesh our mind must be free to receive the Word of God sanctification renewing of your mind get rid of things that hinder your walk with God worry fear (vs confidence) be deliberate, but think. Don’t fear. 1 Jn 4:18 envy only enjoying the things of others hatred not forgiving others impurity 1 Thess 4:3 pure minds temptation apostle Paul was there too Romans 7 it starts in the mind 2 Corinthians 10:5

February 5, 2021