Skip to content

Instantly share code, notes, and snippets.

View marramgrass's full-sized avatar
🏠
Working from home

Mark Goody marramgrass

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am marramgrass on github.
  • I am marramgrass (https://keybase.io/marramgrass) on keybase.
  • I have a public key whose fingerprint is CB79 33D4 9D1A 51EB D27E 0765 CAED 88C9 8611 9038

To claim this, I am signing this object:

@marramgrass
marramgrass / CGContextRef_error_log
Created October 23, 2013 11:40
The barrage of errors logged when a call to -[UIImage resizableImageWithCapInsets:] uses insets that don't match the image.
Oct 23 12:38:34 TMA-1 ResizableImageNullContext[9372] <Error>: CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Oct 23 12:38:34 TMA-1 ResizableImageNullContext[9372] <Error>: CGContextSetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Oct 23 12:38:34 TMA-1 ResizableImageNullContext[9372] <Error>: CGContextSetAlpha: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an ove
<?php
header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=registrants.csv");
header("Pragma: no-cache");
header("Expires: 0");
$headers = array(
"Count",
"Status",
@marramgrass
marramgrass / lg.sh
Created August 9, 2012 21:17
bash function to log a one-liner to Day One
#! /bin/bash
# quick, one-liner logging to Day One
# eg: lg This is my log for now.
# requires the Day One CLI
lg () {
# FIXME: unescaped quotes in the input get swallowed up by the echo
echo "$@" | dayone new
}