Skip to content

Instantly share code, notes, and snippets.

View rathorevaibhav's full-sized avatar
👨‍💻
🎸 🍺

Vaibhav Rathore rathorevaibhav

👨‍💻
🎸 🍺
View GitHub Profile
@coloredcow-admin
coloredcow-admin / github_labels.js
Last active January 5, 2023 08:42
GitHub labels for repository
// how to run this script
// Step 1: Copy this gist.
// Step 2: Open the labels page in your GitHub repository where you want to set up the labels.
// Step 3: Open Browser Inspector tool and go to Console tab.
// Step 4: Paste the gist in the console and hit enter. The script will delete all the existing labels and create the new ones.
var labels = [
{
"name": "priority : critical",
"color": "b60205"
@babakhani
babakhani / jsgradient
Last active February 6, 2020 12:18
get array of color between two colors
//https://dl.dropboxusercontent.com/u/17365636/web/jsGradient.js
jsgradient = {
inputA : '',
inputB : '',
inputC : '',
gradientElement : '',
// Convert a hex color to an RGB array e.g. [r,g,b]
// Accepts the following formats: FFF, FFFFFF, #FFF, #FFFFFF
hexToRgb : function(hex){