start new:
tmux
start new with session name:
tmux new -s myname
| import Foundation | |
| extension Decodable { | |
| init(_ json: String) throws { | |
| self = try JSONDecoder().decode(Self.self, from: json.data(using: .utf8)!) | |
| } | |
| } | |
| struct Thing: Codable { | |
| let text: String |
| command alias uikit expr @import UIKit | |
| command alias foundation expr @import Foundation |
| Here are some of the books I've read and liked for one reason or another | |
| Inside the Machine by Jon Stokes | |
| The C Programming Language by Brian Kernighan & Dennis Richte | |
| Understanding and Using C Pointers by Richard Reese | |
| Design Patterns by Erich Gamma, Richard Helm, Ralph Johnson & John Vlissides (Gang of Four) | |
| Cocoa Programming for Mac OS X (Big Nerd Ranch) | |
| Advanced Mac OS X Programming (Big Nerd Ranch) | |
| Operating Systems Design and Implementation (The MINIX book) | |
| The Design and Implementation of the FreeBSD Operating System by Marshall Kirk McKusick, George V. Neville-Neil |
| function fish_prompt --description 'Write out the prompt' | |
| # Just calculate these once, to save a few cycles when displaying the prompt | |
| if not set -q __fish_prompt_hostname | |
| set -g __fish_prompt_hostname (hostname|cut -d . -f 1) | |
| end | |
| if not set -q __fish_prompt_normal | |
| set -g __fish_prompt_normal (set_color normal) | |
| end |
| # Mac OS X | |
| *.DS_Store | |
| # Xcode | |
| *.pbxuser | |
| *.mode1v3 | |
| *.mode2v3 | |
| *.perspectivev3 | |
| *.xcuserstate | |
| project.xcworkspace/ |
| #include "copyfile.h" | |
| typedef enum { | |
| _NotStarted = 0, | |
| _InProgress, | |
| _Finished, | |
| } _State; | |
| @implementation BAVAppDelegate | |
| { |
| ReactiveCocoa Framework | |
| https://github.com/github/ReactiveCocoa | |
| Martin Fowler - Presentation Model | |
| http://martinfowler.com/eaaDev/PresentationModel.html | |
| WPF with MVVM (Windows Development, but still should be understandable enough even if you don't know C#) | |
| http://www.youtube.com/watch?v=EpGvqVtSYjs&list=FLPVec4HUpvjWVFChhHm6gdg&index=2 | |
| Introduction to Reactive Extensions for .NET |
| dtrace -l | tr -d '[0-9]' | tr -s ' ' | cut -d' ' -f2 | sort -u |
| import Cocoa; | |
| export MyFramework.DataStructures; | |
| //Objective-C Modules | |
| @class Queue : NSObject | |
| //implicitly because we are exporting group names we have a "namespace" of sorts | |
| //which is why this class doesn't have a prefix. Since we have modules now @class | |
| //can serve a different purpose than it currently serves |