Skip to content

Instantly share code, notes, and snippets.

View fercomunello's full-sized avatar

Fernando Comunello fercomunello

View GitHub Profile
//usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS io.smallrye.reactive:smallrye-mutiny-vertx-web-client:1.1.0
//DEPS io.smallrye.reactive:mutiny:0.7.0
//DEPS org.slf4j:slf4j-nop:1.7.30
package io.vertx.mutiny.pagination;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
@marcus-at-localhost
marcus-at-localhost / bootstrap-validation.js
Last active October 30, 2023 14:53
[Bootstrap Form Validation HTMX Extension] See example: https://jsfiddle.net/hxjvw62L/ #htmx #bootstrap
htmx.defineExtension('bs-validation', {
onEvent: function (name, evt, data) {
let form = evt.detail.elt;
// check if trigger attribute and submit event exists
// for the form
if(!form.hasAttribute('hx-trigger')){
// set trigger for custom event bs-send
form.setAttribute('hx-trigger','bs-send');
@croxton
croxton / example.html
Last active September 4, 2025 11:58
Adds a `hx-history-preserve` attribute to preserve the initial dom state of an element's children for history (before it has been manipulated by JS).
<div id="my-unique-id" hx-history-preserve>
<p>Markup here wil be returned to it's original state on history restore.</p>
</div>
@AdamBien
AdamBien / 110thAirhacksQ&A.md
Last active May 1, 2023 09:30
110thAirhacksQ&A.md

Ask questions and see you at May 1st, 8 pm CET: youtube.com/c/bienadam

Also checkout recent episode:

109th airhacks.tv

Please keep the questions as short and as concise as only possible. Feel free to ask several, shorter questions. I will also cover some questions in my "shorts" youtube.com/@bienadam/shorts between the shows.