profile

Learn Data Science from Data School πŸ“Š

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

Published about 1 year agoΒ β€’Β 1 min read

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 Data Science from Data School πŸ“Š

Kevin Markham

Join 25,000+ aspiring Data Scientists and receive Python & Data Science tips every Tuesday!

Read more from Learn Data Science from Data School πŸ“Š

Hi Reader, happy Tuesday! My recent tips have been rather lengthy, so I'm going to mix it up with some shorter tips (like today's). Let me know what you think! πŸ’¬ πŸ”— Link of the week A stealth attack came close to compromising the world's computers (The Economist) If you haven't heard about the recent "xz Utils backdoor", it's an absolutely fascinating/terrifying story! In short, a hacker (or team of hackers) spent years gaining the trust of an open-source project by making helpful...

13 days agoΒ β€’Β 1 min read

Hi Reader, Today's tip is drawn directly from my upcoming course, Master Machine Learning with scikit-learn. You can read the tip below or watch it as a video! If you're interested in receiving more free lessons from the course (which won't be included in Tuesday Tips), you can join the waitlist by clicking here: Yes, I want more free lessons! πŸ‘‰ Tip #43: Should you discretize continuous features for Machine Learning? Let's say that you're working on a supervised Machine Learning problem, and...

20 days agoΒ β€’Β 2 min read

Hi Reader, I'm so excited to share this week's tip with you! It has been in my head for months, but I finally put it in writing ✍️ It's longer than usual, so if you prefer, you can read it as a blog post instead: Jupyter & IPython terminology explained πŸ”— Link of the week Python Problem-Solving Bootcamp (April 1-21) Want to improve your Python skills quickly? There's no better way than solving problems, reviewing alternative solutions, and exchanging ideas with others. That's the idea behind...

about 1 month agoΒ β€’Β 3 min read
Share this post