- OS X Update 10.9.1, iBooks, iTunes, etc.
- Install / Update Apple Programs (Optional)
- iWork (Pages, Numbers, Keynote)
- iLife (iMovie, iPhoto, Garageband)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
# ~/.git_hooks/lib/issue_numbers.rb | |
$issue_pattern = /\d{5}(?=-)/ | |
#require 'git' | |
#g = Git.open(working_dir, :log => Logger.new(STDOUT)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// strip-units required by spread mixin | |
// http://stackoverflow.com/questions/12328259/how-do-you-strip-the-unit-from-any-number-in-sass | |
@function strip-units($number) | |
@return $number / ($number * 0 + 1) | |
// pow and sqrt required by ease function | |
// adapted from https://github.com/at-import/Sassy-math/blob/master/sass/math.scss | |
@function pow($base, $exponent) | |
$value: $base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements template_process_html(). | |
*/ | |
// Remove Query Strings from CSS filenames (CacheBuster) | |
function MYTHEME_process_html(&$variables) { | |
$variables['styles'] = preg_replace('/\.css\?.*"/','.css"', $variables['styles']); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Gruntfile for Pattern Lab + Compass + Live Reload via grunt-browser-sync | |
Set up to use browser-sync because for the life of me I can't get | |
the grunt-contrib-watch livereload to *inject* the compiled CSS changes | |
to the browser (as opposed to livereload doing a full page refresh)... | |
(To be clear, the CSS injection I'm talking about is where changes to | |
the CSS file are slipped in to the browser very quickly with no | |
full page reload, and without losing your place if you've scrolled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// there is a solution for jQuery < 1.9.0, where you can use `$.browser`: | |
// https://gist.github.com/nathansmith/950767 | |
// but jQuery removed `$.browser` in version 1.9.0, so you have to get another way: | |
function last_child() { | |
if (/msie [1-8]{1}[^0-9]/.test(navigator.userAgent.toLowerCase())) { | |
$('*:last-child').addClass('last-child'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.setAllToMaxHeight = function(){ | |
return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) ); | |
} | |
// usage: $(‘div.unevenheights’).setAllToMaxHeight(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime, sublime_plugin, re | |
DEBUG_ENABLED = False | |
PRINT_CONTEXT = False | |
# Toggle between single-line or multi-line formatted css statement | |
# | |
# Add the following line to Preferences > Key Bindings - User | |
# { "keys": ["ctrl+shift+j"], "command": "toggle_single_line_css" } | |
# |