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
repo_api_link = "https://api.github.com/repos/phenopype/phenopype-lander/commits"; | |
function ModifiedDateTime() { | |
fetch(repo_api_link).then((response) => { | |
return response.json(); | |
}) | |
.then((commits) => { | |
var dat = commits[0]['commit']['committer']['date']; | |
document.getElementById('last-modified-datetime').textContent = dat.slice(0,10) + " " + dat.slice(11,19) ; | |
}); |
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
# this is not a standalone script, i.e. needs to be run from some IDE | |
import os | |
from bs4 import BeautifulSoup | |
import re | |
shared_folder_url = "" # your shared folder url | |
save_dir = "D:\\Temp\\pdfs" | |
all_urls = [] | |
for page in ["","/2", "/3", "/4"]: # if you have multiple pages |
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
import os | |
import re | |
os.chdir("E:\\PhD\\Chapters\\2_Sondes_2015") | |
file = open(os.path.join(os.getcwd(),"sondes_manuscript.txt"), encoding="utf8") | |
findings = [] | |
for line in file: |
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
import argparse | |
import os | |
import subprocess | |
import sys | |
from wand.image import Color, Image, COMPOSITE_OPERATORS | |
from wand.drawing import Drawing | |
from wand.display import display | |