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, I wanted to share with you three limited-time resources for improving your Python skills... 1️⃣ Algorithm Mastery Bootcamp 🥾 Are you looking for an intense, 12-day Python bootcamp? My friend Rodrigo Girão Serrão is running a new Algorithm Mastery Bootcamp, and it starts in just 5 days! In the bootcamp, you'll solve 24 real programming challenges and participate in daily live sessions to discuss and compare solutions. It's a great way to strengthen your problem-solving muscles 💪 I...

Hi Reader, Last week, I launched the All-Access Pass, which gives you access to ALL of Data School's courses for one year. Through Black Friday, you can buy the pass for $99, after which the price will increase. Here are the included courses: Build an AI chatbot with Python ($9) Create your first AI app in 60 minutes using LangChain & LangGraph! ⚡ Build AI agents with Python ($99) Develop the skills to create AI apps that can think and act independently 🤖 Conda Essentials for Data Scientists...

Hi Reader, I just published a new YouTube video: How to use top AI models on a budget Description: Want to chat with the best AI models from OpenAI, Claude, and Google without paying $20/month? I'll show you how to use API keys with TypingMind to access top models for a fraction of the cost, demonstrate its killer feature of chatting with multiple models side-by-side, and explain when paying for a subscription is actually the smarter choice. Timestamps: 0:00 Introduction 0:37 Pay-per-token...