Skip to content

Instantly share code, notes, and snippets.

View chklauser's full-sized avatar

Christian Klauser chklauser

View GitHub Profile
@chklauser
chklauser / page-rename-example.xml
Created October 3, 2012 19:36
Example of the history of a page-rename.
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.7/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.7/ http://www.mediawiki.org/xml/export-0.7.xsd" version="0.7" xml:lang="en">
<siteinfo>
<sitename>Wikipedia</sitename>
<base>http://en.wikipedia.org/wiki/Main_Page</base>
<generator>MediaWiki 1.20wmf12</generator>
<case>first-letter</case>
<namespaces>
<namespace key="-2" case="first-letter">Media</namespace>
<namespace key="-1" case="first-letter">Special</namespace>
<namespace key="0" case="first-letter" />
@chklauser
chklauser / matrix.c
Created September 24, 2012 09:06
LU decomposition and matrix multiplication with OpenMP
/*
* matrix.c - Matrix computations that has been optimized by the students
*
* Copyright (c) 2011 Christian Klauser, All rights reserved
* Author: Christian Klauser <klauserc@student.ethz.ch>,
*
* I used comparatively simple algorithms for both LU-decomposition
* and the matrix multiplication involved in checking for equality.
* - My LU decomposition is based on Gaussian Elimination
* - No pivoting, will fail for pivots that are == 0
@chklauser
chklauser / Manage-AppConfig.ps1
Created July 22, 2012 19:23
PowerShell script to make ~\Documents more usable, hides directories and makes them accessible via a symlink in a different location.
param(
[Parameter(Position=0)]
$Item,
[Switch] $WhatIf,
[String] $AppConfig = "$env:HOMEDRIVE$env:HOMEPATH\AppConfig",
[String] $BaseDir = ".",
[Parameter(ParameterSetName="register")]
[Switch]
$Register,
@chklauser
chklauser / ui_csp.pxs
Created March 6, 2012 10:31
Non-working example of a CSP+Text UI in Prexonite Script (bug in select?)
build does require(
@"psr\struct.pxs",
@"psr\console.pxs",
@"psr\csp.pxs",
@"psr\queue.pxs",
);
function create_tracer() {
chans(
var shutdown_c,