Skip to content

Instantly share code, notes, and snippets.

@clmntcrl
clmntcrl / ShapedButton.swift
Last active August 3, 2017 08:26
ShapedButton is a UIButton subclass optimized for non-rectangular button shapes written in Swift. ShapedButton respond to touches only in areas where the flattened button image (background image + image + title label) for state .Normal is non-transparent. This implementation is based on OBShapedButton by Ole Begemann (https://github.com/ole/OBSh…
//
// ShapedButton.swift
//
//
// Created by clmntcrl on 16/09/2014.
// Copyright (c) 2014 clmntcrl. All rights reserved.
//
import UIKit
@rcarlsen
rcarlsen / build_fat.sh
Created June 16, 2011 12:52
Script for building an iOS FAT binary from a typical configure/make project. (tesseract-ocr)
#!/bin/sh
# build_fat.sh
#
# Created by Robert Carlsen on 15.07.2009. Updated 24.9.2010
# build an arm / i386 lib of standard linux project
#
# initially configured for tesseract-ocr v2.0.4
# updated for tesseract prerelease v3
outdir=outdir