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. |
As configured in my dotfiles.
start new:
tmux
start new with session name:
This playbook has been removed as it is now very outdated. |
// | |
// 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; |
-(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; |
[ | |
{ "keys": ["ctrl+shift+x"], "command": "tidy_xml" }, | |
{ "keys": ["ctrl+shift+j"], "command": "prettify_json" } | |
] |
<?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'): |
#!/usr/bin/env ruby | |
# Requires ImageMagick: `brew install imagemagick` | |
# Requires version.sh from https://gist.github.com/osteslag/1089407 | |
# | |
# Set RGM_STAMP_VERSION_ON_ICONS=1 in your build settings to enable/disable | |
# stamping on Debug/Relase configurations. | |
# | |
# Make base unstamped versions Icon.base.png, &c. in the source tree. The | |
# script will make stamped versions Icon.png, &c. It relies on Xcode to copy |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
UI- and App Frameworks Evangelist - Jake Behrens, behrens@apple.com, twitter: @Behrens | |
- What's new in Cocoa | |
- Accessibility in iOS | |
- Building User Interfaces for iOS 7 | |
- Getting Started with UIKit Dynamics | |
- What's new in Cocoa Touch | |
- What's New With Multitasking | |
- Best Practices for Cocoa Animation | |
- Improving Power Efficiency with App Nap | |
- Introducing Text Kit |