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 main | |
import ( | |
"fmt" | |
"log" | |
"math/rand" | |
"net/http" | |
"time" | |
"github.com/prometheus/client_golang/prometheus" |
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 client = require('prom-client'); | |
const express = require('express'); | |
const server = express(); | |
const register = new client.Registry(); | |
// Probe every 5th second. | |
const intervalCollector = client.collectDefaultMetrics({prefix: 'node_', timeout: 5000, register}); | |
const counter = new client.Counter({ | |
name: "node_my_counter", |
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 client = require('prom-client'); | |
const express = require('express'); | |
const server = express(); | |
const register = new client.Registry(); | |
// Probe every 5th second. | |
const intervalCollector = client.collectDefaultMetrics({prefix: 'node_', timeout: 5000, register}); | |
const counter = new client.Counter({ | |
name: "node_my_counter", |
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
/* | |
The MIT License (MIT) | |
Copyright (c) 2018 Federico Barcelona <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the "Software"), to deal in the Software | |
without restriction, including without limitation the rights to use, copy, modify, merge, | |
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons | |
to whom the Software is furnished to do so, subject to the following conditions: |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
//! @author Federico Barcelona | |
//! @date 28/01/2014 | |
//!////////////////////////// BLOQUE 1 //////////////////////////////////// | |
//! Ejercicio 1 /////////////////////////////////////////////////////////////// | |
int multiplos(int num1, int num2) | |
{ | |
if (num1 % num2 == 0) |
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
public class Aula { | |
private Equipo[] equipos; | |
private String nombreAula; | |
public Aula(String nombreAula, Equipo[] equipos) | |
{ | |
this.nombreAula = nombreAula; | |
this.equipos = new Equipo[20]; | |
try | |
{ |
NewerOlder