Skip to content

Instantly share code, notes, and snippets.

View cybardev's full-sized avatar
:atom:
Learning...

Sheikh cybardev

:atom:
Learning...
View GitHub Profile
@cybardev
cybardev / kittyfetch
Last active February 2, 2021 16:33
Simple, cute pfetch/ufetch alternative by elenapan, with some modifications to suit my case
#!/usr/bin/bash
# Tiny colored fetch script
# Requires Typicons Font to display the icons
f=3 b=4
for j in f b; do
for i in {0..7}; do
printf -v $j$i %b "\e[${!j}${i}m"
done
done
@cybardev
cybardev / html-ref.md
Created August 24, 2021 14:18
HTML Cheatsheet for MVP.CSS

HTML Cheatsheet

⚫ <a> — text links
    ○ <a><b>, <a><strong> — solid link buttons
    ○ <a><em>, <a><i> — outlined link buttons

⚫ <article> — content area with normal styling
@cybardev
cybardev / wt-dropdown.au3
Created August 27, 2021 18:49
Windows Terminal Dropdown
; variables to change
$termName = "wt.exe" ; terminal program
$tabName = "Kali" ; default tab name
$hotKey = "#`" ; dropdown hotkey
; start terminal and trigger dropdown
Run($termName)
WinWaitActive($tabName)
Send($hotKey)
WinWaitActive($tabName)
@cybardev
cybardev / jq.js
Created March 21, 2022 07:12
JavaScript helper functions to replace JQuery for personal and academic projects.
/**
* Aliases to create DOM objects using $() like in JQuery
*
* @author Sheikh Saad Abdullah
* @param {String} selector selector for the element
* @returns DOM Object for specified element
*/
const $ = (selector) => {
return selector[0] === "#"
? document.querySelector(selector)
<div style="page-break-after: always;"></div>
@cybardev
cybardev / override.py
Created July 13, 2023 16:29
Overriding a specific setter/getter method without having to redefine both in the subclass
#!/usr/bin/env python3
class A:
def __init__(self, value):
self._x = value
@property
def x(self):
return self._x
@cybardev
cybardev / pomodoro_breakdown.py
Last active October 13, 2023 14:45
Pomodoro Breakdown Calculator
#!/usr/bin/env python3
from dataclasses import dataclass
@dataclass
class Pomodoro:
work_hours: int
def __post_init__(self) -> None:
self._time: dict = {