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
<a href="#" style=" | |
text-decoration: none; | |
font-family: helvetica; | |
font-weight: bold; | |
color: #ddd; | |
background-color: black; | |
height: 30px; | |
display: inline-block; | |
padding: 1px 12px 0 0; | |
border-radius: 5px; |
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
sudo yum -y install amazon-efs-utils | |
sudo mount -t efs -o tls,accesspoint=<efs accesspoint> <efs id>:/ efs |
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
extension Array: RawRepresentable where Element: Codable { | |
public init?(rawValue: String) { | |
guard let data = rawValue.data(using: .utf8), | |
let result = try? JSONDecoder().decode([Element].self, from: data) | |
else { | |
return nil | |
} | |
self = result | |
} |
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
struct ProductDetail: View { | |
@AppStorage private var isLocal: Bool | |
private var product: GumroadProduct | |
init(product: GumroadProduct) { | |
self.product = product | |
self._isLocal = AppStorage(wrappedValue: false, "LOCAL_LIBRARY_PRESENCE_PRODUCTID_\(product.id)") | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#export | |
from nicHelper.pynamodb import SuperModel | |
from pynamodb.attributes import JSONAttribute, NumberAttribute, UnicodeAttribute | |
class PaymentRecordTable(SuperModel): | |
data = JSONAttribute(null=True) | |
timestamp = NumberAttribute(hash_key=True) | |
userId = UnicodeAttribute() | |
def __init__(self, hash_key=None, range_key=None, _user_instantiated=True, **kwargs): |
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
os.environ['AWS_PROFILE'] = 'tenxor' | |
os.environ['AWS_DEFAULT_PROFILE'] = 'tenxor' |
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
extension Type: Codable { | |
public init(from decoder: Decoder) throws { | |
self = try Type(rawValue: decoder.singleValueContainer().decode(RawValue.self)) ?? .unknown | |
} | |
} |