Skip to content

Instantly share code, notes, and snippets.

Tommie N. Carter, Jr., BSIT, MBA mingsai

Block or report user

Report or block mingsai

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mingsai
mingsai / SwiftReflection.playground
Created Feb 7, 2017
Swift Playground Code for Reflection (Swift 3.0.1)
View SwiftReflection.playground
//: Playground - noun: a place where people can play
import UIKit
var str = "Mirror playground Swift 3.0.1"
struct User {
var givenName:String
var familyName:String
var loginName:String
View gist:bd7bf65394ac88555bbb545354c64138
Javascript Samples from Kato @ jsFiddle.net:
http://jsfiddle.net/user/katowulf/fiddles/
@mingsai
mingsai / osx-software-update-urls.txt
Created Aug 3, 2016 — forked from geoff-codes/osx-software-update-urls.txt
URLs of the index files used by the software update client on OS X
View osx-software-update-urls.txt
10.3 (Panther):
https://swscan.apple.com/scanningpoints/scanningpointX.xml
10.4 (Tiger):
https://swscan.apple.com/content/catalogs/index.sucatalog
https://swscan.apple.com/content/catalogs/index-1.sucatalog
10.5 (Leopard):
https://swscan.apple.com/content/catalogs/others/index-leopard.merged-1.sucatalog
@mingsai
mingsai / CocoaDesignPatterns.md
Last active Aug 1, 2016
Cocoa Design Patterns from Apple Documentation
View CocoaDesignPatterns.md

Cocoa Design Patterns

Many of the architectures and mechanisms of the Cocoa environment make effective use of design patterns: abstract designs that solve recurring problems in a particular context. This chapter describes the major implementations of design patterns in Cocoa, focusing in particular on Model-View-Controller and object modeling. This chapter’s main purpose is to give you a greater awareness of design patterns in Cocoa and encourage you to take advantage of these patterns in your own software projects.

What Is a Design Pattern?

A design pattern is a template for a design that solves a general, recurring problem in a particular context. It is a tool of abstraction that is useful in fields like architecture and engineering as well as software development. The following sections summarize what design patterns are, explains why they’re important for object-oriented design, and looks at a sample design pattern.

A Solution to a Problem in a Context As a developer, you might already be familiar wit

View Generics.md

Swift Weekly - Issue 06 - The Swift Runtime (Part 4) - Generics

Vandad Nahavandipoor
http://www.oreilly.com/pub/au/4596
Email: vandad.np@gmail.com
Blog: http://vandadnp.wordpress.com
Skype: vandad.np

Introduction

View Operators.md

Swift Weekly - Issue 04 - The Swift Runtime (Part 3) - Operators

Vandad Nahavandipoor
http://www.oreilly.com/pub/au/4596
Email: vandad.np@gmail.com
Blog: http://vandadnp.wordpress.com
Skype: vandad.np

Introduction

View Enumerations.md

Swift Weekly - Issue 03 - The Swift Runtime (Part 2) - Enumerations

Vandad Nahavandipoor
http://www.oreilly.com/pub/au/4596
Email: vandad.np@gmail.com
Blog: http://vandadnp.wordpress.com
Skype: vandad.np

Introduction

View Runtime.md

Swift Weekly - Issue 02 - The Swift Runtime (Part 1)

Vandad Nahavandipoor
http://www.oreilly.com/pub/au/4596
Email: vandad.np@gmail.com
Blog: http://vandadnp.wordpress.com
Skype: vandad.np

Introduction

View Pointers.md

Swift Weekly - Issue 01 - Pointers

Note: all source codes are inside playground files. The source of this page is in the .pages file which is right in this folder. Please download either the .pages or the .pdf or the many other formats that have been provided in this folder for Swift Weekly. The markdown for this page has been hand-written and converted from the .pages file.

Introduction

Apple’s intention with Swift was to start making pointers very abstract, as though pointers were not abstract enough already! To me they are fine, since I grew up with C and a lot of Assembly (x86, NASM and MASM). But to those of us who aren’t familiar with pointers, working with them in Swift is a very daunting challenge. Or is it?

I assume that you already know what a pointer is and you want to learn about pointers in Swift. Now let’s say that you have an integer of type Int and you want to change its value via a pointer:

View FluentInterfaces.md

Swift Weekly - Issue 05 - The Builder Pattern and Fluent Interface

Vandad Nahavandipoor
http://www.oreilly.com/pub/au/4596
Email: vandad.np@gmail.com
Blog: http://vandadnp.wordpress.com
Skype: vandad.np

Introduction

You can’t perform that action at this time.