Skip to content

Commit

Permalink
[Post] Python3 pour macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
itamago committed Apr 5, 2020
1 parent 6432386 commit f9dcdd7
Show file tree
Hide file tree
Showing 12 changed files with 829 additions and 265 deletions.
70 changes: 37 additions & 33 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ <h2>
<li><a href="/page/2/">2</a></li>



<li><a href="/page/3/">3</a></li>





Expand All @@ -169,6 +173,35 @@ <h2>



<article class="hentry">
<header>

<div class="entry-image-index">
<a href="/post/2020-04-05-python3-pour-macos/" title="Python3 pour macOS"><img src="/images/banner_xcode.jpg" alt="Python3 pour macOS"></a>
</div>

<div class="entry-meta">

<span class="entry-date date published updated"><time datetime="2020-04-05 00:00:00 &#43;0000 UTC">2020-04-05</time></span>


</div>

<h1 class="entry-title"><a href="/post/2020-04-05-python3-pour-macos/" rel="bookmark" title="Python3 pour macOS" itemprop="url">Python3 pour macOS</a></h1>

</header>
<div class="entry-content">
<p>Les différentes manières d&rsquo;installer Python3 sur macOS : <a href="https://opensource.com/article/19/5/python-3-default-mac">The right and wrong way to set Python 3 as default on a Mac</a></p>
<p>En résumé, voici ce qu&rsquo;il faut faire.</p>
<pre><code>$ brew install pyenv
$ pyenv install 3.7.7
$ pyenv global 3.7.7
$ pyenv version
$ echo -e 'if command -v pyenv 1&gt;/dev/null 2&gt;&amp;1; then\n eval &quot;$(pyenv init -)&quot;\nfi' &gt;&gt; ~/.zshrc
</code></pre>
</div>
</article>

<article class="hentry">
<header>

Expand Down Expand Up @@ -352,39 +385,6 @@ <h1 class="entry-title"><a href="/post/2017-06-17-serre-permaculture/" rel="book
</div>
</article>

<article class="hentry">
<header>

<div class="entry-image-index">
<a href="/post/2016-06-18-maths-et-kungfu/" title="Maths et KungFu"><img src="/images/banner_kungfu.jpg" alt="Maths et KungFu"></a>
</div>

<div class="entry-meta">

<span class="entry-date date published updated"><time datetime="2016-06-18 00:00:00 &#43;0000 &#43;0000">2016-06-18</time></span>


</div>

<h1 class="entry-title"><a href="/post/2016-06-18-maths-et-kungfu/" rel="bookmark" title="Maths et KungFu" itemprop="url">Maths et KungFu</a></h1>

</header>
<div class="entry-content">
<p>J&rsquo;ai enfin pris le temps de remplir deux pages concernant les mathématiques et le KungFu:</p>
<ul>
<li><a href="/mathematiques/">Page des Mathématiques</a></li>
<li><a href="/kung-fu/">Page du KungFu</a></li>
</ul>
<p>Vous y trouverez des cours de maths, ainsi qu&rsquo;une petite video d&rsquo;entrainement de KungFu.
Je vais alimenter ces pages régulièrement (et quand j&rsquo;ai le temps!)</p>


<iframe width="560" height="315" src="https://www.youtube.com/embed/TefZOdxFSFY" frameborder="0" allowfullscreen> </iframe>


</div>
</article>




Expand All @@ -405,6 +405,10 @@ <h1 class="entry-title"><a href="/post/2016-06-18-maths-et-kungfu/" rel="bookmar
<li><a href="/page/2/">2</a></li>



<li><a href="/page/3/">3</a></li>





Expand Down
11 changes: 11 additions & 0 deletions index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
<atom:link href="https://www.itamago.com/index.xml" rel="self" type="application/rss+xml" />


<item>
<title>Python3 pour macOS</title>
<link>https://www.itamago.com/post/2020-04-05-python3-pour-macos/</link>
<pubDate>Sun, 05 Apr 2020 00:00:00 +0000</pubDate>

