Skip to content

Instantly share code, notes, and snippets.

View jbehrens94's full-sized avatar
🏳️‍🌈
Feeling energetic!

Johann Behrens jbehrens94

🏳️‍🌈
Feeling energetic!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jbehrens94 on github.
  • I am jbehrens94 (https://keybase.io/jbehrens94) on keybase.
  • I have a public key ASDoeJgFtQ8a4Is9IoMdASwPmel6BDddegOIXppB53l_EQo

To claim this, I am signing this object:

@jbehrens94
jbehrens94 / AppleLogo.swift
Created June 16, 2021 19:38 — forked from jordansinger/AppleLogo.swift
Original Apple logo in SwiftUI
import SwiftUI
struct ContentView: View {
var body: some View {
VStack(spacing: 0) {
Color.green
Color.green
Color.green
Color.yellow
Color.orange
@jbehrens94
jbehrens94 / .travis.yml
Created February 15, 2018 12:56
New .travis.yml situation
# 1
language: swift
# 2
script: xcodebuild -workspace TravisExample.xcworkspace -scheme TravisExample -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
script: xcodebuild test -workspace TravisExample.xcworkspace -scheme TravisExample -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
# 3
script: xctool test -workspace TravisExample.xcworkspace -scheme TravisExampleTests -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
//: Playground - noun: a place where people can play
import Foundation
// All views implement this protocol.
protocol CustomView {
func render() -> String
}
// When no parameters are supplied
@jbehrens94
jbehrens94 / SwiftStrategy.swift
Created January 17, 2017 11:09
StrategyExample
import Foundation
// First define the algorithm protocol.
protocol LoadBehaviour {
func execute() -> String
}
// Define the algorithms.
// Algorithm 1
class CoreDataManager: LoadBehaviour {