Skip to content

Instantly share code, notes, and snippets.

View gamecubate's full-sized avatar

Alexandre Rousseau gamecubate

View GitHub Profile
@rust-play
rust-play / playground.rs
Created April 27, 2019 00:26
Code shared from the Rust Playground
// Filled circle algorithm with edge softening
fn main() {
let w = 12;
let r: f32 = w as f32 / 2.0;
println!("=================================================");
println!("radius: {}", r);
println!("=================================================");
println!("col,row -> dx,dy -> dist from center -> diff -> alpha");
println!("=================================================");
@gramcha
gramcha / having-multiple-jdk-macos.md
Created November 28, 2020 14:34
Managing multiple Java versions in MacOS

Installing different versions of open jdk through Homebrew(assuming already installed) and already having Java 8.

We need to install a tool called jenv - Java version manager which is similar to nvm(nodeJs version manager).

brew install jenv

Export the jenv path to .bash_profile or .zshrc - whatever you are using. I am using .zshrc