Skip to content

Instantly share code, notes, and snippets.

Jeff McCarthy jeff-mccarthy

Block or report user

Report or block jeff-mccarthy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jeff-mccarthy
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
jeff-mccarthy / stockimages.py
Created Apr 26, 2018
A simple Python script to download a requested number of random stock images at a specific dimension
View stockimages.py
# Imports
import os
import urllib
# Welcome message
print('Download random stock images from picsum.photos\n(* images download to the current directory)')
# Paths
# get current working directory
cwd = os.getcwd()
@jeff-mccarthy
jeff-mccarthy / _spacers.scss
Last active May 7, 2018
Generated by SassMeister.com.
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
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.