Skip to content

Instantly share code, notes, and snippets.

View erikakers's full-sized avatar

Erik Akers erikakers

View GitHub Profile
@erikakers
erikakers / Constants.js
Last active August 29, 2015 14:02
Javascript: App Width Constants
App.Constants.DESKTOP = 990,
App.Constants.TABLETLG = 980,
App.Constants.TABLETSM = 768,
App.Constants.MOBILE = 767;
App.Constants.MOBILEMQ = 'only screen and (max-width: ' + App.Constants.MOBILE + 'px)',
App.Constants.TABLETMQ = 'only screen and (max-width: ' + App.Constants.TABLETLG + 'px)',
App.Constants.DESKTOPMQ = 'only screen and (min-width: ' + App.Constants.DESKTOP + 'px) and (max-width: 1199px)';
App.Constants.DESKTOPLGMQ = 'only screen and (min-width: 1200px)';
$iterator: 1;
$header-ratio: 4;
$max-heading: 7;
$max-font-size: 40px;
@while $iterator < $max-heading {
$font-size: ($max-font-size + $header-ratio) - $iterator * $header-ratio;
h#{$iterator}, .h#{$iterator} {
@include adjust-font-size-to($font-size);
@function palette($palette, $tone: 'base') {
@return map-get(map-get($palettes, $palette), $tone);
}
// Project Color Map
// This is used to create font modifier classes to get around setting colors
// on specific elements or styles.
$palettes: (
white: (
base: #fff
echo "Installing Dependencies"
xcode-select --install
echo "Installing Homebrew"
if test ! $(which brew); then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
echo "Installing Homebrew Packages"
packages=(
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { faker } from '@faker-js/faker';
import UriDecoder from '../utils/uri-decoder';
// Mock dependencies
vi.mock('../utils/uri-decoder');
describe('click.ts', () => {
let mockPublish: any;
let mockSubscribe: any;