working with the vagrant we configured yesterday
configure the port redirects in your vagrant file config.vm.forward_port 80, 8080
run vagrant vagrant up
log into vagrant vagrant ssh
var applyAllFilters = function() { | |
_.each(visibleMarkers(), function(marker) { | |
Gmaps.map.showMarker(marker) | |
}) | |
}; | |
var visibleMarkers = function() { | |
var filtered = _.reject(Gmaps.map.markers, function(marker) { | |
return marker.revenue < PriceRangeFilter.min || marker.revenue > PriceRangeFilter.max; | |
}); |
Gmaps.map.createMarker({Lat: lat, | |
Lng: lng, | |
rich_marker: null, | |
marker_picture: "" | |
}); | |
In my controller: | |
@json = @deals.to_gmaps4rails do |deal, marker| | |
marker.infowindow render_to_string(:partial => "/deals/pop", :locals => { :deal => deal}) |
var PriceRangeFilter = { | |
min: 0, | |
max: 0, | |
}; | |
var AllPropertyFilters = []; | |
$( "#revenue-range" ).slider({ | |
range: true, | |
min: Market.min_revenue, |
working with the vagrant we configured yesterday
configure the port redirects in your vagrant file config.vm.forward_port 80, 8080
run vagrant vagrant up
log into vagrant vagrant ssh
testing austen and woraces api! |
<html> | |
<head> | |
<title>davidhasselhofflovers.com- David Hasselhoff fansite</title> | |
<meta>This site is the top site dedicated to the man, the incredible Mr. David Hasselhoff</meta> | |
</head> | |
<body> | |
<h1>David Hasselhoff</h1> | |
<hn>David Hasselhoff is a legend</h> | |
<p>David new he wanted to be a performer at a young age and took acting, singing and dancing lessons.</p> |
<html> | |
<head> | |
<title>dhfans.com</title> | |
</head> | |
<body> | |
<h1>the 'hoff'</h1> | |
<p>David new he wanted to be a performer at a young age and took acting, singing and dancing lessons.</p> | |
<img src="http://www.vam.ac.uk/images/image/49679-large.jpg" alt="img1" /> |
#Iteration 5 | |
# Once we have pulled our array of followers from Twitter, we can push the data through another API to grab some data. Lets tap into Klout.com- a site that scores the influence of one's social media presence- to see which of our followers are the most infleuncial | |
#Step 0: requirements | |
# This iteration requires a rubygem- 'klout' along with an API key | |
require 'klout' | |
@k = Klout::API.new('w7cd26nt27pzgy4gj7waruw2') #, {:format => 'xml', :secure => true}) |
***chapter 1*** | |
a. The author looks back on his childhood as a ‘ smart nerd’ and offers his perspective why nerds are unpopular growing up. | |
b. I was both surprised and interested by his retrospective and the motive for this chapter. While I primarily agree with his assertions, it came off to me as a bitter rant. | |
c I am under the impression that the book will delve into theories of computer programming as an art and not a science. I am assuming this retrospective laid the groundwork for this. | |
d. While I agree with many of his points, I feel strongly that the cliques he defined in chapter one were different than the ones I experienced growing up. I knew intelligent and less intelligent kids who were both popular and unpopular in high school. Because of this, I certainly disagree with his assertion that ‘nerds’ are destined to be more successful in the real world. |