Skip to content

Instantly share code, notes, and snippets.

View cpv's full-sized avatar
🖥️
breaking things'); DROP TABLE [Github].[dbo].[Status];--

Matthew Tucker cpv

🖥️
breaking things'); DROP TABLE [Github].[dbo].[Status];--
  • Brisbane, AUS
View GitHub Profile
@cpv
cpv / pingturtle.py
Last active August 27, 2015 05:00 — forked from rwos/pingturtle.py
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"
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.
import SwiftUI
struct HarmonicButton: View {
var body: some View {
Button(
action: {},
label: {}
)
.frame(width: 240.0, height: 70.0)
.buttonStyle(HarmonicStyle())