It turns out that Livejournal recognizes github gist URLs, and will "embed" the resulting gist into an LJ entry.
Here's the relevant changelog:
http://changelog.livejournal.com/16367242.html It's all done in javascript.
Example:
https://gist.github.com/3861703