Skip to content

Instantly share code, notes, and snippets.

View scottelundgren's full-sized avatar

Scott Lundgren scottelundgren

View GitHub Profile
@scottelundgren
scottelundgren / keybase.md
Created September 9, 2016 17:46
keybase.io proof

Keybase proof

I hereby claim:

  • I am scottelundgren on github.
  • I am scottelundgren (https://keybase.io/scottelundgren) on keybase.
  • I have a public key ASBcN5-uiuLe9EpUdJavcHa4oQu1cYLXJKHAPhKq8u-1Cwo

To claim this, I am signing this object:

@scottelundgren
scottelundgren / Middleman Bug Demo
Last active August 29, 2015 14:04
auto_javascript_include_tag fails when directory_indexes is active
middleman init example.com
cd source
cp index.html.erb example.html.erb
edit example.html.erb to
---
title: Example Page
---
<h1>Example Page</h1>
<p>Hello, world!</p>
@scottelundgren
scottelundgren / middleman-blog-tags-posts-alphabetically
Last active September 22, 2017 15:56
List all tags alphabetically in a middleman blog and list all posts alphabetically with that tag
<% blog.tags.sort.each do |tag, articles| %>
<h2>Posts tagged '<%= tag.capitalize %>'</h2>
<ul>
<% articles.sort_by(&:title).each do |article| %>
<li><%= link_to article.title, article %></li>
<% end %>
</ul>
<% end %>
@scottelundgren
scottelundgren / gist:9647045
Created March 19, 2014 17:36
Bootstrap Navbar Example
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
Menu
</button>
<a class="navbar-brand" href="index.html"></a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
@scottelundgren
scottelundgren / gist:5506086
Created May 2, 2013 22:55
Output of adding github "vagrant", "2.0.6" to a boxen 1.2.0 Puppetfile
Boxen has a dirty tree, won't auto-update!
tar: Error opening archive: Failed to open 'vagrant'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1414:in `fu_each_src_dest0': undefined method `to_str' for nil:NilClass (NoMethodError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1400:in `fu_each_src_dest'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:423:in `cp_r'
from /opt/boxen/repo/.bundle/ruby/1.8/gems/librarian-puppet-0.9.9/lib/librarian/puppet/source/githubtarball.rb:60:in `install_version!'
from /opt/boxen/repo/.bundle/ruby/1.8/gems/librarian-puppet-0.9.9/lib/librarian/puppet/source/githubtarball.rb:208:in `install!'
from /opt/boxen/repo/.bundle/ruby/1.8/gems/librarian-puppet-0.9.9/vendor/librarian/lib/librarian/manifest.rb:89:in `install!'
from /opt/boxen/repo/.bundle/ruby/1.8/gems/librarian-puppet-0.9.9/vendor/librarian/lib/librarian/action/install.rb:49:in `install_manife