Skip to content

Instantly share code, notes, and snippets.

View kelsS's full-sized avatar
🍵

Kelsey S. kelsS

🍵
View GitHub Profile
@mdennis-vpm
mdennis-vpm / gist:22dd508b78ce457220624b7797b58c06
Last active March 8, 2019 18:42
High-Level Bootstrap 4 Container Overview
Bootstrap 4 Default breakpoints (and corresponding fixed-width container sizes):
* xs = 575px and below (100% container, with 15px default left and right paddings)
* sm = 576px – 767px (540px container, with default paddings)
* md = 768px – 991px (720px container, with default paddings)
* lg = 992px – 1199px (960px container, with default paddings)
* xl = 1200px and up (1140px container, with default paddings)
“Container” dimensions are for when non-fluid containers are used.
I personally prefer working with non-fluid containers,
as it leads to massively reduced probability of layout issues.

BEM Cheatsheet

BLOCK

Block encapsulates a standalone entity that is meaningful on its own.

While blocks can be nested and interact with each other, semantically they remain equal; there is no precedence or hierarchy.

Holistic entities without DOM representation (such as controllers or models) can be blocks as well.

Scss Style Guide Starter

Special thanks to Carwin Young (Github @carwin) whose docs this is based on

This is a guide for formatting Sass stylesheets, it's goals are:

  • To encourage consistency between developers in a repository.
  • Styles applying to an element should be in one place
  • Code should be easily find-able and legible by humans
  • Classes are mostly explicitly named (pointing to specific elements, not functionality)
@nuxsmin
nuxsmin / build-composer.sh
Created February 12, 2019 21:42
Build and package sysPass dependencies
#!/usr/bin/env bash
APP_DIR="$(pwd)/app"
if [ ! -d "${APP_DIR}" ]; then
mkdir "${APP_DIR}"
git clone https://github.com/nuxsmin/sysPass.git ${APP_DIR}
else
git pull --no-tags
fi
@bradtraversy
bradtraversy / docker_wordpress.md
Last active June 14, 2026 08:51
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
function getContrast50(hex){
return (parseInt(hex, 16) > 0xffffff/2) ? 'black': 'white';
}
@bradtraversy
bradtraversy / myscript.sh
Last active June 4, 2026 19:39
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@jeromecoupe
jeromecoupe / webstoemp-gulpfile.js
Last active May 29, 2026 10:07
Gulp 4 sample gulpfile.js. For a full explanation, have a look at https://www.webstoemp.com/blog/switching-to-gulp4/
"use strict";
// Load plugins
const autoprefixer = require("autoprefixer");
const browsersync = require("browser-sync").create();
const cp = require("child_process");
const cssnano = require("cssnano");
const del = require("del");
const eslint = require("gulp-eslint");
const gulp = require("gulp");

If .DS_Store was never added to your git repository, simply add it to your .gitignore file.

If you don't have one, create a file called

.gitignore

In your the root directory of your app and simply write

@nijicha
nijicha / install_nodejs_and_yarn_homebrew.md
Last active July 25, 2025 09:02
Install NVM, Node.js, Yarn via Homebrew