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
An email exchange regarding Refinery CMS | |
---------------------------------------- | |
#1 Inquiry received on the Resolve Digital website | |
From: X | |
Email: X | |
I really cannot stop wondering how can you even dare to call something | |
like Refinery "a CMS". It amazes me even more that you combine that with |
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
article { | |
color: #AAA; | |
} | |
body { | |
line-height: 195%; | |
font-size: 16px; | |
background: #333; | |
} |
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
rendering a custom plugin | |
<% content_for :page_title do %> | |
<%= @destination.title %> | |
<% end %> | |
<% content_for :page_body do %> | |
<section> | |
<h1>Choose from our most popular recommended itineraries below</h1> | |
</section> |
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
rendering a custom plugin | |
<% content_for :page_title do %> | |
<%= @destination.title %> | |
<% end %> | |
<% content_for :page_body do %> | |
<section> | |
<h1>Choose from our most popular recommended itineraries below</h1> | |
</section> |
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
rendering a custom plugin | |
<section id='body_content'> | |
<h1><%= @destination.title %></h1> | |
<section id='page_body'> | |
<section> | |
<h1>Choose from our most popular recommended itineraries below</h1> | |
</section> | |
<%= render @destination.trips %> |
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 <AVFoundation/AVFoundation.h> | |
@interface Player : NSObject <AVAudioPlayerDelegate> { | |
AVAudioPlayer *_audioPlayer; | |
BOOL preloading; | |
} | |
@property (nonatomic) BOOL preloading; | |
- (void)playSound:(NSString *)soundName ofType:(NSString *)type; |
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
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | |
http://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html |
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
{{Infobox software | |
| name = Refinery CMS | |
| logo = [[File:Refinery-cms-logo.png]] | |
| screenshot = [[File:Dashboard-2.png|400px|Screenshot]] | |
| caption = | |
| collapsible = | |
| developer = [[David Jones (Software Developer)|David Jones]], [[Philip Arndt (Software Developer)|Philip Arndt]]. [[Resolve Digital (Web Firm)|Resolve Digital]] | |
| released = {{Start date|2009|5}} | |
| discontinued = | |
| latest release version = 0.9.8.5 |
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
class TwitterController < ApplicationController | |
around_filter :cache_twitter, :only => [:twitter] | |
def twitter | |
begin | |
Timeout::timeout(5) { | |
result = RSSParser.run(RefinerySetting.find_or_set(:twitter_rss_feed_url, | |
"http://twitter.com/statuses/user_timeline/19258840.rss")) | |
@tweets = result[:items][0..0] if result.present? and result[:items].present? |
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
class BlogController < ApplicationController | |
def index | |
begin | |
Timeout::timeout(5) { | |
@posts = RSSParser.run('http://refinerycms.com/blog.rss')[:items][0..3] # get the first 3 posts | |
} | |
rescue Timeout::Error => e | |
logger.warn("timeout exceeded for downloading blog RSS: #{e}") | |
@posts = nil | |
end |