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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> | |
<script src="http://medpediamedia.com.s3.amazonaws.com/jquery.gbox.js" type="text/javascript"></script> | |
<style type="text/css"> | |
.gbox_dialog, .gbox { | |
display: none; | |
border: 3px solid #00f; |
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
# MySQL BLOB logging filter. | |
# | |
class ActiveRecord::ConnectionAdapters::AbstractAdapter | |
# Replace BLOB portion of message with "BLOB(n bytes)". | |
# | |
# ==== Paramters | |
def format_log_entry_with_blob_filter(message, dump = nil) | |
dump.gsub!(/x'[^']+'/) { |blob| "BLOB(#{(blob.length-3)/2} bytes)" } if dump | |
format_log_entry_without_blob_filter(message, dump) |
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
# in config/initializer/cache_money.rb | |
# disabling CacheMoney as of 3/12/2009 to see how the site performs w/o | |
# such heavy-handed caching enabled | |
if false | |
#false && (['staging', 'production'].include?(RAILS_ENV) || ENV['CACHEMONEY'] == 'true') | |
require 'cache_money' | |
config = YAML.load(IO.read(File.join(RAILS_ROOT, "config", "memcached.yml")))[RAILS_ENV] | |
$memcache = MemCache.new(config) |
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
source "http://gems.rubyforge.org" | |
source "http://gems.github.com" | |
gem "rails", "2.3.2" | |
gem "hpricot", "0.8.1" | |
gem "aws-s3", "0.6.2", :require => "aws/s3" | |
gem "syphon", ">= 0.4.0" | |
gem "image_science" | |
gem "rugalytics", ">= 0.2.0" | |
gem "feedzirra" |
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
- unless @badge_js_url.nil? | |
%script{ :src => @badge_js_url } | |
%style{ :type => "text/css" } | |
== #medpedia_badge_large {display:block !important !important;text-align:left !important !important;} | |
== #medpedia_badge_large a{font-family:Lucida,sans-serif !important !important;color:#787B7D !important;font-weight:bold !important;text-decoration:none !important;font-size:12px !important;display:block !important;width:125px !important;line-height:12px !important;} | |
== #medpedia_badge_large .image_link{height:125px !important;width:125px !important;} | |
== #medpedia_badge_large .text_link{position:relative !important;left:16px !important;top:-20px !important;width:100px !important;} | |
== #medpedia_badge_large img{border:none !important;} | |
#medpedia_badge_large | |
- unless @blog.nil? |
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
ooga@xxx ~ $ emerge -pv dev-libs/cyrus-sasl | |
These are the packages that would be merged, in order: | |
Calculating dependencies... done! | |
[ebuild N ] dev-libs/cyrus-sasl-2.1.23-r1 USE="berkdb crypt gdbm pam ssl -authdaemond -java -kerberos -ldap -mysql -ntlm_unsupported_patch -postgres -sample -sqlite -srp -urandom" 1,576 kB | |
Total: 1 package (1 new), Size of downloads: 1,576 kB | |
!!! The following installed packages are masked: |
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/env ruby | |
## git-publish-branch: a simple script to ease the unnecessarily complex | |
## task of "publishing" a branch, i.e., taking a local branch, creating a | |
## reference to it on a remote repo, and setting up the local branch to | |
## track the remote one, all in one go. you can even delete that remote | |
## reference. | |
## | |
## Usage: git publish-branch [-d] <branch> [repository] | |
## |
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
<LocationMatch "\/(images)\/.*\.(ico|pdf|flv|jpe?g|png|gif|js|css|swf)"> | |
# Set far future expires | |
RewriteEngine on | |
RewriteCond %{REQUEST_URI} \.(css|js|jpe?g|png|gif|ico) [NC] | |
RewriteCond %{QUERY_STRING} [0-9]+$ | |
RewriteRule ^(.*)$ $1 [E=VERSIONED_FILE:1,L] | |
Header add "Expires" "Mon, 28 Jul 2014 23:30:00 GMT" env=VERSIONED_FILE | |
Header add "Cache-Control" "max-age=315360000" env=VERSIONED_FILE | |
Header unset ETag | |
FileETag None |
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
"responseData": | |
{ | |
"results": | |
[ | |
{ | |
"GsearchResultClass":"GlocalSearch", | |
"viewportmode":"computed", | |
"listingType":"local", | |
"lat":"40.065434", | |
"lng":"-105.180718", |
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
{ | |
"responseData": | |
{ | |
"results": | |
[ | |
{ | |
"GsearchResultClass":"GlocalSearch", | |
"viewportmode":"computed", | |
"listingType":"local", |