Skip to content

Instantly share code, notes, and snippets.

@joshre
joshre / util--display-borders.scss
Created May 4, 2016 23:50
Scss mixin to display borders with classnames using content(attr(class)) declarations.
$section--border: true !default;
$p--border: false !default;
$div--border: false !default;
$span--border: false !default;
@mixin borders($element, $color, $px) {
main {
#{$element} {
border: #{$px}px solid $color !important;
@joshre
joshre / omega-reset
Created May 27, 2015 16:34
Neat Omega Reset Mixin
// thx @joshfry
@mixin omega-reset($nth) {
&:nth-child(#{$nth}) { margin-right: flex-gutter(); }
&:nth-child(#{$nth}+1) { clear: none }
}
@joshre
joshre / lamp
Created April 26, 2015 01:17
LAMP Install
[Copying from here, a gist is just easier to find.](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html)
1. SSH into server
2. Run `sudo yum update -y`
3. Run `sudo yum install -y httpd24 php56 mysql55-server php56-mysqlnd`
4. Run `sudo service httpd start`
5. Run `sudo chkconfig httpd on`