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
| /************************************************************************** | |
| * OSM2GEO - OSM to GeoJSON converter | |
| * OSM to GeoJSON converter takes in a .osm XML file as input and produces | |
| * corresponding GeoJSON object. | |
| * | |
| * AUTHOR: P.Arunmozhi <aruntheguy@gmail.com> | |
| * DATE : 26 / Nov / 2011 | |
| * LICENSE : WTFPL - Do What The Fuck You Want To Public License | |
| * LICENSE URL: http://sam.zoy.org/wtfpl/ | |
| * |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| <% @presses.each_slice(3) do |presses_slice| %> | |
| <tr> | |
| <% presses_slice.each do |press| %> | |
| <td><%= press.title %></td> | |
| <% end %> | |
| </tr> | |
| <% 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
| .DS_Store | |
| *.log | |
| tmp/ |
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
| namespace :deploy do | |
| task :start do; end | |
| task :stop do; end | |
| desc "restart passenger server" | |
| task :restart, :roles => :app, :except => { :no_release => true } do | |
| run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" | |
| 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
| // geo-location bridge | |
| function getLocation(callback){ | |
| if (getLocation.cache) return callback(getLocation.cache); | |
| if (Modernizr.geolocation) { | |
| var geocallback = function(position) { | |
| callback(getLocation.cache = { | |
| "lat": position.coords.latitude, | |
| "lon": position.coords.longitude, |
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
| describe "should return a string as a latitude and longitude csv" do | |
| it {should respond_to(:latlong)} | |
| @p = Factory.create(:store) | |
| @p.latlong.should equal("10.502792,-66.842322") | |
| 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
| if RAILS_ENV == 'production' | |
| Paperclip.options[:command_path] = "/usr/bin" | |
| else | |
| Paperclip.options[:command_path] = "/usr/local/bin" | |
| 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
| recent_photographs GET /photographs/recent(.:format) {:action=>"recent", :controller=>"photographs"} | |
| photographs GET /photographs(.:format) {:action=>"index", :controller=>"photographs"} | |
| photograph GET /photographs/:id(.:format) {:action=>"show", :controller=>"photographs"} |
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
| - # app/views/posts/_post.html | |
| %h1= post.title | |
| ... | |
| %p Actions: | |
| %ul | |
| - # checking the authorizations on the view... | |
| %li= edit_post_path(post) if current_user.can?(:update, post) | |
| %li= post_path(post) if current_user.can?(:read, post) |