Skip to content

Instantly share code, notes, and snippets.

View demosdemon's full-sized avatar
🏠
Working from home

Joachim Brandon LeBlanc demosdemon

🏠
Working from home
View GitHub Profile
@demosdemon
demosdemon / terminalsize.py
Last active August 27, 2018 14:53 — forked from jtriley/terminalsize.py
Get current terminal size on Linux, Mac, and Windows
#!/usr/bin/env python
import os
import platform
import shlex
import struct
import subprocess
def get_terminal_size():
""" getTerminalSize()
@demosdemon
demosdemon / ssdp.py
Created November 15, 2016 02:34 — forked from derflocki/ssdp.py
# Copyright 2014 Dan Krause
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,