Skip to content

Instantly share code, notes, and snippets.

View krashish8's full-sized avatar
💻
Learning

Ashish Kumar krashish8

💻
Learning
View GitHub Profile
@krashish8
krashish8 / example1-osrmdemo-vs-doc.diff
Created February 12, 2022 15:26
Diff of Example 1 and Example 3 VROOM solutions vs doc solutions
4c4
< "cost": 21609,
---
> "cost": 18711,
6c6
< "unassigned": 1,
---
> "unassigned": 0,
8,11c8
< 3
@krashish8
krashish8 / vroom_1.json
Created December 1, 2021 06:53
VROOM examples test
{
"vehicles": [
{
"id":0,
"start_index":0,
"end_index":3
}
],
"jobs": [
{
{"features":[{"type":"Feature","properties":{"mode":"drive","waypoints":[{"location":[88.364667,22.549367],"original_index":0},{"location":[88.347753,22.572957],"original_index":1},{"location":[88.363658,22.573624],"original_index":2},{"location":[88.35953,22.562729],"original_index":3},{"location":[88.384538,22.571803],"original_index":4}],"distance":11785,"time":1106.097,"legs":[{"distance":4327,"time":404.075,"steps":[{"instruction":{"text":"Drive west on Bijli Road."},"from_index":0,"to_index":3,"distance":222,"time":20.022},{"instruction":{"text":"Turn left onto AJC Bose Road/SH1."},"from_index":3,"to_index":10,"distance":323,"time":31.355},{"instruction":{"text":"Turn right onto Park Street."},"from_index":10,"to_index":59,"distance":1551,"time":148.239},{"instruction":{"text":"Turn right."},"from_index":59,"to_index":61,"distance":84,"time":9.945},{"instruction":{"text":"Bear left onto Mayo Road."},"from_index":61,"to_index":65,"distance":482,"time":43.471},{"instruction":{"text":"Enter the roundabout
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@krashish8
krashish8 / boost-dfs-2.cpp
Last active July 28, 2020 09:46
Testing the boost::depth_first_search algorithm with visitor
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/depth_first_search.hpp>
#include <boost/range/irange.hpp>
#include <boost/pending/indirect_cmp.hpp>
#include <iostream>
template <typename V, typename E, typename G>
class Dfs_visitor : public boost::default_dfs_visitor {
public:
@krashish8
krashish8 / keybase.md
Created June 26, 2020 05:35
Keybase proof

Keybase proof

I hereby claim:

  • I am krashish8 on github.
  • I am krashish8 (https://keybase.io/krashish8) on keybase.
  • I have a public key whose fingerprint is 7455 D982 AE15 5DF2 F9CC 580A EB97 636D 0526 A9B5

To claim this, I am signing this object: