This file contains 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 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 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 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 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 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 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 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 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; |
This file contains 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
Traceback (most recent call last): | |
File "/Users/cedric/Projects/FloatingCube/epos/odoo-temp/openerp/http.py", line 539, in _handle_exception | |
return super(JsonRequest, self)._handle_exception(exception) | |
File "/Users/cedric/Projects/FloatingCube/epos/odoo-temp/openerp/http.py", line 576, in dispatch | |
result = self._call_function(**self.params) | |
File "/Users/cedric/Projects/FloatingCube/epos/odoo-temp/openerp/http.py", line 312, in _call_function | |
return checked_call(self.db, *args, **kwargs) | |
File "/Users/cedric/Projects/FloatingCube/epos/odoo-temp/openerp/service/model.py", line 113, in wrapper | |
return f(dbname, *args, **kwargs) | |
File "/Users/cedric/Projects/FloatingCube/epos/odoo-temp/openerp/http.py", line 309, in checked_call |