Add notes

This commit is contained in:
2024-03-19 09:01:13 +03:00
parent 83c053f7ee
commit 90c4d46607
41 changed files with 141 additions and 48 deletions

View File

@ -58,7 +58,7 @@ There seem to be many more of these:
"@type": "BlogPosting",
"headline": "June, 2022",
"url": "https://alanorth.github.io/cgspace-notes/2022-06/",
"wordCount": "1788",
"wordCount": "1789",
"datePublished": "2022-06-06T09:01:36+03:00",
"dateModified": "2023-04-27T13:10:13-07:00",
"author": {
@ -321,7 +321,7 @@ There seem to be many more of these:
<li>Spent some more time working on my <code>countries-to-csv.py</code> script to fix some logic errors</li>
<li>Then re-export the UN M.49 countries to a clean list because the one I did yesterday somehow has errors:</li>
</ul>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>csvcut -d &#39;;&#39; -c &#39;ISO-alpha2 Code,Country or Area&#39; ~/Downloads/UNSD\ —\ Methodology.csv | sed -e &#39;1s/ISO-alpha2 Code/alpha2/&#39; -e &#39;1s/Country or Area/UN M.49 Name/&#39; &gt; ~/Downloads/un-countries.csv
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>$ csvcut -d <span style="color:#e6db74">&#39;;&#39;</span> -c <span style="color:#e6db74">&#39;ISO-alpha2 Code,Country or Area&#39;</span> ~/Downloads/UNSD<span style="color:#ae81ff">\ </span><span style="color:#ae81ff">\ </span>Methodology.csv | sed -e <span style="color:#e6db74">&#39;1s/ISO-alpha2 Code/alpha2/&#39;</span> -e <span style="color:#e6db74">&#39;1s/Country or Area/UN M.49 Name/&#39;</span> &gt; ~/Downloads/un-countries.csv
</span></span></code></pre></div><ul>
<li>Check the number of lines in each file:</li>
</ul>