Skip to content

Instantly share code, notes, and snippets.

View villasv's full-sized avatar

Victor Villas villasv

View GitHub Profile
@villasv
villasv / README.md
Last active August 14, 2024 16:04
YVR Crash Data Transform

YVR Crash Data Transform

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.

Instructions

0. Environment

@villasv
villasv / install.sh
Last active October 21, 2022 01:04
Rosetta Python Setup
### 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"
@villasv
villasv / iter.py
Last active November 24, 2017 17:29
funky way to bulk iterate a collection
for batch in zip_longest(*([iter(items)] * 300)):
print([i for i in batch if i is not None])
@villasv
villasv / fgv.txt
Last active May 15, 2024 16:29
Getúlio Vargas Prime
111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111111111111111111111111111111111111111111111111111111111111111111111111111
111111111188888888888888888881111111111111111111118888888888888888888811111111111
111111111118888888888888888888811111111111111118888888888888888888881111111111111
111111111111188888888888888888888111111111118888888888888888888881111111111111111
111111111111111888888888888888888811111111188888888888888888881111111111111111111
111111111111111118888888888888888888111111118888888888888881111111111111111111111
111111111111111111888888888888888888881111111111888888881111111111111111111111111
111111111111111111118888888888888888888811111111111881111111111111111111111111111