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
def bottle_song(i) | |
while i > 2 | |
puts "#{i} bottles of beer on the wall, #{i} bottles of beer. " | |
puts "Take one down, pass it around, #{i - 1} bottles of beer on the wall!" | |
i = i - 1 | |
end | |
puts "2 bottles of beer on the wall, 2 bottles of beer." | |
puts "Take one down, pass it around. 1 bottle of beer on the wall!" | |
puts "1 bottle of beer on the wall, 1 bottle of beer." | |
puts "Take one down, pass it around. No more bottles of beer on the wall!" |
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
puts "Enter the price of your meal before tax" | |
meal = Float(gets) | |
puts "What is the tax rate in your area?" | |
tax = Float(gets) | |
puts "What is the tip rate in your area?" | |
tip = Float(gets) | |
def calculate(base, percent) | |
amount = base * percent / 100 | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</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
To do | |
- Make mockups | |
- Make users flows | |
Next | |
- Add the ability to schedule a showing | |
- add map for location (https://github.com/alexreisner/geocoder) | |
- add messaging | |
- add users requesting a place | |
- implement dashboard |
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
#show.html.erb for Appointments | |
<p><%= @appointment.time %></p> | |
<p><%= @appointment.listing.property.address %></p> | |
<p>Comments</p> | |
<% @appointment.comments.each do |comment| %> | |
<%= comment.comment %> | |
<% 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
<%= nested_form_for @property, :html=> {:multipart => true } do |f| %> | |
...... | |
<div class="field"> | |
<%= f.fields_for :images do |image_form| %> | |
<%= image_form.file_field :photo %> | |
<a><%= image_form.link_to_remove "Remove this attatchment" %></a> | |
<% end %> | |
<%= f.link_to_add "Add photo", :images %> | |
</div> | |
....... |
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
# Twilio_Phone_Number_Table | |
# id number active(boolean) | |
# 1 423-123-1233 0 | |
# 2 423-123-1233 1 | |
# Listing Table (has many appointments) | |
# lister_id status | |
# Appointment Table |
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
Clean up: | |
- share buttons and links | |
- Home page button | |
- overall issues | |
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
Issues | |
- Invite friends via facebook | |
Todos | |
- Test suite | |
_ Email for IOS and Rails people | |
- Get a freelance photographer | |
- New demo video | |
- How to videos for doing a specific action |
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
<script type="text/javascript"> | |
navigator.geolocation.getCurrentPosition(GetLocation); | |
function GetLocation(location) { | |
alert(location.coords.latitude); | |
alert(location.coords.longitude); | |
alert(location.coords.accuracy); | |
} | |
</script> | |
OlderNewer