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
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 | |
ENV DEBIAN_FRONTEND=noninteractive \ | |
TZ=America/Los_Angeles | |
ARG USE_PERSISTENT_DATA | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
make build-essential libssl-dev zlib1g-dev \ |
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 | |
# Checking if script is run as sudo | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
# Download and extract the repository zip | |
wget https://github.com/arsenstorm/cg50-exit/archive/refs/heads/main.zip |
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
/* Installation: | |
- Download the Stylebot Extension | |
- Create a new style for the URL https://github.com | |
- Paste this code into the new style | |
- Ensure that the style is enabled | |
- Head over to your Github Profile Page | |
*/ | |
.ContributionCalendar-day[data-level="1"] { | |
fill: var(--color-calendar-halloween-graph-day-L1-bg) !important; |
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
activities = ["Running", "Swimming", "Tennis", "Football"] | |
timeExercise = [] | |
number = 0 | |
for i in range(len(activities)): | |
timeAppend = -1 | |
act = activities[i] | |
while True: | |
try: | |
while timeAppend < 0 or timeAppend > 200: |
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
name = str(input("Enter your name\n>>> ")) | |
chance = 0 | |
cname = "Rumplestiltskin" | |
hasGuessedName = False | |
while hasGuessedName == False: | |
guess = str(input("Guess my name\n>>> ")) | |
chance = chance + 1 | |
attempt = 5 - chance | |
if chance >= 5: |
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
<a href="./index.php" download>Download!</a> |