Skip to content

Instantly share code, notes, and snippets.

View jbenner-radham's full-sized avatar

James Benner jbenner-radham

View GitHub Profile
Array.from(document.head.querySelectorAll('meta'))
.filter(tag => tag.name && tag.content)
.forEach(tag => console.log(`${tag.name}: ${tag.content}`));
@jbenner-radham
jbenner-radham / scratch.scss
Last active February 15, 2019 15:27
SCSS scratch file.
@function make-long-shadow($color, $recursions: 200) {
$shadows: 0 0 $color;
@for $i from 1 through $recursions {
$shadows: $shadows, #{$i}px #{$i}px #{$color};
}
@return $shadows;
}
@jbenner-radham
jbenner-radham / long-shadow.scss
Created February 14, 2019 02:08
Playing with long shadows in SCSS.
@function long-shadow($color, $recursions: 200) {
$shadows: 0 0 $color;
@for $i from 1 through $recursions {
$shadows: $shadows, #{$i}px #{$i}px #{$color};
}
@return $shadows;
}
@jbenner-radham
jbenner-radham / .eslintrc.js
Created February 12, 2019 18:35
ESLint config boilerplate.
/**
* @see https://eslint.org/docs/rules/
*/
module.exports = {
extends: 'eslint:recommended',
root: true,
rules: {
'arrow-spacing': 'error',
'block-spacing': 'error',
camelcase: 'error',
@jbenner-radham
jbenner-radham / .stylelintrc.js
Created February 12, 2019 18:33
Stylelint config boilerplate.
/**
* @see https://stylelint.io/user-guide/rules/
* @see https://www.npmjs.com/package/stylelint-scss
* @see https://www.npmjs.com/package/stylelint-config-recommended-scss
*/
module.exports = {
extends: ['stylelint-config-recommended-scss'],
rules: {
'font-family-name-quotes': 'always-where-recommended',
indentation: [4, { baseIndentLevel: 1 }],
@jbenner-radham
jbenner-radham / README.md
Last active January 14, 2023 21:50
OS specific variable stuff.
@jbenner-radham
jbenner-radham / Create.vue
Last active November 29, 2018 20:03
Example JSON schema client side resource scaffolding.
<template>
<section class="resource-create">
<h2>Create Resource</h2>
<cobra-alerts/>
<cobra-card title="Resource">
<form @submit.prevent="onSubmit">
<div class="form__groups">
<b-form-group>