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
| UPDATE wp_posts SET guid = REPLACE (guid, 'http://localhost:8888', 'http://wa.flywheelsites.com'); | |
| UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://localhost:8888', 'http://wa.flywheelsites.com'); | |
| UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://localhost:8888','http://wa.flywheelsites.com'); |
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
| module IMGtag | |
| class ImageTag < Liquid::Tag | |
| @img = nil | |
| def initialize(tag_name, markup, tokens) | |
| attributes = ['class', 'src', 'width', 'height', 'title'] | |
| if markup =~ /(?<class>\S.*\s+)?(?<src>(?:https?:\/\/|\/|\S+\/)\S+)(?:\s+(?<width>\d+))?(?:\s+(?<height>\d+))?(?<title>\s+.+)?/i |
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
| bundle exec middleman s3_sync | |
| == LiveReload is waiting for a browser to connect | |
| s3_sync Gathering the paths to evaluate. | |
| Progress: |====================================================================| | |
| s3_sync | |
| Ready to apply updates to test.rwboyer.com. | |
| s3_sync Creating 2011/05/31/i-am-american/index.html | |
| s3_sync Creating 2011/06/02/whats-wrong-with-this-color-management-picture/index.html | |
| s3_sync Creating 2011/06/18/imac-27-sandy-bridge-update/index.html | |
| s3_sync Creating 2011/06/20/my-strange-masochistic-foveon-desire/index.html |
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
| bundle exec middleman s3_sync rvm:ruby-2.0.0-p247 | |
| == LiveReload is waiting for a browser to connect | |
| s3_sync Gathering the paths to evaluate. | |
| s3_sync ============================================================== | | |
| Ready to apply updates to test.rwboyer.com. | |
| s3_sync Creating 2010/02/07/new-aperture-ebook/index.html | |
| s3_sync Creating 2010/02/08/aperture-adjustment-controls-beyond-the-sliders/index.html | |
| s3_sync Creating 2010/02/08/small-strobes-quick-and-dirty/index.html | |
| s3_sync Creating 2010/02/08/whats-wrong-with-this-picture/index.html | |
| s3_sync Creating 2010/02/09/aperture-3-and-pdn/index.html |
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
| aGEM | |
| remote: http://rubygems.org/ | |
| specs: | |
| activemodel (3.2.15) | |
| activesupport (= 3.2.15) | |
| builder (~> 3.0.0) | |
| activesupport (3.2.15) | |
| i18n (~> 0.6, >= 0.6.4) | |
| multi_json (~> 1.0) | |
| asset_sync (1.0.0) |
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
| # def some_helper | |
| # "Helping" | |
| # end | |
| # end | |
| set :js_dir, 'js' | |
| set :css_dir, 'css' | |
| foundation_path = Gem::Specification.find_by_name('zurb-foundation').gem_dir |
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
| # If you have OpenSSL installed, we recommend updating | |
| # the following line to use "https" | |
| source 'http://rubygems.org' | |
| gem "middleman", "~>3.1.6" | |
| gem "excon", "0.28.0" | |
| gem "fog", "1.18.0" | |
| gem "middleman-blog" | |
| gem "middleman-sync" | |
| gem "middleman-s3_sync" |
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
| s3_sync Creating .htaccess | |
| s3_sync Creating 2008/03/28/lies-damned-lies-and-statistics/index.html | |
| s3_sync Creating 2008/04/14/histograms-and-using-your-head/index.html | |
| s3_sync Creating 2008/04/16/color-management-and-other-stupid-internet-tricks/index.html | |
| s3_sync Creating 2008/04/20/a-quick-review-of-portrait-lighting-terms/index.html | |
| s3_sync Creating 2008/05/05/local-contrast-and-perceived-tonal-values/index.html | |
| s3_sync Creating 2008/07/15/apple-aperture-21-organization/index.html | |
| s3_sync Creating 2008/07/23/some-thoughts-on-white-balance/index.html | |
| s3_sync Creating 2008/07/25/quick-tip-using-a-beauty-dish/index.html | |
| s3_sync Creating 2008/07/28/hdr-versus-plain-old-raw/index.html |
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
| <section> | |
| <h3>Featured Articles</h3> | |
| <% blog.articles.select {|a| a.page.data.featured }.each do |post| %> | |
| <a class="side" href=<%= "#{post.url}" %>> | |
| <img class="side" src=<%= "#{post.featured}" %>></img> | |
| </a> | |
| <p><%= post.title %></p> | |
| <% end %> | |
| </section> |
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 class="entry-content">{{ content | excerpt }}</div> | |
| {% capture excerpted %}{{ content | has_excerpt }}{% endcapture %} | |
| {% if excerpted == 'true' %} | |
| <footer> | |
| <a rel="full-article" href="{{ root_url }}{{ post.url }}">{{ site.excerpt_link }}</a> | |
| </footer> | |
| {% endif %} | |
| {% else %} | |
| <div class="entry-content">{{ content }}</div> | |
| {% endif %} |