Skip to content

Instantly share code, notes, and snippets.

View robb's full-sized avatar

Robb Böhnke robb

View GitHub Profile
import SwiftUI
struct ContentView: View {
@State var show: Bool = false
var body: some View {
ZStack {
Button {
show.toggle()
} label: {

Sensor Watch: Kurzanleitung

Die Platine der «Sensor Watch» ist so konzipiert, dass sie in eine Casio F-91W oder A158 Armbanduhr passt. Beachten Sie, dass sie nicht mit Fälschungen kompatibel ist! Sie benötigen eine echte Casio F-91W Armbanduhr als Spenderuhr für diesen Platinentausch.

Werkzeug

Sie benötigen mindestens einen kleinen Kreuzschlitzschraubendreher, um diesen Platinentausch durchzuführen. Eine Pinzette ist ebenfalls nützlich.

Optional können Sie mit einem Lötkolben eine kleine Metalllasche von der Originalplatine des F-91W entfernen und auf die Platine der «Sensor Watch» löten. Diese Änderung ist notwendig, damit der Summer funktionieren kann. Beachten Sie, dass die «Sensor Watch» mit Ausnahme des Summers auch ohne diese Änderung funktioniert.

import SwiftUI
struct ContentView: View {
@State var pictureExpanded = false
var body: some View {
VStack(alignment: .leading, spacing: 20.0) {
Text("Once upon a time there was a turtle named George who made friends with a giraffe at the local water park and then they went on lots of adventures together.")
Button {
import Foundation
typealias JSONDictionary = [String: AnyObject]
/// Attempts to load a data from a given URL.
func loadData(URL: NSURL) -> Either<NSError, NSData> {
if let data = NSData(contentsOfURL: URL) {
return Either.Right(Box(data))
} else {
// In a real world scenario, we'd have a more useful error :-)
@robb
robb / underscore.m
Last active August 29, 2015 13:56 — forked from rnapier/underscore.m
// No blocks-as-properties, just classic arguments
NSArray *tweets = [[[[[Underscore
array:results]
filter:Underscore.isDictionary]
reject:^(NSDictionary *tweet) {
return [tweet[@"iso_language_code"] isEqualToString:@"en"];
}]
map:^(NSDictionary *tweet) {
NSString *name = tweet[@"from_user_name"];
Pod::Spec.new do |s|
s.name = "ReactiveCocoa"
s.version = "2.0.0rc3"
s.summary = "A framework for composing and transforming sequences of values."
s.homepage = "https://github.com/blog/1107-reactivecocoa-is-now-open-source"
s.author = { "Josh Abernathy" => "josh@github.com" }
s.source = { :git => "https://github.com/ReactiveCocoa/ReactiveCocoa.git", :tag => 'v2.0-RC3' }
s.license = 'Simplified BSD License'
s.description = "ReactiveCocoa offers:\n" \
"1. The ability to compose operations on future data.\n" \