Skip to content

Instantly share code, notes, and snippets.

View JasperEssien2's full-sized avatar

JasperEssien JasperEssien2

View GitHub Profile
@jogboms
jogboms / !Pods.md
Last active October 19, 2023 20:52
Re-implementing Riverpod
@4np
4np / ambientLightSensor.swift
Created January 24, 2017 23:33
Acces Mac OS Ambient Light Sensor
func getLux() {
guard let serviceType = IOServiceMatching("AppleLMUController") else {
debugPrint("No ambient light sensor")
return
}
// get and release service
let service = IOServiceGetMatchingService(kIOMasterPortDefault, serviceType)
defer {
IOObjectRelease(service)