On Windows, set VS Code as your default editor
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 | |
# http://www.createdbypete.com/articles/simple-way-to-find-broken-links-with-wget/ | |
URL=http://pyr.ch/mooc-led-relecture/plan-mooc-led.html | |
echo "Vérification des liens de $URL" | |
wget \ | |
--spider \ |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""timeit decorator | |
Source: | |
https://stackoverflow.com/a/27737385/3057377 | |
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
if __name__ == "__main__": | |
try: | |
main() | |
except(KeyboardInterrupt, SystemExit): | |
print("\b\b\033[K") | |
print("\nThat’s all folks") |
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
# ** | |
# .bash_profile | |
# * | |
source ~/.bashrc | |
shopt -s expand_aliases | |
# ** | |
# prompt PS1 | |
# * | |
# source /usr/local/bin/prompt.sh |
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
# MÉTROLOGIE | |
Vocabulaire international des termes fondamentaux et généraux de métrologie | |
Deuxième édition 1993 | |
ISBN 92-67-01075-1 | |
## 5. CARACTÉRISTIQUES DES INSTRUMENTS DE MESURE |
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
# source https://itsfoss.com/mount-exfat/ | |
sudo add-apt-repository universe | |
sudo apt update | |
sudo apt install exfat-fuse exfat-utils |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Find characters with ASCII code greater than 127. | |
usage: | |
cd /DIRECTORY_TO_CHECK/ | |
python /PATH_TO/check_char.py |
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
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html | |
# Create | |
conda create --name myenv | |
conda create -n myenv python=3.7 | |
conda create -n myenv python=3.7 scipy=0.15.0 astroid babel |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Display disk stats | |
""" | |
import shutil | |
total, used, free = shutil.disk_usage("/") | |
print("DISK SPACE") |
OlderNewer