Skip to content

Instantly share code, notes, and snippets.

### ###
### ESTADISTICO DE ORDEN K ###
### ###
# En ambas formas, cand es el indice en conj del numero candidato
# Asumiendo minimo k cuando hay repetidos
def fuerza_bruta1(conj, cand, k):
real_k = 1
for i in conj:
@MartinCura
MartinCura / keybase.md
Created November 7, 2020 22:07
keybase.md

Keybase proof

I hereby claim:

  • I am martincura on github.
  • I am martincura (https://keybase.io/martincura) on keybase.
  • I have a public key ASCCLDgBEKU-fzZ5P1wmBr3c_OMz0qYv5pUwws2cvz-lKAo

To claim this, I am signing this object:

@MartinCura
MartinCura / ManyToManyReactAdminComponents.tsx
Last active August 13, 2024 09:44
react-admin (w/ hasura backend) components for many-to-many (M2M) relationship management
/**
* I couldn't find online any way of managing entities with a M2M relationship in react-admin with hasura backend,
* so here are mine.
* Example of what you can do: to the Edit view of your Movie resource, add DeletableRelatedResourceList
* to list and delete associated actors, and M2MRelatedResourceSelectInput to add new associated actors
* (with an intermediary table movie_actors).
*
* Done with [email protected]
*/