Skip to content

Instantly share code, notes, and snippets.

@aglee
aglee / gap-stores-autism-discount.htm
Created September 28, 2012 15:16
What you get when you ask Excel to save as a .htm file
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=macintosh">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 14">
<link rel=File-List href="gap-stores-autism-discount_files/filelist.xml">
<style>
<!--table
{mso-displayed-decimal-separator:"\.";
@aglee
aglee / gist:1267594
Created October 6, 2011 14:51
UNTESTED but I already know this is still not quite right. See http://www.mikeash.com/pyblog/key-value-observing-done-right.html for what could go wrong. Should use MAKVONotificationCenter to do the KVO. In any case, this code is just to give a general id
// MyViewTickler.h
#import <Cocoa/Cocoa.h>
@interface MyViewTickler : NSObject
{
}
+ (id)sharedInstance;