A simple utility to convert the "Lower Mainland Crashes" dataset by ICBC into a nested JSON object for ease of use on the go - like via this iOS Shortcut.
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
### x86 | |
# Install Rosetta | |
softwareupdate --install-rosetta | |
# Install Homebrew | |
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
alias brew86="arch -x86_64 /usr/local/bin/brew" | |
# Install Pyenv | |
brew86 install bzip2 gettext openssl readline sqlite3 xz zlib tcl-tk | |
brew86 install pyenv | |
alias pyenv86="arch -x86_64 pyenv" |
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
for batch in zip_longest(*([iter(items)] * 300)): | |
print([i for i in batch if i is not None]) |
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
111111111111111111111111111111111111111111111111111111111111111111111111111111111 | |
111111111111111111111111111111111111111111111111111111111111111111111111111111111 | |
111111111111111111111111111111111111111111111111111111111111111111111111111111111 | |
111111111188888888888888888881111111111111111111118888888888888888888811111111111 | |
111111111118888888888888888888811111111111111118888888888888888888881111111111111 | |
111111111111188888888888888888888111111111118888888888888888888881111111111111111 | |
111111111111111888888888888888888811111111188888888888888888881111111111111111111 | |
111111111111111118888888888888888888111111118888888888888881111111111111111111111 | |
111111111111111111888888888888888888881111111111888888881111111111111111111111111 | |
111111111111111111118888888888888888888811111111111881111111111111111111111111111 |