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/python3 | |
| import termios | |
| import fcntl | |
| import sys | |
| if __name__ != '__main__': | |
| exit | |
| if len(sys.argv) != 2: |
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/bash | |
| # Declare an array of string with type | |
| declare -a Regions=( | |
| "us-east-1" | |
| "us-east-2" | |
| "us-west-1" | |
| "us-west-2" | |
| #"af-south-1" | |
| "ap-east-1" |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>API Player</title> | |
| <script src='//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script> | |
| <style> | |
| textarea { | |
| width: 500px; | |
| height: 300px; |
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
| // call this | |
| usort($myArray, function($a, $b) { | |
| return $a['order'] - $b['order']; | |
| }); | |
| // ends up sorting in reverse order, or | |
| $myArray = array_reverse($myArray); |