Skip to content

Instantly share code, notes, and snippets.

🏃‍♂💨 🧗‍♂️👨‍💻🔁

Florian Bürger florianbuerger

🏃‍♂💨 🧗‍♂️👨‍💻🔁
Block or report user

Report or block florianbuerger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CodableColor.swift
public struct CodableColor: Codable {
public var red: CGFloat = 0
public var green: CGFloat = 0
public var blue: CGFloat = 0
public var alpha: CGFloat = 1.0
public var colorSpace: String
init(cgColor color: CGColor) {
let comps = color.components!
red = comps[0]
View gist:c62d4aa7f216d9f55f9e67b67bdee8f0
for sim in (xcrun simctl list devices | grep "(Booted)" | grep -E -o -i "([0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12})")
	xcrun simctl <command> $sim
florianbuerger / gist:a465fd9072c5b8c08fbaabe0ea98bdb6
Created Jul 24, 2018
Enable status bar style for UIViewController inside of UINavigationController
View gist:a465fd9072c5b8c08fbaabe0ea98bdb6
extension UINavigationController {
open override var childViewControllerForStatusBarStyle: UIViewController? {
return topViewController

Keybase proof

I hereby claim:

  • I am florianbuerger on github.
  • I am florianbuerger ( on keybase.
  • I have a public key whose fingerprint is ED37 A9C3 8BB8 9E5E 85C8 5262 B25A 831B 48E6 3F10

To claim this, I am signing this object:

# Your init script
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
# An example hack to log to the console when each text editor is saved.
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
florianbuerger / Breakpoints_v2.xcbkptlist
Last active Aug 29, 2015
Detect synchronous network calls on the main thread with a breakpoint. Thanks to Cédric Luthi (
View Breakpoints_v2.xcbkptlist
<?xml version="1.0" encoding="UTF-8"?>
type = "4"
version = "2.0">
BreakpointExtensionID = "Xcode.Breakpoint.SymbolicBreakpoint">
shouldBeEnabled = "Yes"
ignoreCount = "0"
florianbuerger / gist:c08bd42b91b6c231c870
Created Dec 12, 2014
Is there a better way to create a UITableView.footerView where you don’t know the height when you create it?
View gist:c08bd42b91b6c231c870
let footer = TableFooterView(frame: CGRectZero)
footer.addButtonWithTitle("Red", backgroundColor: UIColor.redColor(), target: self, action: "redWasPressed:" as Selector)
footer.addButtonWithTitle("Green", backgroundColor: UIColor.greenColor(), target: self, action: "greenWasPressed:" as Selector)
footer.addButtonWithTitle("Blue", backgroundColor: UIColor.blueColor(), target: self, action: "blueWasPressed:" as Selector)
footer.frame = CGRectMake(0, 0, footer.intrinsicContentSize().width, footer.intrinsicContentSize().height)
tableView.tableFooterView = footer
View gist:a1ad7bb3b0c4fad3373a
curl | grep -iIoh 'http.*._hd_.*dl=1">HD' | sed -e 's/\?dl=1">HD//g' | xargs -n1 wget -N
View gist:a1b0518ba5ba6b59c7cc

Software should be user friendly

What does usability even mean? It must work effective, efficient and satisfying.

Software should do one thing only and one thing well.

What is the use if the Application can do many things but nobody understands how results are achieved? The Application should do only one thing tailored to the specific need. Communication between Software and humans should be as simple as possible.

Software should be ergonomically


Keybase proof

I hereby claim:

  • I am florianbuerger on github.
  • I am florianbuerger ( on keybase.
  • I have a public key whose fingerprint is 4F01 6BF0 6AC0 F8FD 9032 1977 DC35 8BF4 0174 A21A

To claim this, I am signing this object:

You can’t perform that action at this time.