I hereby claim:
- I am vetras on github.
- I am vetras (https://keybase.io/vetras) on keybase.
- I have a public key ASCjwL9xKpMa0_hVF72KyxyLGDHl_dKoOVzpb1BQr3dwLgo
To claim this, I am signing this object:
// | |
// AppDelegate.swift | |
// Namespaced | |
// | |
// Created by Mika Jauhonen on 2014-09-18. | |
// Copyright (c) 2014 Mika Jauhonen. All rights reserved. | |
// | |
import UIKit |
I hereby claim:
To claim this, I am signing this object:
// Fix for https://github.com/bryanjclark/ios-darken-image-with-cifilter | |
-(instancetype)darkened:(CGFloat)alpha andBlurredImage:(CGFloat)radius blendModeFilterName:(NSString *)blendModeFilterName { | |
CIImage *inputImage = [[CIImage alloc] initWithImage:self]; | |
CIContext *context = [CIContext contextWithOptions:nil]; | |
//First, create some darkness | |
CIFilter* blackGenerator = [CIFilter filterWithName:@"CIConstantColorGenerator"]; |
# generate your private key, put the public key on the server you will be connecting to | |
ssh-keygen -t rsa -f ./my_key | |
# generate the password/secret you will store encrypted in the .travis.yml and use to encrypt your private key | |
cat /dev/urandom | head -c 10000 | openssl sha1 > ./secret | |
# encrypt your private key using your secret password | |
openssl aes-256-cbc -pass "file:./secret" -in ./my_key -out ./my_key.enc -a | |
# download your Travis-CI public key via the API. eg: https://api.travis-ci.org/repos/travis-ci/travis-ci/key |
When Swift was first announced, I was gratified to see that one of the (few) philosophies that it shared with Objective-C was that exceptions should not be used for control flow, only for highlighting fatal programming errors at development time.
So it came as a surprise to me when Swift 2 brought (What appeared to be) traditional exception handling to the language.
Similarly surprised were the functional Swift programmers, who had put their faith in the Haskell-style approach to error handling, where every function returns an enum (or monad, if you like) containing either a valid result or an error. This seemed like a natural fit for Swift, so why did Apple instead opt for a solution originally designed for clumsy imperative languages?
I'm going to cover three things in this post:
Purpose of this list is to gather a source of information on how many people are working on iOS application.
I often wonder how many people are behind Facebook's app or Twitter's. If you're as curious as me, please share and please add apps 😉.
*
- it's a rumoured value only. Needs confirmation from someone inside the company.
##Adding Swift Build System
Preferences > Browse Packages...
Swift.sublime-build
inside Packages
directory.Swift.sublime-build
file.{
"shell_cmd": "xcrun swift $file",
xccov(1) xccov(1) | |
NAME | |
xccov - view Xcode coverage data in human-readable or machine-parseable format. | |
SYNOPSIS | |
xccov view [--only-targets | --files-for-target target_name | --functions-for-file name_or_path] |