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
| In file included from Extractor/ScriptingEnvironment.cpp:27: | |
| In file included from /usr/local/opt/boost/include/boost/foreach.hpp:78: | |
| In file included from /usr/local/opt/boost/include/boost/range/rend.hpp:19: | |
| In file included from /usr/local/opt/boost/include/boost/range/reverse_iterator.hpp:20: | |
| In file included from /usr/local/opt/boost/include/boost/iterator/reverse_iterator.hpp:12: | |
| In file included from /usr/local/opt/boost/include/boost/iterator/iterator_adaptor.hpp:15: | |
| In file included from /usr/local/opt/boost/include/boost/iterator/iterator_facade.hpp:14: | |
| In file included from /usr/local/opt/boost/include/boost/iterator/detail/facade_iterator_category.hpp:26: | |
| In file included from /usr/local/opt/boost/include/boost/detail/indirect_traits.hpp:9: | |
| In file included from /usr/local/opt/boost/include/boost/type_traits/is_pointer.hpp:24: |
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
| #lib/auto_html.rb | |
| AutoHtml.add_filter(:issue_link) do |text| | |
| text.gsub(/x/) do |match| | |
| '-' | |
| end | |
| 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
| ~/code/Project-OSRM$ (develop) git log -n 1 | |
| commit f40550b18c5f750a2ef40b003193adf0141e5841 | |
| Author: Emil Tin <emil.tin@tmf.kk.dk> | |
| Date: Thu Oct 11 16:50:17 2012 +0200 | |
| bike speeds on pedestrian areas | |
| ~/code/Project-OSRM$ (develop) scons --cxx=clang++ --buildconfiguration=debug | |
| scons: Reading SConscript files ... | |
| Using user supplied C++ Compiler: clang++ |
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 | |
| require 'bigdecimal' | |
| DEG_TO_RAD = 0.017453292519943295769236907684886 | |
| EARTH_RADIUS_IN_METERS = 6372797.560856 | |
| def approximateDistance lat1, lon1, lat2, lon2 | |
| #assert(lat1 != INT_MIN) |
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
| ~/code/Project-OSRM$ (distance_precision) cuc --tags @distance | |
| Using the default profile... | |
| @routing @distance | |
| Feature: Distance calculation | |
| Background: # features/testbot/distance.feature:4 | |
| Given the speedprofile "testbot" # features/step_definitions/data.rb:1 | |
| Scenario: Distance should equal sum of segments, leftwinded # features/testbot/distance.feature:7 | |
| Given the node map # features/step_definitions/data.rb:9 |
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
| options = { | |
| vejnavn: 'Ravnsborggade', | |
| husnr: '3', | |
| postnr: '2200' | |
| } | |
| $.ajax 'http://geo.oiorest.dk/adresser.json', | |
| type: 'GET' | |
| dataType: 'jsonp' | |
| data: options |
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 'formula' | |
| class Osrm < Formula | |
| head 'https://github.com/DennisOSRM/Project-OSRM', :using => :git | |
| homepage 'https://github.com/DennisOSRM/Project-OSRM' | |
| depends_on 'protobuf' | |
| depends_on 'boost' | |
| depends_on 'libzip' | |
| depends_on 'libstxxl' |
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
| #routes.rb | |
| RailsOSRM::Application.routes.draw do | |
| scope "(:locale)" | |
| resources(:issues) | |
| end | |
| end | |
| #issues_controler.rb | |
| def test | |
| @issue = Issue.find params[:id] |
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
| #config/application.rb | |
| config.exceptions_app = self.routes | |
| #config/routes.rb | |
| match "/404.:format", :to => "application#error_route_not_found" | |
| #app/controllers/application.rb | |
| def error_route_not_found | |
| respond_to do |format| | |
| format.html { render 'errors/route_not_found', :status => :not_found } |