Skip to content

Instantly share code, notes, and snippets.

View ismailsunni's full-sized avatar

Ismail Sunni ismailsunni

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
isunni@wrk136:~/dev/cpp/valhalla (chinesepostman)$ ./scripts/format.sh
* Already installed at /home/isunni/dev/cpp/valhalla/mason_packages/linux-x86_64/clang-format/11.0.0
* Linking /home/isunni/dev/cpp/valhalla/mason_packages/linux-x86_64/clang-format/11.0.0
* Links will be inside /home/isunni/dev/cpp/valhalla/mason_packages/.link/
* Using 'cp' for symlinking
* Done linking /home/isunni/dev/cpp/valhalla/mason_packages/linux-x86_64/clang-format/11.0.0
Using clang-format 11.0.0 from /home/isunni/dev/cpp/valhalla/mason_packages/.link/bin/clang-format
Requirement already satisfied: black==22.10.0 in /home/isunni/.local/lib/python3.8/site-packages (22.10.0)
Requirement already satisfied: flake8==5.0.4 in /home/isunni/.local/lib/python3.8/site-packages (5.0.4)
Requirement already satisfied: mypy-extensions>=0.4.3 in /home/isunni/.local/lib/python3.8/site-packages (from black==22.10.0) (0.4.3)
@ismailsunni
ismailsunni / boost_within.cpp
Created February 15, 2023 10:45
Bug boost::geometry::within
#include <iostream>
#include <list>
#include <string>
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry/geometries/polygon.hpp>
typedef boost::geometry::model::d2::point_xy<double> point_type;
typedef boost::geometry::model::polygon<point_type> polygon_type;
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ismailsunni
ismailsunni / POI.geojson
Last active November 28, 2022 07:57
Rennes Data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Raw params: [Object: null prototype] {
minimiserCout: 'DISTANCE',
locations: '[{"x": 2.2688699, "y": 48.8155122}, {"x": -2.964521, "y": 48.674905}]'
}
location
{ x: 2.2688699, y: 48.8155122 }
location
{ x: -2.964521, y: 48.674905 }
Cleaned parameters
{
{
"trip": {
"locations": [
{
"type": "break",
"lat": 46.960088,
"lon": 7.456664,
"original_index": 0
},
{
{"trip":{"locations":[{"type":"break","lat":46.955719,"lon":7.448945,"original_index":0},{"type":"break","lat":46.956637,"lon":7.450633,"original_index":1}],"legs":[{"maneuvers":[{"type":1,"instruction":"Drive north on Greyerzstrasse.","verbal_succinct_transition_instruction":"Drive north. Then, in 100 meters, Turn right onto Schl\xc3\xa4flirain.","verbal_pre_transition_instruction":"Drive north on Greyerzstrasse. Then, in 100 meters, Turn right onto Schl\xc3\xa4flirain.","verbal_post_transition_instruction":"Continue for 100 meters.","street_names":["Greyerzstrasse"],"time":13.017,"length":0.138,"cost":37.404,"begin_shape_index":0,"end_shape_index":4,"verbal_multi_cue":true,"travel_mode":"drive","travel_type":"car"},{"type":10,"instruction":"Turn right onto Schl\xc3\xa4flirain.","verbal_transition_alert_instruction":"Turn right onto Schl\xc3\xa4flirain.","verbal_succinct_transition_instruction":"Turn right. Then Turn left onto Optingenstrasse.","verbal_pre_transition_instruction":"Turn right onto Schl\xc3\xa