What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-20 21:49:14
Python Tkinter timer animation
#!/usr/bin/env python3 # Display UTC. # started with https://docs.python.org/3.4/library/tkinter.html#module-tkinter import tkinter as tk import time def current_iso8601(): """Get current date and time in ISO8601""" ... Add solution -
Python 2021-11-17 11:49:13
python network programming
#!/usr/bin/env python3 import socket HOST = '127.0.0.1' # Standard loopback interface address (localhost) PORT = 65432 # Port to listen on (non-privileged ports are > 1023) with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.b... Add solution -
SQL 2021-11-11 01:01:15
install postgresql mint
$ sudo apt update -y $ sudo apt install postgresql postgresql-contrib $ sudo systemctl status postgresql $ sudo -i -u postgres $ psql # \q $ sudo pg_isready $ sudo apt install libgmp3-dev build-essential libssl-dev $ sudo apt install python3-virtualenv py... Add solution -
Python 2021-11-10 00:27:14
extract audio from .mp4 python .mp3
#!/usr/bin/env python3 """ video_to_mp3.py Description: Simple script to extract MP3 audio from videos using Python. Requirements: - "lame" - "ffmpeg" If the libraries are not installed j... Add solution -
Python 2021-11-03 05:39:13
websocket communitation to another pc python
################################################################# # Client: #!/usr/bin/env python3 import sys from socket import socket, AF_INET, SOCK_DGRAM SERVER_IP = '192.168.8.102' PORT_NUMBER = 5000 SIZE = 1024 print ("Test client sending pa... Add solution -
Python 2021-11-02 07:22:18
tcp client using sockets in python
#!/usr/bin/env python3 import socket HOST = '127.0.0.1' # Standard loopback interface address (localhost) PORT = 65432 # Port to listen on (non-privileged ports are > 1023) with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.b... Add solution -
Python 2021-10-24 04:59:10
socket python functions
#!/usr/bin/env python3 import socket HOST = '127.0.0.1' # Standard loopback interface address (localhost) PORT = 65432 # Port to listen on (non-privileged ports are > 1023) with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.b... Add solution