<div style="page-break-after: always;"></div>
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
#!/usr/bin/env python3 | |
from dataclasses import dataclass | |
@dataclass | |
class Pomodoro: | |
work_hours: int | |
def __post_init__(self) -> None: | |
self._time: dict = { |
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
#!/usr/bin/env python3 | |
class A: | |
def __init__(self, value): | |
self._x = value | |
@property | |
def x(self): | |
return self._x |
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
/** | |
* 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) |
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
; 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) |
For MVP.CSS
⚫ <a> — text links
○ <a><b>, <a><strong> — solid link buttons
○ <a><em>, <a><i> — outlined link buttons
⚫ <article> — content area with normal styling
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
#!/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 |