Skip to content

Instantly share code, notes, and snippets.

View johncurcio's full-sized avatar
🏠
Working from home

John Curcio johncurcio

🏠
Working from home
View GitHub Profile
@johncurcio
johncurcio / aresume.gif
Last active August 21, 2020 22:48
resume
aresume.gif
@johncurcio
johncurcio / me.gif
Last active July 3, 2020 21:57
About Me
me.gif
@johncurcio
johncurcio / initScrolling.js.erb
Created October 21, 2019 19:47
initScrolling.js.erb without linting errors
/* global algoliasearch, insertAfter, insertArticles, buildArticleHTML, nextPage:writable, fetching:writable, done:writable */
'use strict';
var client;
function fetchNext(el, endpoint, insertCallback){
var indexParams = JSON.parse(el.dataset.params);
var urlParams = Object.keys(indexParams).map(function handleMap(k) {
return encodeURIComponent(k) + "=" + encodeURIComponent(indexParams[k])