Skip to content

Instantly share code, notes, and snippets.

@jjcatulle
jjcatulle / css-infinite-autoplay-carousel.markdown
Created August 30, 2022 21:00
[CSS] Infinite autoplay carousel
@jjcatulle
jjcatulle / filterArray.js
Created June 5, 2022 01:34 — forked from jherax/arrayFilterFactory.1.ts
Filters an array of objects with multiple match-criteria.
/**
* Filters an array of objects using custom predicates.
*
* @param {Array} array: the array to filter
* @param {Object} filters: an object with the filter criteria
* @return {Array}
*/
function filterArray(array, filters) {
const filterKeys = Object.keys(filters);
return array.filter(item => {
I am attesting that this GitHub handle jjcatulle is linked to the Tezos account tz1LwpESvbNJzEEvkKt5nzW6F8fi1vysFmwb for tzprofiles
sig:edsigu4ATkAhjqbYUXrvVEhfwDpYYEcdWsw49VGMkU83qaUfaFEzA1BTjo7utGEfdwgMcbPDMkd9JZzo4KG2U4Wz2knAdvowH4N
I am attesting that this GitHub handle jjcatulle is linked to the Tezos account tz1LwpESvbNJzEEvkKt5nzW6F8fi1vysFmwb for tzprofiles
sig:edsigu4ATkAhjqbYUXrvVEhfwDpYYEcdWsw49VGMkU83qaUfaFEzA1BTjo7utGEfdwgMcbPDMkd9JZzo4KG2U4Wz2knAdvowH4N
@jjcatulle
jjcatulle / discord-webhook.js
Created August 21, 2020 03:48 — forked from dragonwocky/discord-webhook.js
js post request example for discord webhooks using the fetch web api
fetch(
'https://discordapp.com/api/webhooks/738983040323289120/mzhXrZz0hqOuUaPUjB_RBTE8XJUFLe8fe9mgeJjQCaxjHX14c3SW3ZR199_CDEI-xT56',
{
method: 'post',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
// the username to be displayed
username: 'webhook',