Skip to content

Instantly share code, notes, and snippets.

@davidott
davidott / css
Created August 25, 2012 20:27
twitter bootstrap css
html,body{margin:0;padding:0;}
h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,cite,code,del,dfn,em,img,q,s,samp,small,strike,strong,sub,sup,tt,var,dd,dl,dt,li,ol,ul,fieldset,form,label,legend,button,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;font-weight:normal;font-style:normal;font-size:100%;line-height:1;font-family:inherit;}
table{border-collapse:collapse;border-spacing:0;}
ol,ul{list-style:none;}
q:before,q:after,blockquote:before,blockquote:after{content:"";}
html{overflow-y:scroll;font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;}
a:focus{outline:thin dotted;}
a:hover,a:active{outline:0;}
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block;}
audio,canvas,video{display:inline-block;*display:inline;*zoom:1;}
@davidott
davidott / application layout
Created August 25, 2012 20:26
application layout
<!DOCTYPE html>
<html>
<head>
<title>Solar Sound Inc | Entertainment </title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
<style type="text/css">
body {
padding-top: 60px;
@davidott
davidott / gist:2369101
Created April 12, 2012 16:55
Database
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#development:
# adapter: sqlite3
# database: db/development.sqlite3
# pool: 5
# timeout: 5000
@davidott
davidott / Terminal commands
Created December 28, 2011 01:26
Trying to push to git and new controller /views
Davids-MacBook-Pro:blog daviddotterweich$ git.add
-bash: git.add: command not found
Davids-MacBook-Pro:blog daviddotterweich$ git.
-bash: git.: command not found
Davids-MacBook-Pro:blog daviddotterweich$ git. add
-bash: git.: command not found
Davids-MacBook-Pro:blog daviddotterweich$ git
usage: git [--version] [--exec-path[=<path>]] [--html-path]
[-p|--paginate|--no-pager] [--no-replace-objects]
[--bare] [--git-dir=<path>] [--work-tree=<path>]