Skip to content

Instantly share code, notes, and snippets.

View fortybillion's full-sized avatar

Ben Sargent fortybillion

View GitHub Profile
@fortybillion
fortybillion / jquery_console_logging.sublime-snippet
Created November 14, 2012 20:10
jQuery Console Logging for Sublime Text 2
<snippet>
<content><![CDATA[
${1:this}.each(function(index, el){console.log(${2:'$1[' + index + ']', }el);});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>jlog</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
@fortybillion
fortybillion / _css3.scss
Created May 14, 2012 19:47
Common CSS3 mixins for SASS
/* Commonly used mixins for CSS3 in SASS
by Ben Sargent (2012)
www.brokendigits.com
*/
/* generically prefix any property name */
@mixin prefix($name, $value) {
-webkit-#{$name}: $value;
-moz-#{$name}: $value;
@fortybillion
fortybillion / NextUnreadMessage.scpt
Created February 17, 2010 19:26
Mail.app "Next Unread Message"
tell application "Mail" to try
set mailAccounts to every account
set messageFound to false
repeat with acc in mailAccounts
if not messageFound then
try
set unreadMessage to {last message of mailbox "INBOX" of acc whose read status is false}
set messageFound to true
set accountWithUnread to acc
end try