<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Slides | Shawn McCarthy</title><link>https://mccarthy.phd/slides/</link><atom:link href="https://mccarthy.phd/slides/index.xml" rel="self" type="application/rss+xml"/><description>Slides</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Mon, 22 May 2023 00:00:00 +0000</lastBuildDate><item><title>GitHub Introduction</title><link>https://mccarthy.phd/slides/github/</link><pubDate>Mon, 22 May 2023 00:00:00 +0000</pubDate><guid>https://mccarthy.phd/slides/github/</guid><description>&lt;h1 id="introduction-to-github">Introduction to GitHub&lt;/h1>
&lt;p>&lt;a href="https://github.com/" target="_blank" rel="noopener">GitHub&lt;/a> | &lt;a href="https://docs.github.com/en" target="_blank" rel="noopener">Documentation&lt;/a>&lt;/p>
&lt;hr>
&lt;h2 id="what-is-github">What is GitHub?&lt;/h2>
&lt;ul>
&lt;li>A platform for version control and collaboration&lt;/li>
&lt;li>It allows you and others to work on projects from anywhere&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="setting-up-github">Setting Up GitHub&lt;/h2>
&lt;ol>
&lt;li>Go to &lt;a href="https://github.com/" target="_blank" rel="noopener">GitHub.com&lt;/a>&lt;/li>
&lt;li>Click on &lt;code>Sign Up&lt;/code>&lt;/li>
&lt;li>Fill in your details and click &lt;code>Create account&lt;/code>&lt;/li>
&lt;/ol>
&lt;hr>
&lt;h2 id="creating-a-new-repository">Creating a New Repository&lt;/h2>
&lt;ol>
&lt;li>After logging in, click on &lt;code>New repository&lt;/code>&lt;/li>
&lt;li>Name your repository&lt;/li>
&lt;li>Choose to make the repository &lt;code>Public&lt;/code> or &lt;code>Private&lt;/code>&lt;/li>
&lt;li>Make sure the default branch name is &lt;code>main&lt;/code>&lt;/li>
&lt;li>Click &lt;code>Create repository&lt;/code>&lt;/li>
&lt;/ol>
&lt;hr>
&lt;h2 id="cloning-a-repository">Cloning a Repository&lt;/h2>
&lt;ol>
&lt;li>Navigate to the main page of the repository&lt;/li>
&lt;li>Click &lt;code>Code&lt;/code>&lt;/li>
&lt;li>To clone the repository using HTTPS, under &amp;ldquo;Clone with HTTPS&amp;rdquo;, click the clipboard icon&lt;/li>
&lt;li>Open Git Bash&lt;/li>
&lt;li>Change the current working directory to the location where you want the cloned directory&lt;/li>
&lt;li>Type &lt;code>git clone&lt;/code>, and then paste the URL you copied earlier&lt;/li>
&lt;li>Press &lt;code>Enter&lt;/code> to create your local clone&lt;/li>
&lt;/ol>
&lt;hr>
&lt;h2 id="making-changes">Making Changes&lt;/h2>
&lt;ol>
&lt;li>Navigate to the file in your repository that you want to change&lt;/li>
&lt;li>Click the pencil icon in the upper right corner of the file view to edit&lt;/li>
&lt;li>Make and commit your changes&lt;/li>
&lt;/ol>
&lt;hr>
&lt;h2 id="creating-a-gitignore-file">Creating a .gitignore File&lt;/h2>
&lt;ol>
&lt;li>In your repository, create a new file named &lt;code>.gitignore&lt;/code>&lt;/li>
&lt;li>For a Node.js project, you might include the following in your &lt;code>.gitignore&lt;/code>:&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-txt" data-lang="txt">&lt;span class="line">&lt;span class="cl">node_modules/
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">npm-debug.log
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">.DS_Store
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">.env
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;hr>
&lt;h2 id="about-env-and-gitignore">About .env and .gitignore&lt;/h2>
&lt;ul>
&lt;li>&lt;code>.env&lt;/code> files usually contain sensitive information like API keys and should not be tracked in Git&lt;/li>
&lt;li>Including &lt;code>.env&lt;/code> in your &lt;code>.gitignore&lt;/code> ensures it won&amp;rsquo;t be committed to your GitHub repository&lt;/li>
&lt;li>Instead, provide a &lt;code>.env.example&lt;/code> file with the required keys and dummy values to guide others&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="pushing-changes">Pushing Changes&lt;/h2>
&lt;ol>
&lt;li>Open a terminal&lt;/li>
&lt;li>Navigate to your repository directory&lt;/li>
&lt;li>Type &lt;code>git add .&lt;/code> to add all changes&lt;/li>
&lt;li>Type &lt;code>git commit -m &amp;quot;Your message&amp;quot;&lt;/code> to commit changes&lt;/li>
&lt;li>Type &lt;code>git push&lt;/code> to push changes to GitHub&lt;/li>
&lt;/ol>
&lt;hr>
&lt;h2 id="pulling-changes">Pulling Changes&lt;/h2>
&lt;ol>
&lt;li>Open a terminal&lt;/li>
&lt;li>Navigate to your repository directory&lt;/li>
&lt;li>Type &lt;code>git pull&lt;/code> to update your local repository with the latest changes&lt;/li>
&lt;/ol>
&lt;hr>
&lt;h2 id="issues">Issues&lt;/h2>
&lt;p>Issues are a great way to keep track of tasks, enhancements, and bugs for your projects&lt;/p>
&lt;ol>
&lt;li>Navigate to the main page of the repository&lt;/li>
&lt;li>Click &lt;code>Issues&lt;/code>&lt;/li>
&lt;li>Click &lt;code>New issue&lt;/code>&lt;/li>
&lt;li>Create a title and write a description for your issue&lt;/li>
&lt;li>Click &lt;code>Submit new issue&lt;/code>&lt;/li>
&lt;/ol>
&lt;hr>
&lt;h2 id="pull-requests">Pull Requests&lt;/h2>
&lt;p>Pull requests let you tell others about changes you&amp;rsquo;ve pushed to a branch in a repository on GitHub&lt;/p>
&lt;ol>
&lt;li>Navigate to the main page of the repository&lt;/li>
&lt;li>Click &lt;code>Pull requests&lt;/code>&lt;/li>
&lt;li>Click &lt;code>New pull request&lt;/code>&lt;/li>
&lt;li>Select the branch you made changes to and the branch you want to merge changes&lt;/li>
&lt;/ol>
&lt;p>into
5. Review your changes and click &lt;code>Create pull request&lt;/code>&lt;/p>
&lt;hr>
&lt;h1 id="questions">Questions?&lt;/h1>
&lt;p>&lt;a href="https://github.community/" target="_blank" rel="noopener">Ask&lt;/a>
&lt;a href="https://docs.github.com/en" target="_blank" rel="noopener">Documentation&lt;/a>&lt;/p></description></item><item><title>Slides</title><link>https://mccarthy.phd/slides/example/</link><pubDate>Tue, 05 Feb 2019 00:00:00 +0000</pubDate><guid>https://mccarthy.phd/slides/example/</guid><description>&lt;h1 id="create-slides-in-markdown-with-wowchemy">Create slides in Markdown with Wowchemy&lt;/h1>
&lt;p>&lt;a href="https://wowchemy.com/" target="_blank" rel="noopener">Wowchemy&lt;/a> | &lt;a href="https://wowchemy.com/docs/content/slides/" target="_blank" rel="noopener">Documentation&lt;/a>&lt;/p>
&lt;hr>
&lt;h2 id="features">Features&lt;/h2>
&lt;ul>
&lt;li>Efficiently write slides in Markdown&lt;/li>
&lt;li>3-in-1: Create, Present, and Publish your slides&lt;/li>
&lt;li>Supports speaker notes&lt;/li>
&lt;li>Mobile friendly slides&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="controls">Controls&lt;/h2>
&lt;ul>
&lt;li>Next: &lt;code>Right Arrow&lt;/code> or &lt;code>Space&lt;/code>&lt;/li>
&lt;li>Previous: &lt;code>Left Arrow&lt;/code>&lt;/li>
&lt;li>Start: &lt;code>Home&lt;/code>&lt;/li>
&lt;li>Finish: &lt;code>End&lt;/code>&lt;/li>
&lt;li>Overview: &lt;code>Esc&lt;/code>&lt;/li>
&lt;li>Speaker notes: &lt;code>S&lt;/code>&lt;/li>
&lt;li>Fullscreen: &lt;code>F&lt;/code>&lt;/li>
&lt;li>Zoom: &lt;code>Alt + Click&lt;/code>&lt;/li>
&lt;li>&lt;a href="https://revealjs.com/pdf-export/" target="_blank" rel="noopener">PDF Export&lt;/a>&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="code-highlighting">Code Highlighting&lt;/h2>
&lt;p>Inline code: &lt;code>variable&lt;/code>&lt;/p>
&lt;p>Code block:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="n">porridge&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="s2">&amp;#34;blueberry&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">if&lt;/span> &lt;span class="n">porridge&lt;/span> &lt;span class="o">==&lt;/span> &lt;span class="s2">&amp;#34;blueberry&amp;#34;&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s2">&amp;#34;Eating...&amp;#34;&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;hr>
&lt;h2 id="math">Math&lt;/h2>
&lt;p>In-line math: $x + y = z$&lt;/p>
&lt;p>Block math:&lt;/p>
&lt;p>$$
f\left( x \right) = ;\frac{{2\left( {x + 4} \right)\left( {x - 4} \right)}}{{\left( {x + 4} \right)\left( {x + 1} \right)}}
$$&lt;/p>
&lt;hr>
&lt;h2 id="fragments">Fragments&lt;/h2>
&lt;p>Make content appear incrementally&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">{{% fragment %}} One {{% /fragment %}}
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">{{% fragment %}} **Two** {{% /fragment %}}
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">{{% fragment %}} Three {{% /fragment %}}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Press &lt;code>Space&lt;/code> to play!&lt;/p>
&lt;span class="fragment " >
One
&lt;/span>
&lt;span class="fragment " >
&lt;strong>Two&lt;/strong>
&lt;/span>
&lt;span class="fragment " >
Three
&lt;/span>
&lt;hr>
&lt;p>A fragment can accept two optional parameters:&lt;/p>
&lt;ul>
&lt;li>&lt;code>class&lt;/code>: use a custom style (requires definition in custom CSS)&lt;/li>
&lt;li>&lt;code>weight&lt;/code>: sets the order in which a fragment appears&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="speaker-notes">Speaker Notes&lt;/h2>
&lt;p>Add speaker notes to your presentation&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-markdown" data-lang="markdown">&lt;span class="line">&lt;span class="cl">{{% speaker_note %}}
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">-&lt;/span> Only the speaker can read these notes
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">-&lt;/span> Press &lt;span class="sb">`S`&lt;/span> key to view
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> {{% /speaker_note %}}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Press the &lt;code>S&lt;/code> key to view the speaker notes!&lt;/p>
&lt;aside class="notes">
&lt;ul>
&lt;li>Only the speaker can read these notes&lt;/li>
&lt;li>Press &lt;code>S&lt;/code> key to view&lt;/li>
&lt;/ul>
&lt;/aside>
&lt;hr>
&lt;h2 id="themes">Themes&lt;/h2>
&lt;ul>
&lt;li>black: Black background, white text, blue links (default)&lt;/li>
&lt;li>white: White background, black text, blue links&lt;/li>
&lt;li>league: Gray background, white text, blue links&lt;/li>
&lt;li>beige: Beige background, dark text, brown links&lt;/li>
&lt;li>sky: Blue background, thin dark text, blue links&lt;/li>
&lt;/ul>
&lt;hr>
&lt;ul>
&lt;li>night: Black background, thick white text, orange links&lt;/li>
&lt;li>serif: Cappuccino background, gray text, brown links&lt;/li>
&lt;li>simple: White background, black text, blue links&lt;/li>
&lt;li>solarized: Cream-colored background, dark green text, blue links&lt;/li>
&lt;/ul>
&lt;hr>
&lt;section data-noprocess data-shortcode-slide
data-background-image="/media/boards.jpg"
>
&lt;h2 id="custom-slide">Custom Slide&lt;/h2>
&lt;p>Customize the slide style and background&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-markdown" data-lang="markdown">&lt;span class="line">&lt;span class="cl">{{&lt;span class="p">&amp;lt;&lt;/span> &lt;span class="nt">slide&lt;/span> &lt;span class="na">background-image&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;/media/boards.jpg&amp;#34;&lt;/span> &lt;span class="p">&amp;gt;&lt;/span>}}
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">{{&lt;span class="p">&amp;lt;&lt;/span> &lt;span class="nt">slide&lt;/span> &lt;span class="na">background-color&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;#0000FF&amp;#34;&lt;/span> &lt;span class="p">&amp;gt;&lt;/span>}}
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">{{&lt;span class="p">&amp;lt;&lt;/span> &lt;span class="nt">slide&lt;/span> &lt;span class="na">class&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s">&amp;#34;my-style&amp;#34;&lt;/span> &lt;span class="p">&amp;gt;&lt;/span>}}
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;hr>
&lt;h2 id="custom-css-example">Custom CSS Example&lt;/h2>
&lt;p>Let&amp;rsquo;s make headers navy colored.&lt;/p>
&lt;p>Create &lt;code>assets/css/reveal_custom.css&lt;/code> with:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-css" data-lang="css">&lt;span class="line">&lt;span class="cl">&lt;span class="p">.&lt;/span>&lt;span class="nc">reveal&lt;/span> &lt;span class="nt">section&lt;/span> &lt;span class="nt">h1&lt;/span>&lt;span class="o">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">.&lt;/span>&lt;span class="nc">reveal&lt;/span> &lt;span class="nt">section&lt;/span> &lt;span class="nt">h2&lt;/span>&lt;span class="o">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">.&lt;/span>&lt;span class="nc">reveal&lt;/span> &lt;span class="nt">section&lt;/span> &lt;span class="nt">h3&lt;/span> &lt;span class="p">{&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">color&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="kc">navy&lt;/span>&lt;span class="p">;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;hr>
&lt;h1 id="questions">Questions?&lt;/h1>
&lt;p>&lt;a href="https://discord.gg/z8wNYzb" target="_blank" rel="noopener">Ask&lt;/a>&lt;/p>
&lt;p>&lt;a href="https://wowchemy.com/docs/content/slides/" target="_blank" rel="noopener">Documentation&lt;/a>&lt;/p></description></item></channel></rss>