Skip to content

Instantly share code, notes, and snippets.

View UsairimIsani's full-sized avatar
🦀
Oxidizing

Usairim Isani UsairimIsani

🦀
Oxidizing
View GitHub Profile
#!/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
@UsairimIsani
UsairimIsani / cell-tests.rs
Created August 10, 2020 15:59 — forked from jonhoo/cell-tests.rs
cell-refcell-rc
// 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 || {
// 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)]
@UsairimIsani
UsairimIsani / .pre-commit.sh
Created December 17, 2020 07:16 — forked from glfmn/.pre-commit.sh
pre-commit Test Automation Script
#!/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'
**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
@UsairimIsani
UsairimIsani / keybase.md
Created December 15, 2021 15:42
Keybase Github Verification

Keybase proof

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: