Skip to content

Instantly share code, notes, and snippets.

View bradstemke's full-sized avatar

Brad Stemke bradstemke

View GitHub Profile
@bradstemke
bradstemke / radial-gradient
Created August 25, 2020 17:06
A nice radial gradient
background-image:
radial-gradient(
circle at top right,
cyan, transparent
),
radial-gradient(
circle at bottom left,
deeppink, transparent
)
;
@bradstemke
bradstemke / gist:a4329a226c254d87c644c210949e89cf
Created August 26, 2019 21:22
Git Issue Color Management

Below are charts describing all of the common labels and colors across the ManageIQ repos.

About the label colors

Color Hex Description
#ee0701 Scope - Bugs
#84b6eb Scope - Enhancement

#bfe5bf
#bcf5db
Scope - Testing and tools: "test", "developer", "tools"
#fef2c0``#e99695``#fbca04``#ff7619 Scope - Other: "cleanup", "performance", "refactoring", "technical debt"
// from Paul Irish!
// Generate a random hex value
'#'+Math.floor(Math.random()*16777215).toString(16);
@bradstemke
bradstemke / formatting-console-log.js
Created February 6, 2017 17:53
Formatting console.log()
// Function that takes the message and returns the BG color, Error Type, and message.
const label = ([raw]) => {
const [color, label, ...message] = raw.split(' ')
return [
`%c${label}%c ${message.join(' ')}`,
`color: white; background-color: ${color}; padding: 0 0.5rem 0 0.5rem;`,
''
]
}
This is for all .liquid files within directory
find . -name '*.liquid' | xargs wc -l