Skip to content

Instantly share code, notes, and snippets.

View guilhermearaujo's full-sized avatar

Guilherme Araújo guilhermearaujo

View GitHub Profile

Keybase proof

I hereby claim:

  • I am guilhermearaujo on github.
  • I am guilhermearaujo (https://keybase.io/guilhermearaujo) on keybase.
  • I have a public key ASDVo3hP06FSx-ObYhQ0kRLYoQIS7knyW-QhZuJx8yVf3go

To claim this, I am signing this object:

@guilhermearaujo
guilhermearaujo / pre-commit
Last active September 22, 2015 18:41 — forked from mpeteuil/rubocop_pre_commit_hook
Ruby style guide git pre-commit hook using Rubocop as the style guide checker. Only runs on staged ruby files that have been added and/or modified.
#!/usr/bin/env ruby
require 'english'
require 'rubocop'
ADDED_OR_MODIFIED = /A|AM|^M/.freeze
changed_files = `git status --porcelain`.split(/\n/).
select { |file_name_with_status|
file_name_with_status =~ ADDED_OR_MODIFIED
@guilhermearaujo
guilhermearaujo / README.md
Last active July 27, 2022 09:36
OCLint integration with Xcode

OCLint integration with Xcode

1. Integration

  • Add a new Target of kind Aggregate, name it OCLint
  • Under Builde Phases, add a new Run Script Phase
  • Paste the script

2. Usage

  • Select target OCLint
  • Build the target (press ⌘+B)
@guilhermearaujo
guilhermearaujo / UISegmentedControl+Multiline.h
Created June 9, 2014 20:46
UISegmentedControl+Multiline
//
// UISegmentedControl+Multiline.h
//
// Created by Guilherme Araújo on 6/9/14.
// Copyright (c) 2014 Guilherme Araújo. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UISegmentedControl (Multiline)
@guilhermearaujo
guilhermearaujo / NSString+BaseConvertion.h
Last active August 29, 2015 14:02
NSString+BaseConvertion
//
// NSString+BaseConvertion.h
//
// Created by Guilherme Araújo on 31/05/14.
// Copyright (c) 2014 Guilherme Araújo. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (BaseConvertion)
//
// RoundedNetworkImageView
//
// Created by Guilherme Araújo on 4/3/14.
//
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;