Good companies have happy employees. Great companies, however, have more than just happy employees--they also have an amazing company culture. Inbound marketing and sales platform HubSpot has created a powerful company "Culture Code," which sets the stage for everything its people do--and leads to happier, more successful employees. The company--founded in 2006 by Dharmesh Shah and Brian Halligan--grew from nothing to a market cap of more than $1 billion in less than 10 years.

According to leadership experts Kevin and Jackie Freiberg, "People want to know what it takes to create a culture that is a magnet for great talent. A culture people love." Clearly, having a powerful culture that is true to your vision can drive your success over the long run. So, take a note from HubSpot, and check out some of the most-powerful habits from their Culture Code.

1. Culture is to recruiting as product is to marketing

The right culture attracts the right people--when you've got a great company culture, you will attract the right people. So why not make your company culture a great one?

2. Power is now gained by sharing knowledge, not hoarding it

In this case, sharing is truly caring. Creating a communal environment is the next step to getting everyone in the workspace to feel comfortable trusting one another.

3. Sunlight is the best disinfectant

When people feel safe to surface problems as they occur, and to be completely transparent in their communication, the problems can be dealt with before they become major disasters for the company.

4. You shouldn't penalize many for the mistakes of the few

Even spectacular leaders fall into the trap of projecting past experiences onto potentially good future outcomes. Just remember that assuming never leads to trust building. Give your people the benefit of the doubt, and they will give you their loyalty in return.

5. Whether you like it or not, you're going to have a culture. Why not make it one you love?

If you don't put any effort into creating a great company culture, then chances are, you won't have a great company culture. So, put some effort into building a great culture, and make your work environment a place you and your coworkers love being every single day.

6. Results should matter more than where or when they are produced

Technology has totally changed the game. Whether you work from home or at the office or at your neighborhood Starbucks, keep in mind that what matters most are the outcomes. There's no point in harping on the process.

7. We'd rather be failing frequently than never trying

We miss 100% of the shots we don't take. Keep that mentality in the workspace so that nobody is afraid of taking risks. That is, after all, the only way we make groundbreaking success.