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
convert favicon.png -define icon:auto-resize=64,48,32,16 favicon.ico |
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
function cleanup_circular(obj,stack,clones) { | |
if (!stack) { | |
stack = []; | |
} | |
if (!clones) { | |
clones = []; | |
} | |
function maybe_clone(key,new_value) { | |
if (clones.indexOf(obj) == -1) { |
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
NSString *messageToSend = [options objectForKey:@"message"]; | |
uint16_t endpoint = [[options objectForKey:@"endpoint"] integerValue]; | |
NSString *networkId = [options objectForKey:@"networkId"]; | |
bool __block sent = false; | |
[[UBUMeshBeaconManager sharedInstance] | |
sendMeshMessage:messageToSend | |
networkId:[[NSUUID alloc] initWithUUIDString:networkId] | |
toDevice:(uint16_t)endpoint |
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
def _parse_tls(data): | |
bytes = array.array('B') | |
bytes.fromstring(data) | |
p = Parser(bytes) | |
content_type = p.get(1) | |
if content_type == 0x16: | |
ssl_version = (p.get(1),p.get(1)) | |
if ssl_version[0] > 3 or ( ssl_version[0] == 3 and ssl_version[1] > 0 ): | |
packet_length = p.get(2) | |
msg_type = p.get(1) |