Skip to content

Instantly share code, notes, and snippets.

Jeff McCarthy jeff-mccarthy

View GitHub Profile
jeff-mccarthy / tabs.njx
Created May 7, 2018
Bootstrap Tabs Macro
View tabs.njx
* Import
* {% import 'components.njx' as component %}
* Tabs (using bootstrap)
* Build out a bootstrap navigation and a tab content area
* @param {array} tabs = ['tab1', 'tab2', etc] | builds out nav using array values as ids and the text for that nav item
* @param {int} active = 1 | index of tab nav item that will be active
jeff-mccarthy /
Created Apr 26, 2018
A simple Python script to download a requested number of random stock images at a specific dimension
# Imports
import os
import urllib
# Welcome message
print('Download random stock images from\n(* images download to the current directory)')
# Paths
# get current working directory
cwd = os.getcwd()
jeff-mccarthy / _spacers.scss
Last active May 7, 2018
Generated by
View _spacers.scss
// ----
// Sass Spacer Generator
// Output a list of spacers with a consistent multiplier
// to standardize spacing of margins, padding, etc.
// ----
$spacer-size: 8px;
@function spacer($multiplier) {
jeff-mccarthy / settings.json
Created May 11, 2017
Material Skin for VS Code
View settings.json
"workbench.colorCustomizations": {
"activityBar.foreground": "#B0BEC5",
"activityBar.background": "#263238",
"activityBarBadge.foreground": "#F5F5F5",
"activityBarBadge.background": "#26A69A",
"sideBar.background": "#263238",
"sideBarTitle.foreground": "#B0BEC5",
"sideBarSectionHeader.background": "#263238",
You can’t perform that action at this time.