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
GeoKit::Geocoders::Geocoder.class_eval do | |
def self.geocode(address) | |
geo_loc = GeoKit::GeoLoc.new \ | |
:lat => 32.918593, | |
:lng => -96.958444, | |
:city => "Irving", | |
:state => "TX", | |
:country_code => "US" | |
geo_loc.success = true |
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
Image.class_eval do | |
protected | |
# override to prevent images from saving to S3 | |
def save_to_storage | |
@old_filename = nil | |
true | |
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
Host clarkhawaii.com | |
HostName clarkhawaii.com | |
StrictHostKeyChecking no | |
User deploy | |
UserKnownHostsFile /dev/null |
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
# | |
# https://www.pivotaltracker.com/projects/69655?story_id=10380873 | |
# | |
# It appears some of the photos are missing styles. | |
# It could be the style was added to has_attached_file in MlsPhoto | |
# and the photos were never reprocessed at that time. | |
# This utility class will walk through the MlsPhotos | |
# and reprocess any who's styles are missing from disk. | |
# | |
class MlsPhotoReprocessor |
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
<?xml version="1.0"?> | |
<orderDetails> | |
<entityId>10278447</entityId> | |
<orderId>278233</orderId> | |
<orderName>Online Shop 25-Jan-2011 10:11 AM</orderName> | |
<workflowId>10044</workflowId> | |
<statusTypeId>59061</statusTypeId> | |
<countryCode>US</countryCode> | |
<orderType>2</orderType> | |
<invoiceNumber>1055</invoiceNumber> |
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
require 'xml/mapping/base' | |
class RawXmlNode < XML::Mapping::SingleAttributeNode | |
def extract_attr_value(xml) | |
raw_xml = '' | |
xml.write(raw_xml) | |
raw_xml | |
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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<people> | |
<names> | |
<name>Jim</name> | |
<name>Susan</name> | |
<name>Herbie</name> | |
<name>Nancy</name> | |
</names> | |
</people> |
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
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','640','height','395','src','home_bg_menu','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','home_bg_menu' ) | |
becomes | |
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','640','height','395','src','home_bg_menu','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','home_bg_menu', 'wmode', 'opaque' ) |
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
the | |
and | |
br | |
water | |
a | |
to | |
of | |
tv | |
cable | |
puna |
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
- content_for(:end) do | |
:javascript | |
var subdivisions_by_district = {}; | |
subdivisions_by_district['all'] = #{MlsListing.on_market.distinct_subdivisions.collect { |s| s.subdivision }.to_json }; | |
- District.all.each do |district| | |
:javascript | |
subdivisions_by_district['#{district.id}'] = #{MlsListing.on_market.district_id(district.id).distinct_subdivisions.collect { |s| s.subdivision }.to_json }; | |
:javascript | |
$('#search_subdivision').autocomplete({ | |
source: subdivisions_by_district['all'] |