Created
December 24, 2020 14:10
-
-
Save sksat/7e0864d6bea67f908ecbf67bf19613f0 to your computer and use it in GitHub Desktop.
FizzBuzz
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
import os | |
os.system(""" | |
bash << EOS | |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
source $HOME/.cargo/env;cargo new fizzbuzz;cd fizzbuzz | |
echo Zm4gbWFpbigpe2ZvciBpIGluIDEuLjEwMXttYXRjaChpJTMsaSU1KXsoMCwgMCkgPT4gcHJpbnRsbiEoIkZpenpCdXp6IiksKDAsIF8pID0+IHByaW50bG4hKCJGaXp6IiksKF8sIDApPT5wcmludGxuISgiQnV6eiIpLF89PnByaW50bG4hKCJ7fSIsIGkpLH19fQo= | base64 -d > src/main.rs | |
cargo run | |
EOS | |
""") |
.ONESHELL:
SHELL=python
SHELLFLAGS=
.PHONY: fizzbuzz
fizzbuzz:
import os
os.system("""
bash << EOS
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $$HOME/.cargo/env;cargo new fizzbuzz;cd fizzbuzz
echo Zm4gbWFpbigpe2ZvciBpIGluIDEuLjEwMXttYXRjaChpJTMsaSU1KXsoMCwgMCkgPT4gcHJpbnRsbiEoIkZpenpCdXp6IiksKDAsIF8pID0+IHByaW50bG4hKCJGaXp6IiksKF8sIDApPT5wcmludGxuISgiQnV6eiIpLF89PnByaW50bG4hKCJ7fSIsIGkpLH19fQo= | base64 -d > src/main.rs
cargo run
EOS
""")
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -L 'https://git.io/JLXFS' | python3