- Add a new Target of kind Aggregate, name it OCLint
- Under Builde Phases, add a new Run Script Phase
- Paste the script
- Select target OCLint
- Build the target (press ⌘+B)
| #!/bin/sh | |
| # Generate icons for >= iOS 7 | |
| # | |
| # Install | |
| # curl -o /usr/local/bin/resize_ios_icons -O https://gist.githubusercontent.com/Just-/8fa383eb690ac6dd0601/raw/36d49d9c2deda6844776abbaf0da127759176d2c/resize_ios_icons.sh && chmod +x /usr/local/bin/resize_ios_icons | |
| # | |
| # Params: 1 - icon to resize (fe 512px or 1024px) | |
| # 2 - dir to generate | |
| # |
| - (void)testExample { | |
| MyObject* obj = [[MyObject alloc] init]; | |
| obj.array = @[]; | |
| NSMutableArray* array = [obj mutableArrayValueForKey:@"array"]; | |
| // NSMutableArray* array = @[].mutableCopy; // using this will pass test | |
| __weak NSMutableArray* weakArray = array; | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Bucket | |
| type = "2" | |
| version = "2.0"> | |
| <Breakpoints> | |
| <!-- All Exceptions --> | |
| <BreakpointProxy | |
| BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint"> | |
| <BreakpointContent |
| find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID` |
Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.
If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.
http://www.apple.com/osx/elcapitan-preview/
| // iOS 9 allows you to animate between visual effects, which gives you the | |
| // ability to manipulate the blur radius. this can be useful for animating | |
| // a backdrop for a custom modal, and with a few tricks, can even be set | |
| // indirectly, allowing you to "scrub" between them back and forth with | |
| // a gesture, just like when you pull down Spotlight. | |
| // these are the two effects you want to transition between | |
| UIVisualEffect *startEffect = nil; // "nil" means no blur/tint/vibrancy (plain, fully-transparent view) | |
| UIVisualEffect *endEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; |
| /** | |
| * Base contract that all upgradeable contracts should use. | |
| * | |
| * Contracts implementing this interface are all called using delegatecall from | |
| * a dispatcher. As a result, the _sizes and _dest variables are shared with the | |
| * dispatcher contract, which allows the called contract to update these at will. | |
| * | |
| * _sizes is a map of function signatures to return value sizes. Due to EVM | |
| * limitations, these need to be populated by the target contract, so the | |
| * dispatcher knows how many bytes of data to return from called functions. |
| #! /usr/bin/env python | |
| class Point(object): | |
| def __init__(self, _x, _y, _order = None): self.x, self.y, self.order = _x, _y, _order | |
| def calc(self, top, bottom, other_x): | |
| l = (top * inverse_mod(bottom)) % p | |
| x3 = (l * l - self.x - other_x) % p | |
| return Point(x3, (l * (self.x - x3) - self.y) % p) |
| // | |
| // SpinlockTestTests.swift | |
| // SpinlockTestTests | |
| // | |
| // Created by Peter Steinberger on 04/10/2016. | |
| // Copyright © 2016 PSPDFKit GmbH. All rights reserved. | |
| // | |
| import XCTest |