Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
new blog
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed May 1, 2020
1 parent 38b286c commit 6df9dea
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 5 deletions.
40 changes: 40 additions & 0 deletions _doc/sphinxdoc/source/blog/2020/2020-05-01_pycon.rst
@@ -0,0 +1,40 @@

.. blogpost::
:title: Quelques vidéos de PyCon
:keywords: pycon, conférences
:date: 2020-05-01
:categories: papers

Première vidéo à propos de "privacy" ou protection des données :
`tensorflow_privacy <https://github.com/tensorflow/privacy>`_,
`Practical privacy-preserving machine learning in Python
<https://www.youtube.com/watch?v=NUk6QN02UxQ>`_.

Seconde vidéo sur comment construire une application
pour avoir en temps réel l'état de ses plantes :
`How to build an intelligent "indoor garden"
<https://www.youtube.com/watch?v=8STo1-rRV1E>`_.
L'application s'appui sur `circuitpython
<https://circuitpython.org/>`_.
La suivante est pour ceux qui font l'école à la maison :
`Mixing a Raspberry Pi with Python into a 5th Grade Science Fair Project
<https://www.youtube.com/watch?v=YB9aGx5zpto>`_.

Le titre de la suivante est intriguant :
`It's Officially Legal so Let's Scrape the Web
<https://www.youtube.com/watch?v=RUQWPJ1T6Zc>`_.
Il s'agit de scrapper wikipedia.

J'ai un petit faible pour la suivante et l'écriture de poème
automatique :
`Pyambic Pentameter: generating rhyming and metered poems
<https://www.youtube.com/watch?v=2ymZVpuqvSc>`_.

La programmation parallèle, c'est parfois ennuyeux,
mais écouter la parallélisation en temps réelle,
c'est pas mal :
`AsyncIO + Music <https://www.youtube.com/watch?v=02CLD-42VdI>`_.

La liste des vidéos :
`PyCon 2020
<https://www.youtube.com/channel/UCMjMBMGt0WJQLeluw6qNJuA/videos?view=0&sort=dd&shelf_id=1>`_.
2 changes: 1 addition & 1 deletion src/ensae_teaching_cs/__init__.py
Expand Up @@ -11,7 +11,7 @@
if sys.version_info[0] < 3:
raise ImportError("ensae_teaching_cs only works with Python 3")

__version__ = "0.9.2966"
__version__ = "0.9.2975"
__author__ = "Xavier Dupré"
__github__ = "https://github.com/sdpython/ensae_teaching_cs"
__url__ = "http://www.xavierdupre.fr/app/ensae_teaching_cs/helpsphinx/index.html"
Expand Down
7 changes: 3 additions & 4 deletions src/ensae_teaching_cs/special/tsp_kruskal.py
Expand Up @@ -143,8 +143,7 @@ def repartition_zone(villes, zone_taille, ask_zone=False):

if ask_zone:
return zones, X, Y, mx, my, Zmax, zone
else:
return zones, X, Y, mx, my, Zmax
return zones, X, Y, mx, my, Zmax


def voisinage_zone(z, Zmax, X, Y):
Expand Down Expand Up @@ -203,8 +202,8 @@ def tri_distance(u, v):
else:
return 0

zones, X, Y, mx, my, Zmax = repartition_zone(
villes, zone_taille=zone_taille)
rz = repartition_zone(villes, zone_taille=zone_taille)
zones, X, Y, mx, my, Zmax = rz[:6]

# calcul des distances
li = []
Expand Down

0 comments on commit 6df9dea

Please sign in to comment.