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
# Released by rdb under the Unlicense (unlicense.org) | |
# Based on information from: | |
# https://www.kernel.org/doc/Documentation/input/joystick-api.txt | |
import os, struct, array | |
from fcntl import ioctl | |
# Iterate over the joystick devices. | |
print('Available devices:') |
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
#!/usr/bin/env bash | |
# Author: Diego Valle-Jones | |
# Web: http://www.diegovalle.net | |
# Script to download shapefiles from 2020 Mexican census (including demographic data) | |
# tested on ubuntu 20.04 | |
# Exit on error, undefined and prevent pipeline errors | |
set -euo pipefail | |
IFS=$'\n\t' | |
# The directory from which the script is running |
OlderNewer