Skip to content

Instantly share code, notes, and snippets.

View lavantien's full-sized avatar
🧘‍♂️
chillax

лавантиен lavantien

🧘‍♂️
chillax
View GitHub Profile
@lavantien
lavantien / modern-software-engineering-resources.md
Last active November 16, 2024 14:13
Modern Software Engineering Resources
@lavantien
lavantien / daily-routine.md
Last active November 12, 2024 09:28
Daily Routine

Daily Routine

  • "Greater in battle than the man who would conquer a million men, is he who would conquer just one — himself." - KN Dhp 103

  • Keep every single Uposatha (4-5 days per month). 5x6 = 30 hours deep work/week (minus the Uposatha)

    Time Mon Tue Wed Thu Fri Sat Sun

| 05:30 - 06:30 | Stretching and Sitting Meditation | Stretching and Sitting Meditation | Stretching and Sitting Meditation | Stretching and Sit

@lavantien
lavantien / baseline-health-maintenance.md
Last active August 6, 2023 09:48
Baseline Physical & Mental Health Maintenance Guide
  • Mental

    • Guarding Action: 1. Avoid killing any creature; 2. Avoid stealing anything; 3. Avoid sex crimes & adultery
    • Guarding Speech: 4. Avoid any lie; 5. Avoid divisive speeches; 6. Avoid cruel speeches; 7. Avoid nonsensical speeches
    • Guarding Mind: 8. Avoid covetousness; 9. Avoid ill-will; 10. Avoid harmful views
    • Useful Emotions: 1. Good-Will; 2. Compassion; 3. Rejoicing; 4. Equanimity
  • Diet

    • One Meal A Day or 8-hour eating window
  • No Alcohol or Substance Abuse

@lavantien
lavantien / what-the-Buddha-really-taught.md
Last active July 24, 2024 01:21
What the Buddha really taught

Based on the earliest ancient Buddhist texts and oral tradition.

Will revolve around this text, MN 107, ordered in a Gradual Approach.

"Why do I, being liable to be reborn, grow old, fall sick, sorrow, die, and become corrupted, seek things that have the same nature? Why don’t I seek the unborn, unaging, unailing, undying, sorrowless, uncorrupted supreme sanctuary from the yoke, extinguishment?’

Some time later, while still black-haired, blessed with youth, in the prime of life—though my mother and father wished otherwise, weeping with tearful faces—I shaved off my hair and beard, dressed in ocher robes, and went forth from the lay life to homelessness.

Once I had gone forth I set out to discover what is skillful, seek

@lavantien
lavantien / go-table-driven-tests-parallel.md
Created June 10, 2023 11:31 — forked from posener/go-table-driven-tests-parallel.md
Be Careful with Table Driven Tests and t.Parallel()

Be Careful with Table Driven Tests and t.Parallel()

We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.

Let’s create our table driven test, for convenience, I chose to use t.Log as the test function. Notice that we don't have any assertion in this test, it is not needed to for the demonstration.

func TestTLog(t *testing.T) {
	t.Parallel()
@lavantien
lavantien / # julia - 2023-06-04_18-56-50.txt
Created June 4, 2023 11:57
julia on Ubuntu 23.04 - Homebrew build logs
Homebrew build logs for julia on Ubuntu 23.04
Build date: 2023-06-04 18:56:50
@lavantien
lavantien / # julia - 2023-06-04_18-17-07.txt
Created June 4, 2023 11:17
julia on Ubuntu 23.04 - Homebrew build logs
Homebrew build logs for julia on Ubuntu 23.04
Build date: 2023-06-04 18:17:07
@lavantien
lavantien / # julia - 2023-06-04_18-05-53.txt
Created June 4, 2023 11:07
julia on Ubuntu 23.04 - Homebrew build logs
Homebrew build logs for julia on Ubuntu 23.04
Build date: 2023-06-04 18:05:53
@lavantien
lavantien / tbds.go
Created March 3, 2022 15:52
Golang - Optimized Hashmap Tree-based Disjoint Set
package main
import "fmt"
type DisjointSet interface {
Find(item int) int
Union(setA int, setB int)
}
type hashmapDisjointSet struct {
@lavantien
lavantien / lcs.go
Created March 3, 2022 15:12
Golang - Longest Common Subsequence
package main
import "fmt"
func main() {
x := "ACCGGGTTACCGTTTAAAACCCGGGTAACCT"
y := "CCAGGACCAGGGACCGTTTACCAGCCTTAAACCA"
n := len(x)
m := len(y)