There is an old famous story about an intent samurai looking for revenge. A samurai and his wife were deeply in love until one day she was walking through the forest and was eaten by a tiger. After her husband heard this, he vowed to stay in the forest until he killed it. He sat in the forest for a month until one day he saw a sleeping tiger and fired. He approached the tiger to confirm the kill but it ended up being a colored stone. The people of his village heard about this impressive feat and asked him to do it again but every time the arrows would bounce off the rock. When this happened he realized he needed to change his resolve or how he thought about accomplishing tasks, because now that he knows it's a stone, he won’t be able to pierce it, and that is the moral of the story.
In the 12th century, a famous war between the Taira and Minamoto clans was fought to gain control of the large majority of Japan. The Minamoto won due to the fighter Minamoto-no-Yoritsune. His brother Minamoto Yoritomo then formed the shogun system which heavily relied on the samurai to control and monitor the respective Japanese land. Another renowned samurai from this family was Minamoto Tametomo who was considered the greatest archer in Japanese history. It is believed that his left arm was 6 inches longer than his right which made it easier to string and fire. Towards his end, Tametomo found himself trapped on an island with Taira forces rapidly approaching. Before he died, he shot down a boat with a single arrow and then honorably commited seppuku to retain his pride.
Minamoto-no-Yoshitsune had so many amazing accomplishments like making the monk warrior Benkei his servant, and winning the Minamoto Taira war which made him become a popular favorite by the imperial court (now samurai) and the emperor. This made his older shogun brother (Minamoto Yoritomo) jealous to the point where he was out for blood. To flee from his brother who had eyes everywhere, he had to run north with the help of Benkei who helped him appear as his servant. Eventually the shogun found him in a castle and burnt it, but there is a famous kabuki (theatre) myth that he survived and became Genghis Khan.
There is another famous story of samurai code about one of the guards of Tokugawa Iemitsu, the grandson of Ieyasu, and one of the shoguns during the Tokugawa Shogunate. Seeking teaching, the guard went to a sword master, Yagyu Tajima, to improve his fighting skills. When he walked in, Yagyu said "as I observe, you seem to already be a master of swordsmanship", and wondered what school he came from. (Enkamp). The guard firmly denied it, and said he has never tried to learn the technique. The master thought he was being tricked, and said that he must be a master of something else that he is not aware of. The guard replied saying that he has grappled death, and is not afraid to die in battle. Yagyu then said how he knew he was right, and reassured the guard that the ultimate swordsmanship lies in death. He then sent him off saying he needs no technical training for he already has it mastered.
Another famous story is of the 47 Ronin. When the lord of Ako Asano Naganori was visiting the shogun, he drew his sword in the military general's castle after the chief of protocol Kira Yoshinaka angered him. He was forced to commit seppuku along with his 47 ronin (masterless warriors) but they swore to avenge him and they did. They killed Kira and ran from the shogun to lie Kira's head on their master's grave. As a result all 47 had to commit seppuku in the public's favor, and were buried at Sengakuji castle. This story is significant due to it being one of the few times during the Tokugawa Shogunate that an elected official was murdered. The story was even made a movie starring the famous actor Keanu Reeves and is now a Japanese traditional date on December 14th.