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 | |
while [ "$*" ]; do | |
case $1 in | |
-pre*) | |
XXX_PRE_ARGS=( $XXX_PRE_ARGS "$2" ) | |
;; | |
-post*) | |
XXX_POST_ARGS=( $XXX_POST_ARGS "$2" ) | |
;; |
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
#see global.css around line 1300 for all available CSS button options | |
def graphic_button(params) | |
className = (!params[:class].nil?) ? params[:class] : "" # if no classname, default to ?? | |
if className == "" | |
className = (!params[:buttonStyle].nil?) ? params[:buttonStyle] : "graphicBtnSmall" | |
className = (!params[:buttonColor].nil?) ? className + " " + params[:buttonColor] + className.classify : className | |
className = (!params[:extraClass].nil?) ? className + " " + params[:extraClass] : className | |
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
<script type="text/javascript"> | |
<!--// | |
document.observe("dom:loaded", function() { | |
loadBox(); | |
<% if open_print_dialog? %> | |
print(); | |
<% end %> | |
<% if session[:open_login_popup] %> | |
showLoginBox($('loginAllvoices')); | |
$('redirectUrl').value = '<%= session[:return_url] if session[:return_url] %>'; |
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
JSON::GeneratorError (source sequence is illegal/malformed): | |
/home/zork/.gem/ruby/1.8/gems/activerecord-2.2.2/lib/active_record/serializers/json_serializer.rb:70:in `to_json' | |
/home/zork/.gem/ruby/1.8/gems/activerecord-2.2.2/lib/active_record/serializers/json_serializer.rb:70:in `serialize' | |
/home/zork/.gem/ruby/1.8/gems/activerecord-2.2.2/lib/active_record/serialization.rb:91:in `to_s' | |
/home/zork/.gem/ruby/1.8/gems/activerecord-2.2.2/lib/active_record/serializers/json_serializer.rb:57:in `to_json' | |
/app/models/event.rb:1305:in `to_json' | |
/app/controllers/rss_controller.rb:127:in `feed' | |
/home/zork/.gem/ruby/1.8/gems/actionpack-2.2.2/lib/action_controller/mime_responds.rb:135:in `call' | |
/home/zork/.gem/ruby/1.8/gems/actionpack-2.2.2/lib/action_controller/mime_responds.rb:135:in `custom' | |
/home/zork/.gem/ruby/1.8/gems/actionpack-2.2.2/lib/action_controller/mime_responds.rb:164:in `call' |
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
themePreview: function() { | |
$('themePreview').empty | |
var script = new Element('script', { src: $F('embed_code').gsub(/<script\ src=\"/, '').gsub(/\"><\/script>/, '') }); | |
$('themePreview').insert(script); | |
}, |
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
<html> | |
<head> | |
<title>Feed Test</title> | |
</head> | |
<body> | |
blah blah | |
<div id="av-news-widget"></div> | |
<script type="text/javascript"> | |
WIDGET_TITLE = 'Allvoices News'; |
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
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0 | |
Processing MapController#category_type_region_geolocation (for 127.0.0.1 at 2009-09-26 19:52:21) [GET] | |
Session ID: 9bd29bbf299c97265f855ca39770f91a | |
Parameters: {"category"=>"political-news", "type"=>"all"} | |
define_map_cookies | |
Cache miss: ads:category=1&news_type=all&type=landing ({:using=>{"category"=>1, "news_type"=>"all", "type"=>"landing"}, :expires_in=>900 seconds}) | |
GoogleAd Load (3.4ms) SELECT SQL_NO_CACHE * FROM `google_ads` WHERE (enabled=1 and page_type='landing' and category_id=1 and news_type='all') | |
GoogleAd Columns (1.1ms) SHOW FIELDS FROM `google_ads` |
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
def list_old | |
@brand = params[:brand] | |
@group = params[:group] | |
@title = "#{@brand.capitalize} #{@group.capitalize}" | |
case @brand | |
when 'usedsteinway': | |
@title = "Pre-Owned & Refurbished Steinway #{@group.capitalize}" | |
@products = Product.stats.brand('steinway').group(@group).used.price | |
when 'cristofori': |
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
def set_title(page_title) | |
content_for(:title) { "- #{page_title}" } | |
content_for(:h1) { page_title } | |
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
ActionController::Routing::Routes.draw do |map| | |
map.resources :events | |
map.resources :contacts | |
map.connect 'pianofinder/:action', :controller => 'pianofinder' | |
map.connect 'stores/:action', :controller => 'store' | |
map.connect 'events', :controller => 'events' | |
map.connect 'institutional', :controller => 'institutional' | |
map.connect 'contact/', :controller => 'contact' |
NewerOlder