Skip to content

Instantly share code, notes, and snippets.

View SheffieldKevin's full-sized avatar

Kevin Meaney SheffieldKevin

View GitHub Profile
@SheffieldKevin
SheffieldKevin / scaleandwatermark
Created October 12, 2014 22:04
ruby/applescript display select folder dialog script for Paul
#!/usr/bin/env ruby
# Scale and add a text water mark to images.
require 'moving_images'
include MovingImages
# The folder where the water marked images will be saved.
output_dir = "~/Desktop/watermarkedfiles"
@SheffieldKevin
SheffieldKevin / coda_runscript.rb
Last active August 29, 2015 14:05
Coda run the current document in ruby plugin script
#!/usr/bin/env ruby
# This is the script code to run. It runs the script based on the file path to the script not text passed in.
# In Panic's "Coda Plug-in Creator" I've set the following options:
# Command is: Run Document
# Keyboard shortcut: Command-Option-R
# On Run: Save
# On Success: Nothing
# STDIN None
# STDOUT New Document
@SheffieldKevin
SheffieldKevin / BaseDerivedClassMethods
Last active August 29, 2015 14:01
Calling derived class methods from the base class. What do you think this code outputs.
#import <Foundation/Foundation.h>
@interface BaseClass : NSObject
+(void)callDerivedClassMethod;
@end
@interface DerivedClass : BaseClass
+(void)derivedClassMethod;
@end
@SheffieldKevin
SheffieldKevin / MPO image meta
Created April 24, 2014 14:16
MPO image meta
{
"{TIFF}": {
"ResolutionUnit": 2,
"Software": "NEX-5N v1.01",
"DateTime": "2013:07:28 13:50:35",
"XResolution": 350,
"ImageDescription": " ",
"Orientation": 1,
"Model": "NEX-5N",
"Make": "SONY",
@SheffieldKevin
SheffieldKevin / Compare images not working
Last active August 29, 2015 13:56
The CIAreaMaximum filter is not working.
// main.m
// compareimages
//
// Created by Kevin Meaney on 25/02/2014.
// Copyright (c) 2014 Kevin Meaney. All rights reserved.
@import Foundation;
@import QuartzCore;
// ---------------------------------------------------------------------------