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
{ | |
# # You can use this file as below: | |
# # In configuration.nix: | |
# programs = { | |
# starship = { | |
# enable = true; | |
# settings = (import ./starship-config.nix).starshipSettings; | |
# }; | |
# # ... | |
# }; |
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
/* Copyright (c) 2006-2023. The SimGrid Team. All rights reserved. */ | |
/* This program is free software; you can redistribute it and/or modify it | |
* under the terms of the license (GNU LGPL) which comes with this package. */ | |
// based on routing_cluster of SimGrid official source code, modified by JRodez | |
#include <simgrid/s4u.hpp> | |
#include "simgrid/instr.h" | |
#include <simgrid/kernel/routing/NetPoint.hpp> |
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
#include <simgrid/instr.h> | |
#include <simgrid/s4u.hpp> | |
#include <simgrid/s4u/Host.hpp> | |
// #include "simgrid/s4u.hpp" | |
#include <xbt/log.h> | |
#include <rapidjson/document.h> | |
#include <rapidjson/writer.h> | |
#include <string> |
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
# server.py | |
import http.server # Our http server handler for http requests | |
import socketserver # Establish the TCP Socket connections | |
import time | |
PORT = 9999 | |
class MyHttpRequestHandler(http.server.BaseHTTPRequestHandler): | |
def do_GET(self) -> None: | |
self.send_response(200) | |
self.send_header('Content-type', 'text/html') |
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
// Brancas | |
#define se if | |
#define senon else | |
#define far do | |
#define tantque while | |
#define per for | |
#define commutacion switch | |
#define cas case | |
#define defaut default | |
#define copar break |