Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am atavernor on github.
  • I am atavernor (https://keybase.io/atavernor) on keybase.
  • I have a public key whose fingerprint is 6B52 8027 8327 0714 1341 F958 B922 4E05 2DA6 4EF8

To claim this, I am signing this object:

@atavernor
atavernor / tcms-remove-block-item
Created September 23, 2017 23:40
Remove a Foundation block grid item completely when its TCMS toggle content is empty
$(function (){
$(’.com_joeworkman_stacks_foundation_blockgrid_s3_stack .block-item>div>.com_joeworkman_stacks_totalcms_toggle_stack’)
.each(function(){
var $this = $(this);
if ($this.children().length == 0){
$this.closest(‘li’).remove();
}
});
});
@atavernor
atavernor / 0_reuse_code.js
Created April 7, 2016 01:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);