Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
$sprites: sprite-map("sprites/*.png"); | |
$sprites-retina: sprite-map("sprites-retina/*.png"); | |
@mixin sprite-background($name) { | |
background-image: sprite-url($sprites); | |
background-position: sprite-position($sprites, $name); | |
background-repeat: no-repeat; | |
display: block; | |
height: image-height(sprite-file($sprites, $name)); | |
width: image-width(sprite-file($sprites, $name)); |
group :assets do | |
gem 'sass-rails', '~> 3.1.0' | |
gem 'coffee-rails', '~> 3.1.0' | |
gem 'uglifier' | |
gem 'compass' | |
end |
/* JS carousel instantiated as - | |
function newsTickerAnimation(activeID, stagedObj, callback) { | |
var activeObj = $(activeID); | |
activeObj.animate({ | |
left: '-=100px', | |
opacity: 0 | |
}, 250, function() { | |
$(this).css({ |
#!/bin/sh | |
#################################### | |
# Output file for HTML5 video # | |
# Requirements: # | |
# - handbrakecli # | |
# - ffmpeg # | |
# - ffmpeg2theora # | |
# # | |
# usage: # |
// ==UserScript== | |
// @name UTM param stripper | |
// @author Paul Irish | |
// @namespace http://github.com/paulirish | |
// @version 1.2 | |
// @description Drop the UTM params from a URL when the page loads. | |
// @extra Cuz you know they're all ugly n shit. | |
// @include http*://* | |
// ==/UserScript== |
<!DOCTYPE html> | |
<!-- Helpful things to keep in your <head/> | |
// Brian Blakely, 360i | |
// http://twitter.com/brianblakely/ | |
--> | |
<head> | |
<!-- Disable automatic DNS prefetching. | |
/** | |
* Lucida Grande doesn't have italics, but is preferable for its small size awesomeness. | |
* Lucida Sans has lovely italics. | |
* Let's use @font-face to combine them | |
*/ | |
body { | |
font-family:'Lucida Improved','Lucida Grande','Lucida Sans','Lucida Sans Unicode',Verdana,sans-serif; | |
} | |
@font-face { | |
font-family:'Lucida Improved'; |
// instantiate like | |
// var images = new imagePreloader('/path/to/image1.jpg', '/path/to/image2.jpg', ...); | |
var imagePreloader = function() { | |
var _this = this; | |
_this.cache = {}; | |
_this.load = function(src, callback) { | |
var cacheImage = document.createElement('img'); | |
cacheImage.src = src; |
// Mobile Safari doesn't fire touchstart or touchend events for | |
// input[type=text], input[type=password], input[type=search], | |
// and textarea elements. | |
(function() { | |
if (!("createTouch" in document)) return; | |
var selector = "input[type=text], input[type=password], input[type=search], textarea"; | |
function fire(element, type, identifier) { | |
var touch = document.createTouch(window, element, identifier, 0, 0, 0, 0); |