Skip to content

Instantly share code, notes, and snippets.

View brucebentley's full-sized avatar

Bruce Bentley brucebentley

View GitHub Profile
@brucebentley
brucebentley / Medium-Style-Hyperlinks.md
Last active August 29, 2015 14:00
Crafting hyperlink underlines, similar to how the team at https://medium.com/ have done.
@brucebentley
brucebentley / unbrew.rb
Created November 6, 2014 21:27
Homebrew uninstallation script to remove all directories & references to the installation.
#!/usr/bin/env ruby
#
# Locates and removes Homebrew installation
# http://brew.sh/
#
# Author: Bruce Bentley
# https://github.com/brucebentley
#
# Contributors:
# - @AaronKulick
@brucebentley
brucebentley / _material-colors.scss
Created April 8, 2016 14:16
Google Material Design Color Palette in Sass.
///
/// - - - - - - - - - - - - - - - - - - - - - - - - -
/// MATERIAL DESIGN COLOR PALETTE
/// @AUTHOR: GOOGLE
/// @SOURCE: http://www.google.com/design/spec/style/color.html#color-ui-color-palette
/// - - - - - - - - - - - - - - - - - - - - - - - - -
///
///
angular.module('material.core.theming.palette', [])
.constant('$mdColorPalette', {
'red': {
'50': '#ffebee',
'100': '#ffcdd2',
'200': '#ef9a9a',
'300': '#e57373',
'400': '#ef5350',
'500': '#f44336',
'600': '#e53935',
@brucebentley
brucebentley / SCSS.md
Created August 9, 2017 10:30 — forked from jareware/SCSS.md
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso

#
# Create a temporary directory to store everything while we're working on it.
#
$ mkdir -p ~/Desktop/localhost_cert && cd $_
############################################################
# STEP 1: Root SSL Certificate
############################################################
#
# Generate a RSA-2048 key which you'll use to generate the Root SSL certificate.
@brucebentley
brucebentley / chefdk-macos-installation.sh
Last active June 4, 2018 20:44
Installing the ChefDK on macOS, using it alongside `rbenv`
#!/bin/bash
#
# Install the ChefDK on macOS
#
# @USAGE
# ./chefdk-macos-install.sh
#
# Arguments:
# VERSION Version of the ChefDK to install
@brucebentley
brucebentley / logger.scss
Last active July 31, 2018 14:21
A friendly way to log different types of messages (warnings, errors, debug, etc).
///
/// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/// Sass Logger
/// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
///
/// The idea is to provide some kind of friendly API to log stuff in Sass,
/// including a way to log different type of messages (warnings, errors...).
/// Current implementation provides:
/// - 5 levels of logging ("DEBUG" "INFO" "WARN" "ERROR" "FATAL");
/// - a minimum level at which the logger starts printing;
@brucebentley
brucebentley / salesforce.app.scss
Last active January 13, 2019 08:39
Component markup & stylesheets provided from Salesforce's Omni-Channel Live Agent Embedded Service.
///
/// - - - - - - - - - - - - - - - - - - - - - - - - -
/// AURA APP COMPONENT
/// - - - - - - - - - - - - - - - - - - - - - - - - -
/// @SOURCE: https://sforce.co/2SdZxKA;
///
///
/// KEYFRAMES
/// - - - - - - - - - - - - - - - - - - - - - - - - -

GoCanvas Local macOS Development Environment

 
A step-by-step guide to walk you through the setup & configuration of your local macOS development environment.
 

Required Files —

You'll need to reach out to one of the developers on your team to get these files, which are excluded from Git.