Skip to content

Instantly share code, notes, and snippets.

View icebreaker's full-sized avatar
:octocat:
Code Gardening

Mihail Szabolcs icebreaker

:octocat:
Code Gardening
View GitHub Profile
some test
//Tower of Hanoi
//No of calls made for n disks is equal to pow(2,n) -1.
void hanoi(int n, char a, char c, char b)
{
if(n==1)
{
printf("\nShift disk 1 from %c to %c",a,c);
return ;
}
@icebreaker
icebreaker / think.markdown
Created March 12, 2009 12:24 — forked from csexton/think.markdown
Note to self.

Note to Self

Be Confident

Tests build confidence. Write 'em. They'll save your ass, and they'll let you take a chainsaw to your code without being afraid of unintended consequences.

Be Lazy

hello world from python!
int main(){ printf("testing!"); }
int main(){ printf("testing 2!"); }
@icebreaker
icebreaker / test.cpp
Created March 14, 2009 04:16
this is an edit test
this is an edit test
import pyLeraSystem
system = pyLeraSystem.getInstance()
system.spit()
system.set('this message was set from Python and printed by C++')
int i=0;
int i=0; float x = 1.0f