Skip to content

Instantly share code, notes, and snippets.

View jessepollak's full-sized avatar

Jesse Pollak jessepollak

View GitHub Profile
@kevingessner
kevingessner / gist:9509148
Last active April 27, 2023 15:45
Responsive emails that really work -- From Etsy's Code As Craft blog: http://codeascraft.com/2014/03/13/responsive-emails-that-really-work
<html>
<head>
<style type="text/css">
table table {
width: 600px !important;
}
table div + div { /* main content */
width: 65%;
float: left;
}
@jessepollak
jessepollak / instaInterval.js
Last active February 11, 2018 12:52
setInterval + Immediately Invoked Function Expressions == instaInterval.
setInterval((function interval() {
// do something instantly then every 5 seconds
console.log('This is a better version of setInterval');
return interval;
})(), 5000);
@rjz
rjz / cs-jq-plugin-template.coffee
Created September 3, 2012 17:01
Coffeescript jQuery Plugin Class Template
# A class-based template for jQuery plugins in Coffeescript
#
# $('.target').myPlugin({ paramA: 'not-foo' });
# $('.target').myPlugin('myMethod', 'Hello, world');
#
# Check out Alan Hogan's original jQuery plugin template:
# https://github.com/alanhogan/Coffeescript-jQuery-Plugin-Template
#
(($, window) ->