Skip to content

Instantly share code, notes, and snippets.

View mtnbarreto's full-sized avatar
🎯
Focusing

Martin Barreto mtnbarreto

🎯
Focusing
View GitHub Profile
@mtnbarreto
mtnbarreto / ArgoAdapterForOpera.swift
Created April 12, 2016 17:12
Adapter to make Argo JSON parsing library works with Opera
extension Argo.Decodable where Self.DecodedType == Self, Self: OperaDecodable {
static func decode(json: AnyObject) throws -> Self {
let decoded = decode(JSON.parse(json))
switch decoded {
case .Success(let value):
return value
case .Failure(let error):
throw error
}
@mtnbarreto
mtnbarreto / MCSwipeTableViewCell
Last active December 25, 2015 12:19
MCSwipeTableViewCell
Pod::Spec.new do |s|
s.name = 'MCSwipeTableViewCell'
s.version = '1.1.1'
s.author = { 'Ali Karagoz' => 'mail@alikaragoz.net' }
s.homepage = 'https://github.com/alikaragoz/MCSwipeTableViewCell'
s.summary = 'Mailbox app style UITableViewCell.'
s.license = 'MIT'
s.source = { :git => 'https://github.com/mtnbarreto/MCSwipeTableViewCell.git', :branch => 'preventGesture' }
s.source_files = 'MCSwipeTableViewCell'
s.platform = :ios
require 'rake'
Pod::Spec.new do |s|
s.name = "XLKit"
s.version = "0.2.1"
s.license = {
:type => 'Copyright',
:text => <<-LICENSE
Copyright 2014 Xmartlabs. All rights reserved.