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 <thread> | |
#include <future> | |
#include <chrono> | |
#include <iostream> | |
#include <vector> | |
double runMeAsync(int n) { | |
n *= 10000000; | |
for (unsigned i = 0; i < 100000000; i++) { | |
n++; |
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 flatten(arr) { | |
if (Array.flat) { // because we're all excited that this is finally making production! | |
return arr.flat(Infinity); | |
} | |
if (!arr.some(item => Array.isArray(item))) { | |
return arr; | |
} | |
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
syntax = "proto3"; | |
package audio_node; | |
service AudioNode { | |
// 1 connection with all audio channels | |
rpc StartAudioIngestion (CallId) returns (Empty); | |
rpc IngestAudio (stream AudioChunk) returns (Empty); | |
rpc FinishAudioIngestion (CallId) returns (Empty); |
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
body { | |
background: #db0000; | |
} |
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/bash | |
# Check if the nomad CLI is installed | |
if ! command -v nomad &> /dev/null; then | |
echo "Nomad CLI could not be found. Please install it first." | |
exit 1 | |
fi | |
# Get a list of all running jobs | |
running_jobs=$(nomad job status -short | grep running | awk '{print $1}') |
OlderNewer