Skip to content

Instantly share code, notes, and snippets.

View larapollehn's full-sized avatar
👩‍💻
typing...

Lara Pollehn larapollehn

👩‍💻
typing...
View GitHub Profile
@aahmd
aahmd / player.py
Created February 24, 2019 06:00
video player using tkinter + vlc python bindings
#! /usr/bin/python
# -*- coding: utf-8 -*-
"""vlc media player; based off example in vlc repo:
`http://git.videolan.org/?p=vlc/bindings/python.git;a=commit;h=HEAD`
See also:
`http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/menu.html`
`http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/menu-coptions.html`
@sadikaya
sadikaya / git-bash-in-webstorm.md
Last active February 19, 2026 18:01
git bash inside Webstorm terminal

Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.

for 64bit:

"C:\Program Files\Git\bin\sh.exe" --login -i

for 32bit:

"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
@studiawan
studiawan / http-client-socket.py
Created December 16, 2013 05:06
Simple HTTP client using socket
import socket
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = ('www.python.org', 80)
client_socket.connect(server_address)
request_header = 'GET / HTTP/1.0\r\nHost: www.python.org\r\n\r\n'
client_socket.send(request_header)
response = ''