Skip to content

Instantly share code, notes, and snippets.

@rivasdiaz
rivasdiaz / mavenstats.java
Last active November 21, 2021 02:49
Maven Project Statistics
///usr/bin/env jbang "$0" "$@" ; exit $?
//JDK 17+
//DEPS io.quarkus:quarkus-bom:2.4.1.Final@pom
//DEPS io.quarkus:quarkus-picocli
//DEPS io.quarkus:quarkus-jackson
//DEPS io.quarkus:quarkus-smallrye-context-propagation
//DEPS com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.12.5
//DEPS com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.12.5
@rivasdiaz
rivasdiaz / keybase.md
Created June 3, 2018 14:35
keybase.md

Keybase proof

I hereby claim:

  • I am rivasdiaz on github.
  • I am rivasdiaz (https://keybase.io/rivasdiaz) on keybase.
  • I have a public key ASARd6UiatyScb9-c-XYIO1NOpu01P60LMGMKG4P6ySlKQo

To claim this, I am signing this object:

import kotlinx.html.js.onClickFunction
import org.w3c.dom.events.Event
import react.RBuilder
import react.dom.button
fun RBuilder.square(value: String, onClickFunction: (Event) -> Unit) =
button(classes = "square") {
+value
attrs.onClickFunction = onClickFunction
}
@rivasdiaz
rivasdiaz / square.jsx
Created November 19, 2017 08:18
React function to create a button with some properties
function Square(props) {
return (
<button className="square" onClick={props.onClick}>
{props.value}
</button>
);
}