Timeline for Detect heat waves
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 13, 2018 at 15:14 | comment | added | mazzy | -E is short vertion of -End shitch. Powershell allows you to use a significant part of the parameter name. It work :) | |
Jun 13, 2018 at 15:05 | comment | added | AdmBorkBork |
What does -E do? I'm not familiar with that.
|
|
Jun 9, 2018 at 11:13 | comment | added | mazzy |
103 bytes $b=@();$args|%{if($_-ge25){$b+=$_}else{,$b;$b=@()}}-E{,$b}|?{$_.count-ge5-and($_|?{$_-ge30}).count-ge3}
|
|
Jun 9, 2018 at 10:57 | comment | added | mazzy |
109 bytes with arrays. save $args|%{if($_-ge25){$b+=$_}else{,$b;$b=@()}}-E{,$b}-B{,($b=@())}|?{$_.count-ge5-and($_|?{$_-ge30}).count-ge3} as get-heatWave.ps1 . Test script regex101.com/r/lXdvIs/2
|
|
Jun 9, 2018 at 8:46 | comment | added | mazzy |
-2 bytes ...{$a=-split$_;$a.count-ge5-and($a|?{$_-ge30}).count-ge3}
|
|
Jun 9, 2018 at 6:45 | comment | added | mazzy |
try to use $args instead param($a) and $a
|
|
Apr 23, 2018 at 20:23 | history | answered | AdmBorkBork | CC BY-SA 3.0 |