This file contains hidden or 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
| WARNING_LIMIT=2022 | |
| ERROR_LIMIT=2021 | |
| main(){ | |
| # if $1 exist | |
| if [ -n "$1" ];then | |
| ERROR_LIMIT=$1 | |
| WARNING_LIMIT=$((ERROR_LIMIT+1)) | |
| fi |
This file contains hidden or 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
| function dlText() { | |
| let collectedText; | |
| const html = document.querySelectorAll('html'); | |
| for(let i = 0; i < html.length; i++){ | |
| collectedText += html[i].innerText; | |
| } | |
| collectedText = collectedText.replace('undefined', ''); | |
| let newStr = JSON.stringify(collectedText); | |
| newStr = newStr.substring(0, newStr.length-1); | |
| newStr = newStr.substring(1); |
This file contains hidden or 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 | |
| if [ "$1" == "init" ]; then | |
| git submodule init | |
| git submodule update | |
| exit 0 | |
| elif [ "$1" == "update" ]; then | |
| echo -n " Êtes vous sur d'être dans le dossier demo/ et d'être sur la bonne branche ? [y/N] " | |
| read answer | |
| if [ "$answer" == "y" ] || [ "$answer" == "Y" ]; then |
This file contains hidden or 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 | |
| # Usage : bash update-constructeur.sh [acf-project-path] [branch-to-check] | |
| if [ "$1" == "-h" ] || [ "$1" == "help" ] | |
| then | |
| echo | |
| echo "Usage : bash update-constructeur.sh [acf-project-path] [branch-to-check]" | |
| echo " [acf-project-path] : chemin du projet ACF" | |
| echo " [branch-to-check] : branche à vérifier" | |
| echo " [help] : affiche cette aide" |
This file contains hidden or 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
| <!-- particles.js container --> | |
| <div id="particles-js"></div> | |
| <!-- stats - count particles --> | |
| <div class="count-particles"> | |
| <span class="js-count-particles">--</span> particles </div> | |
| <!-- particles.js lib - https://github.com/VincentGarreau/particles.js --> | |
| <script src="http://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script> | |
| <!-- stats.js lib --> | |
| <script src="http://threejs.org/examples/js/libs/stats.min.js"></script> |
This file contains hidden or 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
| Text="" | |
| for char in '-.,\n': | |
| Text=Text.replace(char,' ') | |
| Text = Text.lower() | |
| word_list = Text.split() | |
| d = {} |
This file contains hidden or 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
| #Usage : bash getLastTag.sh <[GIT_USERNAME]/[GIT_REPO]> | |
| content=$(wget https://github.com/$1/releases -q -O -) | |
| lastRelease=$(echo "$content" | tr ' ' '\n' | grep -n /$1/releases/tag/ | grep -oP '(?<=tag\/)[^"]*') |
This file contains hidden or 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
| import socket | |
| s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
| s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) | |
| #s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) | |
| s.setsockopt(socket.SOL_IP, socket.IP_MULTICAST_TTL, 20) | |
| s.setsockopt(socket.SOL_IP, socket.IP_MULTICAST_LOOP, 1) |
This file contains hidden or 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
| # Require : PIL / Pillow (pip) | |
| # Require : Pytesseract (pip) | |
| import sys | |
| try: | |
| from PIL import Image | |
| except ImportError: | |
| import Image | |
| import pytesseract |