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
@interface Sandwich: NSObject | |
@end | |
NS_SWIFT_NAME(Sandwich.Preferences) | |
@interface SandwichPreferences: NSObject | |
@end | |
typedef NS_ENUM(NSInteger, SandwichBreadType) { | |
} NS_SWIFT_NAME(SandwichPreferences.BreadType); |
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
NS_SWIFT_NAME(RecorderControlStyle) | |
@interface SRRecorderControlStyle: NSObject | |
@end | |
NS_SWIFT_NAME(RecorderControlStyle.Components) | |
@interface SRRecorderControlStyleComponents: NSObject | |
@end | |
typedef NS_ENUM(NSUInteger, SRRecorderControlStyleComponentsAppearance) | |
{} NS_SWIFT_NAME(RecorderControlStyle.Components.Appearance); |
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
var style: RecorderControlStyle? | |
var components: RecorderControlStyle.Components? | |
var appearance: RecorderControlStyle.Components.Appearance? |
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
@interface SRRecorderControlStyle: NSObject | |
@end | |
@interface SRRecorderControlStyleComponents: NSObject | |
@end | |
typedef NS_ENUM(NSUInteger, SRRecorderControlStyleComponentsAppearance) {}; |
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
@interface Sandwich: NSObject | |
@end | |
NS_SWIFT_NAME(Sandwich.Preferences) | |
@interface SandwichPreferences: NSObject | |
@end | |
typedef NS_ENUM(NSInteger, SandwichBreadType) { | |
} NS_SWIFT_NAME(SandwichPreferences.BreadType); |
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
# See https://www.terraform.io | |
# --- | |
# Variables | |
# --- | |
# Deep Learning AMI https://aws.amazon.com/marketplace/pp/B077GCH38C | |
variable "ami" { | |
default = "ami-0656a055aec8320d6" | |
} |
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 deprecated import * | |
# --- Class --- | |
# Class can be deprecated | |
# -> Every instantiation, subclassing or usage as a metaclass | |
# will issue a warning | |
@deprecated | |
class Foo: pass |
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 python3 | |
""" | |
Needs the requests and dnspython packages. | |
""" | |
import ipaddress | |
import re | |
import dns.resolver |
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 botocore.waiter | |
import botocore.session | |
session = botocore.session.get_session() | |
client = session.create_client('ec2') | |
VOLUME_ID = ... # e.g. 'vol-049df61146c4d7901' | |
INSTANCE_ID = ... # e.g. 'i-1234567890abcdef0' | |
DEVICE = ... # e.g. '/dev/xvdba' |
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
{ | |
"Volumes": [ | |
{ | |
"AvailabilityZone": "us-east-1a", | |
"Attachments": [ | |
{ | |
"AttachTime": "2013-12-18T22:35:00.000Z", | |
"InstanceId": "i-1234567890abcdef0", | |
"VolumeId": "vol-049df61146c4d7901", | |
"State": "attached", |