Skip to content

Instantly share code, notes, and snippets.

View mamnun's full-sized avatar

Mamnun Bhuiyan mamnun

View GitHub Profile
@mamnun
mamnun / osx-setup.md
Created November 6, 2015 05:43 — forked from zenorocha/.hyper.js
Setup Mac OS X Mavericks (10.9)

Setup Mac OS X

I'm in a hospital in Spain and my MacBook was stolen.

Hospital Commit

Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.

1. Run Software Update

@mamnun
mamnun / struct.swift
Created March 9, 2017 13:27
Reference types in swift structs
struct AdConfig {
var prefetchCount:Int
var wrapperView:UIView?
static let `default`: AdConfig = AdConfig(prefetchCount: 10, wrapperView: UIView(frame:CGRect.zero))
}
print(AdConfig.default.wrapperView?.backgroundColor) // prints nil
var customConfig = AdConfig.default
customConfig.wrapperView?.backgroundColor = UIColor.red