Jun 10 2011
∞
Sass and Sprockets for Rails 3.1
I blogged!
I blogged!
* Chrome
* Firefox
* Firebug
* Web developer tools
* Alfred
* TextMate
* AckMate, GetBundles, ProjectPlus
* GitX
* Inconsolata
* Homebrew
* Xcode and the iOS SDK
* Git
* Ruby Version Manager
Probably shouldn’t have multiple people switching tags in the same directory on a development server, but I still need to a place to put this:
chown -R :Domain\ Users . && chmod -R g+w .
string.match(regexp) and regexp.exec(string) don’t do the same thing when it comes to global pattern matching.event.currentTarget is the element that is listening to the event, so you don’t have to rely on this.beforeunload event.keyCode and charCode.This list will grow.
Yep.
$.fn.tallest = $.fn.tallest || function(outer, margins) {
var fn = outer ? "height" : "outerHeight";
return Math.max.apply(Math, $.map(this, function(el) {
return $(el)[fn](margins);
}));
};
$.fn.widest = $.fn.widest || function(outer, margins) {
var fn = outer ? "width" : "outerWidth";
return Math.max.apply(Math, $.map(this, function(el) {
return $(el)[fn](margins);
}));
};
EDIT: Math.max.apply(Math, array), not Math.max.apply(null, array) for IE6.
EDIT 2: $.map doesn’t call the function in the context of each object, but instead passes it as the first argument. Arg.
$.fn.maxWidth = function(outer, margins) {
var o = 0, i, l;
for (i = 0, l = this.length; i
Edit: Wow, I went months before realizing that these didn't actually work. Fixed.
From a colleague working on a site audit:
<div class="SeoSection"> <!-- Search Engine Optimization //--> <h1>Overview</h1> </div>