Skip to content

Instantly share code, notes, and snippets.

View alexandreraulin's full-sized avatar

Alexandre Raulin alexandreraulin

View GitHub Profile
@alexandreraulin
alexandreraulin / MultipleTapLabel.swift
Created April 8, 2020 06:40 — forked from hamdan/MultipleTapLabel.swift
Create Multiple Tappable Links in a UILabel
extension UITapGestureRecognizer {
func didTapAttributedTextInLabel(label: UILabel, inRange targetRange: NSRange) -> Bool {
// Create instances of NSLayoutManager, NSTextContainer and NSTextStorage
let layoutManager = NSLayoutManager()
let textContainer = NSTextContainer(size: CGSize.zero)
let textStorage = NSTextStorage(attributedString: label.attributedText!)
// Configure layoutManager and textStorage
layoutManager.addTextContainer(textContainer)
@alexandreraulin
alexandreraulin / iterm2-solarized.md
Created July 20, 2018 12:42 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@alexandreraulin
alexandreraulin / slack_history.py
Last active May 2, 2018 21:41 — forked from f0ster/slack_history.py
slack history downloader (pub and priv) with rate limit retry :)
#https://gist.github.com/Chandler/fb7a070f52883849de35 SEE HERE
# MIT License
# Copyright (c) 2016 Chandler Abraham
# 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

Keybase proof

I hereby claim:

  • I am alexandreraulin on github.
  • I am alexandreraulin (https://keybase.io/alexandreraulin) on keybase.
  • I have a public key ASC4LZZCbJCw-aWLVaYHWC0uOdM_FY9oNoorJ9QeEB8bego

To claim this, I am signing this object:

@alexandreraulin
alexandreraulin / FLEX.md
Created March 8, 2017 13:15 — forked from JeOam/FLEX.md
Flipboard FLEX: An in-app debugging and exploration tool for iOS

FLEX (Flipboard Explorer) is a set of in-app debugging and exploration tools for iOS development. When presented, FLEX shows a toolbar that lives in a window above your application. From this toolbar, you can view and modify nearly every piece of state in your running application.

Installation via Cocoapods

pod 'FLEX', '~> 1.1'

Setup in project: AppDelegate.m

extension UIView {
class func loadFromNibNamed(nibNamed: String, bundle : NSBundle? = nil) -> UIView? {
return UINib(
nibName: nibNamed,
bundle: bundle
).instantiateWithOwner(nil, options: nil)[0] as? UIView
}
}
@alexandreraulin
alexandreraulin / README.md
Last active August 29, 2015 14:26 — forked from agnoster/README.md
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

#import <UIKit/UIKit.h>
@interface UIView (RoundedCorners)
- (void)setRoundedCorners:(UIRectCorner)corners radius:(CGSize)size;
@end
#!/bin/sh
# Script for managing build and version numbers using git and agvtool.
# Change log:
# v1.0 18-Jul-11 First public release.
# v1.1 29-Sep-12 Launch git, agvtool via xcrun.
version() {
@alexandreraulin
alexandreraulin / gist:f4b1504aec9d25f5af08
Last active June 20, 2019 09:03
Script for iOS Universal Framework compilation with Xcode 6
# This script is based on Jacob Van Order's answer on apple dev forums https://devforums.apple.com/message/971277
# See also http://spin.atomicobject.com/2011/12/13/building-a-universal-framework-for-ios/ for the start
# To get this to work with a Xcode 6 Cocoa Touch Framework, create Framework
# Then create a new Aggregate Target. Throw this script into a Build Script Phrase on the Aggregate
######################
# Options