Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ComplicationController+helpers.swift | |
// WatchKit Extension | |
// | |
// Created by Lukas Petr on 09.02.2022. | |
// Distributed under MIT License. | |
// | |
// | |
// Helper methods for creating pixel-perfect complications for all Apple Watch sizes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func getSystemUUID() -> String? { | |
let dev = IOServiceMatching("IOPlatformExpertDevice") | |
let platformExpert: io_service_t = IOServiceGetMatchingService(kIOMasterPortDefault, dev) | |
let serialNumberAsCFString = IORegistryEntryCreateCFProperty(platformExpert, kIOPlatformUUIDKey, kCFAllocatorDefault, 0) | |
IOObjectRelease(platformExpert) | |
let ser: CFTypeRef = serialNumberAsCFString.takeUnretainedValue() | |
if let result = ser as? String { | |
return result | |
} | |
return nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppDelegate.m | |
// AnimationExamplesiPhone | |
// | |
// Created by Eric Allam on 10/05/2014. | |
#import "AppDelegate.h" | |
#pragma mark - UIColor Additions |
- Christopher Downer: Designing Custom Interfaces, slides missing
- Katrin Apel: Mobile Backends as a Service - Ready for Production?, slides
- Max Seelemann: TextKit For The Rest Of Us, slides
- David Rönnqvist: OpenGL (ES) demystified, slides missing
- Nick Lockwood: Image Performance, slides
- Eric Allam: Beyond the Basics - Building Better Transitions on iOS 7, slides
- Sally Shepard: accessibility & voice over, slides missing
- [Rachel Andrew](https://twitter.com/rachelandrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UI- and App Frameworks Evangelist - Jake Behrens, behrens@apple.com, twitter: @Behrens | |
- What's new in Cocoa | |
- Accessibility in iOS | |
- Building User Interfaces for iOS 7 | |
- Getting Started with UIKit Dynamics | |
- What's new in Cocoa Touch | |
- What's New With Multitasking | |
- Best Practices for Cocoa Animation | |
- Improving Power Efficiency with App Nap | |
- Introducing Text Kit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__kernel void part2(__global float4* pos, | |
__global float4* color, | |
__global float4* vel, | |
__global float4* pos_gen, | |
__global float4* vel_gen, | |
float dt) | |
{ | |
//get our index in the array | |
unsigned int i = get_global_id(0); | |
//copy position and velocity for this iteration to a local variable |