Skip to content

Instantly share code, notes, and snippets.

View mtrythall's full-sized avatar

Michael Trythall mtrythall

View GitHub Profile
###################################
## Lincoln Loop Base Sass Lint File
###################################
# Linter Options
# rules @ https://github.com/sasstools/sass-lint/tree/master/docs/rules
options:
# Don't merge default rules
merge-default-rules: false
# Rule Configuration
@mtrythall
mtrythall / _grid-helper.scss
Created January 20, 2016 19:16
Sizing Mixin
@mixin by-x($num, $spacing: 20px, $max-width: false) {
width: calc(100% * 1/#{$num} - #{$spacing});
@if $max-width {
max-width: $max-width;
}
}
@mtrythall
mtrythall / SassMeister-input-HTML.html
Created September 25, 2014 22:08
Generated by SassMeister.com.
<div class="color-grid">
<div class="color"></div>
<span class="color"></span>
<div class="color"></div>
<span class="color"></span>
<div class="color"></div>
<span class="color"></span>
<div class="color"></div>
<span class="color"></span>
@mtrythall
mtrythall / SassMeister-input-HTML.html
Created September 25, 2014 22:05
Generated by SassMeister.com.
<div class="color-grid">
<div class="color"></div>
<div class="color"></div>
<div class="color"></div>
<div class="color"></div>
<div class="color"></div>
<div class="color"></div>
<div class="color"></div>
<div class="color"></div>
@mtrythall
mtrythall / SassMeister-input-HTML.html
Created July 14, 2014 05:00
Generated by SassMeister.com.
<header class="site-header">
</header>
@mtrythall
mtrythall / SassMeister-input-HTML.html
Created June 18, 2014 17:13
Generated by SassMeister.com.
<a href="#" class="example1">Hover over Me</a>
<a href="#" class="example2">Hover over Me</a>
@mtrythall
mtrythall / Intro to Go Notes
Created January 31, 2014 05:53
My notes from the Intro to Go class held at Codefellows Jan 30 2014
# Intro to Go
Go is opinionated.
## Performance
Go is extremely fast. "100x faster than the heavily cached Ruby option"
"1% of memory footprint"
@mtrythall
mtrythall / _grid.scss
Last active December 29, 2015 00:59
Grid helpers that wrap Susy
/*
* Class-based Grid
*/
.grid-row {
@include clear; // Insert your clearfix here
}
.grid-last {
@include omega;
@mtrythall
mtrythall / field.html
Last active October 8, 2015 23:48
Basic field include for Django templates
<div class="field {% if field_class %} {{ field_class }}{% endif %}">
<label for="id_{{ field.html_name }}">
{% if label %}{{ label }}{% else %}{{ field.label }}{% endif %}
{% if not field.required %}<small>optional</small>{% endif %}
</label>
{{ field }}
{% if help_text %}
<p class="help-text">{{ help_text }}</p>
{% elif field.help_text %}