Skip to content

Instantly share code, notes, and snippets.

View alademann's full-sized avatar

Aaron Lademann alademann

View GitHub Profile
@alademann
alademann / src_pow.scss
Created April 25, 2016 15:24
An exponent / power function for sassy css
///
/// Raises `$number` to the power of `$exponent`.
/// ---
/// @since 1.5.0
/// ---
/// @param {Number} $number
/// @param {Number} $exponent
/// ---
/// @returns {Number} - `$number` raised to the power of `$exponent`
///
@alademann
alademann / SassMeister-input.scss
Created July 26, 2014 18:23
Generated by SassMeister.com.
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
@import "compass";
$colors: (
'cyan': #00ffff,
'purple': #b848c9
@alademann
alademann / SassMeister-input.scss
Created July 26, 2014 18:07
Generated by SassMeister.com.
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
@import "compass";
$colors: (
'cyan': #00ffff,
'purple': #b848c9
@alademann
alademann / SassMeister-input.scss
Created July 26, 2014 18:03
Generated by SassMeister.com.
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
$cyan: #00ffff;
$purple: #b848c9;
.purple {
@alademann
alademann / _map-get-deep-dot.scss
Last active February 25, 2019 12:40
Dot notation extension for SassyMap's map-get-deep Sass function
/**
* Fetch a deeply nested value in a multi-level map using object dot-notation string OR a list of keys.
*
* @requires sassy-maps
* @requires SassyLists
* @requires is-map
* @requires is-string
* @requires is-list
*
* @param {map} $map
@alademann
alademann / script.sh
Created January 24, 2014 16:43
Bash Script Formatting
#!/bin/bash
# Formatting options
underline=`tput smul`
nounderline=`tput rmul`
bold=`tput bold`
red=`tput setaf 1`
green=`tput setaf 2`
@alademann
alademann / ascii-format.js
Created January 24, 2014 15:58
ASCII Text Styling For console.log output
function format(str, style) {
var styles = {
// styles
'bold': ['\x1B[1m', '\x1B[22m'],
'italic': ['\x1B[3m', '\x1B[23m'],
'underline': ['\x1B[4m', '\x1B[24m'],
'inverse': ['\x1B[7m', '\x1B[27m'],
'strikethrough': ['\x1B[9m', '\x1B[29m'],
// text colors
// grayscale
@alademann
alademann / ios-test.css
Created March 5, 2012 21:29 — forked from tonywok/ios-test.css
iOS Media Queries
// iOS Media Queries
// Goal: capture styles for iPhone, iPhone 3G, iPhone 3GS, iPhone 4, iPhone 4S, iPad, and iPad 2
//
// Author: Tony Schneider (@tonywok)
// Please tell me where I fail. :)
// iPhone v(4,4S) portrait
// test: black text (overwritten by v* portrait) with blue background
@media all and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {
a {