<guid>https://www.itamago.com/post/2020-04-05-python3-pour-macos/</guid>
<description>Les différentes manières d&amp;rsquo;installer Python3 sur macOS : The right and wrong way to set Python 3 as default on a Mac
En résumé, voici ce qu&amp;rsquo;il faut faire.
$ brew install pyenv $ pyenv install 3.7.7 $ pyenv global 3.7.7 $ pyenv version $ echo -e &#39;if command -v pyenv 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1; then\n eval &amp;quot;$(pyenv init -)&amp;quot;\nfi&#39; &amp;gt;&amp;gt; ~/.zshrc </description>
</item>

<item>
<title>SublimeText : convertion automatique tabs-to-spaces</title>
<link>https://www.itamago.com/post/2020-04-05-sublime-convert-tabs-to-spaces/</link>
Expand Down
182 changes: 45 additions & 137 deletions page/2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,56 @@ <h2>
<li><strong class="current-page">2</strong></li>



<li><a href="/page/3/">3</a></li>







<li><a href="/page/3/" class="btn">Next</a></li>

</ul>
</div>




<article class="hentry">
<header>

<div class="entry-image-index">
<a href="/post/2016-06-18-maths-et-kungfu/" title="Maths et KungFu"><img src="/images/banner_kungfu.jpg" alt="Maths et KungFu"></a>
</div>

<div class="entry-meta">

<span class="entry-date date published updated"><time datetime="2016-06-18 00:00:00 &#43;0000 &#43;0000">2016-06-18</time></span>


</div>

<h1 class="entry-title"><a href="/post/2016-06-18-maths-et-kungfu/" rel="bookmark" title="Maths et KungFu" itemprop="url">Maths et KungFu</a></h1>

</header>
<div class="entry-content">
<p>J&rsquo;ai enfin pris le temps de remplir deux pages concernant les mathématiques et le KungFu:</p>
<ul>
<li><a href="/mathematiques/">Page des Mathématiques</a></li>
<li><a href="/kung-fu/">Page du KungFu</a></li>
</ul>
<p>Vous y trouverez des cours de maths, ainsi qu&rsquo;une petite video d&rsquo;entrainement de KungFu.
Je vais alimenter ces pages régulièrement (et quand j&rsquo;ai le temps!)</p>


<iframe width="560" height="315" src="https://www.youtube.com/embed/TefZOdxFSFY" frameborder="0" allowfullscreen> </iframe>


</div>
</article>

<article class="hentry">
<header>

Expand Down Expand Up @@ -557,143 +596,6 @@ <h1 class="entry-title"><a href="/post/2015-11-28-envie-de-dessin/" rel="bookmar
</div>
</article>

<article class="hentry">
<header>

<div class="entry-image-index">
<a href="/post/2015-11-27-first-post/" title="Le blog est né !"><img src="/images/banner_cigogne.jpg" alt="Le blog est né !"></a>
</div>

<div class="entry-meta">

<span class="entry-date date published updated"><time datetime="2015-11-27 00:00:00 &#43;0000 &#43;0000">2015-11-27</time></span>


</div>

<h1 class="entry-title"><a href="/post/2015-11-27-first-post/" rel="bookmark" title="Le blog est né !" itemprop="url">Le blog est né !</a></h1>

