The psalmist here says that he has hidden the word in His heart so he would not sin against God. To be successful in life you don't need to make resolutions. You need to make an intentional decision to seek The Word with passion and hunger everyday. Decide today to hide the awesome truths of the Bible deep in your heart through daily study and meditation. With God's Word as your lamp in this dark world you cannot go wrong. Then when temptation arises you can say with Paul:
All things are lawful for me,” but not all things are helpful. “All things are lawful for me,” but I will not be enslaved by anything.
1 Corinthians 6:12 esv