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 tkinter as tk | |
import tkinter.filedialog as filedialog | |
# from pillow import Image, ImageTk | |
class ImageLayer: | |
def __init__(self): | |
self.width = 0 | |
self.height = 0 | |
self.x = 0 |
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 <Adafruit_GFX.h> // Core graphics library | |
#include <Adafruit_ST7735.h> // Hardware-specific library | |
#include <SPI.h> | |
#define LCD_CS 10 | |
#define DC 8 | |
#define RESET 9 | |
Adafruit_ST7735 tft = Adafruit_ST7735(LCD_CS, DC, RESET); | |
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 | |
--- | |
F | | B | |
| G | | |
--- | |
E | | C | |
| | | |
--- | |
D | |
This example code is in the public domain. |
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 PIL import Image | |
import sys | |
import pyocr | |
import pyocr.builders | |
tools = pyocr.get_available_tools() | |
if len(tools) == 0: | |
print("No OCR tool found") | |
sys.exit(1) |
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 debian:wheezy | |
MAINTAINER David Kwast <[email protected]> | |
RUN apt-get update && apt-get -y install proftpd && apt-get clean | |
RUN useradd -g root -d /var/www/html ftpuser && (echo "password";echo "password") | passwd ftpuser | |
RUN (echo "password";echo "password") | passwd root |