This file contains hidden or 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
| As of iOS 11/macOS High Sierra, and only including ones in Foundation and CoreFoundation | |
| Strings: | |
| _NSCFString - a CFStringRef or CFMutableStringRef. This is the most common type of string object currently. | |
| - May have 8 bit (ASCII) or 16 bit (UTF-16) backing store | |
| _NSCFConstantString - a compile time constant CFStringRef, like you'd get with @"foo" | |
| - May also be generated by dynamic string creation if matches a string in a pre-baked table of common strings called the StringROM | |
| NSBigMutableString - an NSString backed by a CFStorage (https://github.com/opensource-apple/CF/blob/master/CFStorage.h) for faster handling of very large strings | |
| NSCheapMutableString - a very limited NSMutableString that allows for zero-copy initialization. Used in NSFileManager for temporarily wrapping stack buffers. |
This file contains hidden or 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 subprocess, os, random, re | |
| from Tkinter import * | |
| from turtle import * | |
| import turtle | |
| def ping(host): | |
| process = os.popen("ping -c 1 -n -w 1 "+host, "r") | |
| output = process.read() | |
| if "unknown host" in output: | |
| print host+" | unknown | 0" |