Skip to content

Instantly share code, notes, and snippets.

View javatlacati's full-sized avatar
🤓
Lets contiperf

RUSLAN LÓPEZ CARRO javatlacati

🤓
Lets contiperf
View GitHub Profile
% categoria(nombre, numero).
categoria(tecnologia, 2).
categoria(historia, 3).
categoria(geografia, 4).
categoria(matematicas, 5).
categoria(ctesis, 6).
categoria(otros, 7).
categoria(novelas, 8).
categoria(musica, 9).
categoria(cuentos, 1).
@javatlacati
javatlacati / Extractor.java
Last active November 24, 2018 14:58
Extractor de números en Dukescript
package dew.demo.ko4j;
import net.java.html.json.*;
import java.util.regex.*;
import java.util.*;
@Model(targetId="", className="ExtractorDeNumeros", properties={
@Property(name="cadena", type=String.class)
})
@javatlacati
javatlacati / StringDemo.java
Last active August 11, 2016 23:04 — forked from jtulach/Prime.java
Simple text statistics
package dew.demo.string;
import net.java.html.json.Model;
import net.java.html.json.ComputedProperty;
import net.java.html.json.Property;
@Model(className="StringStatistics", properties={
@Property(name="myText", type=String.class)
})
class StringDemo {
@javatlacati
javatlacati / HelloViaKO.java
Last active April 25, 2019 03:36 — forked from jtulach/HelloViaKO.java
Estadísticas de cadenas
package dew.demo.string;
import net.java.html.json.Model;
import net.java.html.json.ComputedProperty;
import net.java.html.json.Property;
@Model (targetId="",className = "StringStatistics", properties = {
@Property (name = "miTexto", type=String.class)
})
class PrimeDemo {
@javatlacati
javatlacati / HelloViaKO.java
Last active January 1, 2023 07:36 — forked from jtulach/HelloViaKO.java
Dukescript simple accesible captcha
package dew.demo.clickcaptcha;
import net.java.html.json.Model;
import net.java.html.json.Property;
import net.java.html.json.Function;
import net.java.html.json.ComputedProperty;
@Model(targetId="", className="Captcha", properties={
@Property(name = "clicks", type=int.class),
@Property(name = "clicksEfectuados", type=int.class),