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, On Friday, I announced my forthcoming book, Master Machine Learning with scikit-learn. In response, my Dad asked me: How does the subject of this book relate to Artificial Intelligence? In other words: What's the difference between AI and Machine Learning? Ponder that question for a minute, then keep reading to find out how I answered my Dad... ๐Ÿ‘‡ AI vs Machine Learning Here's what I told my Dad: You can think of AI as a field dedicated to creating intelligent systems, and Machine...

Hi Reader, Yesterday, I posted this announcement on LinkedIn and Bluesky and X: Kevin Markham @justmarkham Dream unlocked: I'm publishing my first book! ๐ŸŽ‰๐ŸŽ‰๐ŸŽ‰ It's called "Master Machine Learning with scikit-learn: A Practical Guide to Building Better Models with Python" Download the first 3 chapters right now: ๐Ÿ‘‰ https://dataschool.kit.com/mlbook ๐Ÿ‘ˆ Thanks for your support ๐Ÿ™ 1:47 PM โ€ข Sep 11, 2025 1 Retweets 5 Likes Read 1 replies This has been a dream of mine for many years, and I'm so excited...

Hi Reader, Hope youโ€™ve had a nice summer! โ˜€๏ธ As for me, Iโ€™ve been finishing my first ever book! I canโ€™t wait to tell you about it and invite you to be part of the launchโ€ฆ stay tuned ๐Ÿ‘€ Today's email focuses on a single important topic: AIโ€™s impact on your mental health ๐Ÿง  Read more below! ๐Ÿ‘‡ Sponsored by: Morning Brew The 5-Minute Newsletter That Makes Business Make Sense Business news doesn't have to be dry. Morning Brew gives you the biggest stories in business, tech, and finance with quick...