Skip to content

Instantly share code, notes, and snippets.

@JohnAlbin
JohnAlbin / xhprof.rb
Created January 25, 2012 01:39 — forked from vlemaire/xhprof.rb
Homebrew Formula for xhprof
require 'formula'
class Xhprof < Formula
url 'http://pecl.php.net/get/xhprof-0.9.2.tgz'
homepage 'http://pecl.php.net/package/xhprof'
md5 'ae40b153d157e6369a32e2c1a59a61ec'
def install
Dir.chdir "xhprof-#{version}/extension" do
system "phpize"
@JohnAlbin
JohnAlbin / SassMeister-input.scss
Created January 30, 2013 05:56
Generated by SassMeister.com, the Sass playground.
// Sass v3.2.5
// Compass v0.13.alpha.0
@import "compass";
/**
* @file
* Sass is for Superman: CSS3
@JohnAlbin
JohnAlbin / styles.scss
Last active December 12, 2015 01:28
Sass is for Superman: Sass output styles
/**
* @file
* Sass is for Superman: Sass output styles
*
* Try changing the "Output Style" above to alter
* the CSS formatting when the Sass is compiled.
*/
.example {
/* This is a normal CSS comment. */
@JohnAlbin
JohnAlbin / styles.scss
Last active December 12, 2015 06:19
Sass is for Superman – Example 1: Variables and color functions
/**
* @file
* Sass is for Superman - Example 1: Variables and color functions
*/
$blue: rgb(0, 121, 178); /* Create a variable. */
.example {
color: $blue; /* Use a variable */
}
@JohnAlbin
JohnAlbin / styles.scss
Last active December 12, 2015 06:19
Sass is for Superman: Nesting
/**
* @file
* Sass is for Superman: Nesting
*/
/* Nesting rulesets */
.menu--primary-links {
margin: 0;
.menu-link {
@JohnAlbin
JohnAlbin / styles.scss
Created February 7, 2013 04:10
Sass is for Superman: Parent selectors
/**
* @file
* Sass is for Superman: Parent selectors
*/
.button {
border-color: #666;
.haz-border-shadow & {
border-color: lighten(#666, 25%);
@JohnAlbin
JohnAlbin / styles.scss
Created February 7, 2013 05:18
Sass is for Superman: Extends & Placeholder selectors
/**
* @file
* Sass if for Superman: Extends and Placeholder selectors
*/
%element-invisible {
position: absolute !important;
height: 1px;
width: 1px;
overflow: hidden;
@JohnAlbin
JohnAlbin / styles.scss
Created February 7, 2013 05:28
Sass is for Superman: Mixins
/**
* @file
* Sass is for Superman: Mixins
*/
@mixin rounded-corners($radius: 5px) {
border-radius: $radius;
}
.example {
@JohnAlbin
JohnAlbin / styles.scss
Last active December 12, 2015 06:28
Sass is for Superman: Compass CSS3
// Sass v3.2.5
// Compass v0.13.alpha.0
@import "compass";
/**
* @file
* Sass is for Superman: CSS3
*/
@JohnAlbin
JohnAlbin / SassMeister-input.scss
Last active December 22, 2015 08:49
Sass & Compass, Preface: A quick example of SassMeister
// Sass (v3.2.10)
// Compass (v0.13.alpha.4)
.cool {
.pretty & {
.huh {
content: "\m/";
}
}
}