Skip to content

Instantly share code, notes, and snippets.

@n-b
n-b / NBResponderChainUtilities.h
Last active August 3, 2021 10:08
Chain Responder Debugging Methods
//
// NBResponderChainUtilities.h
//
// Created by Nicolas @ bou.io on 19/04/13.
//
#import <UIKit/UIKit.h>
@interface UIView (NBResponderChainUtilities)
- (UIView*) nb_firstResponder; // Recurse into subviews to find one that responds YES to -isFirstResponder
@rummelonp
rummelonp / 0-README.md
Last active June 11, 2016 14:33
Nginx+Unicorn+Rails+Capistrano 用の設定の雛形
// Copyright (c) 2012-2013 Peter Steinberger (http://petersteinberger.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
@vgrichina
vgrichina / RunPlatformUnitTests.patch
Created November 15, 2011 00:27
Patch for RunPlatformUnitTests to allow running iOS application tests in Simulator using xcodebuild
*** /Developer/Platforms/iPhoneSimulator.platform/Developer/Tools/RunPlatformUnitTests 2011-08-30 06:49:13.000000000 +0300
--- /Developer/Platforms/iPhoneSimulator.platform/Developer/Tools/RunPlatformUnitTests.new 2011-11-15 02:21:59.000000000 +0200
***************
*** 90,101 ****
Configure_TEST_ARCHS
if [ "${TEST_HOST}" != "" ]; then
! Warning ${LINENO} "Skipping tests; the iPhoneSimulator platform does not currently support application-hosted tests (TEST_HOST set)."
@tszming
tszming / objc.cfg
Created April 25, 2011 18:39
My uncrustify config file for objective-c
#
# uncrustify config file for objective-c and objective-c++
#
indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs
output_tab_size = 4 # new tab size
indent_columns = output_tab_size
indent_label = 2 # pos: absolute col, neg: relative column
indent_align_assign = FALSE