This file contains hidden or 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
.actions { /* ... */ } | |
.actions__user { /* ... */ } | |
.user__avatar { /* this could clash later on though */ } | |
.user__info { /* ... */ } | |
This file contains hidden or 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
function passwordIsValid(password) { | |
if (password.length < 8 || password.length > 255) return false | |
const upper = [] | |
const lower = [] | |
const num = [] | |
const special = [] | |
password.split("").forEach(c => { | |
if (upper.length === 0 && c.match(/[A-Z]/)) upper.push(c) |
This file contains hidden or 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
$screen-sizes: ( | |
xxl: 1920px, | |
xl: 1440px, | |
l: 1360px, | |
ml: 1280px, | |
m: 768px, | |
s: 576px | |
); | |
$col-count: 24; |
This file contains hidden or 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
####################################### | |
# Creates a Craft project in a given directory, and runs the Craft setup CLI | |
# Arguments: | |
# Path to directory | |
####################################### | |
function mkcraft() { | |
composer create-project craftcms/craft $1 && cd $1 && ./craft setup | |
} |
This file contains hidden or 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
# Install xcode command line tools | |
xcode-select --install | |
# Install homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
# Install latest version of ZSH | |
brew install bash | |
sudo vim /etc/shells |