Skip to content

Instantly share code, notes, and snippets.

View luxifer's full-sized avatar
:shipit:
Gopher of the GitHub swamp

Florent Viel luxifer

:shipit:
Gopher of the GitHub swamp
View GitHub Profile
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
<?php
$start_request = microtime(true);
require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
$configuration = ProjectConfiguration::getApplicationConfiguration('front', 'dev', true);
sfContext::createInstance($configuration)->dispatch();
$enable_graphite = sfConfig::get('app_enable_graphite');