Skip to content

Instantly share code, notes, and snippets.

Peter Krusche pkrusche

Block or report user

Report or block pkrusche

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
pkrusche /
Created Nov 8, 2013
Git version in Python
#!/usr/bin/env python
""" Git Versioning Script
Will transform stdin to expand some keywords with git version/author/date information.
Specify --clean to remove this information before commit.
pkrusche /
Last active Dec 16, 2015
A generic factory in C++
${CC} -o if_test main.cpp interface.cpp interface_impl_1.cpp interface_impl_2.cpp
pkrusche / jquery.staticsearch.js
Last active Dec 11, 2015
Static site search using RSS in JQuery
View jquery.staticsearch.js
// Static site search using the RSS feed.
// Inspired by
// Extended to do match scoring by Peter Krusche
(function( $ ){
function htmlEscape(s) {
return $('<div/>').text(s).html();
You can’t perform that action at this time.