Skip to content

Instantly share code, notes, and snippets.

View marksharrison's full-sized avatar

Mark Harrison marksharrison

View GitHub Profile

Description

A Dashing widget for displaying tasks assigned to you in Asana.

Dependencies

@marksharrison
marksharrison / impbcopy.m
Created November 18, 2015 10:51 — forked from kenkeiter/impbcopy.m
Take a selfie, archive it, and copy it to the clipboard -- all from the terminal! (bash + os x)
/////////////////////////////////////////////////////////
// Copied from http://www.alecjacobson.com/weblog/?p=3816
/////////////////////////////////////////////////////////
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
#import <unistd.h>
BOOL copy_to_clipboard(NSString *path)
{
// http://stackoverflow.com/questions/2681630/how-to-read-png-image-to-nsimage
NSImage * image;