<?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:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[HelpdeskReject]]></title><description><![CDATA[Cheat Sheets, Guides, Ramblings]]></description><link>https://www.helpdeskreject.com/</link><image><url>https://www.helpdeskreject.com/favicon.png</url><title>HelpdeskReject</title><link>https://www.helpdeskreject.com/</link></image><generator>Ghost 5.2</generator><lastBuildDate>Sun, 10 May 2026 00:22:38 GMT</lastBuildDate><atom:link href="https://www.helpdeskreject.com/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Ruby Cheat sheet]]></title><description><![CDATA[Simple examples of common ruby code]]></description><link>https://www.helpdeskreject.com/ruby/</link><guid isPermaLink="false">62a81698c2dc150001f6e370</guid><category><![CDATA[Cheat Sheets]]></category><dc:creator><![CDATA[HelpdeskReject]]></dc:creator><pubDate>Tue, 14 Jun 2022 05:03:34 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1551122102-63cd339bfaab?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDF8fHJ1Ynl8ZW58MHx8fHwxNjU1MjcwMTQ2&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<!--kg-card-begin: markdown--><h2 id="flow">Flow</h2>
<h3 id="if">IF</h3>
<pre><code>if s == &apos;foo&apos;
    print &apos;foo&apos;
elsif s == &apos;bar&apos;
    print &apos;bar&apos;
else
    print &apos;baz&apos;
end

</code></pre>
<h3 id="unless">Unless</h3>
<pre><code>unless s == &apos;foo&apos;
    print &apos;s is not foo&apos;
else
    print &apos;s is foo&apos;
end
</code></pre>
<h3 id="case">Case</h3>
<pre><code>case S
when &apos;foo&apos;, &apos;goo&apos;
    print &apos;was foo or goo&apos;
when &apos;moo&apos;
    print &apos;was moo&apos;
else
    print &apos;was something weird&apos;
end
</code></pre>
<h2 id="loops">Loops</h2>
<pre><code>for i in 0..3
    print &quot;i is #{i}&quot;
end
</code></pre>
<img src="https://images.unsplash.com/photo-1551122102-63cd339bfaab?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDF8fHJ1Ynl8ZW58MHx8fHwxNjU1MjcwMTQ2&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" alt="Ruby Cheat sheet"><p>Normal While condition</p>
<pre><code>while i &lt; 3
    print &quot;i is #{i}&quot;
end
</code></pre>
<p>While modifier</p>
<pre><code>begin
    print &quot;i is #{i}&quot;
    i = i + 1
end while i &lt; 3
</code></pre>
<p>Until</p>
<pre><code>until i &gt; 3
    print &quot;i is #{i}&quot;
end
</code></pre>
<p>Until with modifier</p>
<pre><code>begin
    print &quot;i is #{i}&quot;
end untill i &gt; 3
</code></pre>
<p>Each</p>
<pre><code>(0...3).each do |i|
    print &quot;i is #{i}&quot;
end
</code></pre>
<h3 id="messing-with-loops">Messing with loops</h3>
<p><code>next</code>  -- skip the next loop iteration<br>
<code>redo</code>  -- run the loop again without checking the loop condition.<br>
<code>break</code> -- exits a loop immediatly</p>
<!--kg-card-end: markdown-->]]></content:encoded></item><item><title><![CDATA[//TODO: add content]]></title><description><![CDATA[<p>I&apos;ll get to this some day</p>]]></description><link>https://www.helpdeskreject.com/coming-soon/</link><guid isPermaLink="false">62a808a5cf3ec30001eaa6a3</guid><dc:creator><![CDATA[HelpdeskReject]]></dc:creator><pubDate>Tue, 14 Jun 2022 04:03:49 GMT</pubDate><media:content url="https://static.ghost.org/v4.0.0/images/feature-image.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://static.ghost.org/v4.0.0/images/feature-image.jpg" alt="//TODO: add content"><p>I&apos;ll get to this some day</p>]]></content:encoded></item></channel></rss>