Copyright 2013 NPR. All rights reserved. No part of these materials may be reproduced, modified, stored in a retrieval system, or retransmitted, in any form or by any means, electronic, mechanical or otherwise, without prior written permission from NPR.
(Want to use this code? Send an email to [email protected]!)
Matt Stiles has a helpful post explaining how to get set up.
-
Pushing code to the repo will automatically publish any changes you've made. If you're not ready to publish yet, save your changes to a separate branch, and then merge it back to
masterwhen you're ready. -
Writing a blog post? Use this as a starting point.
-
Linking to a post we've written somewhere else (like Source)? Use this as a starting point.
Save your code snippet as a Gist on your GitHub account. For example: https://gist.github.com/alykat/8319004
Take the username and Gist ID in the URL and sub it into the script tag below:
<script src="proxy.php?url=https%3A%2F%2Fgist.github.com%2FYOUR-USERNAME%2FGIST-ID.js"> </script>
So the example Gist URL would get you:
<script src="proxy.php?url=https%3A%2F%2Fgist.github.com%2Falykat%2F8319004.js"> </script>