This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo Running $BASH_SOURCE | |
#set | egrep GIT | |
echo PWD is $PWD | |
# In a C/C++ file formatted like below, update these information (first occurence) | |
# | |
#/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import date | |
from datetime import timedelta | |
today = date.today() | |
ludovic = date(1974, 9, 17) | |
vingtmille = ludovic + timedelta(20000) | |
print("20000 jours Ludovic : ", vingtmille) | |
# prints 2029-06-20 :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get "Astronomy Picture of the Day" automatically from https://apod.nasa.gov/ | |
# Saved file is today-date(YYYY-MM-DD) + filename (example: 2020-04-28_Kepler90Illustration_Kepler_1080.jpg) | |
# Requires: | |
# - lxml | |
# - requests | |
# - beautifulsoup4 | |
import requests | |
from bs4 import BeautifulSoup | |
from datetime import date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import date | |
start = date(2020, 3, 13) | |
end = date(2020, 6, 1) | |
diff = end - start | |
print("lockdow duration=", diff) |
The Wandboard is a Cortex-A9 ARM device sporting a single, dual, or quad core Freescale i.MX6 SoC