This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Debugging. | |
*/ | |
@mixin o($color: red) { | |
@include if-debug { | |
outline: 1px solid $color; | |
} | |
} | |
@mixin b($color: blue) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Sass::Script::Functions | |
# Wrapper around Ruby's Array#include? method. | |
# https://gist.github.com/4088394 | |
# | |
# value - Value to check for in the list. | |
# list - List to look through. | |
# | |
# Examples | |
# | |
# $list: a b c; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint browser: true, indent: 2, maxlen: 80, nomen: true, plusplus: true */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** ---------------------------------- | |
${1:Title} | |
${1/(.)|(?m:\n.*)/(?1:-)/g} | |
$2 | |
---------------------------------- */ | |
$3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Wrapper around Ruby's Array#index method. | |
# https://gist.github.com/brianmcallister/4341575 | |
# | |
# value - The value in the list to search for. | |
# list - The list to search through. | |
# | |
# Examples | |
# | |
# $list: a b c; | |
# @debug location(b, $list); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Transition end event shim. | |
// https://gist.github.com/brianmcallister/4444457 | |
this.Modernizr.transEndEventName = { | |
'WebkitTransition': 'webkitTransitionEnd', | |
'MozTransition': 'transitionend', | |
'transition': 'transitionend' | |
}[this.Modernizr.prefixed('transition')]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Archive old projects | |
# | |
# - Create a tar.gz file out of a folder | |
dir=~/Archive | |
# Echo a message. TODO - Colors. | |
function msg() { | |
echo "> $*" >&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Class for using localStorage to cache data for a set amount of time. | |
# https://gist.github.com/brianmcallister/5000368 | |
# | |
# name - Name for this cache. | |
# | |
# Examples | |
# | |
# cache = new Cache('my-cache').set 'my-data', {data: 'hats'}, 120 | |
class Cache | |
# Private: Just a function that returns null. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Replace text with svg, use a png fallback. | |
https://gist.github.com/brianmcallister/5065262 | |
$img - Image name to use, no extension. | |
*/ | |
@mixin replace-text-with-svg($img) { | |
@extend %hide-text; | |
$png: '#{$img}.png'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$states: state1 #00adee, state2 #ffc10e, state3 #ec145a; | |
$color_selectors: null; |