Skip to content

Instantly share code, notes, and snippets.

View EdRands's full-sized avatar

Ed Rands EdRands

  • Westbank, BC, Canada
  • 11:30 (UTC -07:00)
View GitHub Profile
@EdRands
EdRands / .zshrc
Last active August 29, 2015 14:20
Homestead Configuration(s)
# Path to your oh-my-zsh installation.
export ZSH=/home/vagrant/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="cloud"
# Uncomment the following line to use case-sensitive completion.
@EdRands
EdRands / .zshrc
Created May 3, 2015 18:25
Ubuntu Oh-My-ZSH Config
# Path to your oh-my-zsh installation.
export ZSH=/home/ed/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
@EdRands
EdRands / material-design-colors.scss
Last active November 11, 2016 08:47
SCSS functions to retrieve a color or corresponding text color value from the Google material design color palette.
$_material-colors: (
'red': (
'50': #FFEBEE,
'100': #FFCDD2,
'200': #EF9A9A,
'300': #E57373,
'400': #EF5350,
'500': #F44336,
'600': #E53935,
'700': #D32F2F,
@EdRands
EdRands / material-design-shadow.scss
Last active November 11, 2016 08:46
SCSS mixin to create a box-shadow in the style of Google's material design specs.
/// Calculates a top shadow for a paper material design effect.
/// @access private
/// @param {number} $depth - depth level
/// @return {list}
@function _top-shadow($depth) {
$primary-offset: nth(1.5 3 10 14 19, $depth) * 1px;
$blur: nth(1.5 3 10 14 19, $depth) * 4px;
$color: rgba(black, nth(.12 .16 .19 .25 .30, $depth));
@return 0 $primary-offset $blur $color;