Skip to content

Instantly share code, notes, and snippets.

Kyle Bavender kbav

Block or report user

Report or block kbav

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kbav
kbav / snippet-holder_js.sublime-snippet
Last active Aug 29, 2015
Sublime Text Holder.js Syntax Snippet
View snippet-holder_js.sublime-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>
View calc() mixin for less
.calc(@expression) {
width: -webkit-calc(@expression);
width: -moz-calc(@expression);
width: calc(@expression);
}
@kbav
kbav / osx-screenshot-directory
Created Jan 9, 2013
Change OS X default Screenshot save directory
View osx-screenshot-directory
defaults write com.apple.screencapture location ~/path/; killall SystemUIServer
@kbav
kbav / gist:4126337
Created Nov 21, 2012
HTML Email Hidden Preheader
View gist:4126337
<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>
You can’t perform that action at this time.