Skip to content

Instantly share code, notes, and snippets.

View shawn-sandy's full-sized avatar
💭
I may be slow to respond.

Shawn Sandy shawn-sandy

💭
I may be slow to respond.
View GitHub Profile
@shawn-sandy
shawn-sandy / .eleventy.js
Last active January 31, 2022 12:33
FP-Pages
const fs = require("fs");
const Image = require("@11ty/eleventy-img");
const htmlmin = require("html-minifier");
const pluginRss = require("@11ty/eleventy-plugin-rss");
const markdown = require("@shawnsandy/ideas/lib/markdown");
const CleanCSS = require("clean-css");
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
module.exports = function (eleventyConfig) {
eleventyConfig.setBrowserSyncConfig({
@shawn-sandy
shawn-sandy / MIT.md
Last active April 26, 2021 12:09
Project readme

License MIT

Copyright (c) 2021 Shawn Sandy creative@shawnsandy.design

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@shawn-sandy
shawn-sandy / custom-dropdown.md
Last active March 9, 2021 12:09
Custom dropdowns

Custom Dropdown

TODO add som basic setup and install instructions

{
"presets": [
[
"@babel/env",
{
"targets": {
"edge": "17",
"firefox": "60",
"chrome": "67",
"safari": "11.1"
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@shawn-sandy
shawn-sandy / checkbox.scss
Last active November 3, 2022 01:52
css-snippets
:where(label) {
display: flex;
place-items: center;
margin-right: 1rem;
gap: 0.3rem;
cursor: pointer;
height: auto;
:where([type="checkbox"]) {
appearance: none;
@shawn-sandy
shawn-sandy / js-snippets.md
Last active October 19, 2022 11:43
js-snippets

Snippets

@shawn-sandy
shawn-sandy / .eleventy.js
Last active November 26, 2021 20:55
Eleventy snippets
const fs = require("fs")
const htmlmin = require("html-minifier")
const pluginRss = require("@11ty/eleventy-plugin-rss")
const markdown = require("@shawnsandy/ideas/lib/markdown")
const image = require("@11ty/eleventy-img")
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation")
const CleanCSS = require("clean-css")
module.exports = function (eleventyConfig) {
@shawn-sandy
shawn-sandy / _base.scss
Last active February 13, 2021 17:02
AEM Blueprints
//== Base
// Required
@import ".~bootstrap/scss/functions";
@import ".~bootstrap/scss/variables";
@import ".~bootstrap/scss/mixins";
// Include custom variable default overrides here
// Optional
@import ".~bootstrap/scss/root";
@shawn-sandy
shawn-sandy / terminal.md
Last active February 13, 2021 05:04
VSCode tips

VSCode Terminal CMD tips

Open Windows Explorer from VSCODE terminal

Enter start . to the current directory/path in Windows Explorer from the terminal