This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Mamífero { | |
abstract amamantar(otro: this); | |
} | |
class Perro extends Mamífero { | |
amamantar(otro: Perro) { | |
// Implementación para Perros | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Las estructuras comunes a lectura y escritura se introducen en un fichero | |
// de cabecera y se importa. | |
#define MAX_CHARS 30 | |
struct datos { | |
char usuario[MAX_CHARS]; | |
char password[MAX_CHARS]; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
interface Servicio { | |
void asignarValor(int valor); | |
int getValor(); | |
} | |
class Servicio1 implements Servicio { | |
private int valor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await Promise.all( | |
elements | |
.map(elem => functionThatThrows(elem)) | |
.map(p => p.catch(e => console.error(e)) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Wallet = require('ethereumjs-wallet') | |
const key = Buffer.from('<tu clave privada>', 'hex') | |
const wallet = Wallet.fromPrivateKey(key) | |
console.log(wallet.toV3String('<tu contraseña>')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
version: 0.1.0 | |
title: license-manager-api | |
basePath: /api/v0 | |
paths: | |
'/users/{id}/accessTokens/{fk}': | |
get: | |
tags: | |
- user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am bigomby on github. | |
* I am bigomby (https://keybase.io/bigomby) on keybase. | |
* I have a public key ASDYt3a8ZczX8ezR_W8fAJNg320ryfnwFimqk3xTJkfGOAo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x3670ec6BE115639c8E83F584140181b853339c61 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint no-alert: "off"*/ | |
const LON_MIN = 8; | |
const LON_MAX = 15; | |
const ERRORS = { | |
1: `La contrasea no tiene una longitud minima (${LON_MIN})`, | |
2: `La contraseña no tiene una longitud maxima (${LON_MAX})`, | |
3: 'La contraseña debe tener al menos un numero', | |
4: 'La contraseña debe tener al menos una Mayuscula', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import requests | |
import time | |
import datetime | |
import gi | |
gi.require_version('Notify', '0.7') | |
from gi.repository import Notify |