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
#Create ubuntu as base image | |
FROM ubuntu | |
#Install packages | |
RUN apt-get -y update | |
RUN apt-get -y install python3 | |
RUN apt-get -y install gdb | |
RUN apt-get -y install gcc |
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
import ( | |
"fmt" | |
"sync" | |
) | |
type Mutex struct { | |
lockCh chan struct {} | |
unlockCh chan struct {} | |
doneCh chan struct {} | |
} |
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
#!/usr/bin/env bash | |
set -euo pipefail | |
throw_error() { | |
cat ahjwkbhw | |
} | |
throw_error && echo "1" |
OlderNewer