I hereby claim:
- I am usairimisani on github.
- I am usairimisani (https://keybase.io/usairimisani) on keybase.
- I have a public key ASAVp4rfvd1W3NKptnKVE12SLN0kpcvOZbC7JWf1nf_c5go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
**Interesting/widely used implementations of pathfinding algorithms. | |
========================================================================== | |
A* Ruby https://github.com/georgian-se/shortest-path | |
A* (bidirectional with shortcuts) C++ https://github.com/valhalla/valhalla | |
A* Unity https://arongranberg.com/astar/front | |
NBA* JS https://github.com/anvaka/ngraph.path | |
NBA* Java https://github.com/coderodde/GraphSearchPal | |
NBA* Java https://github.com/coderodde/FunkyPathfinding | |
NBA* (Parallel) C++ https://github.com/janhsimon/PNBAStar |
#!/usr/bin/env sh | |
# pre-commit.sh | |
STASH_NAME="pre-commit-$(date +%s)" | |
ROOT_DIR="$(git rev-parse --show-toplevel)" | |
BUILD_DIR="${ROOT_DIR}/target" | |
BRANCH_NAME=$(git branch | grep '*' | sed 's/* //') | |
RED='\033[1;31m' | |
GREEN='\033[1;32m' | |
YELLOW='\033[1;33m' |
// For tests, we only initialize logging once. | |
#[cfg(test)] | |
use std::sync::Once; | |
#[cfg(test)] | |
static LOGGER_INIT: Once = Once::new(); | |
// Rust runs the tests concurrently, so unless we synchronize logging access | |
// it will crash when attempting to run `cargo test` with some logging facilities. | |
#[cfg(test)] |
// these aren't _quite_ functional tests, | |
// and should all be compile_fail, | |
// but may be illustrative | |
#[test] | |
fn concurrent_set() { | |
use std::sync::Arc; | |
let x = Arc::new(Cell::new(42)); | |
let x1 = Arc::clone(&x); | |
std::thread::spawn(move || { |
#!/bin/bash | |
# This installs alacritty terminal on ubuntu (https://github.com/jwilm/alacritty) | |
# You have to have rust/cargo installed for this to work | |
# Install required tools | |
sudo apt-get install -y cmake libfreetype6-dev libfontconfig1-dev xclip | |
# Download, compile and install Alacritty | |
git clone https://github.com/jwilm/alacritty |