</header>
<div class="entry-content">
<p>Aujourd&rsquo;hui le blog est né !</p>
<h2 id="ce-qui-a-guidé-mon-choix">Ce qui a guidé mon choix</h2>
<p>J&rsquo;ai choisi un système de <em>blog statique</em> :</p>
<ul>
<li>pas de base de données,</li>
<li>écriture des textes en markdown,</li>
<li>facile à maintenir,</li>
<li>génération des pages en ligne de commande</li>
</ul>
<p>Simple et rapide :)</p>
<blockquote>
<p>“La simplicité est la sophistication suprême.” - Leonardo Da Vinci</p>
</blockquote>
<hr>
<h2 id="laffichage-de-code-source">L&rsquo;affichage de code source</h2>
<p>Ce genre de blog est véritablement pratique pour écrire du <code>code</code>.<br>
C&rsquo;est mon premier critère de choix.<br>
Par exemple les <strong>snipets</strong> peuvent s'écrire très facilement et le code reste lisible :</p>
<pre><code>class ALIGN8 Vec2
{
public:
// Data
union
{
float vals[2];
struct { float x,y; };
struct { float width,height; };
simd2f v64;
};

// Constructors
inline Vec2 ();
inline Vec2 (const Vec2 &amp;a);
inline Vec2 (const float nx, const float ny);

// Methods
float Length ();
float SqLength ();
Vec2 &amp; Normalize ();
inline Vec2 &amp; Multiply (const Vec2 &amp;);
};
</code></pre><p>Plusieurs langages sont supportés.</p>
<hr>
<h2 id="les-ressources-graphiques">Les ressources graphiques</h2>
<p>Il est aussi très simple d&rsquo;inclure des images ou des vidéos dans ce blog.<br>
Quelques lignes suffisent.</p>


<figure class="half">
<a href="http://placehold.it/1200x600.jpg"><img src="http://placehold.it/600x300.jpg" alt=""></a>
<a href="http://placehold.it/1200x600.jpg"><img src="http://placehold.it/600x300.jpg" alt=""></a>
</figure>

<p>Et une vidéo :</p>


<iframe width="560" height="315" src="//www.youtube.com/embed/SU3kYxJmWuQ" frameborder="0"> </iframe>

<hr>
<h2 id="affichage-de-tables">Affichage de tables</h2>
<table>
<thead>
<tr>
<th align="left">Header1</th>
<th align="center">Header2</th>
<th align="right">Header3</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">cell1</td>
<td align="center">cell2</td>
<td align="right">cell3</td>
</tr>
<tr>
<td align="left">cell4</td>
<td align="center">cell5</td>
<td align="right">cell6</td>
</tr>
<tr>
<td align="left">cell1</td>
<td align="center">cell2</td>
<td align="right">cell3</td>
</tr>
<tr>
<td align="left">cell4</td>
<td align="center">cell5</td>
<td align="right">cell6</td>
</tr>
<tr>
<td align="left">Foot1</td>
<td align="center">Foot2</td>
<td align="right">Foot3</td>
</tr>
</tbody>
</table>
<hr>
<h2 id="des-boutons">Des boutons</h2>


<div markdown="0" style="text-align: center"><a href="" class="btn btn-success">Un bouton</a> <a href="" class="btn btn-info">Un second bouton</a></div>

<p>Aussi des remarques :</p>
<div class="notice">
Boite à remarques !
</div>
<hr>
<h2 id="support-de-mathjax">Support de MathJax</h2>
<pre><code>$$ z = r \cdot (\sin{\phi} + \cos{\phi} \cdot i) $$
</code></pre>
<p>donne:
$$ z = r \cdot (\sin{\phi} + \cos{\phi} \cdot i) $$</p>
<p>On peut aussi écrire en &ldquo;inline&rdquo; : $a^n + b^2 = c^2$.</p>
<p><strong>Ex</strong>: Si $a \ne 0$, alors il y a deux solutions à \(ax^2 + bx + c = 0\) et elles sont:</p>
<p>$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$</p>

</div>
</article>




Expand All @@ -716,11 +618,17 @@ <h2 id="support-de-mathjax">Support de MathJax</h2>
<li><strong class="current-page">2</strong></li>



<li><a href="/page/3/">3</a></li>







<li><a href="/page/3/" class="btn">Next</a></li>

</ul>
</div>

Expand Down
Loading

0 comments on commit f9dcdd7

Please sign in to comment.