Skip to content

Instantly share code, notes, and snippets.

View H3xept's full-sized avatar
:shipit:
Working from home

Leonardo Cascianelli H3xept

:shipit:
Working from home
View GitHub Profile
size_t custom_strlen(char* string)
{
size_t _strlen = 0;
while('\0' != *string)
{
string++;
_strlen++;
}
return _strlen;
}
### Keybase proof
I hereby claim:
* I am h3xept on github.
* I am h3xept (https://keybase.io/h3xept) on keybase.
* I have a public key whose fingerprint is 6ECD 3331 F83F C3F3 E1D0 EEE3 3EFC 2452 CF7D 1C3F
To claim this, I am signing this object:
@H3xept
H3xept / Draggable UIView
Last active August 29, 2015 14:16
I made this trying to recreate iOS assistive touch. It's pretty basic, i have added snap to borders and show/hide animation. You can find an implementation in my repository "Tweak".
@interface FloatingView : UIView
-(void)dragged:(UIPanGestureRecognizer *)sender;
-(void)snapToLeft;
-(void)snapToRight;
-(void)snapToBottom;
-(void)snapToTop;
-(void)collapse;
-(void)show;