This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIImage+PDF.swift. Copyright © 2016 Nigel Timothy Barber (@mindbrix). All rights reserved. | |
// | |
import UIKit | |
extension UIImage { | |
static func PDFImageWith(_ url: URL, pageNumber: Int, width: CGFloat) -> UIImage? { | |
return PDFImageWith(url, pageNumber: pageNumber, constraints: CGSize(width: width, height: 0)) | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIView+Geometry.h | |
// Swipe To Scrub | |
// | |
// Created by Nigel Barber on 29/10/2012. | |
// Copyright (c) 2012 Mindbrix. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIImage+Decompression.swift | |
// Contis Protocol | |
// | |
// Created by Nigel Barber on 01/03/2017. | |
// Copyright © 2017 @mindbrix. All rights reserved. | |
// | |
import CoreGraphics | |
import ImageIO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// PDFImage.swift. Copyright © 2016 Nigel Timothy Barber (@mindbrix). All rights reserved. | |
// | |
import UIKit | |
extension UIImage { | |
static func PDFImageWith(url: NSURL, pageNumber: Int, width: CGFloat) -> UIImage? { | |
return PDFImageWith(url, pageNumber: pageNumber, constraints: CGSizeMake(width, 0)) | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UILabel+MultiLineSupport.h | |
// giffgaffIOS | |
// | |
// Created by Nigel Barber on 23/10/2013. | |
// Copyright (c) 2013 confidence. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UILabel+MultiLineSupport.h | |
// giffgaffIOS | |
// | |
// Created by Nigel Barber on 23/10/2013. | |
// Copyright (c) 2013 confidence. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)drawTimecodeUsingGCD | |
{ | |
if( dispatch_semaphore_wait( _timecodeSemaphore, DISPATCH_TIME_NOW ) != 0 ) | |
{ | |
return; | |
} | |
dispatch_async( _timecodeQueue, ^() | |
{ | |
float fontSize = ceilf( self.scrubberSize * 0.425f ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NTBProxyImageView.h | |
// Vectoria Squared | |
// | |
// Created by Nigel Barber on 22/04/2013. | |
// Copyright (c) 2013 Nigel Barber. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIView+getUIColor.h | |
// PRL_iPad_Catalogue | |
// | |
// Created by Nigel Barber on 30/03/2011. | |
// Copyright 2011 Mindbrix. All rights reserved. | |
// | |
@interface UIImage (getUIColor) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// http://code.google.com/p/picasaphp/ | |
// | |
require_once("Picasa.php" ); | |
/* Return an array of full size Picasa web image URLs | |
* | |
* Written for http://vectoria.co.uk/gallery/ |
NewerOlder