type OrderRevenue interface {
MarshalMyself() ([]byte, error)
}
type Anonymous struct {}
func (a Anonymous) MarshalMyself() ([]byte, error) {
// implementation's up to you
return []byte{}, nil
}
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
import _thread | |
def pid_routine(): | |
global kp | |
global ki | |
global kd | |
while True: | |
# calculate here |
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot certonly --standalone
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
import boto3 | |
import deepdiff | |
import copy | |
import json | |
class SimpleTable(boto3.resources.factory.dynamodb.Table): | |
def __init__(self, table, partition_key = 'pk', sort_key = None): | |
self.table = table | |
self.partition_key = partition_key | |
self.sort_key = sort_key |