| import Foundation | |
| import Security | |
| struct RSAEncryption { | |
| var publicKey: SecKey! | |
| init(publicKeyString: String) throws { | |
| self.publicKey = try makePublicKey(from: publicKeyString) | |
| } | |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| CLASS METHODS | |
| +[AVCaptureDevice requestAccessForMediaType:completionHandler:] | |
| +[AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:] | |
| +[HKCategorySample categorySampleWithType:value:startDate:endDate:] | |
| +[HKCategorySample categorySampleWithType:value:startDate:endDate:device:metadata:] | |
| +[HKCategorySample categorySampleWithType:value:startDate:endDate:metadata:] | |
| +[HKCorrelation correlationWithType:startDate:endDate:objects:] | |
| +[HKCorrelation correlationWithType:startDate:endDate:objects:device:metadata:] | |
| +[HKCorrelation correlationWithType:startDate:endDate:objects:metadata:] | |
| +[HKQuantitySample quantitySampleWithType:quantity:startDate:endDate:] |
| package main | |
| import ( | |
| "./binding" | |
| "fmt" | |
| ) | |
| func main() { | |
| binding.PrintHello() | |
| binding.Seed(1) | |
| fmt.Println(binding.Random()) |
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/
- split view - two apps side by side on full screen
PS: If you liked this talk or like this concept, let's chat about iOS development at Stitch Fix! #shamelessplug
Speaker: David Abrahams. (Tech lead for Swift standard library)
-
"Crusty" is an old-school programmer who doesn't trust IDE's, debuggers, programming fads. He's cynical, grumpy.
-
OOP has been around since the 1970's. It's not actually new.
-
Classes are Awesome
- Encapsulation
- Access control
| erase_sim: | |
| ./reset_sim.sh 2>/dev/null; true |
There are three easy to make mistakes in go. I present them here in the way they are often found in the wild, not in the way that is easiest to understand.
All three of these mistakes have been made in Kubernetes code, getting past code review at least once each that I know of.
- Loop variables are scoped outside the loop.
What do these lines do? Make predictions and then scroll down.
func print(pi *int) { fmt.Println(*pi) }Moved to git repository: https://github.com/denji/golang-tls
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)