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
#!/usr/bin/env python3 | |
# (c) 2022 - Eddie Atkinson | |
# This code is licensed under the MIT license | |
import argparse | |
from typing import Union | |
from pathlib import Path | |
from zipfile import ZipFile | |
import textwrap |
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
import requests | |
from hashlib import md5 | |
from pathlib import Path | |
image_hashes = set() | |
out_path = Path("./images") | |
out_path.mkdir(exist_ok=True, parents=True) | |
# Wouldn't it be nice to do this in an async way :/ | |
while len(image_hashes) < 100: | |
r = requests.get("https://dog.ceo/api/breeds/image/random") |
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 <Arduino.h> | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(115200); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
readFuncInputVoltage(); |
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
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Morbi tempus iaculis urna id volutpat lacus laoreet non curabitur. A pellentesque sit amet porttitor eget. Tellus in metus vulputate eu. Odio tempor orci dapibus ultrices in iaculis nunc sed. Ultricies mi eget mauris pharetra. Euismod quis viverra nibh cras pulvinar mattis nunc sed. Tellus pellentesque eu tincidunt tortor. Ac turpis egestas maecenas pharetra convallis. Tempor nec feugiat nisl pretium fusce id velit. Sed pulvinar proin gravida hendrerit lectus a. In egestas erat imperdiet sed. | |
Ut consequat semper viverra nam. Vel elit scelerisque mauris pellentesque. Ut ornare lectus sit amet est placerat in. Tortor aliquam nulla facilisi cras fermentum odio. Turpis egestas maecenas pharetra convallis posuere morbi leo urna. Integer vitae justo eget magna fermentum iaculis eu. Orci sagittis eu volutpat odio facilisis mauris. Lobortis mattis aliquam faucibus purus in massa tempor. Aliquam |
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 | |
sudo service docker stop && sudo apt-get purge -y docker-ce && sudo apt-get autoremove --purge -y docker-engine && sudo rm -rf /var/lib/docker && sudo apt-get update && sudo apt-get install -y docker-engine && sudo service docker start && sudo docker run hello-world && sudo usermod -aG docker $USER |