Skip to content

Instantly share code, notes, and snippets.

View GBurgardt's full-sized avatar

Germán Burgardt GBurgardt

  • Freelance
  • Rosario, Santa Fe, Argentina
View GitHub Profile
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
{
"Lunes": [
{
"Comida": "Carne al horno con puré y ensalada",
"Postre": "Gelatina",
"Fruta": "Fruta"
},
{
"Comida": "Pollo al horno con calabaza gratinada",
"Postre": null,
@GBurgardt
GBurgardt / maneras-de-cobrar
Created June 27, 2019 15:50
maneras-de-cobrar
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:
#!/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
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 {
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',
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
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;
@GBurgardt
GBurgardt / GameOfLife.js
Created July 14, 2017 19:27
Game of life [iSeatz] (Germán Burgardt)
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++;