This file contains 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
/* clearfix */ | |
.clearfix:after { | |
content: "."; | |
display: block; | |
clear: both; | |
visibility: hidden; | |
line-height: 0; | |
height: 0; | |
} |
This file contains 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
OAuth::Unauthorized - 401 Unauthorized: | |
/home/slugs/94612_0c65419_33bb/mnt/.gems/gems/oauth-0.3.6/lib/oauth/consumer.rb:200:in `token_request' | |
/home/slugs/94612_0c65419_33bb/mnt/.gems/gems/oauth-0.3.6/lib/oauth/consumer.rb:128:in `get_request_token' | |
/home/slugs/94612_0c65419_33bb/mnt/.gems/gems/twitter_oauth-0.2.1/lib/twitter_oauth/client.rb:39:in `request_token' | |
sinitter.rb:53:in `GET /connect' | |
/home/heroku_rack/lib/static_assets.rb:9:in `call' | |
/home/heroku_rack/lib/last_access.rb:25:in `call' | |
/home/heroku_rack/lib/date_header.rb:14:in `call' | |
/usr/local/bin/thin:20:in `load' | |
/usr/local/bin/thin:2064.81.241.91, 10.250.31.111 - - [04/Dec/2009 16:14:51] "GET /connect HTTP/1.1" 500 30 1.4006 |
This file contains 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
require "rubygems" | |
require "mongomapper" | |
require "sinatra" | |
MongoMapper.database = "dbname" | |
class Example | |
include MongoMapper::Document | |
This file contains 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
sudo sh -c 'echo configure.cc-append -L\${prefix}/lib >> $(port file help2man)' | |
sudo port selfupdate | |
sudo port update outdated |
This file contains 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
#!/bin/bash | |
if test -z "$1"; then | |
echo "usage: $0 <libname>" | |
exit 1 | |
fi | |
for file in `find /opt/local/lib -name *.dylib; find /opt/local/bin`; do | |
# Skip this match if it's a symbolic link | |
if test -f $file -a ! -L $file; then | |
# Look for references to the missing library | |
otool -L $file | grep --silent $1 |
This file contains 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
Peleliu:homepage jayfallon$ groove managua | |
/Library/Ruby/Gems/1.8/gems/groove-0.1.7/bin/groove:6: uninitialized constant Thor::Group (NameError) | |
from /usr/bin/groove:19:in `load' | |
from /usr/bin/groove:19 |
This file contains 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
# Install Padrino | |
gem install padrino | |
# Put this in your shell for create in few seconds a Padrino Project with Padrino Admin | |
padrino-gen project foo -d activerecord; cd foo; bundle install; padrino-gen admin; padrino-gen admin_uploader; bundle install; padrino rake ar:migrate; padrino rake seed; padrino start |
This file contains 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
#!/usr/bin/ruby | |
require 'csv' | |
print "CSV file to read: " | |
input_file = gets.chomp | |
print "File to write XML to: " | |
output_file = gets.chomp |
This file contains 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
map.root :controller => "pages" | |
map.home ':page', :controller => 'pages', :action => 'show', :page => /index|contact/ | |
class PagesController < ApplicationController | |
def home | |
#render the landing page | |
end | |
def contact | |
end |
This file contains 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
/* | |
Meyer CSS Reset | |
*/ | |
html,body,div,span,applet,object,iframe, | |
h1,h2,h3,h4,h5,h6,p,blockquote,pre, | |
a,abbr,acronym,address,big,cite,code, | |
del,dfn,em,font,img,ins,kbd,q,s,samp, | |
small,strike,strong,sub,sup,tt,var, | |
dl,dt,dd,ol,ul,li, | |
fieldset,form,label,legend, |
OlderNewer