Ikigai - doing what you love, getting good at it and helping community with it.
keep yourself healthy mind and body.
be anti fragile - remove what makes you fragile.
identify things, people that you enjoy spend more time doing it.
serenity player
dont take stress
stoicism - change what you can, identify what you cant change and dont sweat on it.
follow goals dont plan heavy.
be agile.
take it slow.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lessons from the book | |
1. Start young | |
2. Never invest on tips | |
3. Never have a short term horizon | |
4. Stock market's volatility is what helps it give you stellar returns | |
5. Do not invest with borrowed money or a faint heart, both are fatal | |
6. Your portfolio must beat inflation after paying taxes, year on year | |
7. Real estate is no match for stock investing | |
8. Mutual funds are next best to stock investing | |
9. Mutual funds do not allow for your intellectual growth, stocks do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
items = [12, 2, 'str', [], {}] | |
print(items) | |
for i in range(0, len(items)): | |
print(items[i]) | |
print(items[1:3]) | |
print(items * 3) | |
print(items + items) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker container start | |
docker container stop | |
docker container rm | |
docker network create <name> | |
docker network connect <network> <container> | |
docker network ls | |
docker container ls | |
docker build | |
docker run | |
docker attach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install latest version of docker the lazy way | |
curl -sSL https://get.docker.com | sh | |
# make it so you don't need to sudo to run docker commands | |
usermod -aG docker ubuntu | |
# install docker-compose | |
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose |
Benjamin Graham and David Dodd - Security Analysis
Carl Jung’s model of psychological types
Howard Marks’s 2011 book on investing, The Most Important Thing: Uncommon Sense for the Thoughtful Investor
Focus: The Hidden Driver of Excellence Daniel Goleman
Andy Grove titled his book, Only the Paranoid Survive.
Python
MIT 6.042 - Mathematics for Computer Science
https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-042j-mathematics-for-computer-science-spring-2015/index.htm
Andrew Ng’s course on ML
Peter Norvig’s book on AI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package multithreading.horsetourney; | |
import java.util.concurrent.BrokenBarrierException; | |
public abstract class Barrier { | |
protected final int count; | |
public Barrier(int participantsCount) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package multithreading; | |
import java.util.concurrent.CountDownLatch; | |
import java.util.concurrent.atomic.AtomicInteger; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
import java.util.function.Supplier; | |
public class PingPongOneRunnable { |
NewerOlder