Skip to content

Instantly share code, notes, and snippets.

# Use Red Hat Universal Base Image as the base image
FROM registry.access.redhat.com/ubi8/ubi
# Install necessary dependencies
RUN yum install -y \
ca-certificates \
fonts-noto-cjk \
glibc-langpack-en \
nodejs \
npm \
@sachithkadamba
sachithkadamba / UIImage+Cache.h
Created November 25, 2012 05:45 — forked from skram/UIImage+Cache.h
UIImage extension, with custom cache control.
//
// UIImage+Cache.m
//
// Created by Mark on 6/6/12.
// Copyright (c) 2012 skram devs LLC. All rights reserved.
// http://skr.am
#import <UIKit/UIKit.h>
@sachithkadamba
sachithkadamba / gist:4142530
Created November 25, 2012 05:44
Custom caching for + (UIImage *)imageNamed:(NSString *)name
//UIImage+Cache.h
#import <UIKit/UIKit.h>
@interface UIImage (Cache)
+ (UIImage *)imageNamed:(NSString *)name;
+ (void)freeCache;
+ (BOOL)freeCacheOnMemoryWarning;
+ (void)setFreeCacheOnMemoryWarning:(BOOL)freeCacheOnMemoryWarning;
//PinchZoomTableView.h
//Created by Sachith on 14/01/11.
/*Copyright 2011 Sachith Kadamba <[email protected]>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU  Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
// A small variant of Jeff Lamarche code as seen here : http://iphonedevelopment.blogspot.com/2010/05/custom-alert-views.html
//
// CustomAlertView.m
// Custom Alert View
//
// Created by jeff on 5/17/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//