Skip to content

Instantly share code, notes, and snippets.

View Josh68's full-sized avatar

Josh Schneider Josh68

View GitHub Profile
@Josh68
Josh68 / input.scss
Created January 30, 2024 01:57
Generated by SassMeister.com.
@import "color-helpers";
// Breakpoint widths
// INTERNAL: If these values change, the values used for the responsive previews
// in the documentation should also change.
$width-xs: 0 !default;
$width-sm: 544px !default;
$width-md: 768px !default;
$width-lg: 1024px !default;
$width-xl: 1280px !default;
@Josh68
Josh68 / input.scss
Created January 30, 2024 01:54
Generated by SassMeister.com.
@import "color-helpers";
// Breakpoint widths
// INTERNAL: If these values change, the values used for the responsive previews
// in the documentation should also change.
$width-xs: 0 !default;
$width-sm: 544px !default;
$width-md: 768px !default;
$width-lg: 1024px !default;
$width-xl: 1280px !default;
@Josh68
Josh68 / input.scss
Created January 30, 2024 01:51
Generated by SassMeister.com.
@import "color-helpers";
// Breakpoint widths
// INTERNAL: If these values change, the values used for the responsive previews
// in the documentation should also change.
$width-xs: 0 !default;
$width-sm: 544px !default;
$width-md: 768px !default;
$width-lg: 1024px !default;
$width-xl: 1280px !default;
/* eslint-disable @typescript-eslint/no-var-requires */
const { defineConfig } = require("cypress");
const htmlvalidate = require("cypress-html-validate/plugin");
const getCompareSnapshotsPlugin = require("cypress-visual-regression/dist/plugin");
let shouldSkip = false;
let planYearConfig = {};
// eslint-disable-next-line no-undef
module.exports = defineConfig({
@Josh68
Josh68 / dabblet.css
Last active December 14, 2022 21:22 — forked from LeaVerou/dabblet.css
Flexible multiline definition list
/**
* Flexible multiline definition list
*/
dl { width: 200px; display: grid; grid-template-columns: 1fr 80%; gap: .5em .25em; }
dt { counter-increment: css-counter 1; font-weight: bold; white-space: nowrap; }
dt::before { content: counter(css-counter)". "; font-weight: normal; }
dt::after { content: ":"; }
@Josh68
Josh68 / cypress_env_example.js
Created May 20, 2021 16:44
Cypress using .env variables
/**
* All files in /cypress/plugins, but only index.js needs to be there
* With Webpack (and now just modern Node) most imports and exports could be ES6, AFIAK
* index.js still does a `module.exports`
*
* Plugins enable you to tap into, modify, or extend the internal behavior of Cypress.
* @see https://on.cypress.io/plugins-guide
*/
/**
@Josh68
Josh68 / .browserslistrc
Last active February 24, 2021 05:32
Test API with caniuse and a given browserslist
>0.2%
not dead
not ie < 11
not op_mini all
not safari 5.1
@Josh68
Josh68 / keybase.md
Created February 16, 2021 17:12
keybase.md

Keybase proof

I hereby claim:

  • I am josh68 on github.
  • I am josh68 (https://keybase.io/josh68) on keybase.
  • I have a public key ASCKSzF4mHP6SpLGLqDjUs457N2nd2XE968AoaeiNkpxmwo

To claim this, I am signing this object:

@Josh68
Josh68 / compilation-files-changed-plugin.js
Created July 25, 2018 05:50
Determine whether to run patternlab build based on changed files in a compilation
import patternEngines from 'patternlab-node/core/lib/pattern_engines';
import plConfig from '../../../patternlab-config.json';
const pluginName = 'CompilationFilesChangedPlugin';
class CompilationFilesChangedPlugin {
constructor({ patternlab }) {
this.startTime = Date.now();
this.prevTimestamps = new Map();
this.pluginIterator = 0;
@Josh68
Josh68 / server.js
Created July 24, 2018 14:01
Patternlab V3 server lib
'use strict';
const path = require('path');
const liveServer = require('@pattern-lab/live-server');
const events = require('./events');
const logger = require('./log');
const server = patternlab => {
const _module = {