Skip to content

Instantly share code, notes, and snippets.

View fightinjoe's full-sized avatar

Aaron Wheeler fightinjoe

View GitHub Profile
@fightinjoe
fightinjoe / gist:984297
Created May 21, 2011 06:07
Image Magick script for creating thumbnails, then a sprite
convert aasthawahi.jpg -thumbnail x256 -resize '256x<' -resize 50% -gravity center -crop 128x128+0+0 +repage -format jpg -quality 91 aasthawahi_thumb.jpg
montage *_thumb.jpg -geometry '+0+0' sprite.jpg
//
// NSDate+Pretty.m
// AaronWheeler
//
// Created by Aaron Wheeler on 10/4/10.
// Copyright 2010 n/a. All rights reserved.
//
#import "NSDate+Pretty.h"
<html>
<head>
<title>Normal Image</title>
<style type="text/css" media="screen">
body {
padding: 1em 5em;
}
div {
width:200px;
module Merb::Cache
# The installed cache stores don't serialize the data before
# caching it. The MarshalStore serializes the data using Marshal.dump
# and Marshal.load.
#
# NOTE: to be useful with DataMapper, make sure to use the edge version
# of dm-core 0.9.8 or later, otherwise you'll be left with an error that
# looks like "no marshal_dump is defined for class Thread".
# (thanks dkubb: http://github.com/sam/dm-core/commit/83ea752d5604726b00ff11c55c0fbd2c39607c16)
class MarshalStore < AbstractStrategyStore