Skip to content

Instantly share code, notes, and snippets.

👨‍💻
🎸 🎮 🍺

Vaibhav Rathore rathorevaibhav

👨‍💻
🎸 🎮 🍺
View GitHub Profile
@rathorevaibhav
rathorevaibhav / gist:34ff9bdbbd0faeb2f9bdd86dec0fb3cf
Last active Apr 17, 2018 — forked from babakhani/jsgradient
get array of color between two colors
View gist:34ff9bdbbd0faeb2f9bdd86dec0fb3cf
function hexToRgb(hex){
var r, g, b, parts;
hex = hex.replace('#', '');
if(hex.length !== 3 && hex.length !== 6){
return [255,255,255];
}
if(hex.length == 3){
hex = hex[0]+hex[0]+hex[1]+hex[1]+hex[2]+hex[2];
}
r = parseInt(hex.substr(0, 2), 16);
View keybase.md

Keybase proof

I hereby claim:

  • I am rathorevaibhav on github.
  • I am rathorevaibhav (https://keybase.io/rathorevaibhav) on keybase.
  • I have a public key ASD5-BMvRs5tFI0Q1alhoHd2HrGBcQ-T6ZOc5Y6ygLg1tQo

To claim this, I am signing this object:

You can’t perform that action at this time.