Skip to content

Instantly share code, notes, and snippets.


Kyle Bavender kbav

  • Shopify
  • Indianapolis, Indiana
View GitHub Profile
kbav / snippet-holder_js.sublime-snippet
Last active August 29, 2015 13:58
Sublime Text Holder.js Syntax Snippet
View snippet-holder_js.sublime-snippet
${1:/js/holder.js/}${2:300}x${3:200}/${4:auto/}${5:sky/vine/lava/gray/industrial/social}/#${6:000000}:#${7:FFFFFF}/text:${8:hello world}
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<description>Holder.js syntax helper snippet. Holder.js ( is the best tool for making placeholder images.</description>
View calc() mixin for less
.calc(@expression) {
width: -webkit-calc(@expression);
width: -moz-calc(@expression);
width: calc(@expression);
kbav / osx-screenshot-directory
Created January 9, 2013 19:37
Change OS X default Screenshot save directory
View osx-screenshot-directory
defaults write location ~/path/; killall SystemUIServer
kbav / gist:4126337
Created November 21, 2012 17:36
HTML Email Hidden Preheader
View gist:4126337
/* ... */
/*--- Preheader declaration in style block in addition to inline for Outlook */
.preheader { display:none !important; visibility:hidden; opacity:0; color:transparent; height:0; width:0; }
<span class="preheader" style="display: none !important; visibility: hidden; opacity: 0; color: transparent; height: 0; width: 0;">Preheader text shows up in GMail, iOS,, &amp; more: 75 text char limit</span>