Skip to content

Instantly share code, notes, and snippets.

View rdrew's full-sized avatar

Rob Drew rdrew

View GitHub Profile
@anschaef
anschaef / bootstrap-5-sass-mixins-cheat-sheet.scss
Last active February 18, 2026 13:41
All New Bootstrap 5 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 5 Sass Mixins [ Cheat sheet ]
// Updated to Bootstrap v5.1.x
// @author https://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/main/scss/mixins
// @see https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss
/* -------------------------------------------------------------------------- */
// Options
// @see https://getbootstrap.com/docs/5.1/customize/options/
@rdrew
rdrew / javascript_code_snippets.js
Last active November 30, 2017 14:21
JS code snippets
//const imagePath = '/sites/all/themes/cbu_scholar/dist/assets/img/';
const imagePath = '/sites/cbufaces.cairnrepo.org/themes/cbu_scholar/dist/assets/img/';
//const imagePath = '/img/';
var menuItems = [
{
title: 'Twitter',
icon: 'twitter.svg'
},
@rdrew
rdrew / bsProxy.js
Last active November 30, 2017 14:24
browsersync setup for proxying a remote site
/*
* Proxy Live site and inject local files
* - run 'npm install --save-dev browser-sync'
* - change the varables below as needed
* - 'node bsProxy' to run the task
*/
//
//initialize all of our variables
var PROXY, ASSETS_DIR, REMOTE_ASSETS_PATH, REGEX, browserSync, serveStatic;