Skip to content

Instantly share code, notes, and snippets.

View ContentView.swift
//
// ContentView.swift
// Layout
//
// Created by Matt Gallagher on 7/6/19.
// Copyright © 2019 Matt Gallagher. All rights reserved.
//
import SwiftUI
@zadr
zadr / results.txt
Last active May 27, 2019
locking microbenchmarking
View results.txt
NSLock: 1.175440 sec
NSLock+IMP Cache: 1.120450 sec
pthread_mutex: 0.750234 sec
OSSpinlock: 0.364442 sec
@synchronized: 2.958938 sec
dispatch_sync: 0.816864 sec
objc_sync_enter: 3.057307 sec
MacBook Pro (Retina, 15-inch, Mid 2015)
2.2 GHz Intel Core i7
@trieloff
trieloff / README.md
Created Oct 24, 2015
A command line alternative to LampStealer
View README.md

The LampStealer app for Hue does not work with newer versions of the bridge, as the API has changed. This shell script works with fewer dependencies and achieves the same. Install jq and run the shell script after pushing the big button on the bridge.