Skip to content

Instantly share code, notes, and snippets.

View tuimz's full-sized avatar

Tim tuimz

View GitHub Profile
@tuimz
tuimz / gist:3860535
Created October 9, 2012 18:28
Facebook OpenGraph tags
<head>
<meta property="og:title" content="Facebook Opengraph"/>';
<meta property="og:url" content="http://tuimz.nl/index.php?nv=blog&post=facebook"/>';
<meta property="og:description" content="Some introductional text">';
<meta property="og:site_name" content="Tim Aerdts' Blog"/>
<meta property="og:image" content="http://www.tuimz.nl/post.png" />
<meta property="og:type" content="blog"/>
</head>
@tuimz
tuimz / gist:3826519
Created October 3, 2012 11:41
Dynamic imports
def __get_module(self, modulename):
"""Dynamically get the proper module to call methods on"""
imported_module = __import__('myapp.modules', fromlist=['myapp.modules'])
return getattr(imported_module, modulename)
@tuimz
tuimz / build.bat
Created September 19, 2012 18:32
Jenkins script
pylint -r y -i y -f parseable > pylint.log
nosetests --with-xunit --with-coverage --cover-xml --cover-xml-file=coverage.xml --cover-package=mypackage
<?php
echo 'Hello world :) just testing the gist embedding';
?>