else
This commit is contained in:
parent
006788c40e
commit
f561782a81
11 changed files with 29 additions and 8 deletions
BIN
.GitImages/hexclock.png
Normal file
BIN
.GitImages/hexclock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
.GitImages/passwordy.png
Normal file
BIN
.GitImages/passwordy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
BIN
.GitImages/tkdraw.png
Normal file
BIN
.GitImages/tkdraw.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
8
Hexclock/README.md
Normal file
8
Hexclock/README.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
Hexclock
|
||||||
|
========
|
||||||
|
|
||||||
|
I know, it's been done a million times before. But not by me. Now it has.
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://github.com/voussoir/else/blob/master/.GitImages/hexclock.png?raw=true" alt="hexclock"/>
|
||||||
|
</p>
|
|
@ -3,11 +3,7 @@ import tkinter
|
||||||
import time
|
import time
|
||||||
|
|
||||||
SHIFT_SPEED = 0.2
|
SHIFT_SPEED = 0.2
|
||||||
|
# Higher numbers make the color wheel spin faster
|
||||||
degree = 359
|
|
||||||
r = 0
|
|
||||||
g = 0
|
|
||||||
b = 0
|
|
||||||
|
|
||||||
def cval(degree, hueshift):
|
def cval(degree, hueshift):
|
||||||
y = math.sin(math.pi*(degree+hueshift)/180)
|
y = math.sin(math.pi*(degree+hueshift)/180)
|
||||||
|
@ -32,6 +28,7 @@ def clocking():
|
||||||
t.after(50, clocking)
|
t.after(50, clocking)
|
||||||
|
|
||||||
t = tkinter.Tk()
|
t = tkinter.Tk()
|
||||||
|
t.title('Hexclock')
|
||||||
l = tkinter.Label(text='')
|
l = tkinter.Label(text='')
|
||||||
l.pack(expand=True, fill='both')
|
l.pack(expand=True, fill='both')
|
||||||
w = 450
|
w = 450
|
|
@ -29,3 +29,7 @@ Generates randomized strings, useful for making passwords and such.
|
||||||
|
|
||||||
|
|
||||||
To use the `sentence` function, you can download [this dictionary](https://github.com/voussoir/else/tree/master/Dictionary)
|
To use the `sentence` function, you can download [this dictionary](https://github.com/voussoir/else/tree/master/Dictionary)
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://github.com/voussoir/else/blob/master/.GitImages/passwordy.png?raw=true" alt="hexclock"/>
|
||||||
|
</p>
|
|
@ -76,6 +76,10 @@ if __name__ == '__main__':
|
||||||
mode = 'password'
|
mode = 'password'
|
||||||
length = int(args[1])
|
length = int(args[1])
|
||||||
|
|
||||||
|
elif args[1] in 'DdPp':
|
||||||
|
mode = 'password'
|
||||||
|
length = DEFAULT_LENGTH
|
||||||
|
|
||||||
elif 'sent' in args[1].lower() and argc == 1:
|
elif 'sent' in args[1].lower() and argc == 1:
|
||||||
mode = 'sentence'
|
mode = 'sentence'
|
||||||
length = DEFAULT_SENTENCE
|
length = DEFAULT_SENTENCE
|
||||||
|
|
|
@ -269,8 +269,8 @@ class Sudoku:
|
||||||
else:
|
else:
|
||||||
print('Some mistakes')
|
print('Some mistakes')
|
||||||
|
|
||||||
print(self.entries_solution)
|
#print(self.entries_solution)
|
||||||
print(self.entries_current)
|
#print(self.entries_current)
|
||||||
|
|
||||||
|
|
||||||
soduku = Sudoku()
|
soduku = Sudoku()
|
||||||
|
|
8
TKdraw/README.md
Normal file
8
TKdraw/README.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
TKDraw
|
||||||
|
=======
|
||||||
|
|
||||||
|
Unfortunately, there's no TKErase ...
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img src="https://github.com/voussoir/else/blob/master/.GitImages/tkdraw.png?raw=true" alt="ASCII"/>
|
||||||
|
</p>
|
Loading…
Reference in a new issue