<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kyle Lombardo on Medium]]></title>
        <description><![CDATA[Stories by Kyle Lombardo on Medium]]></description>
        <link>https://medium.com/@kylelombardo?source=rss-457d13286fa9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CYHrSH4zWLH-Dx64MpxtVg.jpeg</url>
            <title>Stories by Kyle Lombardo on Medium</title>
            <link>https://medium.com/@kylelombardo?source=rss-457d13286fa9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:42:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kylelombardo/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Use Markdown]]></title>
            <link>https://medium.com/@kylelombardo/how-to-use-markdown-dbdc59571d54?source=rss-457d13286fa9------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbdc59571d54</guid>
            <category><![CDATA[markdown-editor]]></category>
            <category><![CDATA[markdown-syntax]]></category>
            <category><![CDATA[markdown]]></category>
            <dc:creator><![CDATA[Kyle Lombardo]]></dc:creator>
            <pubDate>Thu, 22 Dec 2022 23:31:52 GMT</pubDate>
            <atom:updated>2022-12-22T23:31:52.753Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TVelhzysNYBaT0iKtMp3-A.png" /><figcaption>Markdown on StackEdit</figcaption></figure><h4>Table of Contents</h4><blockquote><a href="#bc62">What is Markdown</a><br><a href="#0986">Text</a><br><a href="#b895">Titles</a><br><a href="#bfe5">Lists</a><br><a href="#bf93">Block Quotes</a><br><a href="#aded">Links</a><br><a href="#c199">Code Blocks</a><br><a href="#7cdf">Images</a><br><a href="#7e04">Final Thoughts</a></blockquote><h3>What is Markdown?</h3><p>Markdown is a light-weight language used for writing documents with structure. It is a markup language and a close cousin to languages like HTML (HyperText Markup Language) and LaTeX. In fact, if you are already familiar with HTML or have written technical papers using LaTeX, learning Markdown is dead easy. Even if you are not familiar, you will be able to write almost any kind of document in Markdown by the end of this article.</p><h4>Why Markdown?</h4><p>Markdown provides a simple way to write down your notes on any subject. It is easy to insert pictures, include hyperlinks, add code blocks with language specific highlighting, creates lists, and many, many more.</p><p>For those who use Jupyter Notebooks, instead of using Python comments within the code, you can use Markdown to give your programming projects better structure with paragraphs of additional information.</p><p>For those who use GitHub, the README file included in most projects has a .md (<strong><em>m</em></strong>ark<strong><em>d</em></strong>own) extension. Knowing Markdown will allow you to create an impressive README file to introduce your project to the world.</p><p>Heck, even if you use Reddit, Markdown is used to make those cool looking comments which make you stop and think, “How did they do that?”</p><h4>Where to Practice Using Markdown?</h4><p>There are many great Markdown editors out there including Notion and Obsidian. Or you can write in Markdown in VS Code by saving the file as a .md. But a great way to get your feet wet is using <a href="https://stackedit.io/">StackEdit</a>. On StackEdit you can write your own Markdown in the browser on the left screen and see the real-time output on the right. It’s the perfect playground for almost everything we do here in this article.</p><h3>Markdown Basics</h3><p>While Medium does have code blocks, the final result of the Markdown code cannot be seen here. But a little copy and paste action into your favorite Markdown editor such as StackEdit will visualize our results.</p><h4>Text</h4><p>To write in Markdown, just start typing. It should show up normal in the reader window. To give your text some style, include a number of * for whatever style you are looking for. Think of the * as parentheses, you’ll need to close it to stop the style.</p><p>If your Markdown editor supports HTML, you could also use HTML tags such as &lt;ins&gt; to format your text with underlines.</p><pre>Just typing away. Nothing special to see here.<br>*This will give you italics* This will not be italic. It is outside the * *<br>**This will make your text bold**<br>***And this will combine the two!***<br>~~This strikes something~~<br>&lt;ins&gt;This is underlined&lt;/ins&gt;</pre><h4>Titles</h4><p>Make sure to include the space between the # and the name of the title. These titles are even searchable (more on this later).</p><pre># Biggest Title<br>## Smaller Title<br>### Even Smaller<br>#### Getting tiny here<br>##### How low can we go?<br>###### This is how low we can go</pre><h4>Lists</h4><p>Just like in HTML, there are two types of lists, ordered and unordered. Ordered usually includes something that counts up or down such as numbers, roman numerals, or letters. Unordered are like bullet points — there are no counting up or down with them.</p><p>Just like with titles, include a space between the list marker and the text for it to work. Depending on which Markdown software you use, nesting the items will need 4 spaces, tabs, or just a change in value to get it to work. You’ll just have to play around with it as it can be finicky.</p><pre>1) This is the first item in the list. <br>2) This is the second item. <br>    a) And this is how to nest your list items<br><br>* Now for some unordered items<br>* Another item<br>    * Lets try nesting these<br>        * Why not, let&#39;s keep nesting<br>            * How far can this go?</pre><h4>Block Quotes</h4><p>Have a favorite quote you would like to add into your file? Or just wanting to quote a Redditor’s comment from above? Here’s how you can do that.</p><p>Some programs require you to have a TAB at the end of each line to keep the block quote going. It’s a weird bug (feature?) you might not even run into. StackEdit doesn’t seem to think the TAB is necessary.</p><pre>&gt; Block quotes are a thing too.   <br>&gt;   <br>&gt; Use more greater than symbols   <br>&gt; to do a longer block   <br>&gt; like this.</pre><h4>Links</h4><p>For those familiar with HTML, the way to use links is very similar. If you wanted to use an external link, you first provide the name of the link or what you want the reader to see, and then have the link URL hidden afterwards.</p><p>Like HTML, you can also provide an internal link to another location in your document. This has the same structure as the external link, the only difference is instead of providing an URL, you feed it the title name you want your reader to scroll to. This is similar to how HTML can scroll to an ID you created earlier.</p><p>Paste this one near the bottom of your StackEdit file and have it scroll to a title you created above. Add the same number of # to match whatever you had for the desired title.</p><pre>External Link<br>[External Link](https://www.google.com)<br><br>Internal Link<br>[Link to Title section above](#title_name)</pre><p>You could even create a Table of contents at the top of your Markdown file using the internal links as well. Might not be useful for short documents, but for lengthy notes, it could be quite useful.</p><pre>Table of Contents<br><br>* [Introduction](#intro)<br>* [Section 1](#sect1)<br>* [Section 2](#sect2)<br>* [Section 3](#sect3)</pre><h4>Code Blocks</h4><p>With Markdown you can designate your programming language code blocks to match the language of your choice. While not all Markdown editors are the same, they should include a wide variety of languages.</p><p>You’ll notice when you paste these into StackEdit the keywords and various syntaxes will be highlighted. Pretty cool! Using Markdown is my preferred way of taking notes when learning languages.</p><pre>```python<br>import pandas as pd<br><br>print(&quot;Hello, World&quot;)<br><br>def some_function(x):<br>  x += 1<br>  return x<br><br>some_function(23)<br>```<br><br>```sql<br>SELECT *<br>FROM table<br>WHERE col &gt; 5;<br>```<br><br>```javascript<br>var some_var = 3;<br>```</pre><h4>Images</h4><p>Adding images is similar to adding a hyperlink. Working with images in StackEdit is a little different from doing this offline. When working offline you need three things: an image tag, the location of the image in your folder, and an alternative text.</p><p>The first part ![image] shows we are wanting to put an image here and describes what the image is. It would be good to be descriptive here because for those who are seeing impaired, this description will be what they hear.</p><p>Inside the parentheses (./Pineapple.jpg “Picture of a pineapple”)we see the location and name of the file as well as what is shown when we hover over the picture. The ./ indicates that the pineapple.jpeg image is in the same directory as the Markdown file.</p><pre>![This is a pineapple.](./Pineapple.jpeg &quot;Picture of a pineapple&quot;) </pre><p>This will not work in StackEdit which requires you to have a link to the image you want to use. I honestly didn’t have much success in getting StackEdit to do a good job at this part. So I wish you luck if you are doing this route.</p><h3>Final Thoughts</h3><p>This article only scratches the surface of the kinds of things you can do in Markdown. You could also do tables, videos, change picture sizes, font colors, centering text, and many, many more. Many of these additional functionalities are done using HTML tags like we did with the font underlining. The sky is the limit here. You <em>can </em>do hard things.</p><p><em>If you liked this content, please give me a clap or two. You can find me on LinkedIn at </em><a href="https://www.linkedin.com/in/kyle-lombardo/"><em>https://www.linkedin.com/in/kyle-lombardo/</em></a></p><p><em>I would love to connect!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbdc59571d54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your First API]]></title>
            <link>https://medium.com/@kylelombardo/your-first-api-6a2e248f9076?source=rss-457d13286fa9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a2e248f9076</guid>
            <dc:creator><![CDATA[Kyle Lombardo]]></dc:creator>
            <pubDate>Tue, 06 Dec 2022 14:11:00 GMT</pubDate>
            <atom:updated>2022-12-06T14:11:00.254Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="International Space Station" src="https://cdn-images-1.medium.com/max/1024/1*0ba-FyvwITYU2W77V_HbLg.jpeg" /><figcaption>Courtesy: NASA</figcaption></figure><h3>What’s an API?</h3><p>When you first start your journey into data, the data sets are typically CSV or Excel files. While there is nothing wrong with these, not all projects come neatly packaged in CSV or Excel files. Some projects require access live data from a third party in the form of an API. So what the heck is an API?</p><p>An API (Application Programming Interface) is a way for two applications to share data with one another in real time. Think of when you went on a website and they had your weather there. That website likely did not have a weather gauge outside your house. They are probably using the <a href="https://www.weatherapi.com/">weather.com</a> API to display your local weather data in their web app.</p><p>APIs addresses look identical to websites and follow similar HTTP protocols. To access an APIs data we only need the Python library requests, which will require a pip or conda install.</p><p>Typically when we work with APIs we are bringing in JSON files. JSON files are great to work with, but Python does not natively read JSON files. The json library will help with this, and this one comes in the Python standard library so no pip/conda install is necessary. From there, we parse and slice up the data to pull the desired data.</p><h3>First API</h3><p>A great API to start with is a simple and free one. The International Space Station has an <a href="http://open-notify.org/Open-Notify-API/">open API</a> where it will show the current location as it orbits around Earth. First, we need to import the necessary libraries. We will use json and requests as well as datatime to convert the time from epoch seconds (seconds since Jan 1 1970) to a format we can understand better.</p><p>Fire up your favorite Python IDE or a Jupyter Notebook and paste this in:</p><pre>import json <br>import requests<br>from datetime import datetime<br><br><br># Grabs the data from the api<br>response = requests.get(&quot;http://api.open-notify.org/iss-now.json&quot;)<br><br># Converts json data into a python readable format<br>iss = response.json()<br><br>print(iss)<br><br># -------------------Don&#39;t copy below this line---------------------------<br># Output:<br># {&#39;iss_position&#39;: {&#39;latitude&#39;: &#39;-48.6571&#39;, &#39;longitude&#39;: &#39;125.2205&#39;}, <br>#  &#39;timestamp&#39;: 1670088744, <br>#  &#39;message&#39;: &#39;success&#39;}</pre><p>The response variable brings in the JSON file and iss variable turns the JSON file into something Python can understand. The iss variable will return a series of nested dictionaries. If you are familiar with working with dictionaries, all we need to do it start accessing the values we want using the keys.</p><p>And that is all there is to grabbing your first API! You can rerun the above script over and over to see that the time and coordinates change with each run. It’s alive!</p><p>From there we can use our regular dictionary accessing techniques to pull the latitude and longitude values from their nested dictionaries and convert the timestamp to the current time and day.</p><pre># Time was in epoch time. Let&#39;s put it in more standard time.<br>iss_time = datetime.fromtimestamp(iss[&#39;timestamp&#39;]) <br><br># Accessing latitude and longitude values<br>iss_long = iss[&#39;iss_position&#39;][&#39;longitude&#39;]<br>iss_lat = iss[&#39;iss_position&#39;][&#39;latitude&#39;]<br><br># Prints current ISS location<br>print(f&#39;At {iss_time} the International Space Station is at {iss_lat},{iss_long}.&#39;)<br><br><br># Output:<br># At 2022-12-03 10:25:33 the International Space Station is at -34.8475,96.2543.</pre><h3>Conclusions</h3><p>Doing anything new when starting out can be intimidating. Heck, the entire data science industry is intimidating. All those genius PhD’s doing advanced math and writing research papers. They all started with zero knowledge about APIs too. While this example is as simple as you can get with APIs, we have to start somewhere.</p><p>For the next step, I would suggest a good intermediary API like the <a href="https://pokeapi.co/">Pokeapi</a> where you can access the stats for all the Pokémon, their evolution chains, items in game, etc.</p><p><em>If you liked this content, please give me a clap or two. This was my first medium article so if you see some errors or discrepancies, please be gentle…</em></p><p><em>Find me on LinkedIn at </em><a href="https://www.linkedin.com/in/kyle-lombardo/"><em>https://www.linkedin.com/in/kyle-lombardo/</em></a></p><p><em>I would love to connect!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a2e248f9076" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>