This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| module Jasmine | |
| class Config | |
| # Add your overrides or custom config code here | |
| end | |
| end | |
| # Note - this is necessary for rspec2, which has removed the backtrace |
| tables.each do | |
| end | |
| (ns clojure_ttt.computer) | |
| (defprotocol SomeProtocol | |
| (boo [a])) | |
| (defrecord SomeProtocolImpl [b] | |
| SomeProtocol | |
| (boo [this] true)) |
| div.nav_menu a, | |
| div.nav_menu a:link, | |
| div.nav_menu a:visited { | |
| color: #fff; | |
| text-decoration:none; | |
| font-size:15px; | |
| margin:0 24px 0 0; font-family: Arial, Verdana, Sans-Serif; | |
| } | |
| div.nav_menu a:hover, |
| - styles (create rule) | |
| - don't allow duplicate rule names | |
| - don't use ids for rules | |
| - what if somebody changes the name of the rule? references by name will get screwed up |
| #include <iostream> | |
| using namespace std; | |
| class Engine | |
| { | |
| public: | |
| Engine(){ | |
| cout << "Engine constructor" << endl; | |
| } |
| class Something | |
| { | |
| public: | |
| void PrintSomething() { | |
| cout << "hi there" << endl; | |
| } | |
| }; | |
| int main() | |
| { |
| class Wheels | |
| { | |
| public: | |
| Wheels(){ | |
| cout << "Wheel constructor" << endl; | |
| } | |
| void spin() { | |
| cout << "I'm spinning ... " << endl; | |
| } | |
| }; |
| #include <iostream> | |
| using namespace std; | |
| class Engine | |
| { | |
| public: | |
| Engine(){ | |
| cout << "Engine constructor" << endl; | |
| } |