Merge gist and Tweet code for better performance.