Skip to content

Instantly share code, notes, and snippets.

View lalloni's full-sized avatar

Pablo Lalloni lalloni

  • Buenos Aires, Argentina
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0atwvo1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.3.4">
<bpmn:collaboration id="Collaboration_0judo6g">
<bpmn:participant id="Participant_11gm0by" name="Cliente" processRef="Process_0evsr7s" />
</bpmn:collaboration>
<bpmn:process id="Process_0evsr7s" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>SequenceFlow_00x27t7</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:task id="Task_0vyhkqh" name="Solicitar mercadería">
cpares = 0
spares = 0
cdiv3 = 0
while True:
s = input("Ingrese un número entero o [intro] para terminar: ")
if s == "":
break
try:
n = int(s)
@lalloni
lalloni / mathjax_config.js
Created June 6, 2019 03:50
markdown-preview-enhanced not working for math using puppeteer
module.exports = {
jax: ["input/AsciiMath", "input/TeX", "output/SVG", "output/HTML-CSS"],
extensions: ["tex2jax.js", "asciimath2jax.js"],
messageStyle: "none",
displayAlign: "center",
displayIndent: "10px",
tex2jax: {
processEnvironments: true,
processEscapes: true,
processRefs: true
@lalloni
lalloni / StarUml-V3.md
Created March 26, 2019 20:40 — forked from danteay/StarUml-V3.md
Active StarUml 3 license
@lalloni
lalloni / precios.ipynb
Created May 29, 2018 04:51
ejercicios precios
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am lalloni on github.
  • I am plalloni (https://keybase.io/plalloni) on keybase.
  • I have a public key ASBBZHESmnz2bd46AzgI3SCeXwzotLka4rvD3A9S2xrA_wo

To claim this, I am signing this object:

@lalloni
lalloni / transforming-http-reverse-proxy.go
Last active December 7, 2016 20:42
A contrived example of writing a transforming http proxy using oxy.
package main
import (
"io"
"net/http"
"strconv"
"github.com/mailgun/multibuf"
"github.com/mailgun/oxy/forward"
"github.com/mailgun/oxy/utils"
@lalloni
lalloni / pool.go
Last active June 11, 2020 16:47
A golang worker pool
package pool
import "sync"
type Task interface {
Execute()
}
type Pool struct {
mu sync.Mutex
@lalloni
lalloni / rob
Last active August 29, 2015 14:16
O
/_\
d(^U^)b
|-|
__H__
_\| / \_/ \ |/_
/\\//| o |\\//\
\/ | o | \/
|===|
| _ |
scala> import storage.api._
import storage.api._
scala> val mask = Mask(Rights("------rwx"))
mask: storage.api.Mask = Mask(Rights(Access(false,false,false),Access(false,false,false),Access(true,true,true)))
scala> val default = Rights.all
default: storage.api.Rights = Rights(Access(true,true,true),Access(true,true,true),Access(true,true,true))
scala> mask(default)