Docker-Registry is a simple Python app, installing it is straight-forward:
git clone https://github.com/dotcloud/docker-registry.git
cd docker-registry
cp config_sample.yml config.yml
pip install -r requirements.txt
gems: | |
- jekyll-octicons | |
collections: | |
pages: | |
output: true | |
permalink: /:path | |
sass: | |
style: :compressed |
#include <SoftwareSerial.h> | |
// This is a short sketch to test bluetooth modules. | |
// Connect the bluetooth RX to Pin 2 on the Arduino and TX to Pin 3. | |
SoftwareSerial mySerial(2,3); | |
void setup() { | |
// put your setup code here, to run once: | |
mySerial.begin(9600); | |
Serial.begin(9600); |
#include <SPI.h> | |
#include <Wire.h> | |
#include <Adafruit_GFX.h> | |
#include <Adafruit_SSD1306.h> | |
#define SCREEN_WIDTH 128 // OLED display width, in pixels | |
#define SCREEN_HEIGHT 64 // OLED display height, in pixels | |
// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins) | |
#define OLED_RESET 4 // Reset pin # (or -1 if sharing Arduino reset pin) |
Docker-Registry is a simple Python app, installing it is straight-forward:
git clone https://github.com/dotcloud/docker-registry.git
cd docker-registry
cp config_sample.yml config.yml
pip install -r requirements.txt
# threads demo | |
import _thread | |
from time import sleep | |
def hello(): | |
for _ in range(10): | |
print("hello world") | |
sleep(0.5) | |
print('exiting') |
from machine import Pin | |
from time import sleep_us, ticks_us | |
class Range_Finder(): | |
duration = 0 | |
distance = 0 | |
def __init__(self, echo_pin, trigger_pin): | |
# Initialise the Range Finder |
from pybricks.geometry import Axis | |
from pybricks.hubs import InventorHub | |
from pybricks.parameters import Direction, Port | |
from pybricks.pupdevices import ColorSensor, Motor | |
from pybricks.tools import StopWatch, wait | |
# Initialize motors. | |
left = Motor(Port.C, Direction.COUNTERCLOCKWISE) | |
right = Motor(Port.D) | |
left.reset_angle(0) |
# from icons import food_icon | |
from machine import I2C, Pin | |
from ssd1306 import SSD1306_I2C | |
from icon import Animate, Icon, Toolbar, Button, Event | |
from time import sleep | |
import framebuf | |
import gc | |
sda = Pin(0) | |
scl = Pin(1) |
# Kevin McAleer | |
# 2023-06-28 | |
# Bluetooth cores specification versio 5.4 (0x0D) | |
import sys | |
import aioble | |
import bluetooth | |
import machine | |
import uasyncio as asyncio |
# Did you know you can print Emojis in Python? | |
print("🥰 Happy 🌎 Emoji day! ❤️ 🐍🐍🐍") |