Skip to content

Instantly share code, notes, and snippets.

!!!strict
%html(xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us")
%head>
%meta(http-equiv="content-type" content="text/html; charset=utf-8")
%title=page.title
%meta(name="author" content="Robert W Boyer")
%link(rel="stylesheet" href="/css/syntax.css" type="text/css")
@rwboyer
rwboyer / test.rb
Created January 6, 2012 16:08
Test
class MaybeRuby
def ruby?
return :true
end
end
@rwboyer
rwboyer / example.sh
Created January 10, 2012 02:50
Ruby Gems
gem install jekyll
@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.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 / 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 / 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 / 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 / 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/*/*
#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{