Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| - (void)handleError:(NSError *)error { | |
| NSString *errorMessage = [error localizedDescription]; | |
| UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Error Message" | |
| message:errorMessage | |
| delegate:self | |
| cancelButtonTitle:@"Cancel" | |
| otherButtonTitles:@"Retry", nil]; | |
| [alertView show]; | |
| [alertView release]; | |
| } |
| /* | |
| Distributed under The MIT License: | |
| http://opensource.org/licenses/mit-license.php | |
| 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 to use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to |
| SSH_USER = 'root' | |
| SSH_HOST = 'www.example.com' | |
| SSH_DIR = '/var/www/html/www.example.com' | |
| desc "Build the website from source" | |
| task :build do | |
| puts "## Building website" | |
| status = system("middleman build --clean") | |
| puts status ? "OK" : "FAILED" | |
| end |
| # CheckOutActive - Check the active window out for modification | |
| # | |
| # Usage: Called by a userdefined menu item | |
| # | |
| # CheckOutActive uses the ProjectInfo command to determine the | |
| # parent project for the file open as the Active window. Once this | |
| # project has been determined, the file open as the Active window | |
| # can be properly checked out. | |
| # | |
| # © Apple Computer, Inc. 1988 |
| ########################################## | |
| # | |
| # c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
| # | |
| # Version 2.82 | |
| # | |
| # Latest Change: | |
| # - MORE tweaks to get the iOS 10+ and 9- working | |
| # - Support iOS 10+ | |
| # - Corrected typo for iOS 1-10+ (thanks @stuikomma) |
| # | |
| # c.f. StackOverflow question/answer here: http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
| # | |
| # Version 2.5 | |
| # | |
| # Latest Change: | |
| # - The "copy headers" section now respects the build setting for the location of the public headers | |
| # - Opens the directory with the universal library after build (Can be annoying) | |
| # | |
| # Purpose: |
| expr -- (void)printf("[%s, %s]\n",(char *) object_getClassName(*(long*)($esp+4)), (char *) *(long *)($esp+8) ) |
| #import <Foundation/Foundation.h> | |
| void method1(NSArray *numbers) | |
| { | |
| NSArray *sorted = [numbers sortedArrayUsingSelector:@selector(compare:)]; | |
| } | |
| void method2(NSArray *numbers) | |
| { | |
| NSNumber *max=[numbers valueForKeyPath:@"@max.doubleValue"]; |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| // Photoshop Script to Create iPhone Icons from iTunesArtwork | |
| // | |
| // WARNING!!! In the rare case that there are name collisions, this script will | |
| // overwrite (delete perminently) files in the same folder in which the selected | |
| // iTunesArtwork file is located. Therefore, to be safe, before running the | |
| // script, it's best to make sure the selected iTuensArtwork file is the only | |
| // file in its containing folder. | |
| // | |
| // Copyright (c) 2010 Matt Di Pasquale | |
| // Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com |