This file contains hidden or 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 "compass/utilities/sprites/base"; | |
@mixin sprites($map, $sprite-names, $base-class: false, $dimensions: false, $prefix: sprite-map-name($map), $offset-x: 0, $offset-y: 0) { | |
@each $sprite-name in $sprite-names { | |
@if sprite_does_not_have_parent($map, $sprite-name) { | |
$full-sprite-name: "#{$prefix}#{$sprite-name}"; | |
.#{$full-sprite-name} { | |
@if $base-class { @extend #{$base-class}; } | |
@include sprite($map, $sprite-name, $dimensions, $offset-x, $offset-y); | |
} |
This file contains hidden or 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
class PoolsController < ApplicationController | |
def index | |
@event = Event.find params[:event_id] | |
@pools = @event.pools | |
end | |
def new | |
type = nil | |
type = params[:type] if ["date", "text"].include?params[:type] |
This file contains hidden or 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
(function($) { | |
$.grepWithLimit = function( elems, callback, limit, inv ) { | |
var ret = [], retVal; | |
inv = !!inv; | |
// Go through the array, only saving the items | |
// that pass the validator function | |
for ( var i = 0, length = elems.length; i < length; i++ ) { | |
retVal = !!callback( elems[ i ], i ); | |
if ( inv !== retVal ) { |
This file contains hidden or 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
#!/bin/bash | |
# Unattended REE/Passenger installation | |
# Source: http://weblog.brightlight-ict.nl/2008/12/unattended-passenger-ruby-enterprise-installation-on-ubuntu-8/ | |
# 15/03/09 Updated to use latest r.e.e. and passenger 2.1 and rewrote bits thanks to the comments left on my blog. Thanks guys | |
if [ "$(whoami)" != "root" ]; then | |
echo "You need to be root to run this!" | |
exit 2 | |
fi | |