Skip to content

Instantly share code, notes, and snippets.

View pacuna's full-sized avatar

Pablo Acuña pacuna

  • Spotify
  • Austin, TX
View GitHub Profile
@santiblanko
santiblanko / Gruntfile.js
Created June 29, 2014 07:14
My gruntfile for laravel packages
module.exports = function(grunt) {
grunt.initConfig({
neuter: {
app: {
options: {
filepathTransform: function (filepath) {
return './src/assets' + '/' + filepath;
}
@toshimaru
toshimaru / jquery-scroll-bottom.js
Last active May 31, 2022 10:55
Detect the scrolling to bottom of the page using jQuery.
$(window).on("scroll", function() {
var scrollHeight = $(document).height();
var scrollPosition = $(window).height() + $(window).scrollTop();
if ((scrollHeight - scrollPosition) / scrollHeight === 0) {
// when scroll to bottom of the page
}
});