- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
- Data Generator - https://mockaroo.com/
- Mobile Mockup Generator - https://mockuphone.com
- Logo Generator - https://www.logaster.com
- UUID Generator - https://www.uuidgenerator.net/
- Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/
- Ultimate Code Generator - https://webcode.tools/
This file contains hidden or 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 sqlite3 | |
| try: | |
| import tkinter | |
| except ImportError: | |
| import Tkinter as tkinter # Python 2 | |
| class Scrollbox(tkinter.Listbox): | |
| def __init__(self, window, **kwargs): |
This file contains hidden or 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.font as tkFont | |
| from tkinter import * | |
| from tkinter import ttk | |
| font_family = "Helvetica" | |
| font_size = { | |
| "small": 9, | |
| "normal": 10, | |
| "large": 11, |
This file contains hidden or 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
| # Youtube Link: https://www.youtube.com/watch?v=PgLjwl6Br0k | |
| import tkinter as tk | |
| from tkinter import filedialog, messagebox, ttk | |
| import pandas as pd | |
| # initalise the tkinter GUI | |
| root = tk.Tk() |
This file contains hidden or 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 __future__ import unicode_literals | |
| from tkinter import * | |
| from tkinter import ttk | |
| from tkinter import messagebox | |
| import youtube_dl | |
| import threading | |
| import time | |
| import os | |
| from tkinter.filedialog import askdirectory | |
| import keyboard |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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/python3 | |
| """ | |
| Find youtube links in a webpage, and save them as mp3. | |
| Conclusion: finding a way to downloan mp3 from youtube without installing any additional library was the hardest thing, due to youtube mutch care about copyright... | |
| Useful readings (but you will find these anyway): | |
| https://docs.python.org/3/howto/urllib2.html | |
| https://docs.python.org/3/howto/regex.html | |
| https://docs.python.org/3/library/functions.html | |
| https://docs.python.org/3/tutorial/datastructures.html |
This file contains hidden or 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 wordcloud import WordCloud, STOPWORDS | |
| import imageio | |
| import matplotlib.pyplot as plt | |
| def random_red_color_func(word=None, font_size=None, position=None, orientation=None, font_path=None, random_state=None): | |
| h = 0 | |
| s = 100 | |
| l = int(50 * (float(random_state.randint(60, 120))/100.0)) | |
| return "hsl({}, {}%, {}%)".format(h, s, l) |
This file contains hidden or 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
| method/keyword | parameters | uses | |
|---|---|---|---|
| open() | filename and open mode (optional) | create a file object by opening/creating the file in the specified read/write mode | |
| with | - | use it together with open(); closes the file after the suite completes | |
| read() | size (optional) | read the file up to the size specified if set | |
| readline() | size (optional) | read a single line with a size limit if set | |
| readlines() | size (optional) | create a list of the read lines with an optional size hint | |
| for loop | - | iterate the lines of the file | |
| write() | the string | write the string to the file that is opened with a certain writeable mode | |
| writelines() | the list of strings | write the list of strings to the file that is opened with a certain writeable mode | |
| close() | - | close the opened file |
This file contains hidden or 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 | |
| import tkinter | |
| main_window = tkinter.Tk() | |
| main_window.title('Sistem Klinik') | |
| class top_menu: | |
| # To-Do: | |
| # - Patient, stock, about |
NewerOlder