Skip to content

Instantly share code, notes, and snippets.

View jayfallon's full-sized avatar
🎯
Focusing

Jay Fallon jayfallon

🎯
Focusing
View GitHub Profile
/* clearfix */
.clearfix:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
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
require "rubygems"
require "mongomapper"
require "sinatra"
MongoMapper.database = "dbname"
class Example
include MongoMapper::Document
sudo sh -c 'echo configure.cc-append -L\${prefix}/lib >> $(port file help2man)'
sudo port selfupdate
sudo port update outdated
#!/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
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
@jayfallon
jayfallon / gist:307614
Created February 18, 2010 12:32 — forked from DAddYE/gist:307591
# 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
#!/usr/bin/ruby
require 'csv'
print "CSV file to read: "
input_file = gets.chomp
print "File to write XML to: "
output_file = gets.chomp
@jayfallon
jayfallon / Static pages routes and controllers
Created July 7, 2010 03:52
Static pages routes and controller
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
@jayfallon
jayfallon / reset.css
Created July 7, 2010 03:56
Reset CSS file
/*
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,