Skip to content

Instantly share code, notes, and snippets.

@dadarek
dadarek / about.md
Created April 16, 2012 14:27 — forked from jasonrudolph/about.md
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
@dadarek
dadarek / car.cpp
Created June 29, 2012 20:41
C++ Car
#include <iostream>
using namespace std;
class Engine
{
public:
Engine(){
cout << "Engine constructor" << endl;
}
@dadarek
dadarek / funky.cpp
Created June 29, 2012 21:15
Funky CPP
class Something
{
public:
void PrintSomething() {
cout << "hi there" << endl;
}
};
int main()
{
@dadarek
dadarek / pointesr.cpp
Created June 29, 2012 21:17
Lesson on Pointers
class Wheels
{
public:
Wheels(){
cout << "Wheel constructor" << endl;
}
void spin() {
cout << "I'm spinning ... " << endl;
}
};
@dadarek
dadarek / car.cpp
Created June 29, 2012 21:31
C++ Car, Doors, Engine, Wheels
#include <iostream>
using namespace std;
class Engine
{
public:
Engine(){
cout << "Engine constructor" << endl;
}