This file contains 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
#This file scans the local network of the computer for devices and ips connected to it. | |
import socket | |
import threading | |
import queue | |
import subprocess | |
import sys | |
host = socket.gethostname() | |
hostIP = socket.gethostbyname(host) |
This file contains 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 PIL import Image | |
import sys | |
COLOR_DIFF = (0, 95, 135, 175, 215, 255) | |
imageNM = input("Image?: ") | |
SCALING = int(input("Scale? (5 - high, 20 - low): ")) | |
im = Image.open(imageNM, "r") | |
width, height = im.size | |
pixels = list(im.getdata()) |
This file contains 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
export TERM="xterm-256color" | |
PATH=$HOME/.python-color:$PATH | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin/:$PATH" | |
PATH=$PATH:$HOME/.npm-global/bin | |
export PATH | |
eval "$(rbenv init -)" | |
export EDITOR=code |
This file contains 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
# A calculator based on the Shunting-Yard algorithm | |
# https://en.wikipedia.org/wiki/Shunting-yard_algorithm | |
# https://en.wikipedia.org/wiki/Reverse_Polish_notation | |
OP_PRECEDENCE = {"(": 1, | |
")": 1, | |
"+": 2, | |
"-": 2, | |
"*": 3, | |
"/": 3, |
This file contains 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
# moved to https://github.com/who23/spa |
This file contains 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
#!/bin/bash | |
# Who23 Github | |
# A script to display current spotify track info in a small terminal window | |
# this includes art, track name, and artist. All art/text centered | |
# BUILT TO WORK WITH MACOS, iTERM, & SPA (https://gist.github.com/Who23/8ff45f0f2c2c3ae8a95582178a5c92ec) | |
# for linux: | |
# iTerm is needed for the image display protocol, can work with another terminal if you change the image protocol to one | |
# supported by that terminal |