Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # pylint: disable=import-error,invalid-name | |
| """ | |
| Train image embeddings model from scratch using contrastive learning. | |
| Adapted from Hadsell, Chopra & LeCun (2005) | |
| https://yann.lecun.com/exdb/publis/pdf/hadsell-chopra-lecun-06.pdf | |
| and Underfitted's 'Training a model to generate image embeddings' | |
| https://underfitted.svpino.com/p/training-a-model-to-generate-image | |
| """ |
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
| # pylint: disable=line-too-long | |
| """ | |
| A simple Streamlit app for exploring the AlphaFold Protein Structure Database 🧬🔍 | |
| Want to learn more? Check out the 'AlphaFold: A Practical Guide' online tutorial | |
| https://www.ebi.ac.uk/training/online/courses/alphafold/ | |
| """ | |
| from urllib.request import urlretrieve |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # pylint: disable=redefined-outer-name | |
| r""" | |
| Explore the language gap with Amazon Bedrock 💬🧭⛰️ | |
| _ . , . . | |
| * / \_ * / \_ _ * * /\'__ * | |
| / \ / \, (( . _/ / \ *'. | |
| . /\/\ /\/ :' __ \_ ` _^/ ^/ `--. | |
| / \/ \ _/ \-'\ * /.' ^_ \_ .'\ * | |
| /\ .- `. \/ \ /==~=-=~=-=-;. _/ \ -. `_/ \ | |
| / `-.__ ^ / .-'.--\ =-=~_=-=~=^/ _ `--./ .-' `- |
This file has been truncated, but you can view the full file.
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
| CENAS PORTUGUESAS | |
| I | |
| A Capital! | |
| (começos de uma carreira) | |
| Eça de Queirós |
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
| # pylint: disable=invalid-name,line-too-long | |
| r""" | |
| ______ _____ _____ _______ _____ _ _ | |
| | ____| __ \ /\ / ____|__ __| __ \ /\ | \ | | | |
| | |__ | |__) | / \ | | | | | |__) | / \ | \| | | |
| | __| | _ / / /\ \| | | | | _ / / /\ \ | . ` | | |
| | | | | \ \ / ____ \ |____ | | | | \ \ / ____ \| |\ | | |
| |_| |_| \_\/_/ \_\_____| |_| |_| \_\/_/ \_\_| \_| | |
| FRACTRAN is a Turing-complete programming language invented by the mathematican John Conway. |
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
| # Adapted from Yusuke Endoh's (AKA mame) talk at RubyConf ♦️ | |
| # 'Esoteric, Obfuscated, Artistic Programming in Ruby' | |
| # https://www.youtube.com/watch?v=6K7EmeptEHo | |
| # Numbers with symbols | |
| puts "@"=~/$/ # => 1 | |
| puts "@@"=~/$/ # => 2 | |
| # Letters with numbers | |
| puts "" << 72 << 101 << 108 \ |
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
| """ | |
| Playing around with p-adic numbers and modular arithmetic. | |
| Inspired by the '1 Billion is Tiny in an Alternate Universe' video | |
| https://www.youtube.com/watch?v=j5s0h42GfvM | |
| """ | |
| import matplotlib.pyplot as plt | |
| # How high a power do we want to go |
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
| # pylint: disable=invalid-name,non-ascii-name,line-too-long | |
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "numpy", | |
| # "matplotlib", | |
| # "Pillow", | |
| # ] | |
| # /// |