A new Riff-radio.org site with a static approach.

hello.py.html 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="description" content="hello.py">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title>hello.py | Riff</title>
  8. <link href="../assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
  9. <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
  10. <link rel="canonical" href="http://media.pagelibre.org/riff/site/listings/hello.py.html">
  11. <link rel="icon" href="../favicon.ico" sizes="16x16">
  12. <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
  13. </head>
  14. <body>
  15. <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
  16. <!-- Menubar -->
  17. <div class="blog-masthead">
  18. <div class="container">
  19. <!-- This keeps the margins nice -->
  20. <nav class="blog-nav" role="navigation"><a href="../index.html" class="blog-nav-item">Accueil</a>
  21. <a href="../pages/about.html" class="blog-nav-item">About Riff</a>
  22. <a href="../rss.xml" class="blog-nav-item">RSS feed</a>
  23. </nav>
  24. </div>
  25. <!-- /.container -->
  26. </div>
  27. <!-- End of Menubar -->
  28. <div class="container" id="content" role="main">
  29. <div class="body-content">
  30. <div class="blog-header">
  31. <h1 class="blog-title">
  32. <a href="http://media.pagelibre.org/riff/site/">
  33. <span id="blog-title">Riff</span>
  34. </a>
  35. </h1>
  36. <p class="lead blog-description">Riff la radio rock</p>
  37. </div>
  38. <!--Body content-->
  39. <div class="row">
  40. <div class="col-sm-8 blog-main">
  41. <nav class="breadcrumbs"><ul class="breadcrumb">
  42. <li><a href=".">listings</a></li>
  43. <li>hello.py</li>
  44. </ul></nav><h1>hello.py
  45. <small><a href="hello.py">(Source)</a></small>
  46. </h1>
  47. <div class="code"><table class="codetable">
  48. <tr>
  49. <td class="linenos linenodiv"><a href="#listingshellopy-1"><code data-line-number=" 1"></code></a></td>
  50. <td class="code"><code><a name="listingshellopy-1"></a><span class="ch">#!/usr/bin/python</span>
  51. </code></td>
  52. </tr>
  53. <tr>
  54. <td class="linenos linenodiv"><a href="#listingshellopy-2"><code data-line-number=" 2"></code></a></td>
  55. <td class="code"><code><a name="listingshellopy-2"></a>
  56. </code></td>
  57. </tr>
  58. <tr>
  59. <td class="linenos linenodiv"><a href="#listingshellopy-3"><code data-line-number=" 3"></code></a></td>
  60. <td class="code"><code><a name="listingshellopy-3"></a><span class="kn">import</span> <span class="nn">sys</span>
  61. </code></td>
  62. </tr>
  63. <tr>
  64. <td class="linenos linenodiv"><a href="#listingshellopy-4"><code data-line-number=" 4"></code></a></td>
  65. <td class="code"><code><a name="listingshellopy-4"></a>
  66. </code></td>
  67. </tr>
  68. <tr>
  69. <td class="linenos linenodiv"><a href="#listingshellopy-5"><code data-line-number=" 5"></code></a></td>
  70. <td class="code"><code><a name="listingshellopy-5"></a>
  71. </code></td>
  72. </tr>
  73. <tr>
  74. <td class="linenos linenodiv"><a href="#listingshellopy-6"><code data-line-number=" 6"></code></a></td>
  75. <td class="code"><code><a name="listingshellopy-6"></a><span class="k">def</span> <span class="nf">hello</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s1">'world'</span><span class="p">):</span>
  76. </code></td>
  77. </tr>
  78. <tr>
  79. <td class="linenos linenodiv"><a href="#listingshellopy-7"><code data-line-number=" 7"></code></a></td>
  80. <td class="code"><code><a name="listingshellopy-7"></a>    <span class="n">greeting</span> <span class="o">=</span> <span class="s2">"hello "</span> <span class="o">+</span> <span class="n">name</span>
  81. </code></td>
  82. </tr>
  83. <tr>
  84. <td class="linenos linenodiv"><a href="#listingshellopy-8"><code data-line-number=" 8"></code></a></td>
  85. <td class="code"><code><a name="listingshellopy-8"></a>    <span class="nb">print</span><span class="p">(</span><span class="n">greeting</span><span class="p">)</span>
  86. </code></td>
  87. </tr>
  88. <tr>
  89. <td class="linenos linenodiv"><a href="#listingshellopy-9"><code data-line-number=" 9"></code></a></td>
  90. <td class="code"><code><a name="listingshellopy-9"></a>
  91. </code></td>
  92. </tr>
  93. <tr>
  94. <td class="linenos linenodiv"><a href="#listingshellopy-10"><code data-line-number="10"></code></a></td>
  95. <td class="code"><code><a name="listingshellopy-10"></a>
  96. </code></td>
  97. </tr>
  98. <tr>
  99. <td class="linenos linenodiv"><a href="#listingshellopy-11"><code data-line-number="11"></code></a></td>
  100. <td class="code"><code><a name="listingshellopy-11"></a><span class="k">if</span> <span class="vm">__name__</span> <span class="o">==</span> <span class="s2">"__main__"</span><span class="p">:</span>
  101. </code></td>
  102. </tr>
  103. <tr>
  104. <td class="linenos linenodiv"><a href="#listingshellopy-12"><code data-line-number="12"></code></a></td>
  105. <td class="code"><code><a name="listingshellopy-12"></a>    <span class="n">hello</span><span class="p">(</span><span class="o">*</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">:])</span>
  106. </code></td>
  107. </tr>
  108. </table></div>
  109. </div>
  110. <div class="col-sm-3 col-sm-offset-1 blog-sidebar">
  111. <div class="sidebar-module sidebar-module-inset">
  112. <h4>About</h4>
  113. <div id="shoutcastdiv">
  114. <script type="text/javascript">
  115. refreshdiv();
  116. </script>
  117. </div>
  118. </div>
  119. <div class="sidebar-module">
  120. <h4>Links</h4>
  121. <ol class="list-unstyled">
  122. <li><a href="http://getbootstrap.com/examples/blog/">Bootstrap Blog Theme</a></li>
  123. <li><a href="https://getnikola.com/">Nikola</a></li>
  124. <li><a href="https://twitter.com/mdo">@mdo</a></li>
  125. <li><a href="https://twitter.com/Kwpolska">@Kwpolska</a></li>
  126. <li><a href="https://twitter.com/GetNikola">@GetNikola</a></li>
  127. </ol>
  128. </div>
  129. </div>
  130. <!--End of body content-->
  131. </div>
  132. </div>
  133. </div>
  134. <footer class="blog-footer" id="footer">
  135. Contents © 2023 <a href="mailto:contact@riff-radio.org">Riff</a> - Powered by <a href="https://getnikola.com" rel="nofollow">Nikola</a>
  136. </footer><script src="../assets/js/all-nocdn.js"></script><!-- fancy dates --><script>
  137. moment.locale("en");
  138. fancydates(0, "YYYY-MM-DD HH:mm");
  139. </script><!-- end fancy dates --><script>
  140. baguetteBox.run('div#content', {
  141. ignoreClass: 'islink',
  142. captions: function(element) {
  143. return element.getElementsByTagName('img')[0].alt;
  144. }});
  145. </script><script type="text/javascript" src="../refresh.js"></script>
  146. </body>
  147. </html>