This file contains hidden or 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 screenshot = require("screenshot-desktop"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const Anthropic = require("@anthropic-ai/sdk"); | |
const sizeOf = require("image-size"); | |
// usa dotenv | |
require("dotenv").config(); | |
// Asegrate de que la clave API esté configurada |
This file contains hidden or 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
{ | |
"Lunes": [ | |
{ | |
"Comida": "Carne al horno con puré y ensalada", | |
"Postre": "Gelatina", | |
"Fruta": "Fruta" | |
}, | |
{ | |
"Comida": "Pollo al horno con calabaza gratinada", | |
"Postre": null, |
This file contains hidden or 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
hourly: | |
- cobras por hora | |
- garantizas un cierto skillset | |
- garantizas una cierta productividad/velocidad | |
- garantizas visibilidad (justificas) sobre como estas usando las horas por las que cobras | |
- no corres riesgos de scope (que el cliente cambie los req muchas veces) | |
- a menor riesgo, menor es el posible ROI | |
- tipo de cotizacion: rate ($/hora) | |
fixed bid/fixed price: |
This file contains hidden or 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
#!/bin/sh | |
echo "Installing docker.." | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sh get-docker.sh | |
echo "Installing docker compose.." | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker$ | |
sudo chmod +x /usr/local/bin/docker-compose |
This file contains hidden or 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
package utils; | |
import java.io.IOException; | |
import javax.ws.rs.container.ContainerRequestContext; | |
import javax.ws.rs.container.ContainerResponseContext; | |
import javax.ws.rs.container.ContainerResponseFilter; | |
import javax.ws.rs.ext.Provider; | |
@Provider | |
public class CrossRules implements ContainerResponseFilter { |
This file contains hidden or 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(currentPage, pageCount) { | |
return { | |
columns: [ | |
{ | |
text: 'Informe emitido por: '+ opciones[2][1]+"("+opciones[2][0]+")"+' (S.E.U.O).', | |
alignment: 'left' | |
}, | |
{ | |
text: 'Páginas '+currentPage.toString() + ' de ' + pageCount', | |
alignment: 'right', |
This file contains hidden or 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
Ifbb APP | |
> Alcance General | |
La app consiste en una sección noticias con noticias pertinentes a Ifbb, una sección salud/bienestar con noticias e info related salud/bienestar. | |
Otra sección con torneos, donde se ven los torneos activos/futuros, con posibilidad de inscribirse a alguno. | |
Y una última sección de cupones, con cupones de descuento para suplementos deportivos. | |
En muy resumidas cuentas, es eso. | |
> Lo que ya está | |
- Estructura general |
This file contains hidden or 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
Exercise 2 | |
Is the following code easily maintainable? How would you improve it? | |
public class Product | |
{ | |
... | |
public decimal Price() | |
{ | |
if (UOM.Equals("grams")) | |
return Quantity * 6m / 1000; |
This file contains hidden or 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 getLivingNeighbors = (board, xCell, yCell) => { | |
let livingNeighbors = 0; | |
for (let row = -1; row <= 1; row++){ | |
for (let column = -1; column <= 1; column++) { | |
if (row === 0 && column === 0) { | |
continue; | |
} | |
if((board[yCell + column]) && (board[yCell + column][xCell + row]) | |
&& (board[yCell + column][xCell + row] === 1)) { | |
livingNeighbors++; |