View ProgrammaticTableView.swift
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 AppKit | |
import PlaygroundSupport | |
let tableViewFrame = NSRect(x: 0, y: 0, width: 250, height: 500) | |
class TableViewController: NSViewController { | |
let tableView: NSTableView = { | |
let tableView = NSTableView() | |
// By default a tableview has column spacing. We only have |
View ReorderTableView.swift
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 Cocoa | |
import PlaygroundSupport | |
class BackgroundView: NSView { | |
override func draw(_ dirtyRect: NSRect) { | |
NSColor.underPageBackgroundColor.set() | |
dirtyRect.fill() | |
} | |
} |
View gist:ab78da97254fd1e2b2f0abc9578d8c56
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
TOKEN is from ADCDownloadAuth cookie (get it from web inspector storage) | |
URL is resolved file url on the CDN download.developer.apple.com | |
wget -x --header "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \ | |
--header "Upgrade-Insecure-Requests: 1" \ | |
--header "Cookie: ADCDownloadAuth={TOKEN}" \ | |
--header "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_1 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0 Mobile/14B72 Safari/602.1" \ | |
--header "Accept-Language: en-us" "{URL}" |
View 2014 UCR Counties with more than 70 percent ORIs reporting.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.