Skip to content

Commit b358984

Browse files
committed
Libera
1 parent 0a403b0 commit b358984

File tree

3 files changed

+315
-315
lines changed

3 files changed

+315
-315
lines changed

content/contact.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h2>Contact</h2>
2121
<i class="fa fa-comments fa-stack-1x fa-inverse"></i>
2222
</span>
2323
<span class="title">IRC</span>
24-
<a href="irc://irc.freenode.net/#qfpl">Freenode: #qfpl</a> (<a href="http://webchat.freenode.net?randomnick=1&channels=%23qfpl&uio=d4">Webchat</a>)
24+
<a href="irc://irc.libera.chat/#qfpl">Libera: #qfpl</a> (<a href="https://web.libera.chat/#qfpl">Webchat</a>)
2525
</li>
2626
<li class="list-group-item data61-border">
2727
<span class="data61-green-text fa-stack fa-2x">

content/share/talks/fp-in-ruby/index.html

+17-17
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ <h2></h2>
317317
<div class="sourceCode"><pre class="sourceCode haskell"><code class="sourceCode haskell"><span class="kw">data</span> <span class="dt">Vehicle</span> <span class="fu">=</span> <span class="dt">Car</span>
318318
<span class="fu">|</span> <span class="dt">Bicycle</span>
319319
<span class="fu">|</span> <span class="dt">MotorBike</span>
320-
320+
321321
<span class="ot">describeVehicle ::</span> <span class="dt">Vehicle</span> <span class="ot">-&gt;</span> <span class="dt">String</span>
322322
describeVehicle <span class="dt">Car</span> <span class="fu">=</span>
323323
<span class="st">&quot;Closed in people container on 3 or more wheels&quot;</span>
@@ -656,7 +656,7 @@ <h2></h2>
656656
<span class="kw">def</span> with_bar(bar)
657657
<span class="dv">self</span>.new(bar, <span class="dv">self</span>.baz)
658658
<span class="kw">end</span>
659-
659+
660660
<span class="kw">def</span> total
661661
<span class="dv">self</span>.bar + <span class="dv">self</span>.baz
662662
<span class="kw">end</span>
@@ -672,7 +672,7 @@ <h2></h2>
672672
<h2>Modules</h2>
673673
<div class="sourceCode"><pre class="sourceCode ruby"><code class="sourceCode ruby"><span class="kw">module</span> <span class="dt">TicTacToe</span>
674674
<span class="dt">Game</span> = <span class="dt">Struct</span>.new(<span class="st">:board</span>, <span class="st">:next_symbol</span>, <span class="st">:winner</span>)
675-
675+
676676
<span class="kw">def</span> <span class="dv">self</span>.finished?(game)
677677
!game.winner.nil? || board_full?(game.board)
678678
<span class="kw">end</span>
@@ -798,7 +798,7 @@ <h2></h2>
798798
(M.lookup k h)
799799
<span class="kw">in</span>
800800
fmap sum <span class="fu">.</span> traverse f <span class="fu">$</span> keys
801-
801+
802802
<span class="co">-- &quot;foo&quot; and &quot;baz&quot; aren&#39;t keys in the map</span>
803803
addThreeValidations someMap [<span class="st">&quot;foo&quot;</span>, <span class="st">&quot;bar&quot;</span>, <span class="st">&quot;baz&quot;</span>]
804804
<span class="co">-- =&gt; AccFailure [ &quot;Couldn&#39;t find key: foo&quot;,</span>
@@ -824,18 +824,18 @@ <h2></h2>
824824
fmap sum <span class="fu">.</span> traverse f <span class="fu">$</span> keys</code></pre></div>
825825
</section><section id="section-48" class="slide level2">
826826
<h2></h2>
827-
<div class="sourceCode"><pre class="sourceCode haskell"><code class="sourceCode haskell">
828-
829-
830-
827+
<div class="sourceCode"><pre class="sourceCode haskell"><code class="sourceCode haskell">
828+
829+
830+
831831
fmap sum <span class="fu">.</span> traverse f <span class="fu">$</span> keys
832832

833-
834-
835-
836-
837-
838-
833+
834+
835+
836+
837+
838+
839839
fmap sum <span class="fu">.</span> traverse f <span class="fu">$</span> keys</code></pre></div>
840840
</section><section id="section-49" class="slide level2">
841841
<h2></h2>
@@ -852,7 +852,7 @@ <h2></h2>
852852
<h2></h2>
853853
<div class="sourceCode"><pre class="sourceCode haskell"><code class="sourceCode haskell">addMaybes h keys <span class="fu">=</span>
854854
addThings (<span class="ot">`M.lookup`</span> h) keys
855-
855+
856856
addValidations h keys <span class="fu">=</span>
857857
<span class="kw">let</span>
858858
validatedLookup k <span class="fu">=</span>
@@ -865,7 +865,7 @@ <h2></h2>
865865
<h2></h2>
866866
<div class="sourceCode"><pre class="sourceCode haskell"><code class="sourceCode haskell">addMultiplesOf n ns <span class="fu">=</span>
867867
addThings (<span class="fu">*</span>) ns n
868-
868+
869869
<span class="co">-- &gt; addMultiplesOf 5 [1,2,3]</span>
870870
<span class="co">-- 30</span></code></pre></div>
871871
</section><section id="section-52" class="slide level2">
@@ -960,7 +960,7 @@ <h2>Learn more FP!</h2>
960960
<p>Register by 26 Jan (<a href="https://notify.qfpl.io">notify.qfpl.io</a>)</p>
961961
</section><section id="need-help" class="slide level2">
962962
<h2>Need help?</h2>
963-
<p>#qfpl on Freenode</p>
963+
<p>#qfpl on Libera</p>
964964
</section></section>
965965
<section><section id="credits" class="titleslide slide level1"><h1>Credits</h1></section><section id="images" class="slide level2">
966966
<h2>Images</h2>

0 commit comments

Comments
 (0)