Skip to content

Instantly share code, notes, and snippets.

View manifestinteractive's full-sized avatar

Peter Schmalfeldt manifestinteractive

View GitHub Profile
@manifestinteractive
manifestinteractive / sfra-init.sh
Created November 6, 2022 09:23
Initialize New Git Repo with Native SFCC Cartridges used on `RedArchGlobal` Demo Site
#!/usr/bin/env bash
#
# description: Initialize New Git Repo with Native SFCC Cartridges used on `RedArchGlobal` Demo Site
# author: Peter Schmalfeldt <me@peterschmalfeldt.com>
# Base Folder for SFRA Project
BASE=sfccdevops_sfra
# SFCC GitHub Remote Origin
SFCC=git@github.com:SalesforceCommerceCloud
@manifestinteractive
manifestinteractive / README.md
Created April 8, 2022 05:02
Custom Scroll Helper to make listening to Page Level Scroll Events easier

Sample Usage

CSS

:root {
  --header-height: 100px;
}
@manifestinteractive
manifestinteractive / README.md
Last active April 3, 2023 08:02
LZ-based Compression Algorithm for Salesforce Commerce Cloud (SFCC)
@manifestinteractive
manifestinteractive / accessibility-testing.md
Last active September 27, 2023 18:27
Accessibility Testing

Introduction

A basic understanding of Accessibility Testing is essential for Web Developers to integrate into their daily web development practices.

The Google Chrome Developer team put together a fantastic intro series for accessibility testing.

StackShare

⚠️   ATTENTION:

@manifestinteractive
manifestinteractive / overscroll.js
Created September 5, 2021 14:36
Fun little easter egg for touch devices that uses overscroll ( rubber banding that happens past scroll bottom ) to reveal hidden content
/**
* Usage:
*
* const overscroll = new Overscroll();
* overscroll.init('/path/to/image.png');
*/
function Overscroll() {
// Check if this is a mobile device that can actually support overscroll
var supported = (typeof matchMedia !== 'undefined' && matchMedia('(hover: none)').matches);
var $elm;
@manifestinteractive
manifestinteractive / MRS2LJSpeech.py
Created July 3, 2021 09:23
MRS to LJ Speech Processor
# This script generates the folder structure for ljspeech-1.1 processing from mimic-recording-studio database
# This is a modified version of what was written by Thorsten Müller
import glob
import sqlite3
import ffmpeg
import os
from shutil import copyfile
from shutil import rmtree
@manifestinteractive
manifestinteractive / sample-report.md
Last active July 9, 2022 08:50
SFCC DevOps - Accessibility Test Sample

A11Y Report Summary

Date: Sunday, August 4, 2019 8:17 PM

Total Issues: 192

✖ Errors: 8 ▲ Warnings: 38 ◆ Notices: 146


⚑ Google

@manifestinteractive
manifestinteractive / backup.sh
Created February 12, 2019 17:56
Quick Backup Script
#!/bin/bash
# Backup Important Files on Storage Drive
echo -e "\n\033[48;5;22m Starting Storage Backup › Android \033[0m\n"
rsync -hrPul /Volumes/Storage/Android /Volumes/Backup/Storage
echo -e "\n\033[38;5;34m✓ BACKUP SYNCED\033[0m\n"
@manifestinteractive
manifestinteractive / own-dark.theme
Created September 26, 2018 14:50
MacOS Mojave Dark Theme Style for SmartGit
extends=smartgit-dark-theme.properties
preferredEditorTheme=dark
background1=#2d2d2d
background2=#1e1e1e
selection.background=#0a0a0a
composite.background#border=#1e1e1e
selection.background.unfocused=#0a0a0a
selection.foreground=foreground2
selection.foreground.unfocused=foreground2
toolBar.background.hover=#0a0a0a
@manifestinteractive
manifestinteractive / README.md
Last active July 28, 2018 01:41
Nginx Config Files for Node API

Nginx Config Files for Node API

My servers are setup using Digital Ocean using These Instructions.

Then, for the API setup for Nginx, I use this setup for nginx.