Skip to content

Instantly share code, notes, and snippets.

View florianbachmann's full-sized avatar
💭
rock n roll

Flori florianbachmann

💭
rock n roll
View GitHub Profile
#import "UIResponder+FirstResponder.h"
//http://stackoverflow.com/a/14135456/202151
static __weak id currentFirstResponder;
@implementation UIResponder (FirstResponder)
+(id)currentFirstResponder {
currentFirstResponder = nil;
[[UIApplication sharedApplication] sendAction:@selector(findFirstResponder:) to:nil from:nil forEvent:nil];
return currentFirstResponder;

How to do codereview

Step 1: Context

Check what should have been done

Step 2: Git Changes

Check the related git commit

Step 3: Syntax Check

Check if the Dev use the right syntax and follow the styleguide

Hallo Burrito-Bande,
ich habe den Wunsch einer Termin-Änderung.
ich kann den 12:30 Uhr Termin nicht wahrnehmen.
Ich würde gerne eine Stunde später kommen. Sonst ändert sich nichts.
Also um 13:30 Uhr am Montag den 22.09.
Meine Abholnummer:
xxxxxx
storno@burritobande.de
Hallo Burrito-Bande,
ich möchte meine Bestellung
mit der Abholnummer:
xxxxxxx
am Montag den 22.09 um 12:30 Uhr
in Darmstadt - Havelstr. 16
bei euch stornieren!

Keybase proof

I hereby claim:

  • I am florianbachmann on github.
  • I am florianbachmann (https://keybase.io/florianbachmann) on keybase.
  • I have a public key whose fingerprint is C588 B1E7 4BDC 853F 170C 239B 72AA 611E 1716 1682

To claim this, I am signing this object:

@florianbachmann
florianbachmann / gist:6d7e7ac914541c893ef8
Last active August 29, 2015 14:19
Screensizes for Icons and Splashscreens
iOS
AppIcon60x60.png ( 60x 60 - iPhone 4)
AppIcon60x60@2x.png ( 120x 120 - iPhone 5)
AppIcon60x60@3x.png ( 180x 180 - iPhone 6)
AppIcon76x76~ipad.png ( 76x 76 - iPad)
AppIcon76x76@2x~ipad.png ( 152x 152 - iPad)
Default@2x.png ( 640x 960 - iPhone 4)
Default-568h@2x.png ( 640x1136 - iPhone 5)
Default-667h@2x.png ( 750x1334 - iPhone 6)
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<script type="text/javascript" charset="utf-8" src="phonegap-1.0.0.js"></script>
<script type="text/javascript" charset="utf-8">
function onBodyLoad() {
@florianbachmann
florianbachmann / Fire.lua
Created November 15, 2011 11:39 — forked from juaxix/Fire.lua
Towers versus Zombies by @juaxix -- LGPL - 11/2011 - Codea
Fire = class()
-- Towers versus Zombies by @juaxix
-- LGPL - 11/2011 
-- http://videojuegos.ser3d.es
-- it is a pleasure to gift this to the world 
-- thanks from heart to all the 2lifesleft team
function Fire:init(attackpower,position,model)
    self.attackpower = attackpower
    self.position    = position
    self.parent      = model
@florianbachmann
florianbachmann / gist:1798394
Created February 11, 2012 10:06 — forked from odrobnik/gist:1789418
Asynchronous Deletion
//
// DTAsyncFileDeleter.m
// DTFoundation
//
// Created by Oliver Drobnik on 2/10/12.
// Copyright (c) 2012 Cocoanetics. All rights reserved.
//
#import "DTAsyncFileDeleter.h"
@florianbachmann
florianbachmann / PSPDFWebViewController.m
Created March 7, 2012 17:55
How to write a pixel perfect backbutton in code. (stuff goes into viewDidLoad). Taken from http://pspdfkit.com
forwardBarButtonItem_ = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemPlay target:self action:@selector(goForward:)];
// back button needs more treatment...
UIGraphicsBeginImageContextWithOptions(CGSizeMake(27, 22), NO, 0.0);
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColor(context, CGColorGetComponents([UIColor blackColor].CGColor));
CGContextBeginPath(context);
CGContextMoveToPoint(context, 8.0f, 13.0f);
CGContextAddLineToPoint(context, 24.0f, 4.0f);
CGContextAddLineToPoint(context, 24.0f, 22.0f);