As configured in my dotfiles.
start new:
tmux
start new with session name:
| <?php | |
| $user_agent = $_SERVER['HTTP_USER_AGENT']; | |
| switch( true ){ | |
| case preg_match('/iphone|ipad/si',$user_agent): | |
| $url = 'https://itunes.apple.com/us/app/whatsapp-messenger/id310633997?mt=8'; | |
| break; | |
| case stristr($user_agent, 'android'): |
| [ | |
| { "keys": ["ctrl+shift+x"], "command": "tidy_xml" }, | |
| { "keys": ["ctrl+shift+j"], "command": "prettify_json" } | |
| ] |
| -(void)generateImageOfSize:(CGSize)imageSize | |
| { | |
| // Determine integer size of image | |
| NSInteger imageIntWidth = ceilf(imageSize.width); | |
| NSInteger imageIntHeight = ceilf(imageSize.height); | |
| // Determine coordinate maxima | |
| assert(zoomFactor > 0.0f); | |
| float coordMaxX = coordMinX + imageIntWidth / zoomFactor; | |
| float coordMaxY = coordMinY + imageIntHeight / zoomFactor; |
| // | |
| // Copyright (c) 2012-2015 Cédric Luthi / @0xced. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| #if TARGET_OS_SIMULATOR | |
| static const char *fakeCarrier; | |
| static const char *fakeTime; |
| This playbook has been removed as it is now very outdated. |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| CIAdditionCompositing - Adds color components to achieve a brightening effect. This filter is typically used to add highlights and lens flare effects. | |
| CIAffineClamp - Performs an affine transform on a source image and then clamps the pixels at the edge of the transformed image, extending them outwards. This filter performs similarly to the CIAffineTransform filter except that it produces an image with infinite extent. You can use this filter when you need to blur an image but you want to avoid a soft, black fringe along the edges. | |
| CIAffineTile - Applies an affine transform to an image and then tiles the transformed image. | |
| CIAffineTransform - Applies an affine transform to an image. You can scale, translate, or rotate the input image. You can also apply a combination of these operations. | |
| CIAreaAverage - Calculates the average color for the specified area in an image, returning the result in a pixel. | |
| CIAreaHistogram - Calculates a histogram for the specified area in an image, returning the result in a 1D image. |