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
// ## Antes de empezar | |
// El código y el diagrama | |
class Prenda { | |
} | |
class Guardarropa { | |
private String nombre; |
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
HEADER 0 - Pocket Score | |
HEADER 10 - Charge Score | |
HEADER 10 -Pocket volume (convex hull) | |
HEADER 11 - Charge Score | |
HEADER 11 - Local hydrophobic density Score | |
HEADER 12 - Local hydrophobic density Score | |
HEADER 12 - Number of apolar alpha sphere | |
HEADER 13 - Number of apolar alpha sphere | |
HEADER 13 - Proportion of apolar alpha sphere | |
HEADER 14 - Proportion of apolar alpha sphere |
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
(() => { | |
function humanize(gbb, hasHeader) { | |
function humanizeStone(color, count) { | |
if (count === 0) { | |
return ''; | |
} else if (count === 1) { | |
return `una bolita ${color}`; | |
} else if (color === 'azul') { | |
return `${count} bolitas azules`; | |
} else { |
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
from dask.distributed import Client, worker_client, get_client | |
def analyze_chain(chain): | |
print("Analyzing chain", chain) | |
with worker_client() as client: | |
fpocket_future = client.submit(run_fpocket, chain) | |
features_seq_future = client.submit(run_features_seq, chain) | |
dssp_future = client.submit(run_dssp, chain) | |
results = client.gather([fpocket_future, features_seq_future, dssp_future]) |
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
{ | |
"grinning_face": "😀", | |
"grinning": "😀", | |
"grinning_face_with_big_eyes": "😃", | |
"smiley": "😃", | |
"grinning_face_with_smiling_eyes": "😄", | |
"smile": "😄", | |
"beaming_face_with_smiling_eyes": "😁", | |
"grin": "😁", | |
"grinning_squinting_face": "😆", |
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
//1 - Sugerencia diaria | |
//Asumamos que habíamos modelado | |
class Sugerencia{ | |
List<Atuendo> atuendos | |
} | |
//Podemos hacer |
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
// punto de partida | |
// problema creacional | |
// no quiero (hoy) centrarme en esto | |
unExamen = new Examen() | |
// de forma minimialista para lo que es el ejercicio a continuacion | |
// esto alcanza | |
unExamen.cargarRespuesta("Sofia", 1, "Berlin") // o cargarRespuesta |
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
interactive program { | |
INIT -> { Iniciar() } | |
K_R -> { Reiniciar() } | |
K_C -> { TocarC() } | |
K_UP -> { MoverArriba() } | |
K_RIGHT -> { MoverDerecha() } | |
K_DOWN -> { MoverAbajo() } | |
} | |
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
function avisosConPrecio() { | |
$("img") | |
.filter((_, it) => $(it).attr("title").indexOf("$") != -1) | |
.map((_, it) => $(it).attr("title")) | |
.toArray() | |
.forEach((it) => console.log(it)) | |
} | |
function avisosCeroKilometro() { | |
$("img") |
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
%% 0.1 Recapitulemos | |
lados(triangulo, 3). | |
lados(cuadrado, 4). | |
lados(rectangulo, 4). | |
lados(rombo, 4). | |
lados(romboide, 4). | |
lados(pentagono, 5). | |
%% 0.2 Y pensemos en buscar patrones |
NewerOlder