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::process::Command; | |
| use libc; | |
| use clap::{App,Arg,ArgMatches}; | |
| fn commify(mut val: i64) -> String { | |
| if val.abs() < 1_000 { return format!("{}", val); } | |
| if val.abs() < 1_000_000 { return format!("{},{:03}", val/1000, val.abs() % 1000); } | |
| let mut vec = Vec::new(); | |
| while val > 1000 { vec.push(val % 1000); val /= 1000; } |
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/perl | |
| use strict; use warnings; use 5.010; | |
| use IHeartFortran;# Allow "$foo .EQV. $bar" constructs | |
| say 1 .EQV. 1; | |
| say 1 .EQV. 2; | |
| say 1 .NEQV. 1; | |
| say 1 .NEQV. 2; |