<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/"/>

<title>Jeff Epler's blog</title>
<modified>2025-11-26T16:09:19Z</modified>
<tagline>Photos, electronics, cnc, and more</tagline>
<author><name>Jeff Epler</name><email>jepler@unpythonic.net</email></author>
<entry>
<title>Junk drawer & embedding</title>
<issued>2025-11-26T16:09:19Z</issued>
<modified>2025-11-26T16:09:19Z</modified>
<id>https://gamma.unpythonic.net/01764173359</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01764173359"/>
<content type="text/html" mode="escaped">



&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/default.min.css&quot;&gt;
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/languages/python.min.js&quot;&gt;&lt;/script&gt;
&lt;style&gt;
.junkpre { border: 1px solid black; max-width: 132ex; max-height: 45lh; overflow: auto; }
&lt;/style&gt;
&lt;script&gt;
const do_embed = function(container, url) {
    const request = new Request(url);
    fetch(request)
      .then((response) =&gt; response.json())
      .then((data) =&gt; {
        container.textContent = atob(data['content']);
        hljs.highlightElement(container)    
    })
    .catch((error) =&gt; {
       console.error(error);
    });
}
const do_embed_here = function(url, classes) {
    const id = &quot;embed&quot; + (((1 + Math.random()) * 0x1000000) | 0).toString(16).substring(1);
    document.write(&quot;&lt;pre class=junkpre&gt;&lt;code id=&quot; + id + &quot; class=junkembed&gt;&lt;/code&gt;&lt;/pre&gt;&quot;)
    const el = document.getElementById(id)
    if (classes) {
        el.className = el.className + &quot; &quot; + classes
    }
    do_embed(el, url)
}
&lt;/script&gt;


&lt;p&gt;I have been working on leaving github.

&lt;p&gt;One thing I liked from github was gist, including command-line upload and the ability to embed it.
I want to replace this but with codeberg. And, I think I've gotten close.
More polish wouldn't hurt, but ehhh...

&lt;p&gt;First, here's the &lt;a href=&quot;shttps://codeberg.org/api/v1/repos/jepler/junkdrawer/contents/aygdu2e9/junk.py?ref=main&quot;&gt;script for uploading&lt;/a&gt;:

&lt;p&gt;
&lt;script&gt;
do_embed_here(&quot;https://codeberg.org/api/v1/repos/jepler/junkdrawer/contents/aygdu2e9/junk.py?ref=main&quot;, &quot;language-python&quot;);
&lt;/script&gt;

&lt;p&gt;And here's an &lt;a href=&quot;https://codeberg.org/jepler/junkdrawer/src/branch/main/he58aqtn/junkembed.html&quot;&gt;example of embedding&lt;/a&gt;:

&lt;script&gt;
do_embed_here(&quot;https://codeberg.org/api/v1/repos/jepler/junkdrawer/contents/he58aqtn/junkembed.html?ref=main&quot;, &quot;language-html&quot;);
&lt;/script&gt;
</content>
</entry>
<entry>
<title>Proven Delights (and what are proofs anyway)</title>
<issued>2015-08-05T13:13:49Z</issued>
<modified>2015-08-05T13:13:49Z</modified>
<id>https://gamma.unpythonic.net/01438780429</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01438780429"/>
<content type="text/html" mode="escaped">
I won a copy of the book &lt;a href=&quot;http://hackersdelight.org/&quot;&gt;Hacker's
Delight&lt;/a&gt; from &lt;a href=&quot;http://blog.regehr.org/&quot;&gt;John Regehr&lt;/a&gt; for my entry in
his &lt;a href=&quot;http://blog.regehr.org/archives/1213&quot;&gt;nibble sort contest&lt;/a&gt;
earlier this year.

&lt;p&gt;In that thread I had heard about the &lt;a href=&quot;http://www.cprover.org/cbmc/&quot;&gt;CBMC Bounded Model Checking software&lt;/a&gt;, and it gave me the idea to combine
the two: a project to take implementations of the algorithms from Hacker's
Delight and prove the algorithms' properties with CBMC.

&lt;p&gt;I have a modest start on github, which I am calling &amp;quot;Proven Delights&amp;quot;:</content>
</entry>
<entry>
<title>mailpie moves to github</title>
<issued>2013-12-02T19:30:20Z</issued>
<modified>2013-12-02T19:30:20Z</modified>
<id>https://gamma.unpythonic.net/01386012620</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01386012620"/>
<content type="text/html" mode="escaped">

My e-mail full text search software &lt;a href=&quot;https://gamma.unpythonic.net/software/mailpie&quot;&gt;mailpie&lt;/a&gt; is
now hosted at github: &lt;a href=&quot;https://github.com/jepler/mailpie&quot;&gt;https://github.com/jepler/mailpie&lt;/a&gt;

&lt;p&gt;</content>
</entry>
</feed>
