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 | |
# install_gems.rb | |
# Copyright 2009 Robert Jones jones@craic.com | |
# Use at your own risk, no warranty, etc, etc. | |
# Given a file of gems from another machine, recreate the same environment | |
# For more information see this post: | |
# http://craiccomputing.blogspot.com/2009/04/installing-ruby-19-and-gems-on-machine.html |
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//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/container/assets/skins/sam/container.css" /> | |
<script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/yahoo-dom-event/yahoo-dom-event.js"></script> | |
<script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/container/container-min.js"></script> | |
<script type="text/javascript" src="http://prototypejs.org/javascripts/prototype.js"></script> | |
<script type="text/javascript"> | |
function setup_tooltips() { |
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 | |
# merge_highrise_contacts.rb | |
# 2009 Robert Jones, Craic Computing LLC (jones@craic.com) | |
# Distributed under the terms of the MIT Open Source license | |
# This is a utility to convert a CSV dump of People and Companies from | |
# Highrise (http://highrisehq.com) into a mailing list suitable for a Mail Merge | |
# with Excel/Word or Numbers/Pages (09 version) |
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
# Helper method - place in application_helper.rb | |
def custom_sort_helper(path, sort_term, sort_label, search, sort_string) | |
uri = String.new(path) | |
# copy the current search terms but exclude meta_sort | |
search_array = Array.new | |
search.search_attributes.each { |key, val| (search_array << "search[#{key}]=#{val}") unless key == 'meta_sort' } | |
uri << '?' |
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
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=eiffel+tower,+Paris,+France&aq=t&sll=47.613028,-122.342064&sspn=0.367071,0.644073&ie=UTF8&hq=&hnear=&t=m&iwloc=A&ll=48.858228,2.294388&spn=0.006295,0.006295&output=embed"></iframe> | |
<br /> | |
<small> | |
<a href="https://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=eiffel+tower,+Paris,+France&aq=t&sll=47.613028,-122.342064&sspn=0.367071,0.644073&ie=UTF8&hq=&hnear=&t=m&iwloc=A&ll=48.858228,2.294388&spn=0.006295,0.006295" style="color:#0000FF;text-align:left">View Larger Map</a> | |
</small> |
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
<blockquote class="twitter-tweet"> | |
<p>Brazil to export low-cost measles & rubella vaccines to developing countries | |
<a href="http://t.co/moEfOssAqQ">http://t.co/moEfOssAqQ</a> | |
</p> | |
— BBC News (World) (@BBCWorld) | |
<a href="https://twitter.com/BBCWorld/statuses/395287088033447936">October 29, 2013</a> | |
</blockquote> | |
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></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
<a class="twitter-timeline" href="https://twitter.com/BBCWorld" data-widget-id="395313647477481472">Tweets by @BBCWorld</a> | |
<script>!function(d,s,id){ | |
var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https'; | |
if(!d.getElementById(id)){ | |
js=d.createElement(s); | |
js.id=id; | |
js.src=p+"://platform.twitter.com/widgets.js"; | |
fjs.parentNode.insertBefore(js,fjs); | |
} | |
}(document,"script","twitter-wjs"); |
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
<iframe id="forecast_embed" type="text/html" frameborder="0" height="245" width="100%" | |
src="http://forecast.io/embed/#lat=64.133753&lon=-21.879272&name=Reykjavik, Iceland&color=#00aaff&font=Helvetica&units=us"> | |
</iframe> |
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
<iframe id="forecast_embed" type="text/html" frameborder="0" height="245" width="100%" | |
src="http://forecast.io/embed/#lat=69.649205&lon=18.955324&name=Tromso, Norway&color=#00aaff&font=Helvetica&units=us"> | |
</iframe> |
OlderNewer