Skip to content

Instantly share code, notes, and snippets.

View pacuna's full-sized avatar

Pablo Acuna pacuna

  • Spotify
  • New Orleans, LA
View GitHub Profile
@nf
nf / vm-setup.sh
Last active June 14, 2023 22:08
Script for setting up Debian Jessie VM with my development environment
#!/bin/bash -e
echo '
PATH=$HOME/go/bin:$PATH
export GOPATH=$HOME
export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg
export EDITOR=vim
' >> ~/.profile
sudo apt-get update
@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 March 25, 2026 00:25
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
}
});