What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-27 07:17:07
python interpreter
How to set Python 3 as default interpreter in Linux. Open terminal and write “alias python=python3” and hit enter. You are done! Now check your default interpreter version by simply \ run “python -V” command in the terminal. Add solution -
Python 2021-10-20 03:59:03
tkinter change label text
#How to change the font of a label in Tkinter #Import from tkinter import * #Screen window = Tk() window.title("New Window") window.geometry("300x250") Label(window, text = "This is my new project in python!", font = (&qu... Add solution -
Python 2021-10-19 17:03:07
shell script to run python script with arguments
#shell command >> python python_script.py var1 var2 # To access the variables inside the script import sys print sys.argv[0] # prints python_script.py print sys.argv[1] # prints var1 print sys.argv[2] # prints var2 Add solution -
Shell/Bash 2021-10-17 01:18:11
reset usb port on rasbry pi
##-------------------- ##--- Author: Pradeep Singh ##--- Blog: https://iotbytes.wordpress.com/ ##--- Date: 1st Dec 2017 ##--- Version: 1.0 ##--- Python Ver: 2.7 ##--- Description: This python code will reset a USB port connected to Raspberry Pi ##--------... Add solution -
Python 2021-10-15 02:15:04
unable to execute 'x86_64-linux-gnu-gcc': No such file or directoryunable to execute 'x86_64-linux-gnu-gcc': No such file or directory
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-pil python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus py... Add solution