Skip to content

Instantly share code, notes, and snippets.

View danwoolley's full-sized avatar

Dan Woolley danwoolley

View GitHub Profile
<a href="javascript:var w = window.open('http://dwellicious.com/addbookmark?popup=true&desc=***fill_in_desc***&uri=***fill_in_page_url***&src=***fill_in_src***','addtodwellicious','width=550,height=550,location=0,menubar=0,toolbar=0');w.focus();">
<img border="0" src="http://dwellicious.com/images/dwellicious_chiclet_label.png">
</a>
@danwoolley
danwoolley / gist:51163
Created January 23, 2009 19:59
Dwellicious JSON data array format
<![CDATA[
var dwellicious_data = {
"address": "123 Main St.",
"city": "Boca Raton",
"state": "FL",
"zip": "33432",
"zip4": "",
"area": "East Boca Raton",
"subdivision": "Spanish River Estates",
"county": "Palm Beach",
@danwoolley
danwoolley / postfromdelicious.rb
Created June 8, 2011 23:15
Post from Delicious to Wordpress blog
#!/usr/local/bin/ruby
# Get from your personal del.icio.us share.
# Post to your WordPress blog.
# Written by Dan Woolley on 9/8/07 for http://tzetzefly.com
# Command line: ruby postfromdelicious.rb <post_type> <days_back>
# where <post_type> is 'draft', 'live', or 'test' (default is draft)
# and <days_back> is number of days back to get from del.icio.us (default is 1)
@danwoolley
danwoolley / postfromgooglereader.rb
Created June 8, 2011 23:20
Post from Google Reader to Wordpress blog
#!/usr/local/bin/ruby
# Get from your personal Google Reader public share.
# Post to your WordPress blog.
# Written by Dan Woolley on 9/8/07 for http://tzetzefly.com
# Command line: ruby postfromgooglereader.rb <post_type> <days_back>
# where <post_type> is 'draft', 'live', or 'test' (default is draft)
# and <days_back> is number of days back to get from Google Reader (default is 1)
@danwoolley
danwoolley / gist:4067131
Created November 13, 2012 17:24
brew install librets not using swig
Nutheory ~/Sites/homefolio $ brew install librets -vd
/usr/local/bin/brew: loading /usr/local/Library/Formula/librets.rb
Warning: Your Xcode (4.5.1) is outdated
Please install Xcode 4.5.2.
/usr/local/bin/brew: loading /usr/local/Library/Formula/boost.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/curl.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/pkg-config.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/expat.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/swig.rb
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
@danwoolley
danwoolley / gist:4092207
Last active October 12, 2015 21:48
Set up Sublime Text 2 for rspec with rvm
*** Now much simpler. Just follow additional features at https://sublime.wbond.net/packages/RubyTest and turn on check_for_rvm ***
Based on http://rubenlaguna.com/wp/2012/02/01/sublime-text-2-rvm-rspec but with some critical changes.
1. Create $HOME/bin/sublime_rspec.rb:
---------------------------------------
#!/usr/bin/env ruby
file = File.expand_path(ARGV[0] || (STDERR.puts('you must specify a ruby file'); exit(-1)))
dir = File.dirname file
@danwoolley
danwoolley / gist:5058463
Last active December 14, 2015 08:29
Installing librets on OSX Mountain Lion with rvm
# On OSX Mountain Lion, 'brew install librets' installs librets into the system ruby folder,
# not the current rvm ruby as it used to on older versions of OSX. The only work-around I've
# found is to take the librets.rb and librets_native.bundle files and copy them into the proper
# rvm ruby's folders.
# Best way - make desired version of ruby the system ruby.
rvm use system
which ruby
# return the current system version of ruby
ls -l /usr/bin/ruby
[{"@odata.etag":"W/\"MjAyMy0xMC0xNVQxNToxNzoyMC40MzMzMzMzLTA3OjAw\"","AccessibilityFeatures":["None"],"AccountingType":null,"AdditionalDimensions":null,"AdditionalParcelsDescription":null,"AdditionalParcelsYN":false,"AdditionalRentForPets":null,"AdNumber":null,"AdvertisingExpense":null,"Amperage":null,"AnchorsCoTenants":null,"Appliances":["Dishwasher","Microwave","Refrigerator","Gas Oven","Gas Range"],"AppliancesYN":true,"ArchitecturalStyle":null,"Assessments":["None"],"AssessmentsYN":false,"AssetClass":null,"AssociationAmenities_1":["Barbecue","Outdoor Cooking Area","Picnic Area"],"AssociationAmenities_2":null,"AssociationFee":127.0,"AssociationFee2":null,"AssociationFee2Frequency":null,"AssociationFeeFrequency":"Monthly","AssociationManagementName":"Maple Crossing","AssociationManagementName2":null,"AssociationYN":true,"AttachedGarageYN":true,"Average1BedArea":null,"Average1BedAreaUnits":null,"Average2BedArea":null,"Average2BedAreaUnits":null,"Average3BedArea":null,"Average3BedAreaUnits":null,"AverageStudio
This file has been truncated, but you can view the full file.
[{"@odata.etag":"W/\"MjAyMy0xMC0xNVQxNTowOToxOC4yOTY2NjY3LTA3OjAw\"","AccessibilityFeatures":null,"AccountingType":null,"AdditionalDimensions":null,"AdditionalParcelsDescription":null,"AdditionalParcelsYN":null,"AdditionalRentForPets":null,"AdNumber":null,"AdvertisingExpense":null,"Amperage":null,"AnchorsCoTenants":null,"Appliances":["Dishwasher","Microwave","Refrigerator","Electric Cooktop","Gas Oven"],"AppliancesYN":true,"ArchitecturalStyle":null,"Assessments":["None"],"AssessmentsYN":false,"AssetClass":null,"AssociationAmenities_1":["Barbecue","Clubhouse","Maintenance Grounds","Sport Court","Tennis Court(s)","Banquet Facilities","Dock","Picnic Area","Playground"],"AssociationAmenities_2":null,"AssociationFee":1400.0,"AssociationFee2":null,"AssociationFee2Frequency":null,"AssociationFeeFrequency":"Annually","AssociationManagementName":"Lido Isle HOA","AssociationManagementName2":null,"AssociationYN":true,"AttachedGarageYN":true,"Average1BedArea":null,"Average1BedAreaUnits":null,"Average2BedArea":null,"Avera