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
| <aside class='pullquote-r'>This is a right pullquote</aside> | |
| <aside class='pullquote-l'>This is a left pullquote</aside> |
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
| kubectl get rs,secrets -o json --namespace old | jq '.items[].metadata.namespace = "new"' | kubectl create -f - |
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
| Thu Oct 12 15:32:56 UTC 2017 |
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
| tx7hb73y7xumb6j2qs02 |
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
| sqsaez7an4zbrj7m77wj |
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
| iWMXTW+H5/ipNDxqS+En/DwV7xIaildiC1NN+kFjQYup8CoFD29XyopvJeG9UBxe |
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 bash | |
| # remove old tarsnap archives | |
| # Copyright (c) 2015-2017 Jason W Ryan | |
| # The MIT License (MIT) http://opensource.org/licenses/MIT | |
| # number of archives to retain | |
| keep=6 | |
| machine=$(hostname) |
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
| from decimal import Decimal, ROUND_HALF_UP | |
| a = round(2.675, 2) | |
| b = Decimal(repr(2.675)).quantize(Decimal('.01'), rounding=ROUND_HALF_UP) | |
| print a, b # 2.67, 2.68 |
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
| { | |
| init: function(elevators, floors) { | |
| var waitingFloors = []; | |
| var goOnIdle = function(elevator, floor) { | |
| if (elevator.destinationDirection === "stopped") { | |
| elevator.goToFloor(floor.floorNum()); | |
| return true; | |
| } | |
| return false; |