Skip to content

Instantly share code, notes, and snippets.

View dral3x's full-sized avatar

Alessandro Calzavara dral3x

View GitHub Profile
@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
@dral3x
dral3x / dev-scripts.sh
Last active August 28, 2018 07:55 — forked from shaps80/dev-scripts.sh
Open workspace or project from current directory with Xcode, AppCode or Android Studio app. Script will looks for workspaces first, than fallback to project files (when appropriate). Subdirectories are ignored.
#!/usr/bin/env bash
# Published on https://gist.github.com/dral3x/1bbcedaa871fcd04f303
## Common
function __openFileWithApp()
{
if [[ -z "$1" || "$#" -ne 2 ]]; then
echo -e "Nothing found\n"