I hereby claim:
- I am krzak on github.
- I am krzyzanowskim (https://keybase.io/krzyzanowskim) on keybase.
- I have a public key whose fingerprint is BA96 CBDD 1862 7D9A 6884 AA0A 979E 4B03 DFFE 30C6
To claim this, I am signing this object:
| post_install do | installer | | |
| print "Updating #{installer.sandbox.target_support_files_root}/Pods/Pods-environment.h\n" | |
| open("#{installer.sandbox.target_support_files_root}/Pods/Pods-environment.h","a") do |file| | |
| file.puts <<EOF | |
| // Disable logs | |
| #ifndef DEBUG | |
| #define NSLog(...) | |
| #endif | |
| EOF | |
| end |
I hereby claim:
To claim this, I am signing this object:
| ### Keybase proof | |
| I hereby claim: | |
| * I am krzyzanowskim on github. | |
| * I am krzyzanowskim (https://keybase.io/krzyzanowskim) on keybase. | |
| * I have a public key whose fingerprint is BA96 CBDD 1862 7D9A 6884 AA0A 979E 4B03 DFFE 30C6 | |
| To claim this, I am signing this object: |
| // I found that when intagrate C API, something strange happending with function declarations | |
| struct testswitf | |
| { | |
| int (*va_args)(int *I) | |
| }; | |
| // end with strange error | |
| // <unknown>:0: error: file.h:100: expected ')' | |
| // <unknown>:0: note: file.h:100: to match this '(' |
| import UIKit | |
| import CoreText | |
| extension UIFont { | |
| typealias Feature = (type: Int, selector: Int) | |
| struct Features { | |
| static var ProportionalNumbers: Feature = (kNumberSpacingType, kProportionalNumbersSelector) | |
| static var AlternatePunctuation: Feature = (kCharacterAlternativesType, 1) // Magic! | |
| // Add more... |
| // | |
| // IntExtension.swift | |
| // CryptoSwift | |
| // | |
| // Created by Marcin Krzyzanowski on 12/08/14. | |
| // Copyright (C) 2014 Marcin Krzyżanowski <[email protected]> | |
| // This software is provided 'as-is', without any express or implied warranty. | |
| // | |
| // In no event will the authors be held liable for any damages arising from the use of this software. | |
| // |
| import Foundation | |
| class Foo { | |
| let length = 255 | |
| // !!! not like this because self.length can't be used here | |
| // var arrayConstantLength = [Byte](count:self.length, repeatedValue:0) | |
| // but like this (with lazy I can use self.length constant) | |
| lazy var arrayConstantLength:[Byte] = { |
| // Playground - noun: a place where people can play | |
| import Foundation | |
| /** Protocol and extensions for integerFromBitsArray. Bit hakish for me, but I can't do it in any other way */ | |
| protocol Initiable { | |
| init(_ v: Int) | |
| init(_ v: UInt) | |
| } |
| let array = ["P","Q","R","S","T","P","R","A","T","B","C","P","P","P","P","P","C","P","P","J"] | |
| let unique = array.reduce([String](), combine: { (array, value) -> [String] in | |
| var result = array | |
| if (!contains(array, value)) { | |
| result.append(value) | |
| } | |
| return result | |
| }) |
| // Marcin Krzyżanowski | |
| #import <CommonCrypto/CommonCryptor.h> | |
| @interface NSData (AES) | |
| - (NSData *)AES128EncryptWithKey:(NSString *)key iv:(NSString *)iv; | |
| @end | |
| @implementation NSData (AES) |