Skip to content

Instantly share code, notes, and snippets.

Ives van der Flaas Ivesvdf

View GitHub Profile
@Ivesvdf
Ivesvdf / main.cpp
Created Aug 17, 2011
A performance comparison of linear access on std::list and std::vector
View main.cpp
#include <list>
#include <vector>
#include <cmath>
#include <iostream>
#include "univhac.h"
int pow(int num, int exp)
{
int rv = 1;
for(int i = 0; i < exp; i++)
@Ivesvdf
Ivesvdf / gen_encpolygons.rb
Created Aug 4, 2011
Google Maps v3 country overlay from database
View gen_encpolygons.rb
# Written by Florin Duroiu, see
# http://blog.newsplore.com/2009/03/01/political-boundaries-overlay-google-maps-2
#
# Fixed for Google Maps API v3 by Ives van der Flaas <ives.vdf@gmail.com>
# Be sure to add
#
# <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
# <script type="text/javascript" src="http://maps.google.com/maps/api/js?libraries=geometry&sensor=false"></script>
#
# to the including HTML page or it will not work (the decode function for encoded coordinates is in the geometry library.)
@Ivesvdf
Ivesvdf / Findrsync.cmake
Created Jul 12, 2011
A CMake module script for including librsync
View Findrsync.cmake
# Written by Ives van der Flaas <ives.vdf@gmail.com>, 2011
#
# License: Public domain.
#
# Defines
#
# RSYNC_INCLUDE_DIRS
# which contains the include directory for librsync.h
#
# RSYNC_LIBRARIES
You can’t perform that action at this time.