I have a gist with some javascript code in a script tag, like so:
script
Just add /raw to the end of your gist url.
/raw
https://gist.github.com/--user--/--id--/raw
This links to the latest revision of that file.
After updating the gist file, changes are reflected after a minute or two.