Add any links you want in this to the comments and I'll add them.
Generates styleguides from Markdown comments in CSS, SASS and LESS files using Handlebars
#!/bin/sh | |
############################################################################### | |
# Homebrew | |
############################################################################### | |
echo "Installing command line utilities" | |
# Check for Homebrew, | |
# Install if we don't have it |
# For SCSS-Lint v0.31.0 | |
linters: | |
BangFormat: | |
enabled: true | |
space_before_bang: true | |
space_after_bang: false | |
BorderZero: |
function countCSSRules() { | |
var results = '', | |
log = ''; | |
if (!document.styleSheets) { | |
return; | |
} | |
for (var i = 0; i < document.styleSheets.length; i++) { | |
countSheet(document.styleSheets[i]); | |
} | |
function countSheet(sheet) { |
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
// You can use inline %placeholders in Sass: | |
.form %form-item + .text { | |
margin-top: 10px; | |
} |
class ImageUploader < CarrierWave::Uploader::Base | |
include CarrierWave::MiniMagick | |
version :blurred do | |
process :blur | |
end | |
def blur(radius=16) | |
manipulate! do |img| | |
original_path = img.path |
$animal: cat; | |
$tail: curl; | |
div { | |
@if $animal == 'cat' { | |
sound: meow; | |
} | |
@if $animal == 'dog' { | |
sound: woof; | |
} |
(function() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
[user] | |
name = Joshua T Kalis | |
email = kalisjoshua@gmail.com | |
[alias] | |
lg = log --graph --pretty=format:'%C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(blue)<%an>%C(reset)' --abbrev-commit --date=relative | |
oldest-ancestor = !zsh -c 'diff -u <(git rev-list --first-parent \"${1:-master}\") <(git rev-list --first-parent \"${2:-HEAD}\") | sed -ne \"s/^ //p\" | head -1' - | |
[core] | |
excludesfile = /Users/jkalis/.gitignore_global | |
[color] | |
branch = auto |
@import compass | |
$icons: sprite-map("icons/*.png") | |
$icons-hd: sprite-map("icons-hd/*.png") | |
i | |
background: $icons | |
display: inline-block | |
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) | |
background: $icons-hd |