Skip to content

Instantly share code, notes, and snippets.

@kRHYME7
kRHYME7 / evaluate-grade-2.py
Last active April 29, 2024 15:53
# Python Code to evaluate a grade by Kenneth Alampay
#? This one uses for loop to match each value
# Define a list of tuples for grade ranges and messages
grades = [(0, 74, "Do better next time."), (75, 89, "Good job!"), (90, 100, "Excellent job!")]
# Ask for grade input and convert it to float
grade = float(input("Enter your grade: "))
# Find and print the corresponding message
for min_grade, max_grade, message in grades:
if min_grade <= grade <= max_grade:
@kRHYME7
kRHYME7 / themeselect.sh
Created April 17, 2024 03:30
Test only
#!/usr/bin/env sh
#// set variables
scrDir="$(dirname "$(realpath "$0")")"
source "${scrDir}/globalcontrol.sh"
rofiConf="${confDir}/rofi/selector.rasi"
@kRHYME7
kRHYME7 / README.md
Last active March 31, 2024 15:48
cannot add the Gdrive link Ma'am so diri nako i paste lang :https://drive.google.com/drive/folders/1zmIMJDsimzhbcVKb7iD10UyRNo3TGbT7?usp=sharing

Initial step to automate Generation of readings on OBS Live Stream for Dauin Parish Church.

Basically the readings.bat file will parse the value of month.ini file. month.ini file e.g 03.ini will have a string with this format

As I don't have time to write a template I wrote a separate batch file inigen.bat to create the desired structure per month.

[28]
@kRHYME7
kRHYME7 / 1st
Last active March 20, 2024 04:47
Activity 2 Average - Yrth Balneg & Kenneth Alampay
INP
STA SUM
INP
SUB TWO
ADD SUM
STA SUM
LOOP LDA SUM
LDA COUNT
ADD ONE
STA COUNT
@kRHYME7
kRHYME7 / 2nd
Last active March 18, 2024 10:32
LMC CPU simulation
// Start of the program
START INP
STA INPUT
LDA ONE
STA COUNT
// Start of the loop
LOOP LDA COUNT
OUT
LDA COUNT
ADD ONE
@kRHYME7
kRHYME7 / List of my qt5 apps
Last active March 12, 2024 04:31
This happens a week ago after KDE update
ocal/avahi 1:0.8+r194+g3f79789-1
Service Discovery for Linux using mDNS/DNS-SD (compatible with Bonjour)
local/kvantum-qt5 1.0.10-3
SVG-based theme engine for Qt5
local/phonon-qt5 4.12.0-4
The multimedia framework by KDE
local/phonon-qt5-gstreamer 4.10.0-4
Phonon GStreamer backend for Qt5
local/plasma5support 6.0.1-1 (plasma)
Support components for porting from KF5/Qt5 to KF6/Qt6
@kRHYME7
kRHYME7 / volumecontrol.sh
Last active March 8, 2024 06:29
~/.config/hyprdots/scripts/volumecontrol.sh
#!/usr/bin/env sh
ScrDir=`dirname "$(realpath "$0")"`
source $ScrDir/globalcontrol.sh
# define functions
print_error ()
{
@kRHYME7
kRHYME7 / ACFwNS.py
Last active March 7, 2024 07:13
Team OA
give me a code that will make the three servo motors turn on at 7am, 12pm, and 3pm
import time
from machine import Pin, PWM
import esp32
# ESP32 PWM pins
servo1_pin = 18
servo2_pin = 19
servo3_pin = 21
@kRHYME7
kRHYME7 / gamelauncher.sh
Last active March 10, 2024 08:12
This displays icons plus name for lutris games or any games on lutris library. cc https://github.com/Enigma1309 https://github.com/prasanthrangan/hyprdots/issues/866#issuecomment-1973045668
#!/usr/bin/env sh
# set variables
MODE=${1:-5}
ScrDir=`dirname "$(realpath "$0")"`
source $ScrDir/globalcontrol.sh
ThemeSet="${XDG_CONFIG_HOME:-$HOME/.config}/hypr/themes/theme.conf"
RofiConf="${XDG_CONFIG_HOME:-$HOME/.config}/rofi/steam/gamelauncher_${MODE}.rasi"
# set rofi override
@kRHYME7
kRHYME7 / hyprlock.conf
Created March 2, 2024 16:22
hyprlock.conf jus for demonstarion. Please share if you have awesome Hyprlock conf
source = /home/$USER/.config/hypr/themes/colors.conf
$foreground = rgba($primary_3ff)
# BACKGROUND
background {
monitor =
path = /home/$USER/.config/swww/wall.set # If WP is not .png it won't work
blur_passes = 3
contrast = 0.8916