Tuesday Tip #6: Share your code with GitHub Gist πŸ‘©β€πŸ’»


Hi Reader!

One quick side note, before we get to today's tip:

There are lots of data science tools and resources that I can't fit into the newsletter, so I share them on social media instead. Follow me on Twitter and connect on LinkedIn if you’re interested!

Please mention the newsletter when inviting me to connect, otherwise I might miss your invitation. Thanks!

πŸ‘‰ Tip #6: Share your code with Gist

Let's say that you need to share your code with a friend, a mailing list, or a discussion group. What do you do?

βœ‰οΈ You could copy it into an email, but the formatting might get lost.

πŸ“Ž You could send it as an attachment, but it might get marked as spam.

πŸ› You could create a GitHub repository, but that seems like a lot of work to share a single file.

My suggestion is to use a GitHub Gist instead!

What's a Gist?

A Gist is a lightweight GitHub repository that's optimized for a single file.

It’s easy to create a Gist:

  1. Sign into GitHub (or create a free account).
  2. Go to gist.github.com.
  3. Drag & drop (or copy & paste) your file into the Gist.
  4. Click β€œCreate secret gist”.

You’re done!

Copy the Gist URL and send it to anyone you choose:

The recipients can comment on the Gist, download it, or fork it. And you can edit or delete the Gist.

Give it a try the next time you need to share some code!

How useful was today’s tip?

β€‹πŸ€©β€‹πŸ™‚β€‹πŸ˜β€‹


If you enjoyed this issue, please forward it to a friend! Takes only a few seconds, and it really helps me out πŸ™

See you next Tuesday!

- Kevin

P.S. Flirting with statistical significance​

Did someone awesome forward you this email? Sign up here to receive data science tips every week!

Learn Artificial Intelligence from Data School πŸ€–

Join 25,000+ intelligent readers and receive AI tips every Tuesday!

Read more from Learn Artificial Intelligence from Data School πŸ€–

Hi Reader, This week, I've got a short tip about AI agents, followed by some Data School news... πŸ‘‰ Tip #56: What are AI agents? Google is calling 2025 "the agentic era," DeepLearning.AI says "the agentic era is upon us," and NVIDIA's founder says "one of the most important things happening in the world of enterprise is agentic AI." Clearly AI agents are a big deal, but what exactly are they? Simply put, an AI agent is an application that uses a Large Language Model (LLM) to control its...

Hi Reader, Last week, I launched a brand new course: Build an AI chatbot with Python. 120+ people enrolled, and a few have already completed the course! πŸ‘ Want to join us for $9? πŸ‘‰ Tip #55: Should you still learn to code in 2025? You’ve probably heard that Large Language Models (LLMs) are excellent at writing code: They are competitive with the best human coders. They can create a full web application from a single prompt. LLM-powered tools like Cursor and Copilot can autocomplete or even...

Hi Reader, The Python 14-Day Challenge starts tomorrow! Hope to see you there 🀞 πŸ‘‰ Tuesday Tip: My top 5 sources for keeping up with AI I'll state the obvious: AI is moving incredibly FAST πŸ’¨ Here are the best sources I follow to keep up with the most important developments in Artificial Intelligence: The Neuron (daily newsletter) My top recommendation for a general audience. It’s fun, informative, and well-written. It includes links to the latest AI news and tools, but the real goldmine is...