Skip to content

Commit

Permalink
Deploying to gh-pages from @ 418d2dc 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
miakramer committed Sep 25, 2024
1 parent cf786b0 commit c1ecb9b
Show file tree
Hide file tree
Showing 9 changed files with 2,252 additions and 1,088 deletions.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html> <html lang=en > <meta charset=UTF-8 > <meta name=viewport content="width=device-width, initial-scale=1"> <link rel=stylesheet href="/julia-workshop/css/style.css"> <link rel=icon href="/julia-workshop/assets/favicon.png"> <title>404</title> <header> <nav> <span><a href="/julia-workshop/">Home</a></span> <span><a href="/julia-workshop/day1">Day 1</a></span> <span><a href="/julia-workshop/day2">Day 2</a></span> <span><a href="/julia-workshop/day3">Day 3</a></span> </nav> </header> <main> <div class=franklin-content > <div style="margin-top: 40px; font-size: 40px; text-align: center;"> <br> <div style="font-weight: bold;"> 404 </div> <br> <br> The requested page was not found <br> <br> <br> <br> <div style="margin-bottom: 300px; font-size: 24px"> <a href="/julia-workshop/">Click here</a> to go back to the homepage. </div> </div> <footer> <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a>. Website built with <a href="https://github.com/tlienart/Franklin.jl">Franklin.jl</a> and the <a href="https://julialang.org">Julia programming language</a>. </footer> </div> </main>
<!doctype html> <html lang=en > <meta charset=UTF-8 > <meta name=viewport content="width=device-width, initial-scale=1"> <link rel=stylesheet href="/julia-workshop/css/style.css"> <link rel=icon href="/julia-workshop/assets/favicon.png"> <title>404</title> <header> <nav> <span><a href="/julia-workshop/">Home</a></span> <span><a href="/julia-workshop/day1">Day 1</a></span> <span><a href="/julia-workshop/day2">Day 2</a></span> <span><a href="/julia-workshop/day3">Day 3</a></span> <span><a href="/julia-workshop/day4">Day 4</a></span> </nav> </header> <main> <div class=franklin-content > <div style="margin-top: 40px; font-size: 40px; text-align: center;"> <br> <div style="font-weight: bold;"> 404 </div> <br> <br> The requested page was not found <br> <br> <br> <br> <div style="margin-bottom: 300px; font-size: 24px"> <a href="/julia-workshop/">Click here</a> to go back to the homepage. </div> </div> <footer> <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a>. Website built with <a href="https://github.com/tlienart/Franklin.jl">Franklin.jl</a> and the <a href="https://julialang.org">Julia programming language</a>. </footer> </div> </main>
2 changes: 1 addition & 1 deletion day1/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html> <html lang=en > <meta charset=UTF-8 > <meta name=viewport content="width=device-width, initial-scale=1"> <link rel=stylesheet href="/julia-workshop/libs/katex/katex.min.css"> <link rel=stylesheet href="/julia-workshop/libs/highlight/styles/agate.min.css"> <link rel=stylesheet href="/julia-workshop/css/style.css"> <link rel=icon href="/julia-workshop/assets/favicon.png"> <title>Day 1</title> <header> <nav> <span><a href="/julia-workshop/">Home</a></span> <span><a href="/julia-workshop/day1">Day 1</a></span> <span><a href="/julia-workshop/day2">Day 2</a></span> <span><a href="/julia-workshop/day3">Day 3</a></span> </nav> </header> <main> <div class=franklin-content ><h1 id=day_1 ><a href="#day_1" class=header-anchor >Day 1</a></h1> <ul> <li><p><a href="/julia-workshop/day1.ipynb">Slides</a></p> <li><p><a href="https://github.com/JuliaLang/juliaup">juliaup</a></p> <li><p><a href="https://docs.julialang.org/en/v1/">Julia manual</a></p> </ul> <h2 id=problem_guessing_game ><a href="#problem_guessing_game" class=header-anchor >Problem: Guessing Game</a></h2> <p>The goal of this game is to have the user guess a random number. Your program should select a number between 1 and 100 &#40;inclusive&#41;. Then, it should accept a series of guesses from the user. Each time the guess entered is wrong, your program provides a hint: whether the guess entered was too high or too low. When the correct number is entered, you can print a message and exit.</p> <p>You will need some pieces from the Julia standard library:</p> <ul> <li><p><code>rand&#40;a:b&#41;</code> &#40;<a href="https://docs.julialang.org/en/v1/stdlib/Random/#Base.rand">docs</a>&#41;: select a random integer in <span class=katex ><span class=katex-mathml ><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy=false >[</mo><mi>a</mi><mo separator=true >,</mo><mi>b</mi><mo stretchy=false >]</mo></mrow><annotation encoding="application/x-tex">[a, b]</annotation></semantics></math></span><span class=katex-html aria-hidden=true ><span class=base ><span class=strut style="height:1em;vertical-align:-0.25em;"></span><span class=mopen >[</span><span class="mord mathnormal">a</span><span class=mpunct >,</span><span class=mspace style="margin-right:0.1667em;"></span><span class="mord mathnormal">b</span><span class=mclose >]</span></span></span></span></p> <li><p><code>readline&#40;&#41;</code> &#40;<a href="https://docs.julialang.org/en/v1/base/io-network/#Base.readline">docs</a>&#41;: read a single line from the terminal and return it as a string</p> <li><p><code>parse&#40;Int, s&#41;</code> &#40;<a href="https://docs.julialang.org/en/v1/base/numbers/#Base.parse">docs</a>&#41;: parse the <code>String</code> <code>s</code> as an Int</p> </ul> <p>The top-level Julia scope behaves differently than you might expect. You will want to wrap your code in a function, like so:</p> <pre><code class="julia hljs"><span class=hljs-comment ># in your_filename.jl</span>
<!doctype html> <html lang=en > <meta charset=UTF-8 > <meta name=viewport content="width=device-width, initial-scale=1"> <link rel=stylesheet href="/julia-workshop/libs/katex/katex.min.css"> <link rel=stylesheet href="/julia-workshop/libs/highlight/styles/agate.min.css"> <link rel=stylesheet href="/julia-workshop/css/style.css"> <link rel=icon href="/julia-workshop/assets/favicon.png"> <title>Day 1</title> <header> <nav> <span><a href="/julia-workshop/">Home</a></span> <span><a href="/julia-workshop/day1">Day 1</a></span> <span><a href="/julia-workshop/day2">Day 2</a></span> <span><a href="/julia-workshop/day3">Day 3</a></span> <span><a href="/julia-workshop/day4">Day 4</a></span> </nav> </header> <main> <div class=franklin-content ><h1 id=day_1 ><a href="#day_1" class=header-anchor >Day 1</a></h1> <ul> <li><p><a href="/julia-workshop/day1.ipynb">Slides</a></p> <li><p><a href="https://github.com/JuliaLang/juliaup">juliaup</a></p> <li><p><a href="https://docs.julialang.org/en/v1/">Julia manual</a></p> </ul> <h2 id=problem_guessing_game ><a href="#problem_guessing_game" class=header-anchor >Problem: Guessing Game</a></h2> <p>The goal of this game is to have the user guess a random number. Your program should select a number between 1 and 100 &#40;inclusive&#41;. Then, it should accept a series of guesses from the user. Each time the guess entered is wrong, your program provides a hint: whether the guess entered was too high or too low. When the correct number is entered, you can print a message and exit.</p> <p>You will need some pieces from the Julia standard library:</p> <ul> <li><p><code>rand&#40;a:b&#41;</code> &#40;<a href="https://docs.julialang.org/en/v1/stdlib/Random/#Base.rand">docs</a>&#41;: select a random integer in <span class=katex ><span class=katex-mathml ><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy=false >[</mo><mi>a</mi><mo separator=true >,</mo><mi>b</mi><mo stretchy=false >]</mo></mrow><annotation encoding="application/x-tex">[a, b]</annotation></semantics></math></span><span class=katex-html aria-hidden=true ><span class=base ><span class=strut style="height:1em;vertical-align:-0.25em;"></span><span class=mopen >[</span><span class="mord mathnormal">a</span><span class=mpunct >,</span><span class=mspace style="margin-right:0.1667em;"></span><span class="mord mathnormal">b</span><span class=mclose >]</span></span></span></span></p> <li><p><code>readline&#40;&#41;</code> &#40;<a href="https://docs.julialang.org/en/v1/base/io-network/#Base.readline">docs</a>&#41;: read a single line from the terminal and return it as a string</p> <li><p><code>parse&#40;Int, s&#41;</code> &#40;<a href="https://docs.julialang.org/en/v1/base/numbers/#Base.parse">docs</a>&#41;: parse the <code>String</code> <code>s</code> as an Int</p> </ul> <p>The top-level Julia scope behaves differently than you might expect. You will want to wrap your code in a function, like so:</p> <pre><code class="julia hljs"><span class=hljs-comment ># in your_filename.jl</span>
<span class=hljs-keyword >function</span> main()
<span class=hljs-comment ># your code here</span>
<span class=hljs-keyword >end</span>
Expand Down
2 changes: 1 addition & 1 deletion day2/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion day3/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html> <html lang=en > <meta charset=UTF-8 > <meta name=viewport content="width=device-width, initial-scale=1"> <link rel=stylesheet href="/julia-workshop/libs/highlight/styles/agate.min.css"> <link rel=stylesheet href="/julia-workshop/css/style.css"> <link rel=icon href="/julia-workshop/assets/favicon.png"> <title>Day 3</title> <header> <nav> <span><a href="/julia-workshop/">Home</a></span> <span><a href="/julia-workshop/day1">Day 1</a></span> <span><a href="/julia-workshop/day2">Day 2</a></span> <span><a href="/julia-workshop/day3">Day 3</a></span> </nav> </header> <main> <div class=franklin-content ><h1 id=day_3 ><a href="#day_3" class=header-anchor >Day 3</a></h1> <ul> <li><p><a href="/julia-workshop/day3.ipynb">Slides</a></p> <li><p><a href="/julia-workshop/typeinstability.jl">Type instability</a></p> </ul> <h2 id=problems ><a href="#problems" class=header-anchor >Problems</a></h2> <ol> <li><p>Check whether your solutions for last week&#39;s problems were type stable. One of the methods there cannot be type stable. Which is it?</p> <li><p>For the Peano numbers problem, in the following code, how many compilations for <code>&#43;</code> happen?</p> </ol> <pre><code class="julia hljs">Zero() + Zero()
<!doctype html> <html lang=en > <meta charset=UTF-8 > <meta name=viewport content="width=device-width, initial-scale=1"> <link rel=stylesheet href="/julia-workshop/libs/highlight/styles/agate.min.css"> <link rel=stylesheet href="/julia-workshop/css/style.css"> <link rel=icon href="/julia-workshop/assets/favicon.png"> <title>Day 3</title> <header> <nav> <span><a href="/julia-workshop/">Home</a></span> <span><a href="/julia-workshop/day1">Day 1</a></span> <span><a href="/julia-workshop/day2">Day 2</a></span> <span><a href="/julia-workshop/day3">Day 3</a></span> <span><a href="/julia-workshop/day4">Day 4</a></span> </nav> </header> <main> <div class=franklin-content ><h1 id=day_3 ><a href="#day_3" class=header-anchor >Day 3</a></h1> <ul> <li><p><a href="/julia-workshop/day3.ipynb">Slides</a></p> <li><p><a href="/julia-workshop/typeinstability.jl">Type instability</a></p> </ul> <h2 id=problems ><a href="#problems" class=header-anchor >Problems</a></h2> <ol> <li><p>Check whether your solutions for last week&#39;s problems were type stable. One of the methods there cannot be type stable. Which is it?</p> <li><p>For the Peano numbers problem, in the following code, how many compilations for <code>&#43;</code> happen?</p> </ol> <pre><code class="julia hljs">Zero() + Zero()
Zero() + convert(PeanoNumber, <span class=hljs-number >1</span>)
convert(PeanoNumber, <span class=hljs-number >1</span>) + Zero()
convert(PeanoNumber, <span class=hljs-number >1</span>) + convert(PeanoNumber, <span class=hljs-number >5</span>)
Expand Down
Loading

0 comments on commit c1ecb9b

Please sign in to comment.