Skip to content

Instantly share code, notes, and snippets.

View abraham-ny's full-sized avatar
🧙‍♂️
My grimoire of code rests here, free for those who dare command the beast.

Abraham abraham-ny

🧙‍♂️
My grimoire of code rests here, free for those who dare command the beast.
View GitHub Profile
@abraham-ny
abraham-ny / index.html
Created June 18, 2025 18:32
Pure CSS iOS 26 Liquid Glass Effect
<div class="glassContainer">
<button type="button" class="glassBtn">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M5 12h14"/>
<path d="M12 5v14"/>
</svg>
</button>
</div>
<svg style="display: none">
@abraham-ny
abraham-ny / smart_device.py
Created May 13, 2025 17:36
Polymorphysm assignment PLP Python
class SmartDevice:
def __init__(self, brand, model, battery):
"""
Initialize the SmartDevice with common attributes.
"""
self.brand = brand
self.model = model
self.battery = battery
def charge(self):
@abraham-ny
abraham-ny / main.py
Created May 13, 2025 17:31
PLP-Python-FileHandling Assignment
def read_and_write_file():
filename = input("Enter the filename to read: ")
# Attempt to open the file and read its contents
try:
with open(filename, 'r') as file:
content = file.read()
print("\nOriginal Content:")
print(content)
@abraham-ny
abraham-ny / main.py
Created May 13, 2025 17:27
PLP-Week3-Python-Assignment (.env and other files not submitted in this gist)
def calculate_discount(price, discount_percent):
# Check if the discount is 20% or more
if discount_percent >= 20:
# Calculate the discounted price
discount_amount = (discount_percent / 100) * price
final_price = price - discount_amount
return final_price
else:
# Return the original price if discount is less than 20%
return price
@abraham-ny
abraham-ny / abraham-plp-assignment-pywk6.py
Last active May 13, 2025 17:24
PLP-WEEK Two assignment Py - Abraham
# Step 1: Create an empty list called my_list
my_list = []
# Step 2: Append the elements 10, 20, 30, 40 to my_list
my_list.append(10)
my_list.append(20)
my_list.append(30)
my_list.append(40)
# Step 3: Insert the value 15 at the second position (index 1) in the list
@abraham-ny
abraham-ny / vue.env
Created April 10, 2025 12:19
Vue env file with bitly api key
VUE_APP_API_URL=https://api-ssl.bitly.com/v4/shorten
VUE_APP_API_KEY=b4699bd08b3f1b396d7f0b4e98c67b42d98151b1
@abraham-ny
abraham-ny / privacy-policy.txt
Created March 30, 2025 17:57
Privacy Policy (No Data Collection)
This extension does not collect, store, or share any personal data.
All settings and preferences are stored locally in your browser.
@abraham-ny
abraham-ny / Ginger Webs Verificare Business Keygen
Created September 12, 2024 11:59 — forked from ntupanigmaia/Ginger Webs Verificare Business Keygen
Ginger Webs Verificare Business 7.0.12 with Crack [Latest 2024]
Ginger Webs Verificare Business License Key
@abraham-ny
abraham-ny / TestNG.java
Created September 12, 2024 11:58
Unit Testing with TestNG Java
//remember to add {before test} and {after test} to clean up after the test
//your IDE should let you integrate with TestNG, I use NetBeans
@Test
void ClassNameFunctionTest(){
//code you want to test
}
@abraham-ny
abraham-ny / LastWord.java
Created September 12, 2024 11:55
Get Last Word In A String
public class LastWordExtractor {
public static String getLastWord(String input) {
// Trim the input string to remove leading and trailing whitespaces
input = input.trim();
// Find the index of the last space character
int lastIndex = input.lastIndexOf(' ');
// Check if a space was found
if (lastIndex != -1) {