Skip to content

Instantly share code, notes, and snippets.

Alexandre alexandre-g

  • Gold Coast
Block or report user

Report or block alexandre-g

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
@alexandre-g
alexandre-g / PassData.swift
Created Dec 14, 2017
Injecting data to view controller Swift 4
View PassData.swift
// Inspired by https://github.com/icanzilb/EventBlankApp
extension UIStoryboard {
func instantiateViewController<T: UIViewController>(_ type: T.Type) -> T {
return instantiateViewController(withIdentifier: type.classIdentifier) as! T
}
}
extension UIViewController {
static var classIdentifier: String { return String(describing: self) }
@alexandre-g
alexandre-g / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.