This file contains hidden or 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
/* Global 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,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; } | |
ol, ul { list-style: none; } | |
blockquote, q { quotes: none; } | |
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } | |
:focus { outline: 0; } | |
table { border-spacing: 0; } | |
acronym { cursor: help; } |
This file contains hidden or 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
@contracts = Contract.find(:all,:joins =>'inner join sites on sites.id = contracts.site_id inner join cities on cities.id = sites.city_id inner join states st on st.id = cities.state_id inner join countries c on c.id = st.country_id', :conditions => ['deleted = 0 and sites.site_status_id <>3 and (contracts.end_date - current_date)< 240 and (contracts.end_date - current_date) > 0 and contracts.end_date is not null and c.id in (%s)', current_user.contact.country_ids_by_rights("sites","edit").join(",")], :order=>'contracts.end_date asc') | |
This file contains hidden or 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
UserGuest.blueprint do | |
username | |
password "12345" | |
password_confirmation "12345" | |
role | |
comments | |
end | |
... and then in my blueprint.rb |
This file contains hidden or 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
export COLOR_NC='\e[0m' # No Color | |
export COLOR_WHITE='\e[1;37m' | |
export COLOR_BLACK='\e[0;30m' | |
export COLOR_BLUE='\e[0;34m' | |
export COLOR_LIGHT_BLUE='\e[1;34m' | |
export COLOR_GREEN='\e[0;32m' | |
export COLOR_LIGHT_GREEN='\e[1;32m' | |
export COLOR_CYAN='\e[0;36m' | |
export COLOR_LIGHT_CYAN='\e[1;36m' | |
export COLOR_RED='\e[0;31m' |
This file contains hidden or 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
# | |
# bash completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names |
This file contains hidden or 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
source ~/.git-completion.bash |
This file contains hidden or 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title><%= APP_CONFIG[:app_name] %></title> | |
<%= stylesheet_link_tag "formtastic.css" %> | |
<%= stylesheet_link_tag "application.css" %> |
This file contains hidden or 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
APP_PATH = "/home/wotvenue/rails_app/staging.foo.com" | |
RAILS_ROOT = "/home/wotvenue/rails_app/staging.foo.com/current/" | |
RAILS_ENV = "production" | |
God.watch do |w| | |
w.name = "thinking-sphinx-staging" | |
w.interval = 25.seconds # default | |
w.start = "cd #{RAILS_ROOT} && ruby script/ts:start RAILS_ENV=#{RAILS_ENV}" | |
w.stop = "cd #{RAILS_ROOT} && ruby script/ts:stop RAILS_ENV=#{RAILS_ENV}" | |
w.restart = "cd #{RAILS_ROOT} && ruby script/ts:index RAILS_ENV=#{RAILS_ENV}" |
This file contains hidden or 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
test -f /etc/default/god && . /etc/default/god | |
[ $GOD_CONFIG ] || exit 0 | |
. /lib/lsb/init-functions | |
RETVAL=0 | |
case "$1" in | |
start) | |
echo -n "Starting $DESC: " |
This file contains hidden or 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
## View | |
<% if current_user_authorised?(@venue, current_user) %> | |
Foo~ | |
<% end %> | |
## Helper | |
def current_user_authorised?(record, current_user) | |
current_user ? (true if record.user == current_user or current_user.admin?) : false | |
end |