Skip to content

Instantly share code, notes, and snippets.

View misscs's full-sized avatar

cs misscs

  • Composites Collective, SassConf
  • New York, NY
View GitHub Profile
@misscs
misscs / gist:4074337
Created November 14, 2012 19:52
cap log
* 2012-11-14 14:47:06 executing `deploy'
* 2012-11-14 14:47:06 executing `deploy:update'
** transaction: start
* 2012-11-14 14:47:06 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@github.com:misscs/autotax.git master"
command finished in 1585ms
* executing "if [ -d /home/autotax/app/shared/cached-copy ]; then cd /home/autotax/app/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 100155030a8c9ed6a7e2b8151be91a6b0160a385 && git clean -q -d -x -f; else git clone -q git@github.com:misscs/autotax.git /home/autotax/app/shared/cached-copy && cd /home/autotax/app/shared/cached-copy && git checkout -q -b deploy 100155030a8c9ed6a7e2b8151be91a6b0160a385; fi"
servers: ["app01.autotax.me", "job01.autotax.me"]
[job01.autotax.me] executing command
@misscs
misscs / gist:5540849
Last active December 17, 2015 03:08
Singularity grid span issue
/////////////////
// Singularity //
/////////////////
$bp-s: 500px;
$bp-m: 700px;
$bp-l: 900px;
$output: 'float';
$grids: 4;
<h1>Hi</h1>
<p>This is my test blog post</p>
@misscs
misscs / buttoned-up.md
Last active August 29, 2015 14:04
The anatomy of a macro

Buttons

Simple base (default) button macros used to build <button> and <a> buttons.

Shared macros live in separate file. Use imports to organize and group macros. Imported much like partials.

{% import "utility.macros.js.j2" as utility %}
@misscs
misscs / hcard.macros.md
Last active August 29, 2015 14:04
Macros for rendering Microformats hcard
{% import "utility.macros.j2" as utility %}

{% macro name(c, el='h1', href=none, aria=none) %}
  <{{ el }} class="p-name">
    {% if href != none %}
      <a href="{{ href }}" {% if aria != none %}aria-label="{{ aria }}"{%- endif -%} class="u-url">
        {{ c.name }}
      </a>
 {%- else -%}
@misscs
misscs / flexbox.scss
Created August 19, 2014 23:29
Flexbox Web App
// <html>
// <body>
// <header></header>
// <main><main>
// <footer></footer>
html {
height: 100%;
overflow: hidden;
@misscs
misscs / fontface.scss
Last active August 29, 2015 14:06
@font-face Optimization with Sass
// @Font-face
// =========
// Not so sassy use of @font-face. Let's make it better.
@font-face {
font-family: 'BullenReg';
src:url('fonts/bullen/BullenReg.eot');
src:url('fonts/BullenReg.eot?#iefix') format('embedded-opentype'),
url('fonts/BullenReg.woff') format('woff'),
@misscs
misscs / fontface--mixins.scss
Last active August 29, 2015 14:06
@font-face: Refactor with Mixins
// Font-face: Refactoring with Mixins
// ==================================
// Our refactored font-face with variables
// ---------------------------------------
$font-family: 'BullenReg';
$font-dir: 'fonts/';
$font-path: $font-dir + 'bullen/' + $font-family;
@font-face {
@misscs
misscs / fontface--vars.scss
Last active August 29, 2015 14:06
@font-face: Refactor with variables
// Font-Face
// =========
// Refactoring with variables
$space-large: 10px;
$space-small: 5px;
.container {
background: #aaa;
padding-top: $space-large;
padding-bottom: $space-small * 2;
@misscs
misscs / fontface--if.scss
Created September 4, 2014 18:33
@font-face: Improve with Control Directives
// Font-face: Control Directives
// =============================
// If our hair is long, tell us to get it cut
// If our hair is short, tell us to get it buzzed
// If our hair is neither of those, tell us to go to the doctor
// @IF