Skip to content

Instantly share code, notes, and snippets.

View CSRafaelAlves's full-sized avatar

Rafael Alves CSRafaelAlves

View GitHub Profile
@sleekweasel
sleekweasel / bounds.rb
Last active July 6, 2018 16:26
More advanced Android Calabash system notifications handling, per https://techblog.badoo.com/blog/2015/06/01/testing-android-notifications-with-calabash/
# Indices for int[4] rectangles.
X0 ||= 0
Y0 ||= 1
X1 ||= 2
Y1 ||= 3
# Calculate clipped and obscured areas based on lists of orthogonal rectangles.
class Bounds
def initialize(r)
@thiagolioy
thiagolioy / SessionManagerSpec.m
Created June 11, 2015 13:59
How to use Specta, Expecta and OCMock . With ViewControllers and Helper|Utility Classes
#import <UIKit/UIKit.h>
#import <Specta.h>
#import <Expecta.h>
#import <OCMock.h>
#import "SessionManager.h"
SpecBegin(SessionManagerSpec)
// reference: http://www.arthurkoziel.com/2008/05/02/git-configuration/
Git Configuration
Published 2nd May 2008
Here are some useful configuration options for Git. Some of them, like the Bash completion, are OS X specific but should also work if you adjust the paths according to your system of choice.
Install with MacPorts:
sudo port install git-core +svn +bash_completion