Skip to content

Instantly share code, notes, and snippets.

View kbav's full-sized avatar

Kyle Bavender kbav

View GitHub Profile
@kbav
kbav / snippet-holder_js.sublime-snippet
Last active August 29, 2015 13:58
Sublime Text Holder.js Syntax Snippet
<snippet>
<content><![CDATA[
${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}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>holder_js-snippet</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<description>Holder.js syntax helper snippet. Holder.js (https://github.com/imsky/holder) is the best tool for making placeholder images.</description>
</snippet>
.calc(@expression) {
width: -webkit-calc(@expression);
width: -moz-calc(@expression);
width: calc(@expression);
}
@kbav
kbav / osx-screenshot-directory
Created January 9, 2013 19:37
Change OS X default Screenshot save directory
defaults write com.apple.screencapture location ~/path/; killall SystemUIServer
@kbav
kbav / gist:4126337
Created November 21, 2012 17:36
HTML Email Hidden Preheader
<style>
/* ... */
/*--- 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; }
</style>
</head>
<body>
<!-- PRE-HEADER TEXT -->
<span class="preheader" style="display: none !important; visibility: hidden; opacity: 0; color: transparent; height: 0; width: 0;">Preheader text shows up in GMail, iOS, Mail.app, &amp; more: 75 text char limit</span>