This file contains hidden or 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
note over data: receive new lead | |
note over t_addresses,t_messages | |
(this note is here to position these entities) | |
end note | |
data->msg_proxy: send request to msg_proxy | |
note over data | |
* lead ID | |
* landlord name & address | |
* renter name & address | |
end note |
This file contains hidden or 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 | |
# A wrapper around "git commit" that provides a template message | |
# conforming to RentPath conventions. | |
# by Sam Brauer 2013-09-05 | |
# inspired by Zander Hill's vim macro (https://gist.github.com/anonymous/b6cf9e57c9bb26cf3f3f) | |
# Assumes branches are named with the following components separated | |
# by underscores: | |
# 1. developer initials (one or more of these components are allowed) | |
# 2. story number | |
# 3. free text description (optional; may contain underscores) |
This file contains hidden or 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
similar to zillow | |
one UI "dropdown" that shows the current range: | |
"Any price" (when neither set) | |
"$800-$1000" (when both set) | |
"$800+" (min only) | |
"Up to $1000" (max only) | |
When dropped down, has two text fields for min and max. | |
Puts focus in min field. |
This file contains hidden or 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
# Add to ag/app/routes/routes.rb | |
get '/dni_demo/' do | |
zid = request.cookies['zid'] | |
msg = zid ? "Your zid is #{zid}" : "You have no zid" | |
content_type 'text/javascript' | |
%{document.getElementsByTagName('span')[0].textContent = "#{msg}";} | |
end |
This file contains hidden or 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 'sinatra' | |
module Sinatra | |
module Templates | |
@@last_render = {} | |
alias_method :orig_render, :render | |
def render(engine, data, options={}, locals={}, &block) | |
@@last_render[:engine] = engine | |
@@last_render[:data] = data |
This file contains hidden or 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 | |
# A wrapper around "git commit" that provides a template message | |
# conforming to RentPath conventions. | |
# Assumes branches are named with the following components separated | |
# by underscores: | |
# 1. developer initials (one or more of these components are allowed) | |
# 2. story number | |
# 3. free text description (optional; may contain underscores) | |
# Examples: | |
# "sb_12345_fix_serious_bug" |
This file contains hidden or 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
$ curl -XPUT http://localhost:9200/foo | |
{"ok":true,"acknowledged":true} | |
$ curl -XPUT http://localhost:9200/foo/bar/_mapping -d '{ | |
"properties" : { | |
"body": {"type":"string", "analyzer":"standard_html_strip"} | |
} | |
}' |