Skip to content

Instantly share code, notes, and snippets.

View rnaveiras's full-sized avatar

Raúl Naveiras rnaveiras

  • London, United Kingdom
  • 11:44 (UTC)
View GitHub Profile
let's make a list of sinatra-based apps!
apps:
- http://github.com/cschneid/irclogger "Sinatra based irclogger.com"
- http://github.com/rtomayko/wink "minimalist blogging engine"
- http://github.com/foca/integrity "The easy and fun Continuous Integration server"
- http://github.com/sr/git-wiki "git-powered wiki"
- http://github.com/entp/seinfeld "Seinfeld-inspired productivity calendar to track your public github commits."
- http://github.com/karmi/marley "Marley, the blog engine without <textareas>. See in action @ www.restafari.org"
- http://github.com/ichverstehe/gaze "Serve up your Markdown files with this tiny Sinatra app!"
module ActiveSupport
module DependencyModule
def append_features(base)
return if base < self
(@_dependencies ||= []).each { |dep| base.send(:include, dep) }
super
base.extend const_get("ClassMethods") if const_defined?("ClassMethods")
base.class_eval(&@_included_block) if instance_variable_defined?("@_included_block")
end
require 'net/pop'
require File.dirname(__FILE__) + '/../config/environment'
logger = RAILS_DEFAULT_LOGGER
logger.info "Running Mail Importer..."
Net::POP3.start("mail.server.net", nil, "username", "password") do |pop|
if pop.mails.empty?
logger.info "NO MAIL"
else
ActiveSupport::BufferedLogger.new
# Use span in field_error_proc
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
"<span class=\"fieldWithErrors\">#{html_tag}</span>"
end
Rails CMS alternatives
======================
Note: project activity was checked on 11/26/09.
Active projects:
---------------
adva-cms
repo: http://github.com/svenfuchs/adva_cms/
site: http://adva-cms.org/
Last update: 11/24/09
@rnaveiras
rnaveiras / gist:305856
Created February 16, 2010 20:08
My version of Railscats for Xcode
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Colors</key>
<dict>
<key>Background</key>
<string>0.104 0.104 0.104</string>
<key>InsertionPoint</key>
<string>0.902 0.902 0.902</string>
@rnaveiras
rnaveiras / Gemfile
Created March 24, 2010 09:26 — forked from samgranieri/Gemfile
How to get Rails 2.3.5 working with bundler 0.9.3
source :gemcutter
gem 'rails', '~> 2.3.5', :require => nil
@rnaveiras
rnaveiras / base.cfg
Created March 25, 2010 17:33
buidout
######################################################
# Base Configuration; used by both standalone and zeo,
# which extend it.
# ---------------------------------------------------
# $LastChangedDate: 2009-11-08 14:08:34 -0800 (Sun, 08 Nov 2009) $ $LastChangedRevision: 31219 $
# Buildout instructions in this file are
# usually only changed by experienced developers.
#
# Beyond here there be dragons!
@rnaveiras
rnaveiras / setup_load_paths.rb
Created March 10, 2011 17:01
passenger and rvm
if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm')
begin
rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME']))
rvm_lib_path = File.join(rvm_path, 'lib')
$LOAD_PATH.unshift rvm_lib_path
require 'rvm'
RVM.use_from_path! File.dirname(File.dirname(__FILE__))
rescue LoadError
# RVM is unavailable at this point.
raise "RVM ruby lib is currently unavailable."