with mysql pgsql intl support
$ brew install php --with-apache --with-mysql --with-pgsql --with-intl
date.timezone = Europe/Vienna
// | |
// UIViewController+MBSensitiveInformationInScreenshotPrevention.h | |
// | |
// Created by Manuel Binna on 05.05.11. | |
// Copyright 2011 Manuel Binna. All rights reserved. | |
// | |
@interface UIViewController (MBSensitiveInformationInScreenshotPrevention) |
# xcode-build-timestamp.sh | |
# @desc Set a timestamp as the build number when the project is compiled. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Target dependencies" | |
buildNumber=$(date +%Y%m%d%H%M) |
// Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
// Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
// Licensed under MIT (http://opensource.org/licenses/MIT) | |
// | |
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
// PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
#import <objc/runtime.h> | |
#import <objc/message.h> |
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
# http://stackoverflow.com/questions/1549578/git-and-pbxproj | |
# http://stackoverflow.com/a/18275082/470964 | |
*.pbxproj -crlf -diff -merge |
// Implements the solution for solving "snapback" found in | |
// Chapter 8 of "iOS Core Animation Advanced Techniques" by Nick Lockwood | |
// without the need to use setDisableActions: to override the implicit animation, | |
// instead passing in the implicit animation key in addAnimation:forKey: | |
// With setDisableActions | |
- (void)applyBasicAnimation:(CABasicAnimation *)animation toLayer:(CALayer *)layer | |
{ | |
//set the from value (using presentation layer if available) | |
animation.fromValue = [layer.presentationLayer ?: layer valueForKeyPath:animation.keyPath]; |
// | |
// ViewController.m | |
// AVPlayerCaching | |
// | |
// Created by Anurag Mishra on 5/19/14. | |
// Sample code to demonstrate how to cache a remote audio file while streaming it with AVPlayer | |
// | |
#import "ViewController.h" | |
#import <AVFoundation/AVFoundation.h> |
To use this hook:
prepare-commit-msg
file at .git/hooks/prepare-commit-msg
and edit as neededchmod +x .git/hooks/prepare-commit-msg
git config branch.master.mergeoptions "--no-ff"
NOTE: after a failed merge from a forbidden branch, the working tree will still be in a MERGING state. To discard the local working copy state, run:
git reset --merge
import Foundation | |
extension String | |
{ | |
var length: Int { | |
get { | |
return countElements(self) | |
} | |
} | |