Skip to content

Instantly share code, notes, and snippets.

-(BOOL)isDarkImage:(UIImage*) inputImage {
BOOL isDark = FALSE;
CFDataRef imageData = CGDataProviderCopyData(CGImageGetDataProvider(inputImage.CGImage));
const UInt8 *pixels = CFDataGetBytePtr(imageData);
int darkPixels = 0;
int length = CFDataGetLength(imageData);
@brockboland
brockboland / letsfreckle-tags.js
Created July 23, 2012 16:42 — forked from anonymous/letsfreckle-tags.js
LetsFreckle tag performance fix
// ==UserScript==
// @name LetsFreckle Tags
// @namespace http://www.lullabot.com/
// @version 0.1
// @description Reduce the number of tags to fix performance issues.
// @match https://*.letsfreckle.com/*
// @copyright 2012+, Andrew Berry, deviantintegral@gmail.com
// ==/UserScript==