Skip to content

Instantly share code, notes, and snippets.

@kevonc
kevonc / gist:6222682
Last active December 21, 2015 00:48 — forked from tibbon/gist:6222633
easy infinite scroll
$(window).scroll(function() {
// Cache our jQuery selector for window
var win = $(window);
// Infinite scroll math!
if(win.height() + win.scrollTop() >= $(document).height()) {
populateCountries();
}
});
<!DOCTYPE html>
<html>
<head>
<title>Backbone.JS-powered Blog</title>
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<!-- This will be our main container -->

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods