Skip to content

Instantly share code, notes, and snippets.

View catesandrew's full-sized avatar

Andrew Cates catesandrew

  • Huntington Beach, CA
View GitHub Profile
@catesandrew
catesandrew / buildSprite.sh
Created May 12, 2011 14:50 — forked from jaymzcd/buildSprite.sh
buildSprite using Imagemagick's montage.
#!/bin/bash
# uses imagemagick to stich together all images in a folder and
# then writes a css file with the correct offsets along with a
# test html page for verification that its all good
if [ $# -gt 0 ]
then
if [ $3 ]
// Provides a device_scale class on iOS devices for scaling user
// interface elements relative to the current zoom factor.
//
// http://37signals.com/svn/posts/2407-device-scale-user-interface-elements-in-ios-mobile-safari
// Copyright (c) 2010 37signals.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell