Skip to content

Instantly share code, notes, and snippets.

View okaram's full-sized avatar

Orlando Karam okaram

View GitHub Profile
@okaram
okaram / 1_typedefs.cpp
Created October 4, 2012 14:18
Functional sets in C++
typedef std::function<bool(int)> Set;
typedef std::function<bool(int)> Predicate;
@okaram
okaram / include.html
Created September 13, 2012 16:51
django templates, include, with
{% include "table_frag.html" %}
@okaram
okaram / data2.py
Created September 11, 2012 21:33
models for join django example
ph2=Phone.objects.create(person=p1,area_code='770',number='1234567');
@okaram
okaram / another.cpp
Created March 23, 2012 17:21
Recursion Examples (public)
#include <iostream>
using namespace std;
int fac(int n) {
if(n<=0)
return 1;
else
return n*fac(n-1)
}