It should be pretty straight forward to add the following code snippets to the allowed HTML subset, or some additional markup that would effectively do the same thing.
<script src="https://gist.github.com/839992.js?file=Switch.java"></script>
so that the above would display the nice formatted, line numbered, code folded display that GitHub provides inline as a code block.