Skip to content

Instantly share code, notes, and snippets.

@PeterHajdu
PeterHajdu / gist:3993332
Created November 1, 2012 12:23
playing with cinch
#!/usr/bin/irb
@PeterHajdu
PeterHajdu / MP.hpp
Created August 4, 2012 16:36
playing with sdl
#pragma once
#include "SDL.h"
template < class MatrixType >
class MatrixPrinter
{
public:
MatrixPrinter( unsigned int x, unsigned int y )
: m_screen( 0 )
@PeterHajdu
PeterHajdu / README.md
Created August 1, 2012 17:43
base config for the coding dojo

base build system for a coding dojo

@PeterHajdu
PeterHajdu / main.cpp
Created July 29, 2012 17:05
Reading character matrix from file
#include <cassert>
#include <iostream>
#include <fstream>
#include <vector>
#include <iterator>
std::vector< std::string >
getContainerFromFile( const std::string& fileName )
@PeterHajdu
PeterHajdu / stl.cpp
Created July 29, 2012 13:59
anagram generation
#include <iostream>
#include <algorithm>
#include <string>
int main()
{
std::string word( "dog" );
std::sort( word.begin(), word.end() );
do {
*.o
*.so
*.swp
*~
tst/test
tst/test.cpp
@PeterHajdu
PeterHajdu / git_commands
Created April 4, 2012 09:49
Some notes on git
1. distributed <-> centralized
2. cloning / initing ( let's start with a repo with some ruby code )
3. recording changes:
* git status (working tree/directory status) / git log
* the three states ( working directory, staging area, repository )
* file status / lifecycle of a file: untracked, unmodified, modified, staged
* status -> add -> status -> modify -> add -> status -> commit
* introduce yourself -> commit -> status -> log
* commit -a ( easy )
@PeterHajdu
PeterHajdu / README
Created March 14, 2012 12:02
small helper script for training exercises
trainee should source the with arguments instead of simply execute it
@PeterHajdu
PeterHajdu / .gitignore
Created March 11, 2012 12:06
DataContainer
*.swp
*.log
covsummary
*~
*gcov
*gcna
*gcda
*gcno
testFile
test.cpp