I hereby claim:
- I am vfn on github.
- I am vneto (https://keybase.io/vneto) on keybase.
- I have a public key ASBn3_Ov8HrLB3NmwDrnGDBUPx3Qo75Lhk5saXWd6KrhFgo
To claim this, I am signing this object:
| public protocol CanBeEmpty { | |
| var isEmpty: Bool { get } | |
| var isNotEmpty: Bool { get } | |
| var nilIfEmpty: Self? { get } | |
| } | |
| public extension CanBeEmpty { | |
| /// Returns nil if empty, otherwise returns self |
I hereby claim:
To claim this, I am signing this object:
| import Foundation | |
| // Based on http://oleb.net/blog/2015/12/lazy-properties-in-structs-swift/ | |
| final class LazyBox<T> { | |
| init(computation: () -> T) { | |
| self.lazyValue = .NotYetComputed(computation) | |
| } |
| post_install do |installer_representation| | |
| workDir = Dir.pwd | |
| xcconfigFilesPath = "#{workDir}/Pods/Target Support Files/Pods/Pods.*.xcconfig" | |
| xcconfigFiles = Dir[xcconfigFilesPath] | |
| xcconfigFiles.each do |xcconfigFilename| | |
| next if File.directory? xcconfigFilename | |
| puts "----------- Post hook will modify #{xcconfigFilename}" | |
| #!/bin/sh | |
| ~/Applications/UniversalIndentGUI/indenters/uncrustify -l OC -q -c ~/Applications/UniversalIndentGUI/config/uncrustify_obj_c.cfg |