Skip to content

Instantly share code, notes, and snippets.

View stringtheory's full-sized avatar

Diane Kopperl stringtheory

View GitHub Profile
@stringtheory
stringtheory / babel_extend.py
Created July 2, 2024 19:36
babel helper for extending gettext()
# coding=utf-8
import babel
from babel import core, lists, dates, Locale, UnknownLocaleError
from beautylish.lib.constants import COMMERCE_COUNTRIES, DEFAULT_LOCALE
from beautylish.lib.constants import LANG_VALID_COUNTRIES
from beautylish.lib.constants import ALL_LANGUAGES
from beautylish.lib.constants import EN_24HOUR_COUNTRIES
from beautylish.lib.constants import LANG_OVERRIDES
@stringtheory
stringtheory / best-practices.md
Created April 3, 2022 21:17
Image Metadata Resources, Standards and Resources
@stringtheory
stringtheory / avoid_learn_more.md
Last active October 14, 2021 16:20
"Learn more" - non-descriptive text replacement ideas, reference articles, best practices - and helpful unicode arrows to point you in the right direction.

Avoid Learn More

"Learn more" is considered non-descriptive link text by google. AKA: Google will flag it and it can lower a sites SEO score.

Short Text Alternatives:

  • "Read more"
  • "Discover more"
  • "Find out more"
const textClass = node => {
if (node.nodeType in styleList) {
return styleList[node.nodeType];
}
return '';
};
const options = {
renderMark: {
[MARKS.ITALIC]: text => `<em>${text}</em>`,
{
"textAlign": "center",
"maxWidthValue": "700",
"maxWidthUnit": "px",
"verticalPadding": {
"sm": {
"top": 4,
"bottom": 4
},
"md": {
<template >
<section
class="tw-h-full"
:class="themeClass"
v-if="hasBackgroundImage"
>
<kv-contentful-img
class="tw-h-full tw-object-cover"
:width="520"
fallback-format="jpg"
Font Weight Numeric Values
https://drafts.csswg.org/css-fonts/#font-weight-numeric-values
Common Names for font weights
100 - Thin
200 - Extra Light (Ultra Light) (sometimes 250)
300 - Light
350 - Book
400 - Normal (Book
@stringtheory
stringtheory / noto-sans-ugaritic.css
Created April 26, 2021 01:46
Reference - Webfonts
@font-face {
font-family: 'Noto Sans Ugaritic';
src: url(data:application/font-woff2;charset=utf-8;base64,d09GMgABAAAAAA10AA0AAAAAIlwAAA0dAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cBmAAg0IIBBEICqRAnjsLTAABNgIkA4EUBCAFlDgHgmAbKh4jEfZytJKT/YcETmXAY9n0GiqimrDTFV7VqsJrrZZq7bMGImOcXo4hgq/jf+D4MqnTh42QZBbCGnt/k9yVkRWBkU/XsSNh6zu+9YDjWbgP/6szf3lYgf7BaPMRJewjh5wUSGfJOgWk1FJo7TB1GDvMgFOXoa8jEWrbtdsHrEBqMMIxQDe7QVdXXZfu8kA0tTW75jDhITeoB5se4tULynNSGYRtICPUzut/gXq1/UbdSVXHhrEK48YnQ3OpzSVXgqiCoxs49q3fWFlKL/n8N9eUKAWGfIqfMtnOTwKBA5YkHIFCEmZGTOhJP91k9F+DHnAheESSa9kwNl0Gy8BCVJQcPErXj/YAZP88bGcOAPd3PixemDIHrlsgSxzQg+YAxidHlFVBREDDvTrv9KgGmAKOHIiN49qVcPBf/dPp0ZkYioemGF4jOSuSR/IAKoAj2xAWbohUPa8RBnudljcZRgiKApHkeP8fi3L5f4+hG4F9BI4r3IKASFvoArXKAWZ15eUQCyx/Dh6xy8WRDyRI9EdWdB1w/xMNsOYdjXPbDpD/Es4UgrGVu4C/BSGHIMStytUQ6QFjZLxiK7JtEm0BZQUnBbdrOddqYH6wbTo89s6DOWI/W1uYDlNgyMdaCu3PONiRsi4DC3kwz87MNpQUwnhwe0jGxgQTyDiLYAJmqwcNpg5ge3SZ63ow3cMEwPu1pe41wHHo0TfpovX6QDNOmH/KTotnjPtkdDSb/XU6L+GJHiy+fIIwP7YPj+hkOjPZVNkZySe8RM3flQ/sShhCWm9cFxeQlq
@stringtheory
stringtheory / theme.md
Last active July 26, 2021 22:24
Class names for themes and descriptions

New

  • fresh
  • current
  • crisp

Standing Out

  • deluxe
  • lux
  • fancy
  • elegant