Skip to content

Instantly share code, notes, and snippets.

View sleepntsheep's full-sized avatar
🏠
Hmm

sleepntsheep sleepntsheep

🏠
Hmm
  • Bangkok, Thailand
View GitHub Profile
@sleepntsheep
sleepntsheep / costest.py
Last active October 27, 2024 12:58
Architect Search + Cost Management Software
import tkinter as tk
from tkinter import messagebox, ttk, simpledialog, filedialog
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
import webbrowser
@sleepntsheep
sleepntsheep / flappy duck
Created October 2, 2021 13:01
bad flappy bird game made in python curses
import curses
import time
import random
class Player:
def __init__(self, y, x, jumping, jumped):
self.y = y #int(height/2)
self.x = x# 10 if width > 20 else int(width/2)
self.jumping = jumping
@sleepntsheep
sleepntsheep / gist:1977a3507e409922bfc416165d79b811
Created August 31, 2021 09:44
my /usr/share/X11/xkb/symbols/kb , this make capslock act as slash, useful for my 60% keyboard
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105" {
key <ESC> { [ Escape ] };
// The extra key on many European keyboards:
key <LSGT> { [ less, greater, bar, brokenbar ] };
// The following keys are common to all layouts.
key <BKSL> { [ backslash, bar ] };
#!/usr/bin/env bash
UWU=""
OWO=" "
uptime=$(echo $(uptime -p) | sed "s/hours/$UWU/" | sed "s/minutes/$UWU/" | sed "s/days/$UWU/" | sed "s/up/$UWU/" | sed "s/$OWO/$UWU/g" | sed "s/,/:/g")
de=$XDG_CURRENT_DESKTOP
wm=$(id=$(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}'); xprop -id "${id}" -notype -f _NET_WM_NAME 8t | grep "_NET_WM_NAME = " | cut --delimiter=' ' --fields=3 | cut --delimiter='"' --fields=2)
distro=$( (lsb_release -ds || cat /etc/*release || uname -om ) 2>/dev/null | head -n1)