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
# Thinking Sphinx Rake Tasks | |
rake thinking_sphinx:start | |
rake thinking_sphinx:stop | |
rake thinking_sphinx:restart | |
rake thinking_sphinx:index | |
# Models | |
class Article < ActiveRecord::Base | |
define_index do |
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
<ul id="quotes"> | |
<li class="showing"> | |
<blockquote> | |
<p>“…very professional, providing us with support and guidance throughout”</p> | |
<p><cite><img src="some_image.gif" alt="Company X" /></cite></p> | |
</blockquote> | |
</li> | |
<li> | |
<blockquote> | |
<p>“Simply brilliant”</p> |
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
$(function(){ | |
$('body').removeClass('js-disabled').addClass('js-enabled'); | |
$('#quotes').flashQuotes(); | |
}); | |
$.fn.flashQuotes = function(){ | |
return this.each(function(){ | |
var quotes = $('>li',this); |
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
// application.js | |
$(function(){ | |
$('body').removeClass('js-disabled').addClass('js-enabled'); | |
$('#i_like_this').incrementILikeCount(); | |
}); | |
$.fn.incrementILikeCount = function() { | |
return this.each(function(){ | |
var linkAction = $(this).attr('href') |
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
<ul id="blog_months"> | |
<% @months.each_with_index do |month, index| %> | |
<li class="<%= monthly_post_list_class(month) %>"> | |
<div class="outer_month_border"> | |
<div class="monthly_posts <%= cycle("light_outer", "dark_outer")%>"> | |
<div class="monthly_posts_inner_bar <%= cycle("light_inner", "dark_inner")%>" style="height: <%= month_percentage_calculator(index) %>%"></div> | |
</div> | |
</div> | |
<%= content_tag :h5, link_to(month, articles_path(:month => (index+1))), :class => todays_month(index) %> | |
</li> |
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
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -v 2.7 -- --with-mysql-config=/usr/local/mysql/bin/mysql_configh-mysql-config=/usr/local/mysql/bin/mysql_co |
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
<p><a href="http://goo.gl/gkRvx"><img src="http://thefourohfive.com/images/pias/pias_support_large.jpg" target="_blank" alt="Support PIAS and independent Music" width="466" height="96" /></a></p> |
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
# Set git autocompletion and PS1 integration | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
GIT_PS1_SHOWDIRTYSTATE=true | |
if [ -f /opt/local/etc/bash_completion ]; then | |
. /opt/local/etc/bash_completion | |
fi |
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
source :rubygems | |
gem 'rails', '3.1.0' | |
gem 'rake', '0.8.7' | |
gem 'pg' | |
gem 'authlogic' | |
gem "grackle", '~> 0.1.10' | |
gem "will_paginate", "~> 3.0" | |
gem 'delayed_job' | |
gem 'hpricot' |
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
/* | |
*= require bootstrap | |
*/ | |
/* rest of file omitted */ |
OlderNewer