I have a gist with some javascript code in a script
tag, like so:
In case of gist,
https://raw.github.com/gist/[gist_id]
OR
https://gist.github.com/[user_name]/[gist_id]/raw
(which is more likely to be an unique URI.)
returns first file from the gist.
For gist with multiple files, https://raw.github.com/gist/[gist_id]/[file_name]
The url works even when you change the filename.
e.g. https://raw.github.com/gist/4636655 https://raw.github.com/gist/4636655/imdb-getglue.js