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 http = require('http'); | |
| const bonjour = require('bonjour')(); | |
| const crypto = require('crypto'); | |
| const os = require('os'); | |
| // Service Discovery and HTTP Server implementation | |
| class ServiceDiscovery { | |
| constructor() { | |
| this.instances = new Map(); | |
| this.server = 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
| # USAGE: python3 serve.py <PORT> | |
| #!/usr/bin/env python3 | |
| from http.server import SimpleHTTPRequestHandler | |
| from socketserver import TCPServer | |
| import logging | |
| import sys |
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/bash | |
| testvalues=( 4 8 16 32 64 128 256 512 1024 2048 ) | |
| echo | |
| echo "Conway's Game of Life Parallel Simulation" | |
| echo "=========================================" | |
| echo | |
| echo "=========================================" | |
| #for single threaded | |
| echo "Linear Execution Time" | |
| echo |
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
| rerun(){ | |
| while inotifywait -e create,delete,modify .; | |
| do | |
| kill %% //kills the last background process | |
| $@ & //spawns new process in background | |
| done; | |
| } |