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
R_LIBS_USER=venv/library |
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
# Install R2MLwiN (and rbugs - a dependency that's also archived on CRAN) | |
# You need MLwiN (Windows) or mlnscript (Linux/Mac) to use MLwiN from R | |
# Download these from (respectively): | |
# - https://www.bristol.ac.uk/cmm/software/mlwin/ | |
# - https://www.cmm.bris.ac.uk/clients/softwaredownload/ | |
# You may need to install additional dependencies | |
# If that's the case you'll get an error when you run this script | |
# that lists missing dependencies |
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
## Pastes Lexis surface diagrams and HAPC plots together | |
import os | |
import glob | |
from subprocess import call | |
from PIL import Image, ImageDraw, ImageFont | |
# Get country code list | |
countries = glob.glob("mort_*.png") | |
countries = sorted(countries) |
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
# Material by Steven Bernard (https://youtu.be/rUShqJde2CA) | |
import numpy as np | |
from qgis.core import * | |
import qgis.utils | |
import sys, os, imp | |
import fTools | |
path = os.path.dirname(fTools.__file__) | |
ftu = imp.load_source('ftools_utils', os.path.join(path,'tools','ftools_utils.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
#!/bin/bash | |
curl 'https://www.nomisweb.co.uk/api/v01/dataset/def.sdmx.json' | \ | |
jq '.[]["keyfamilies"]["keyfamily"][] | {id: .id, description: .description.value, name: .name.value}' \ | |
> nomisweb-datasets.txt |