Skip to content

Instantly share code, notes, and snippets.

View pablocarrillo's full-sized avatar

Pablo Carrillo pablocarrillo

View GitHub Profile

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@pablocarrillo
pablocarrillo / PCFancyButton.h
Last active December 22, 2015 20:09
This Gist work with [UIButton+AFNetworking.h]
//
// PCFancyButton.h
// RoundButton Test
//
// Created by Pablo Isidoro Carrillo Alvarez on 11/09/2013.
// Copyright (c) 2013 Pablo Isidoro Carrillo Alvarez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
//
// UIButton+AFNetworking.h
//
// Created by David Pettigrew on 6/12/12.
// Copyright (c) 2012 ELC Technologies. All rights reserved.
//
// Based upon UIImageView+AFNetworking.h
//
// Copyright (c) 2011 Gowalla (http://gowalla.com/)
@pablocarrillo
pablocarrillo / stringSerializerForQuery:
Created September 6, 2013 09:34
String serializer to change between parameters on array to coma separated string on HTML address
/*!
*\brief Method to serialize arrays
* This method serialized elements from an array an fill the space with the urlcode for querys
*\param array an array of nsstrings to be serialized
*\return NSString* a string with all the elements on the array serialized
*/
+ (NSString*)stringSerializerForQuery:(NSArray*)array{
NSMutableString *returnString;
@pablocarrillo
pablocarrillo / arrayOfIndexPathFromRange:Section:
Created September 6, 2013 09:31
Fast range of indexPath utility
/*!
*\brief Method to get an array of index path from a NSRange
* This method can be used to get an array of indexPath for table updates,
* just one range and section each time.
*\param range The range you need for the indexPath
*\param the section you want for the indexPath
*\return A Mutable array of NSIndexPath
*/
+ (NSMutableArray*)arrayOfIndexPathFromRange:(NSRange)range section:(NSUInteger)section{