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
| var simplifyPath = function( points, tolerance ) { | |
| // helper classes | |
| var Vector = function( x, y ) { | |
| this.x = x; | |
| this.y = y; | |
| }; | |
| var Line = function( p1, p2 ) { | |
| this.p1 = p1; |
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
| function linearmap(inMin, inMax, outMin, outMax) { | |
| return function (x) { | |
| return (x - inMin) * (outMax - outMin) / (inMax - inMin) + outMin; | |
| }; | |
| } |
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
| aws stepfunctions list-executions \ | |
| --state-machine-arn arn:aws:states:...:covidAutoUpdater \ | |
| --status-filter RUNNING \ | |
| --query "executions[*].{executionArn:executionArn}" \ | |
| --output text | \ | |
| xargs -I {} aws stepfunctions stop-execution \ | |
| --execution-arn {} |
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
| convert -delay 50 -loop 0 $(ls frame*.png | sort --version-sort) seq_frames.gif |
OlderNewer