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/sh | |
| # Run cargo fmt check | |
| echo "Running cargo fmt check ..." | |
| cargo fmt --all -- --check | |
| if [ $? -ne 0 ]; then | |
| echo "cargo fmt check failed! Fix the errors before committing." | |
| exit 1 | |
| fi |
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
| #!/usr/bin/env python3 | |
| """ | |
| https://oeis.org/A005150 | |
| """ | |
| s = "1" | |
| seq = [s] | |
| for i in range(10): | |
| result = "" |
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
| head -c 16 /dev/urandom | hexdump -e '1/1 "%02x"' |
OlderNewer