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
@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

@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() {