Skip to content

Instantly share code, notes, and snippets.

@rwboyer
rwboyer / twit.html
Created October 16, 2012 19:25
twitter card shite
<!-- Twitter Card Stuff -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="{{ site.twitter_site }}">
<meta name="twitter:creator" content="{{ site.twitter_creator }}">
{% capture canonical %}{{ site.url }}{% if site.permalink contains '.html' %}{{ page.url }}{% else %}{{ page.url | remove:'index.html' | strip_slash }}{% endif %}{% endcapture %}
<meta name="twitter:url" content="{{ canonical }}">
<meta name="twitter:title" content="{{ page.title }}">
<meta name="twitter:description" content="{{ page.meta_desc }}">
#header{
//@include push(4);
@include column(12,collapse);
background-color: rgba(255,255,255, 0.6);
position: fixed;
z-index: 999;
h1, h2, h3, h4, h5, h6{
display: inline;
}
h1{
#header{
//@include push(4);
@include column(12,collapse);
background-color: rgba(255,255,255, 0.6);
position: fixed;
z-index: 999;
h1, h2, h3, h4, h5, h6{
display: inline;
}
h1{
@rwboyer
rwboyer / openbsd-terminfo
Created January 27, 2012 23:21
man 5 terminfo for openbsd
terminfo(5) File Formats terminfo(5)
NNAAMMEE
terminfo - terminal capability database
SSYYNNOOPPSSIISS
/usr/share/misc/terminfo/*/*
@rwboyer
rwboyer / heroku.log
Created January 16, 2012 00:18
activerecord error
D, [2012-01-15T16:18:00.862824 #2] DEBUG -- : NoMethodError: undefined method `values' for #<PGresult:0x0000000287c8a8>: SHOW client_min_messages
D, [2012-01-15T16:18:00.864452 #2] DEBUG -- : PGError: ERROR: invalid value for parameter "client_min_messages": ""
: SET client_min_messages TO ''
@rwboyer
rwboyer / 002_create_products.rb
Created January 15, 2012 23:21
Rakefile for postgres issue
require 'lib/model/product'
class CreateProducts < ActiveRecord::Migration
def self.up
create_table :products do |t|
t.string :pnumber, :null => false
t.string :image, :null => false
t.string :name, :null => false
t.decimal :price, :null => false #, :precision => 8, :scale => 2
t.string :description, :null => false
@rwboyer
rwboyer / Gemfile.lock
Created January 15, 2012 23:12
Active record bug with heroku and postgres
GEM
remote: http://rubygems.org/
specs:
activemodel (3.1.3)
activesupport (= 3.1.3)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.3)
activemodel (= 3.1.3)
activesupport (= 3.1.3)
@rwboyer
rwboyer / example.html
Created January 10, 2012 02:59
Example HTML
<div class="myclass">
<p class="reallycooltype">
Some plain old text
{% liquid tag %}
<randomtag>
</randomtag>
</p>
</div>
@rwboyer
rwboyer / example.haml
Created January 10, 2012 02:55
Haml Example
.myclass
%p.reallycooltype
Some plain old text
{% liquid tag %}
%randomtag
Some more plain old text or liquid tag which is treated like plain old text
@rwboyer
rwboyer / example.sh
Created January 10, 2012 02:50
Ruby Gems
gem install jekyll