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
| RubyGems Environment: | |
| - RUBYGEMS VERSION: 1.3.5 | |
| - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] | |
| - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 | |
| - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby | |
| - EXECUTABLE DIRECTORY: /usr/bin | |
| - RUBYGEMS PLATFORMS: | |
| - ruby | |
| - universal-darwin-10 | |
| - GEM PATHS: |
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
| <div style="height:74px; width:74px; "><img alt="" src="http://jeffdoedesign.com/wordpress/wp-content/uploads/memory_cassette.jpg" title="the xxe jeffdoe" style="float:left;" class="alignnone" width="74" height="74" /> | |
| </div> | |
| <div style="clear:both; padding-left:10px; "> | |
| <span class="songtitles1">The XX - Basic Space (Sampha Remix) [audio:https://dl.getdropbox.com/u/523218/xxbasicspacesampha.mp3] | |
| </span> | |
| </div> |
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
| <%- @items.each do |feed| -%> | |
| <%= render :partial => "home/feeds/#{feed[:item].action_type}_#{feed[:item].feedable_type.downcase}", | |
| :locals => { :item => feed[:content], :feed => feed[:item] } %> | |
| <%- end -%> |
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
| +----+---------+---------+-------------+----------------+------------+ | |
| | id | user_id | action | feedable_id | feedable_type | created_at | | |
| +----+---------+---------+-------------+----------------+------------+ | |
| | 1 | 1 | create | 1 | Comment | 10/10/2009 | | |
| | 2 | 2 | edit | 1 | Comment | 10/11/2009 | | |
| | 3 | 1 | create | 1 | Message | 10/12/2009 | | |
| | 4 | 2 | create | 2 | Message | 10/13/2009 | | |
| | 5 | 1 | create | 1 | Connection | 10/14/2009 | | |
| | 6 | 2 | edit | 1 | Connection | 10/15/2009 | | |
| +----+---------+---------+-------------+----------------+------------+ |
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 HomeController < ApplicationController | |
| def index | |
| feeds = Feed.find(:all, | |
| :conditions => ['created_at > ?', 5.days.ago], | |
| :order => 'created_at DESC', | |
| :limit => 15) | |
| # We now need to put each one into instance variable | |
| @items = feeds.collect do |item| | |
| # Translates to Comment.find(1), Connection.find(1), etc. |
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
| <script type="text/javascript" charset="utf-8"> | |
| $(document).ready(function(){ | |
| $('a[rel*=facebox]').facebox({ | |
| loading_image : 'loading.gif', | |
| close_image : 'closelabel.gif' | |
| }); | |
| $('#project_form').live("submit", function(e){ | |
| e.preventDefault(); | |
| $.post( | |
| 'new_project.php', |
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
| set :cron_log, "/var/log/cron_log.log" | |
| every 1.day, :at => '12pm' do | |
| rake "backup" | |
| end | |
| every :hour do | |
| # process payments | |
| end |
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
| Some source code here |
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 String | |
| def die | |
| "#{self} die" | |
| end | |
| end |
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 FindProxyForURL(url, host) { | |
| if (shExpMatch(url,"*.dev/*")) { | |
| return "PROXY localhost"; | |
| } | |
| return "DIRECT"; | |
| } |