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 os.path | |
import numpy | |
import keyboard | |
import cv2 | |
count = 0 | |
img = cv2.VideoCapture(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
#!/Users/steve/.pyenv/shims/python | |
# Thing to make new desktop backgrounds from my folder of research images | |
# On Linux I made this actually write to the desktop directly using feh, however, that's not really possible on a Mac. So I had it create a folder of graphics and then have the desktop settings choose from that directory at random. | |
from PIL import Image, ImageDraw | |
import os, random | |
from subprocess import call | |
## Colors from the Nord color scheme, |
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
<!DOCTYPE html> | |
<html lang="en" xmlns="http://www.w3.org/1999/html"> | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" href="/Users/admin/PycharmProjects/Chat\ Bot\ FINal/colors.css"/> | |
<title>Рецепт прикольных блинов</title> | |
</head> | |
<link rel="shortcut icon" href="venchic.ico"> |
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
""" | |
|---------------------| | |
|Individual exceptions for methods| | |
|---------------------| | |
""" | |
class ApplicationNameError(NameError): | |
""" | |
App with pointed out name not exist. | |
""" |
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
# Main commands in library (notifies) | |
terminal-notifier -message "Hello, this is my message" -title "Message Title" | |
osascript -e 'display notification "Notification text" with title "Notification Title" subtitle "Notification sub-title" sound name "Pop"' |
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
[submodule "blueutil"] | |
path = blueutil | |
url = https://github.com/toy/blueutil | |
[submodule "brightness"] | |
path = brightness | |
url = https://github.com/nriley/brightness | |
[submodule "brew"] | |
path = brew | |
url = https://github.com/Homebrew/brew |
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 subprocess | |
import sys | |
# ---------------------------------------------------------------------------------------------------------------------| | |
# INSTALL || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" OR | |
# REINSTALL || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# RUN || brew install brightness || brew doctor || brew install blueutil | |
__all__ = [ | |
'set_brightness', 'enable_bluetooth', 'unplug_bluetooth', 'ValueBrightnessError' |
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 customtkinter as tks | |
root = tk.Tk() | |
root.geometry('300x200') | |
root['bg'] = 'lightblue' | |
symbols = ['*', '/', '+', '-', '7', '8', '9', '0', '4', '5', '6', 'C', '1', '2', '3', '='] | |
c = 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
import tkinter as tk | |
import customtkinter as tks | |
root = tk.Tk() | |
root.geometry('300x200') | |
root['bg'] = 'lightblue' | |
symbols = ['*', '/', '+', '-', '7', '8', '9', '0', '4', '5', '6', 'C', '1', '2', '3', '='] | |
c = 0 |
NewerOlder