app: CopyKitty: copy-paste between multiple devices

Need to copy a snippet or url or a long phone number?
You can email it to yourself..
Or you can use CopyKitty

It's a microfication of Apple's new Handoff system for Macs and iDevices

1. Goto http://cat.nur.xyx
2. You'll get an auto-generated copy kitty url
If you want to choose your own url - simply replace the auto-genearted hash in the end of the url with your choice of hash (i.e.
3. in both devices and save/load texts between them as much as you like!

I use it a lot to copy url's from my desktop to my phone

have fun!

snippet: objc: validate an email address

- (BOOL) validateEmailWithString:(NSString*)email {
    NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"
    NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", emailRegex]; 
    return [emailTest evaluateWithObject:email];


snippet: objc: string contains strings[]

objective-c snippet that checks if your input string contains any of the string in the array

if ([ @[@"first" , @"second", @"third"] indexOfObject:inputString] != NSNotFound) {
// contains

snippet: JS: string replace all

javascript snippet for replacing all occurrences of a string within a string:
"this is the input string".replace(/this/g, "with that");