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
| use std::fmt; | |
| #[derive(Debug)] | |
| struct BinTree<T> | |
| where T: Ord { | |
| root: Option<Box<BinNode<T>>>, | |
| } | |
| #[derive(Debug)] | |
| struct BinNode<T> |
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
| <# | |
| .SYNOPSIS | |
| Downloads Rust installers for Windows. | |
| .DESCRIPTION | |
| Tries to download the latest available release for a given version of the Rust compiler. It does this by checking the date the currently installed compiler was built against the timestamp of the remote installer. These do not always match up, so do not be surprised if this script keeps trying to re-download the same archive. | |
| Once downloaded, provided you specified either 'exe' or 'msi', the script will run the installer for you. |
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 | |
| import sys | |
| if len(sys.argv) != 2: | |
| print('Usage: gen-code.py LIMIT') | |
| sys.exit(1) | |
| LIMIT = int(sys.argv[1]) | |
| print( |
OlderNewer