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
# | |
# Make 1024 binary numbers | |
# | |
import itertools | |
binary_numbers = [''.join(digits) | |
for digits in itertools.product(*[['0', '1'] for _ in range(10)])] | |
print(binary_numbers) | |
# | |
# Use types to enforce types of values used in an LRU cache |
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
# Display more rows than the limit from a dataframe | |
with pd.option_context("display.max_rows", 1000): | |
display(my_data_frame) |
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
#!/bin/bash | |
set -euo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | |
mkdir ~/src ~/bin | |
cd ~/src | |
# | |
# General tools | |
# | |
sudo add-apt-repository ppa:neovim-ppa/unstable |
NewerOlder