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
FUENTE DE DATOS: https://alerta.ina.gob.ar/a5/secciones?generalCategory=&varId=&redId=&estacionId=&seriesId=32843&procId=×tart=2024-04-01&timeend=2024-04-30&submit=&data_availability=h&west=&north=&east=&south=&cal_grupo_id=&cal_id=&forecast_date=&fuentesId= | |
Y me bajé un JSON... lo pase a CSV usando herramientas online https://data.page/json/csv | |
Luego | |
CREATE DATABASE "INA" | |
WITH | |
OWNER = postgres | |
ENCODING = 'UTF8' |
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
haceme el favor... corre este código y averigualo por vos mismopackage main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
func main() { | |
http.HandleFunc("/panic", func(w http.ResponseWriter, r *http.Request) { | |
panic("¡Esto es un panic!") |
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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
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
#!/bin/sh | |
# diff is called by git with 7 parameters: | |
# path old-file old-hex old-mode new-file new-hex new-mode | |
kdiff3 "$2" "$5" | cat |
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 sumTableCells(tableId,cellIndex) { | |
var table = document.getElementById(tableId); | |
debugger; | |
let subTotal = Array.from(table.rows).reduce((total, row) => { | |
const textContent = row?.cells[cellIndex]?.textContent | |
return total + textContent ? parseInt(textContent.split(" ")[1].replace(",",".")) : 0 | |
}, 0); | |
return subTotal | |
} | |
sumTableCells("table",5) |
This file has been truncated, but you can view the full file.
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
Nabs Carlos | |
Alejandro Bologna | |
ANALIA ANTONIA ABALOS | |
María Pia Editadaaa Paz | |
Gonzalo Mauricio Coria | |
Usuario Sistema | |
Matias Buscaglia | |
Alexis Eme | |
Christian Sánchez | |
Cecilio Luis Cerisoli |
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 deferBuilder<T>() { | |
type resolveType = (value: T) => void; | |
interface resolveInterface { // no funca con interface :S | |
(value: T): void; | |
} | |
type rejectType = (reason?: any) => void | |
var resolve: resolveType; | |
var reject: rejectType | |
const promise = new Promise(function (_resolve: resolveType, _reject: rejectType) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
table, th, td { | |
border: 1px solid black; | |
border-collapse: collapse; | |
} | |
</style> | |
<script> |
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
-- Consulta sobre el valor un miembro de primer nivel (para el caso, turnos que son sobreturnos) | |
select * | |
from appointments | |
where details ->> 'isOverturn' = 'true'; | |
-- Consulta sobre el valor de un miembro de un nivel aninado (para el caso, los turnos con atención particular) | |
select * | |
from appointments | |
where details -> 'extra' ->> 'attentionBy' = 'particular' |
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
package util | |
import com.redis._ | |
import java.util.concurrent.Executors | |
import scala.concurrent.{Future, ExecutionContext} | |
trait Cache { | |
def get(key: String): Future[Option[String]] | |
def set(key: String, value: String, seconds: Long): Future[Boolean] | |
def ping(): Future[Boolean] |
NewerOlder