Skip to content

Instantly share code, notes, and snippets.

View scottweisman's full-sized avatar

Scott Weisman scottweisman

View GitHub Profile
@patpohler
patpohler / Big List of Real Estate APIs.md
Last active June 22, 2024 03:59
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

@anamorph
anamorph / HOWTO-Lightroom_sync_with_s3-windows-macos.md
Last active March 28, 2024 14:58
HOWTO Lightroom sync with s3 windows/macos

HOWTO Lightroom sync with s3 windows/macos

1. The pitch

As I am an avid photographer & travelling quite a lot, I wanted to sync my Adobe Lightroom library from Macbook to my Microsoft Windows desktop at home with very little/no human intervention. It is also a good thing that both Lightroom versions (mac & windows) share a common file system/structure, this helped alot in synchronizing data from one environment to another.

This HOWTO assumes you already have an AWS account created and running with an IAM user configured.

Put together, the solution would look as such (pardon my poor diagram skills):

                                  _  
macbook pro                     (`  ).                     windows desktop
/* The Grid ---------------------- */
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row.large-collapse .column,
.lt-ie9 .row.large-collapse .columns { padding: 0; }
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; }
.lt-ie9 .row .row.large-collapse { margin: 0; }
.lt-ie9 .column, .lt-ie9 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; }
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; }
@scottweisman
scottweisman / gist:3484894
Created August 27, 2012 01:24 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@javan
javan / sl2-setup.md
Created July 23, 2012 14:47
My Sublime Text 2 setup
@scottweisman
scottweisman / rails_setup.rb
Last active October 7, 2015 01:48
New Rails App Setup
rails new <project name> -d postgresql --skip-bundle --skip-test-unit
remove turbolinks
1. Remove the gem 'turbolinks' line from your Gemfile.
2. Remove the //= require turbolinks from your app/assets/javascripts/application.js.
3. Remove the two "data-turbolinks-track" => true hash key/value pairs from your app/views/layouts/application.html.erb.
git init
#.gemfile
@scottweisman
scottweisman / githubrecipe.txt
Created June 1, 2012 19:01
WarRoom Github Recipe
git checkout -b new_feature
...do some work...
git add .
git commit -am "did some work"
git push origin new_feature
go to github and create pull request for new_feature branch
- team reviews changes on github
- add comments, make changes, click merge pull request when accepted
@JeffCohen
JeffCohen / gist:2782207
Created May 24, 2012 15:22
Vending Machine Fun
# Try adding the ability to keep track of capacity per brand
# And push the buttons until the entire machine is empty
class VendingMachine
# attr_accessor :money
def initialize(number_of_cans)
@cans = []
number_of_cans.times do
@cans << 'Coke'
@andynu
andynu / generate_glyphicons_pro_css.rb
Created May 14, 2012 15:28
Generate css for Glyphicons Pro.
#!/usr/bin/env ruby
#
# Generate css for the pro glyphicons.
# Run this script in the glyphicons_pro/glyphicons/png folder
# from the purchased zip file.
#
# see http://glyphicons.com/ for purchase/license information.
#
render = (ARGV.include? "--html") ? :html : :css
@trevorturk
trevorturk / current.rb
Created May 7, 2012 20:27 — forked from scottweisman/current.rb
Using current_kase method in views
# concerns#current
module Current
extend ActiveSupport::Concern
...
def current_kase
@current_kase ||= Kase.find_by_id(params[:kase_id])
end
# To include methods in views