Skip to content

Instantly share code, notes, and snippets.

Maysam Shahsavari maysamsh

Block or report user

Report or block maysamsh

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
View UIImage+Ext.swift
//
// UIImage+Ext.swift
// frazeit
//
// Created by Maysam Shahsavari on 9/24/19.
// Copyright © 2019 Maysam Shahsavari. All rights reserved.
//
import Foundation
import UIKit
@maysamsh
maysamsh / FibonacciSequence.playground
Last active Jan 26, 2019
A FibonacciSequence type
View FibonacciSequence.playground
import Foundation
struct FibsIterator: IteratorProtocol {
private var state:(UInt, UInt) = (0, 1)
private var upTo: Int
private var counter = 0
init(upTo: Int) {
self.upTo = upTo
}
@maysamsh
maysamsh / UISearchBar+Ext.swift
Last active Sep 26, 2019
A small extension for UISearchBar which shows an UIActivityIndicator while searching
View UISearchBar+Ext.swift
//
// UISearchBar+Ext.swift
// frazeit
//
// Created by Maysam Shahsavari on 7/30/18.
// Updated on 9/26/19.
// Copyright © 2018 Maysam Shahsavari. All rights reserved.
//
import Foundation
You can’t perform that action at this time.