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
#! /bin/bash | |
# | |
# build-xnu-4570.1.46.sh | |
# Brandon Azad | |
# | |
# A script showing how to build XNU version 4570.1.46 on MacOS High Sierra | |
# 10.13 with Xcode 9. | |
# | |
# Note: This process will OVERWRITE files in Xcode's MacOSX10.13.sdk. Make a | |
# backup of this directory first! |
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
//: Playground - noun: a place where people can play | |
struct User { | |
var name: String | |
init() { | |
name = "" | |
} | |
} |
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
all: | |
clang machoman.c -dynamiclib -o libmachoman.dylib | |
clean: | |
rm -rf libmachoman.dylib |
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
//: Playground - noun: a place where people can play | |
typealias CompletionBlock = (Bool) -> () | |
class BlockStorage { | |
var blocks = [CompletionBlock]() | |
func addBlock(block: CompletionBlock) { | |
blocks.append(block) |