This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Spacing helpers for consistent margin and padding on elements. Uses rems (not px!) | |
* | |
* With the current default settings, generates classes like: | |
* .mts = margin-top: 0.5rem | |
* .phl = padding-left: 2rem; padding-right: 2rem; // h = horizontal = left/right | |
* | |
* Inspired by: | |
* https://github.com/mrmrs/css-spacing | |
* https://getbootstrap.com/docs/4.0/utilities/spacing/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-env jasmine */ | |
beforeEach(function() { | |
jasmine.addMatchers({ | |
toBeInstanceOf: (util, customEqualityTesters) => { | |
return { | |
compare: (actual, expected) => { | |
const pass = (actual instanceof expected); | |
return { | |
pass, | |
message: `Expected ${actual} to ${pass ? 'not' : ''} be instance of ${expected}`, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |